/* ============================================================
   beauty-craft.css — additions on top of craft-style.css
   Shared by index.html and the case-study subpages.
   ============================================================ */

/* ---------- Floating glass nav island ----------------------- */
.g-nav {
  position: sticky; top: 14px;
  width: calc(100% - 32px);
  max-width: 1080px;
  margin: 14px auto 0;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.55);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 10px 34px -10px rgba(27, 27, 29, 0.22),
    0 2px 8px -2px rgba(27, 27, 29, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* Brand logo (inline SVG monogram) */
.g-brand-logo { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; }
.g-brand--footer .g-brand-logo { width: 30px; height: 30px; }
.g-brand-footer-name { font-family: var(--f-serif); font-size: 20px; color: #fff; }

/* ---------- Hero -------------------------------------------- */
html { overflow-x: clip; }
.g-hero { padding-bottom: 76px !important; overflow: visible !important; }
.g-hero::before {
  left: calc(50% - 50vw) !important; right: auto !important; width: 100vw !important;
  top: -100px !important; bottom: -220px !important; height: auto !important;
  border-radius: 0 !important;
}
.g-hero::after { inset: -40px calc(50% - 50vw) 0 !important; }
.g-hero-cta { display: flex !important; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }
.g-hero-meta { display: flex !important; flex-wrap: wrap; justify-content: center; margin-top: 0; }
@media (max-width: 560px) {
  .g-hero-meta { flex-direction: column; flex-wrap: nowrap; gap: 6px; width: 100%; }
  .g-hero-meta > span {
    justify-content: center; width: 100%; padding: 7px 14px;
    font-size: 12.5px; line-height: 1.2;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--r-pill);
    backdrop-filter: blur(8px);
  }
  .g-hero-meta > span i { width: 15px; height: 15px; }
}

/* ---------- About ------------------------------------------- */
#omnie .g-about-body { padding-top: 8px; }
#omnie .g-about-grid { grid-template-columns: 440px 1fr; gap: 56px; }
#omnie .g-about-photo { align-self: start; margin-left: -32px; }
#omnie .g-h2 em { color: var(--c-accent); }
@media (max-width: 880px) {
  #omnie .g-about-grid { grid-template-columns: 1fr; gap: 24px; }
  #omnie .g-about-photo { margin-left: 0; max-width: 420px; }
}

/* ---------- Portfolio — alternating feature rows ------------ */
.g-portfolio-features { display: flex; flex-direction: column; gap: 72px; }
.g-pfrow { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.g-pfrow--reverse .g-pfrow-media { order: 2; }
@media (max-width: 880px) {
  .g-pfrow { grid-template-columns: 1fr; gap: 28px; }
  .g-pfrow--reverse .g-pfrow-media { order: 0; }
}
.g-pfrow-media {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-2xl);
  box-shadow: var(--sh-3); overflow: hidden; padding: 24px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.g-pfrow-media > img { width: 100%; height: auto; border-radius: var(--r-md); }
.g-pfrow-media--twin > img { width: 48%; max-width: 200px; border-radius: 0; }
/* Bare: obraz z własną oprawą (laptop/telefon) — bez karty, na tle strony, tylko urządzenie */
.g-pfrow-media--bare { background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0; overflow: visible; }
.g-pfrow-media--bare > img { width: 100%; max-width: 760px; height: auto; margin: 0 auto; border-radius: 0; object-fit: contain; }
/* Wide: większe zdjęcie (czat + IG) — szersza kolumna mediów i pełna szerokość obrazu */
.g-pfrow--wide { grid-template-columns: 0.78fr 1.22fr; }
@media (max-width: 880px) { .g-pfrow--wide { grid-template-columns: 1fr; } }
.g-pfrow-media--wide > img { max-width: 100%; }
.g-pfrow-title {
  font-family: var(--f-serif); font-weight: 500;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 20px;
}
.g-pfrow-title em { font-style: italic; color: var(--c-accent); }
.g-pfrow-story { display: flex; flex-direction: column; gap: 14px; margin: 0 0 24px; }
.g-pfrow-story > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; }
.g-pfrow-story dt {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--c-muted); padding-top: 3px;
}
.g-pfrow-story dd { margin: 0; color: var(--c-ink-2); font-size: 14.5px; line-height: 1.55; }
.g-pfrow-result-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.g-pfrow-result-list li { position: relative; padding-left: 18px; }
.g-pfrow-result-list li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 8px; height: 2px; background: var(--c-accent); border-radius: 1px;
}
.g-pfrow-cta { align-self: flex-start; }

/* ---------- Testimonials marquee ---------------------------- */
.g-tm-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.g-tm-marquee-track { display: flex; gap: 18px; width: max-content; animation: g-tm-scroll 48s linear infinite; }
.g-tm-marquee:hover .g-tm-marquee-track { animation-play-state: paused; }
@keyframes g-tm-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.g-tm-marquee .g-tmcard {
  width: 380px; flex-shrink: 0; display: flex; flex-direction: column;
  background: var(--c-paper); border: 1px solid var(--c-line); box-shadow: var(--sh-2);
}
@media (max-width: 560px) { .g-tm-marquee .g-tmcard { width: 300px; } }

/* ---------- Contact bullets --------------------------------- */
.g-contact-bullets { margin: 0 0 24px; }
.g-contact-bullets-label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--c-muted); margin-bottom: 10px;
}
.g-contact-bullets ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.g-contact-bullets li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.5; color: var(--c-ink-2); }
.g-contact-bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.65em;
  width: 12px; height: 2px; background: var(--c-accent); border-radius: 1px;
}

/* ============================================================
   CASE STUDY (craft) — cs-* / sb-* classes
   ============================================================ */
.cs-main { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

.cs-hero {
  max-width: 920px; margin: 0 auto; padding: 48px 28px 24px; text-align: center;
}
.cs-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.02em;
  color: var(--c-muted); margin-bottom: 28px;
}
.cs-back:hover { color: var(--c-accent); }
.cs-back [data-lucide] { width: 15px; height: 15px; }
.cs-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--c-sky-deep); background: rgba(255,255,255,0.7);
  border: 1px solid var(--c-line); border-radius: var(--r-pill);
  padding: 7px 16px; margin-bottom: 22px;
}
.cs-tag .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.cs-h1 {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(36px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.cs-h1 em { font-style: italic; font-weight: 500; color: var(--c-accent); }
.cs-lead { font-size: 19px; line-height: 1.55; color: var(--c-ink-2); max-width: 680px; margin: 0 auto 40px; }

/* hero cover (screenshot) */
.cs-hero-cover {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-2xl);
  box-shadow: var(--sh-3); padding: 28px; margin: 0 auto 40px; max-width: 920px;
}
.cs-hero-cover > img { width: 100%; height: auto; border-radius: var(--r-md); display: block; }
.cs-gallery--phones { display: flex; gap: 22px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.cs-gallery-phone { margin: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.cs-gallery-phone img { width: 220px; max-width: 40vw; height: auto; display: block; }
.cs-gallery-phone figcaption { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--c-muted); }

/* stats */
.cs-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 auto; max-width: 920px;
}
@media (max-width: 640px) { .cs-stats { grid-template-columns: repeat(2, 1fr); } }
.cs-stat {
  background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-xl);
  padding: 22px 18px; text-align: center;
}
.cs-stat:nth-child(1) { background: var(--c-lavender); border-color: transparent; }
.cs-stat:nth-child(2) { background: var(--c-mint); border-color: transparent; }
.cs-stat:nth-child(3) { background: var(--c-butter); border-color: transparent; }
.cs-stat:nth-child(4) { background: var(--c-peach); border-color: transparent; }
.cs-stat-big { font-family: var(--f-serif); font-weight: 500; font-size: 34px; line-height: 1; }
.cs-stat-big em { font-style: italic; }
.cs-stat-lbl { font-size: 13px; color: var(--c-ink-2); margin-top: 8px; }

/* story */
.sb-section { padding: 64px 0; }
.sb-inner { max-width: 820px; margin: 0 auto; padding: 0 28px; }
.sb-eyebrow {
  display: inline-block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--c-accent-deep); margin-bottom: 14px;
}
.sb-title {
  font-family: var(--f-serif); font-weight: 400; font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 36px;
}
.sb-title em { font-style: italic; font-weight: 500; color: var(--c-accent); }
.sb-list { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sb-row {
  display: grid; grid-template-columns: 64px 150px 1fr; gap: 18px; align-items: start;
  padding: 22px 0; border-top: 1px solid var(--c-line);
}
@media (max-width: 720px) { .sb-row { grid-template-columns: 1fr; gap: 6px; } }
.sb-row-num { font-family: var(--f-serif); font-style: italic; font-size: 26px; color: var(--c-sky-deep); }
.sb-row-label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-muted); padding-top: 8px;
}
.sb-row-text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--c-ink-2); }
.sb-row-text ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sb-row-text li { position: relative; padding-left: 20px; }
.sb-row-text li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 10px; height: 2px; background: var(--c-accent); border-radius: 1px;
}

/* stack */
.cs-stack { max-width: 820px; margin: 0 auto; padding: 0 28px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cs-stack-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); }
.cs-stack-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-stack-pill {
  font-size: 13px; padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--c-cream-2); border: 1px solid var(--c-line); color: var(--c-ink-2);
}

/* cta */
.cs-cta-block { padding: 72px 28px 96px; }
.cs-cta-card {
  max-width: 820px; margin: 0 auto; text-align: center;
  background: linear-gradient(180deg, var(--c-sky-1) 0%, var(--c-cream) 100%);
  border: 1px solid var(--c-line); border-radius: var(--r-2xl);
  padding: 56px 32px; box-shadow: var(--sh-2);
}
.cs-cta-card h2 {
  font-family: var(--f-serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12; margin: 0 0 24px;
}
.cs-cta-card h2 em { font-style: italic; color: var(--c-accent); }

/* interactive demo (functional booking system) */
.cs-hero-cover--demo { background: transparent; border: 0; box-shadow: none; padding: 0; }
.cs-demo-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 720px; margin: 0 auto 28px; }
@media (max-width: 640px) { .cs-demo-switch { grid-template-columns: 1fr; } }
.cs-demo-tab {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px 18px; border-radius: var(--r-lg);
  border: 1px solid var(--c-line); background: var(--c-paper); color: var(--c-ink);
  cursor: pointer; width: 100%; font-family: inherit;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.cs-demo-tab:hover { box-shadow: var(--sh-2); }
.cs-demo-tab.is-active { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.cs-demo-tab [data-lucide] { width: 22px; height: 22px; flex-shrink: 0; }
.cs-demo-tab.is-active [data-lucide] { color: var(--c-accent); }
.cs-demo-tab > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cs-demo-tab strong { font-family: var(--f-serif); font-weight: 500; font-size: 16px; }
.cs-demo-tab em { font-style: normal; font-size: 12.5px; opacity: .7; }

/* ManagementPanel demo — hide user name/role on small screens (only avatar) */
@media (max-width: 640px) {
  .mp-user > div { display: none; }
  .mp-user-name, .mp-user-role { display: none; }
  .mp-top-right { gap: 8px; min-width: 0; }
}

/* Booking calendar inside the case-study CTA card */
.cs-cta-card .g-contact-cal,
.cs-cta-card #cta-cal { margin-top: 28px; text-align: left; }
.cs-cta-lead {
  font-size: 17px; line-height: 1.55; color: var(--c-ink-2);
  max-width: 560px; margin: 0 auto 8px;
}
/* keep the booking calendar inside the CTA card on mobile */
.cs-cta-card #cta-cal { width: 100%; }
.cs-cta-card #cta-cal .cc-widget { width: 100%; max-width: 100%; }
@media (max-width: 640px) {
  .cs-cta-block { padding: 48px 12px 72px; }
  .cs-cta-card { padding: 32px 14px; }
}

/* ---------- Audience as a cloud ----------------------------- */
/* (reverted to card layout — cloud styles removed) */
