/* ============================================================================
 *  layout.css — sections, grids, header/nav, hero, gallery, footer.
 * ========================================================================== */

:where(section[id], div[id].anchor) { scroll-margin-top: var(--header-h, 5.25rem); }

/* ====================== HEADER / NAV ===================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in oklab, var(--cream) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-1);
}
.nav {
  display: flex; align-items: center; gap: var(--space-m);
  padding-block: var(--space-s);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6em;
  text-decoration: none; color: var(--plum);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 480;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand:hover { color: var(--plum); }
.brand__mark { width: 1.9em; height: 1.9em; flex: none; color: var(--lilac); }
.brand small { display: block; font-family: var(--font); font-size: 0.5em; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--lilac-700); margin-top: 0.35em; }

.nav__links { display: flex; align-items: center; gap: clamp(0.5rem, 2vw, 1.6rem); margin-left: auto; }
.nav__links a {
  text-decoration: none; color: var(--plum); font-weight: 500; font-size: var(--step-0);
  padding: 0.4em 0.2em; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0.2em; right: 0.2em; bottom: 0.05em; height: 1.5px;
  background: var(--lilac); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--lilac-700); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { margin-left: clamp(0.25rem, 1vw, 0.75rem); }

.nav__toggle { display: none; }

/* ---- Mobile nav --------------------------------------------------------- */
@media (max-width: 860px) {
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; width: 2.9rem; height: 2.9rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    color: var(--plum); cursor: pointer;
  }
  .nav__toggle svg { width: 1.3rem; height: 1.3rem; }
  .nav__toggle .icon-close { display: none; }
  .nav__toggle[aria-expanded="true"] .icon-open { display: none; }
  .nav__toggle[aria-expanded="true"] .icon-close { display: block; }

  .nav__links {
    position: fixed; inset: 0 0 0 auto;
    width: min(82vw, 340px);
    flex-direction: column; align-items: stretch; gap: 0.25rem;
    margin: 0; padding: 6rem var(--space-l) var(--space-l);
    background: var(--cream); border-left: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    overflow-y: auto;
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { font-size: var(--step-1); padding: 0.7em 0; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__links .nav__cta { margin: var(--space-s) 0 0; }
  .nav__links .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
  .nav__scrim {
    position: fixed; inset: 0; z-index: 40;
    background: oklch(26% 0.035 318 / 0.42);
    opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur);
  }
  .nav__scrim.is-open { opacity: 1; visibility: visible; }
}

/* ====================== HERO ============================================= */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--lilac-50), var(--cream) 62%);
  overflow: clip;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem);
}
.hero__eyebrow { margin-bottom: var(--space-m); }
.hero h1 { margin-bottom: var(--space-s); }
.hero h1 em { font-style: normal; color: var(--lilac-700); }
.hero__lede { margin-bottom: var(--space-l); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; }
.hero__trust {
  margin-top: var(--space-l);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em 1.1em;
  font-size: var(--step--1); color: var(--muted);
}
.hero__trust .stars { font-size: var(--step-0); }
.hero__trust b { color: var(--plum); font-weight: 600; }
.hero__trust .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

/* hero media */
.hero__media { position: relative; justify-self: center; width: 100%; max-width: 460px; }
.hero__media::before {                       /* soft lilac glow behind photo */
  content: ""; position: absolute; inset: -14% -10% -6% -16%;
  background: radial-gradient(60% 60% at 60% 35%, var(--lilac-300), transparent 70%);
  filter: blur(10px); opacity: 0.7; z-index: 0;
}
.hero__photo {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
}
.hero__badge {
  position: absolute; z-index: 2; left: -1.1rem; bottom: 1.6rem;
  display: flex; align-items: center; gap: 0.7em;
  padding: 0.7em 1em;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-2);
}
.hero__badge .num { font-family: var(--font-display); font-size: var(--step-3); line-height: 1; }
.hero__badge .lab { font-size: var(--step--1); color: var(--muted); line-height: 1.25; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .hero__media { order: -1; max-width: 380px; }
  .hero__badge { left: auto; right: -0.4rem; }
}

/* ====================== TRUST STRIP ===================================== */
.trust {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.trust__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-m);
  padding-block: var(--space-m);
}
.trust__item { display: flex; align-items: center; gap: 0.6em; font-size: var(--step-0); font-weight: 500; }
.trust__item svg { width: 1.3em; height: 1.3em; color: var(--lilac-700); flex: none; }

/* ====================== SECTION HEAD ==================================== */
.sec-head { max-width: 60ch; margin-bottom: var(--space-xl); }
.sec-head.center { margin-inline: auto; }
.sec-head .eyebrow { margin-bottom: var(--space-s); }
.sec-head p { margin-top: var(--space-s); color: var(--muted); font-size: var(--step-1); }

/* ====================== ABOUT / STUDIO ================================== */
.studio__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.studio__body p + p { margin-top: var(--space-s); }
.studio__body .lede { margin-bottom: var(--space-m); }
.studio__aside { display: grid; gap: var(--space-s); }
.stat {
  display: flex; align-items: baseline; gap: 0.6em;
  padding: var(--space-m) var(--space-l);
  background: var(--surface-sink); border-radius: var(--r-lg);
  border: 1px solid var(--lilac-100);
}
.stat__num { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; color: var(--lilac-700); }
.stat__lab { font-size: var(--step-0); color: var(--muted); }
@media (max-width: 760px) { .studio__grid { grid-template-columns: 1fr; } }

/* ====================== SERVICES ======================================== */
.services__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0 clamp(2rem, 5vw, 4.5rem);
}
.services__note { margin-top: var(--space-l); color: var(--muted); font-size: var(--step--1); }
@media (max-width: 760px) { .services__grid { grid-template-columns: 1fr; } }

/* ====================== GALLERY ========================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: var(--space-s);
}
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--lilac-100); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.gallery figure:hover img { transform: scale(1.045); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .g-wide { grid-column: span 2; }
}

/* ====================== REVIEWS ========================================= */
.reviews { background: var(--lilac-50); }
.reviews__masonry { columns: 3 260px; column-gap: var(--space-m); }
.reviews__masonry > * { margin-bottom: var(--space-m); }
@media (max-width: 560px) { .reviews__masonry { columns: 1; } }

/* ====================== CTA BAND ======================================== */
.cta-band { position: relative; isolation: isolate; overflow: clip; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, oklch(26% 0.05 318 / 0.92), oklch(33% 0.10 312 / 0.80));
}
.cta-band__inner { padding-block: var(--space-3xl); color: #fff; text-align: center; max-width: 60ch; margin-inline: auto; }
.cta-band__inner h2 { color: #fff; }
.cta-band__inner p { color: oklch(94% 0.02 312); margin: var(--space-s) auto var(--space-l); font-size: var(--step-1); }
.cta-band .btn--ghost { --_fg: #fff; border-color: oklch(100% 0 0 / 0.5); }
.cta-band .btn--ghost:hover { --_bg: oklch(100% 0 0 / 0.12); color: #fff; border-color: #fff; }

/* ====================== VISIT (hours + form) ============================ */
.visit__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .visit__grid { grid-template-columns: 1fr; } }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 0.62em 0; border-bottom: 1px solid var(--line); font-size: var(--step-0); }
.hours th { font-weight: 500; color: var(--muted); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--lilac-700); font-weight: 700; }
.hours tr.is-today th::after { content: " · Today"; font-weight: 600; font-size: 0.82em; }

.visit__facts { display: grid; gap: var(--space-m); margin-top: var(--space-l); }
.fact { display: grid; grid-template-columns: auto 1fr; gap: 0.9em; align-items: start; }
.fact svg { width: 1.35em; height: 1.35em; color: var(--lilac-700); margin-top: 0.15em; }
.fact a { color: var(--plum); text-decoration: none; }
.fact a:hover { color: var(--lilac-700); }
.fact .k { font-weight: 600; }
.fact .v { color: var(--muted); font-size: var(--step--1); }

.form {
  display: grid; gap: var(--space-s);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-1);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-s); }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.form__status { min-height: 1.2em; }

/* ====================== FOOTER ========================================== */
.site-footer { background: var(--plum); color: oklch(92% 0.012 312); }
.site-footer a { color: oklch(92% 0.012 312); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-xl);
  padding-block: var(--space-2xl) var(--space-xl);
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: var(--space-l); } }
.footer__brand { display: inline-flex; align-items: center; gap: 0.55em; font-family: var(--font-display);
  font-size: var(--step-2); color: #fff; }
.footer__brand .brand__mark { color: var(--lilac-300); }
.footer__col h4 { color: #fff; font-size: var(--step-0); font-family: var(--font); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-s); }
.footer__col p, .footer__col li { color: oklch(86% 0.015 312); font-size: var(--step-0); margin-bottom: 0.45em; }
.footer__nap { font-style: normal; line-height: 1.7; }
.footer__bottom {
  border-top: 1px solid oklch(100% 0 0 / 0.12);
  padding-block: var(--space-m);
  display: flex; flex-wrap: wrap; gap: var(--space-s) var(--space-l); justify-content: space-between;
  font-size: var(--step--1); color: oklch(78% 0.02 312);
}
.footer__bottom .demo-credit { color: oklch(82% 0.04 307); }
.footer__bottom .demo-credit a { color: var(--lilac-300); }
