/* ============================================================================
 *  layout.css — sections, header/nav, hero, bands, menu, visit, footer.
 *  Classic barber: light ivory body, dark charcoal trust ribbon + CTA + 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; border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.site-header.is-scrolled { background: color-mix(in oklab, var(--ivory) 90%, transparent);
  backdrop-filter: saturate(1.2) 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(--char);
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; letter-spacing: 0.01em; line-height: 0.9; }
.brand:hover { color: var(--char); }
.brand__mark { width: 2.15em; height: 2.15em; flex: none; color: var(--navy); }
.brand small { display: block; font-family: var(--font); font-size: 0.4em; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--navy); 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(--char); 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: 2px;
  background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.nav__links a:hover { color: var(--navy); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { margin-left: clamp(0.25rem, 1vw, 0.75rem); }
.nav__toggle { display: none; }

@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(--char); 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(--ivory); 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(24% 0.014 264 / 0.45);
    opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur); pointer-events: none; }
  .nav__scrim.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
}

/* ====================== HERO (type-forward) ============================= */
.hero { position: relative; background: linear-gradient(176deg, var(--navy-50), var(--ivory) 58%); overflow: clip; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 7px; background: var(--pole); }
.hero__inner { padding-block: clamp(3rem, 6.5vw, 6rem) clamp(2.5rem, 5vw, 4.5rem); }
.hero__eyebrow { margin-bottom: var(--space-m); }
.hero h1 { max-width: 18ch; margin-bottom: var(--space-l); text-transform: uppercase; }
.hero h1 .hl { color: var(--navy); display: inline-block; }
.hero h1 .hl::after { content: ""; display: block; height: 9px; margin-top: 0.05em;
  background: var(--pole); border-radius: 3px; }
.hero__row { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.hero__lede { max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; justify-self: start; }
.hero__facts { margin-top: var(--space-xl); padding-top: var(--space-m); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.5em 1.6rem; font-size: var(--step--1); color: var(--muted); }
.hero__facts b { color: var(--char); font-weight: 700; }
.hero__facts .stars { font-size: var(--step-0); vertical-align: -0.15em; }
.hero__facts li { display: inline-flex; align-items: center; gap: 0.4em; }
@media (max-width: 760px) { .hero__row { grid-template-columns: 1fr; align-items: start; } }

/* ====================== TRUST RIBBON (dark) ============================= */
.trust { background: var(--char); color: var(--cream); }
.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(--brass); 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); }

/* ====================== THE SHOP (split) ================================ */
.inside { background: var(--navy-50); }
.inside__grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.inside__body .lede { margin-bottom: var(--space-m); }
.inside__body p + p { margin-top: var(--space-s); }
@media (max-width: 820px) { .inside__grid { grid-template-columns: 1fr; } .inside__media { order: -1; } }

/* Type-forward emblem card (replaces a photo) */
.shop__card { background: var(--char-deep); color: var(--cream); border-radius: var(--r-xl);
  box-shadow: var(--shadow-2); overflow: hidden; }
.shop__card-pole { height: 9px; background: var(--pole); }
.shop__card-body { padding: clamp(1.75rem, 4vw, 2.75rem); display: grid; gap: var(--space-s); text-align: center; }
.shop__rating { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 9vw, 6.5rem);
  line-height: 0.85; color: #fff; letter-spacing: 0.01em; }
.shop__stars { justify-content: center; color: var(--brass); font-size: var(--step-3); }
.shop__rating-sub { color: var(--cream-dim); font-size: var(--step-0); letter-spacing: 0.04em; }
.shop__divider { height: 1px; background: oklch(100% 0 0 / 0.14); margin-block: var(--space-2xs); }
.shop__tag { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em;
  font-size: var(--step-2); color: #fff; line-height: 1.02; }
.shop__tag span { color: var(--brass-soft); }

/* ====================== SERVICES MENU =================================== */
.menu { background: var(--surface-sink); }
.menu__cols { columns: 2 290px; column-gap: clamp(2rem, 5vw, 4.5rem); }
.menu__note { margin-top: var(--space-l); color: var(--muted); font-size: var(--step--1); }

/* ====================== REVIEWS ========================================= */
.reviews { background: var(--navy-50); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-m); align-items: start; }
@media (max-width: 880px) { .reviews__grid { grid-template-columns: 1fr; max-width: 40rem; margin-inline: auto; } }

/* ====================== CTA BAND ======================================== */
.cta-band { background: var(--char-deep); color: var(--cream); position: relative; overflow: clip; }
.cta-band::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 7px; background: var(--pole); }
.cta-band__inner { padding-block: var(--space-3xl); text-align: center; max-width: 60ch; margin-inline: auto; }
.cta-band h2 { color: #fff; text-transform: uppercase; }
.cta-band p { color: var(--cream-dim); 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 + facts + form) ==================== */
.visit__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .visit__grid { grid-template-columns: 1fr; } }
.visit__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-1); overflow: hidden; }
.visit__card-pole { height: 9px; background: var(--pole); }
.visit__card-body { padding: clamp(1.5rem, 3vw, 2.25rem); }
.visit__card-body h3 { margin-bottom: var(--space-m); text-transform: uppercase; letter-spacing: 0.02em; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 0.58em 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(--navy); font-weight: 700; }
.hours tr.is-today th::after { content: " · Today"; font-weight: 600; font-size: 0.82em; }
.hours td.closed { color: var(--muted); }
.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(--navy); margin-top: 0.15em; }
.fact a { color: var(--char); text-decoration: none; }
.fact a:hover { color: var(--navy); }
.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; } }

/* ====================== FOOTER ========================================== */
.site-footer { background: var(--char-deep); color: var(--cream-dim); }
.site-footer a { color: var(--cream-dim); 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-3); font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.01em; }
.footer__brand .brand__mark { width: 1.5em; height: 1.5em; color: var(--brass-soft); }
.footer__col h4 { color: #fff; font-size: var(--step-0); font-family: var(--font); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-s); }
.footer__col p, .footer__col li { color: var(--cream-dim); 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(74% 0.012 84); }
.footer__bottom .demo-credit { color: var(--brass-soft); }
.footer__bottom .demo-credit a { color: var(--brass); }
