/* ============================================================
   KOSMETOLOGIA NK — Components & sections
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .5s ease, padding .5s ease, box-shadow .5s ease;
}
.site-header.scrolled {
  background: color-mix(in oklab, var(--page-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  padding-block: 12px;
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
/* Scale (not height) so the logo shrinks visually without changing its layout width —
   keeps the flex space-between layout stable so the nav doesn't drift sideways on scroll. */
.brand img { height: 38px; width: auto; transform-origin: left center; transition: transform .5s ease; }
.scrolled .brand img { transform: scale(0.84); }
.brand .brand-sub {
  font-family: var(--serif); font-weight: 500; font-size: 15px;
  letter-spacing: .18em; text-transform: uppercase; line-height: 1;
  color: var(--header-fg);
}

.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 40px); }
.nav a.navlink {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  font-weight: 400; color: var(--header-fg); position: relative; padding-block: 4px;
}
.nav a.navlink::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--accent); transition: width .4s cubic-bezier(.2,.8,.2,1);
}
.nav a.navlink:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--header-line);
  display: grid; place-items: center; color: var(--header-fg);
  transition: background .35s, color .35s, transform .35s;
}
.icon-btn:hover { background: var(--header-fg); color: var(--header-bg-ref); transform: translateY(-2px); }
.icon-btn svg { width: 17px; height: 17px; }

/* header colour contexts: over hero (light text) vs scrolled (page text) */
.site-header { --header-fg: var(--hero-fg); --header-line: var(--line-light); --header-bg-ref: var(--hero-bg); }
.site-header.scrolled { --header-fg: var(--page-fg); --header-line: var(--line); --header-bg-ref: var(--page-bg); }
:root[data-palette="cream"] .site-header { --header-line: var(--line); }

.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--header-line); place-items: center; }
.burger span { width: 18px; height: 1.5px; background: var(--header-fg); transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; background: var(--hero-bg); color: var(--hero-fg);
  display: flex; align-items: center; overflow: hidden;
  border-radius: 0 0 clamp(20px, 4vw, 48px) clamp(20px, 4vw, 48px);
}
.hero__palm {
  position: absolute; pointer-events: none; opacity: .5; mix-blend-mode: soft-light;
  filter: blur(2px);
}
.hero__palm.p1 { top: -8%; left: -6%; width: 48%; transform: rotate(8deg); }
.hero__palm.p2 { bottom: -14%; right: -4%; width: 34%; transform: rotate(-160deg); opacity: .28; }
:root[data-palette="cream"] .hero__palm { mix-blend-mode: multiply; opacity: .14; }

.hero__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 80px); align-items: center;
  padding-top: 120px; padding-bottom: 60px; position: relative; z-index: 3; }

.hero__eyebrow { color: var(--accent-2); margin-bottom: 26px; display: inline-flex; align-items: center; gap: 14px; }
.hero__eyebrow .rule { width: 46px; height: 1px; background: currentColor; opacity: .6; display: inline-block; }
.hero h1 { color: var(--hero-fg); margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero__sub { font-size: clamp(15px, 1.3vw, 18px); letter-spacing: .04em; color: var(--hero-muted); max-width: 30ch; margin-bottom: 40px; }
.hero__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__scroll { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--hero-muted); white-space: nowrap; }

.hero__figure { position: relative; justify-self: end; width: 100%; max-width: 460px; will-change: transform; }
.hero__arch {
  aspect-ratio: 7/9; border-radius: 220px 220px 26px 26px; overflow: hidden;
  background: var(--cream-200); position: relative; box-shadow: 0 40px 80px -40px rgba(0,0,0,.5);
}
.hero__stat {
  position: absolute; left: -34px; bottom: 38px; background: var(--panel-bg); color: var(--ink);
  border-radius: 18px; padding: 16px 22px; box-shadow: 0 24px 50px -24px rgba(0,0,0,.45);
  display: flex; align-items: center; gap: 14px;
}
.hero__stat .n { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--green-800); }
.hero__stat-seal { flex: none; width: 46px; height: 46px; border-radius: 999px; background: var(--soft-bg); color: var(--green-800); display: grid; place-items: center; }
.hero__stat-seal svg { width: 22px; height: 22px; }
.hero__stat .l { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); max-width: 20ch; }
.hero__stat .l b { display: block; font-family: var(--serif); font-weight: 500; font-size: 18px; letter-spacing: .01em; text-transform: none; color: var(--green-800); margin-bottom: 3px; }

/* hero variant: CENTERED */
.hero[data-variant="centered"] .hero__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hero[data-variant="centered"] .hero__figure { display: none; }
.hero[data-variant="centered"] .hero__sub { max-width: 46ch; }
.hero[data-variant="centered"] .hero__cta { justify-content: center; }
.hero[data-variant="centered"] h1 { font-size: clamp(46px, 8vw, 116px); }
.hero[data-variant="centered"] .hero__monogram { display: block; }
.hero__monogram { display: none; height: 92px; margin: 0 auto 34px; opacity: .9; }

/* hero variant: SPLIT (image full right) */
.hero[data-variant="split"] .hero__inner { grid-template-columns: 1fr 1fr; gap: 0; padding-right: 0; }
.hero[data-variant="split"] .hero__figure { max-width: none; align-self: stretch; justify-self: stretch; }
.hero[data-variant="split"] .hero__arch { height: 100%; aspect-ratio: auto; border-radius: 320px 0 0 0; }

/* ---------- Image placeholder ---------- */
.ph {
  position: relative; width: 100%; height: 100%; min-height: 120px;
  background:
    repeating-linear-gradient(135deg, var(--cream-200) 0 14px, var(--cream-100) 14px 28px);
  display: grid; place-items: center; color: var(--ink-soft); overflow: hidden;
}
.ph::after {
  content: attr(data-label); font-family: var(--sans); font-weight: 400;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  background: rgba(255,255,255,.72); padding: 7px 13px; border-radius: 999px; color: #897f6e;
}
.ph--green { background: repeating-linear-gradient(135deg, #38493d 0 14px, #324239 14px 28px); }
.ph--green::after { background: rgba(0,0,0,.28); color: #d9e0d6; }

/* ---------- Section heading ---------- */
.sec-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head .eyebrow { color: var(--accent); }
.sec-head.center { align-items: center; text-align: center; }
.sec-head h2 { color: var(--page-fg); }
.sec-head .lead { max-width: 52ch; color: var(--page-muted); font-size: clamp(15px,1.2vw,17px); }
.sec-head.center .lead { margin-inline: auto; }
