/* 10 Hero: sticky header (nav, treatments dropdown, call, book, mobile menu),
   a full-screen looping salon video with the words centred on it, and a scrolling band of what the salon does.
   The header runs the full width: the monogram alone on the left, the nav centred, call and Book on the right.
   At the top of the page the header is see-through over the video; once the page scrolls it turns ivory. */

/* The hidden attribute always wins over the display values below */
.hero-menu[hidden] { display: none; }

/* ---------- Skip link ---------- */
.hero-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-pill); background: var(--cocoa); color: var(--ivory); font: 600 14px/1 var(--f-body); transition: top .2s var(--ease); }
.hero-skip:focus-visible { top: 10px; }

/* ---------- Header ---------- */
.hero-header { position: sticky; top: 0; z-index: 60; background: var(--ivory); border-bottom: 1px solid var(--line); transition: box-shadow .35s var(--ease), background-color .35s var(--ease); }
.hero-header.is-stuck { background: color-mix(in srgb, var(--ivory) 94%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 14px 30px -26px #3A322E80; }
.hero-header-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; height: var(--header-h); padding-inline: var(--pad); }
.hero-header-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.hero-header svg, .hero-menu svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Nav */
.hero-nav-list { display: flex; align-items: center; gap: clamp(24px, 2.4vw, 40px); }
.hero-nav-link { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 8px 0; font: 600 16px/1 var(--f-body); color: var(--ink); white-space: nowrap; }
.hero-nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; border-radius: 2px; background: var(--cocoa); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.hero-nav-link:hover::after, .hero-nav-link[aria-current="true"]::after, .hero-dd.is-open .hero-dd-btn::after { transform: scaleX(1); }
.hero-dd-btn::after { right: 20px; }
.hero-dd-btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.hero-dd.is-open .hero-dd-btn svg { transform: rotate(180deg); }

/* Treatments dropdown: a plain list, one treatment per line */
.hero-dd { position: relative; }
.hero-dd-panel { position: absolute; left: -18px; top: calc(100% + 22px); width: 260px; padding: 8px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 20px 40px -28px #3A322E66; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s linear .25s; }
.hero-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; } /* hover bridge */
.hero-dd.is-open .hero-dd-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.hero-dd-list { display: grid; }
.hero-dd-list a { display: block; padding: 10px 12px; border-radius: 10px; font: 500 15px/1.3 var(--f-body); color: var(--ink); transition: background-color .2s var(--ease), color .2s var(--ease); }
.hero-dd-list a:hover, .hero-dd-list a:focus-visible { background: var(--sand); color: var(--cocoa); }
.hero-dd-all-item { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.hero-dd-list .hero-dd-all { display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: var(--cocoa); }
.hero-dd-all svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.hero-dd-all:hover svg { transform: translateX(3px); }

/* Menu button (tablet and phone) */
.hero-menu-btn { display: none; align-items: center; gap: 8px; height: 40px; padding: 0 0 0 6px; font: 600 15px/1 var(--f-body); color: var(--ink); }
.hero-menu-btn svg { width: 24px; height: 24px; }

/* Logo: the monogram on its own, no wordmark beside it */
.hero-logo { display: inline-flex; align-items: center; justify-self: start; color: var(--cocoa); }
.hero-logo img { width: auto; height: 50px; }
.hero-logo-light { display: none; }

/* Call pill (shows the number) and Book */
.hero-call { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 40px; padding: 0 18px 0 15px; border-radius: var(--r-pill); border: 1px solid color-mix(in srgb, var(--cocoa) 38%, transparent); color: var(--cocoa); font: 600 14px/1 var(--f-body); white-space: nowrap; letter-spacing: 0; font-variant-numeric: proportional-nums; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.hero-call:hover { background: var(--cocoa); border-color: var(--cocoa); color: var(--ivory); }
.hero-call svg { width: 17px; height: 17px; flex: none; }
/* Round icon button, used for closing the menu */
.hero-icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); color: var(--cocoa); transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.hero-icon-btn:hover { background: var(--cocoa); border-color: var(--cocoa); color: var(--ivory); }
.hero-icon-btn svg { width: 18px; height: 18px; }
.hero-book { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 22px; border-radius: var(--r-pill); background: var(--cocoa); color: var(--ivory); font: 600 14px/1 var(--f-body); white-space: nowrap; transition: background-color .25s var(--ease); }
.hero-book:hover { background: var(--cocoa-deep); }

/* ---------- Mobile mega menu ----------
   The panel unrolls from the top (clip-path), then its three blocks rise in
   one after another. Closing runs the same way back, a little quicker. */
.hero-menu { --menu-ease: cubic-bezier(.32, .72, 0, 1); position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: var(--ivory); overflow-y: auto; overscroll-behavior: contain; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .4s var(--menu-ease), visibility 0s linear .4s; }
.hero-menu.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .6s var(--menu-ease), visibility 0s; }
.hero-menu-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex: none; height: var(--header-h); padding-inline: var(--pad); background: var(--ivory); border-bottom: 1px solid var(--line); }
.hero-menu-body { display: flex; flex-direction: column; flex: 1; padding: 30px var(--pad) 32px; }
.hero-menu-block { opacity: 0; transform: translateY(14px); transition: opacity .2s var(--ease), transform .3s var(--menu-ease); }
.hero-menu.is-open .hero-menu-block { opacity: 1; transform: none; transition: opacity .45s var(--ease) calc(.16s + var(--i) * .07s), transform .7s var(--menu-ease) calc(.16s + var(--i) * .07s); }
.hero-menu-list { margin-top: 2px; }
.hero-menu-list > li { border-bottom: 1px solid var(--line); }
.hero-menu-list > li > a, .hero-menu-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 0; font: 400 calc(32px * var(--display-scale))/1 var(--f-display); letter-spacing: var(--display-track); color: var(--cocoa); text-align: left; }
.hero-menu-toggle svg { width: 22px; height: 22px; transition: transform .4s var(--menu-ease); }
.hero-menu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
/* The treatments list: the height opens first (0fr to 1fr, so no jump),
   then the links fade down into place one after another. Closing fades
   them out together while the height folds away. */
.hero-menu-sub-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--menu-ease); }
.hero-menu-toggle[aria-expanded="true"] + .hero-menu-sub-wrap { grid-template-rows: 1fr; transition-duration: .55s; }
.hero-menu-sub { display: grid; min-height: 0; overflow: hidden; }
.hero-menu-sub li { opacity: 0; transform: translateY(-6px); transition: opacity .15s var(--ease), transform .2s var(--ease); }
.hero-menu-sub li:last-child { padding-bottom: 18px; }
.hero-menu-toggle[aria-expanded="true"] + .hero-menu-sub-wrap li { opacity: 1; transform: none; transition: opacity .35s var(--ease) calc(.08s + var(--n) * .03s), transform .45s var(--menu-ease) calc(.08s + var(--n) * .03s); }
.hero-menu-sub li:nth-child(1) { --n: 0; }
.hero-menu-sub li:nth-child(2) { --n: 1; }
.hero-menu-sub li:nth-child(3) { --n: 2; }
.hero-menu-sub li:nth-child(4) { --n: 3; }
.hero-menu-sub li:nth-child(5) { --n: 4; }
.hero-menu-sub li:nth-child(6) { --n: 5; }
.hero-menu-sub li:nth-child(7) { --n: 6; }
.hero-menu-sub li:nth-child(8) { --n: 7; }
.hero-menu-sub li:nth-child(9) { --n: 8; }
.hero-menu-sub a { display: block; padding: 9px 0; font: 500 16px/1.3 var(--f-body); color: var(--ink); }
.hero-menu-sub .hero-menu-sub-all { font-weight: 600; color: var(--camel-ink); }

.hero-menu-foot { margin-top: auto; padding-top: 32px; }
.hero-menu-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hero-menu-actions .btn { padding-inline: 12px; }
@media (min-width: 601px) {
  .hero-menu-actions { display: flex; }
}
@media (max-width: 400px) {
  .hero-menu-actions { grid-template-columns: 1fr; }
}

/* ---------- See-through header over the video ----------
   Only while the header is not stuck and the menu is closed. */
.hero-header--over:not(.is-stuck) { background: transparent; border-bottom-color: var(--line-dark); }
.hero-header--over:not(.is-stuck) .hero-nav-link,
.hero-header--over:not(.is-stuck) .hero-menu-btn { color: var(--ivory); }
.hero-header--over:not(.is-stuck) .hero-nav-link::after { background: var(--ivory); }
.hero-header--over:not(.is-stuck) .hero-call { color: var(--ivory); border-color: color-mix(in srgb, var(--ivory) 55%, transparent); }
.hero-header--over:not(.is-stuck) .hero-call:hover { background: var(--ivory); border-color: var(--ivory); color: var(--cocoa); }
.hero-header--over:not(.is-stuck) .hero-book { background: var(--ivory); color: var(--cocoa); }
.hero-header--over:not(.is-stuck) .hero-book:hover { background: var(--camel); }
.hero-header--over:not(.is-stuck) .hero-logo:not(.hero-logo--menu) .hero-logo-dark { display: none; }
.hero-header--over:not(.is-stuck) .hero-logo:not(.hero-logo--menu) .hero-logo-light { display: block; }
.hero-header--over:not(.is-stuck) :focus-visible { outline-color: var(--camel); }

/* ---------- Hero: the video fills the screen, starting under the header ---------- */
.hero, .hero-marquee { --marquee-h: 66px; }
/* The hero starts under the header (its 1px border included) and stops above the marquee,
   so the band is in view without scrolling */
.hero { position: relative; display: grid; place-items: center; margin-top: calc(-1 * var(--header-h) - 1px); height: calc(100svh - var(--marquee-h)); min-height: 520px; max-height: 1100px; overflow: hidden; background: var(--night); color: var(--ivory); text-align: center; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
/* A flat tint so the words read; no gradient, no glow */
.hero::after { content: ""; position: absolute; inset: 0; background: #2E2724; opacity: .46; }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding-top: var(--header-h); }
.hero-eyebrow { margin-bottom: 24px; color: var(--camel); }
.hero-title { max-width: 13ch; font-size: calc(clamp(50px, 6.8vw, 108px) * var(--display-scale)); color: var(--ivory); text-wrap: balance; }
/* The hero heading is a step bolder: a heavier weight where the font has one,
   otherwise a hairline stroke in the text colour. */
.hero-title { font-weight: var(--hero-weight); -webkit-text-stroke: var(--hero-stroke) currentColor; }
.hero-title:focus { outline: none; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.hero-btn { height: 50px; }
.hero-btn-ghost { background: transparent; border-color: color-mix(in srgb, var(--ivory) 70%, transparent); color: var(--ivory); }
.hero-btn-ghost:hover { background: var(--ivory); border-color: var(--ivory); color: var(--cocoa); }

/* ---------- Marquee band ---------- */
.hero-marquee { display: flex; align-items: center; height: var(--marquee-h); overflow: hidden; background: var(--night); color: var(--ivory); }
.hero-marquee-track { display: flex; width: max-content; animation: hero-marquee 48s linear infinite; }
.hero-marquee-list { display: flex; align-items: center; flex: none; }
.hero-marquee-list li { display: flex; align-items: center; white-space: nowrap; font: 400 calc(clamp(20px, 1.9vw, 27px) * var(--display-scale))/1 var(--f-display); letter-spacing: -0.02em; }
.hero-marquee-list li::after { content: ""; flex: none; width: 18px; height: 18px; margin-inline: clamp(28px, 3vw, 44px); background: var(--camel); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.7 6.6 4.4 10.6 12 12-7.6 1.4-11.3 5.4-12 12-.7-6.6-4.4-10.6-12-12C7.6 10.6 11.3 6.6 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.7 6.6 4.4 10.6 12 12-7.6 1.4-11.3 5.4-12 12-.7-6.6-4.4-10.6-12-12C7.6 10.6 11.3 6.6 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat; }
@keyframes hero-marquee { to { transform: translateX(-50%); } }

/* ---------- Breakpoints ---------- */
@media (max-width: 1180px) {
  .hero-nav { display: none; }
  .hero-menu-btn { display: inline-flex; }
  .hero-header-row { grid-template-columns: auto minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .hero { max-height: 900px; }
  .hero-call { gap: 8px; padding: 0 16px 0 13px; }
}

/* On small screens the call pill becomes a round phone button */
@media (max-width: 760px) {
  .hero-call { width: 40px; padding: 0; }
  .hero-call-num { display: none; }
}

@media (max-width: 600px) {
  .hero-header, .hero-menu, .hero { --header-h: 68px; }
  .hero-video { object-position: 40% 50%; }
  .hero-title { font-size: calc(clamp(42px, 12vw, 64px) * var(--display-scale)); }
  .hero-header-row { gap: 8px; }
  .hero-header-right { gap: 6px; }
  .hero-menu-btn span { display: none; }
  .hero-logo img { height: 40px; }
  .hero-book { padding: 0 18px; }
  .hero-actions { gap: 10px; }
  .hero, .hero-marquee { --marquee-h: 58px; }
  .hero-marquee-list li::after { width: 14px; height: 14px; }
}

@media (max-width: 400px) {
  .hero-header-right { gap: 5px; }
  .hero-logo img { height: 36px; }
  .hero-book { padding: 0 14px; }
}

@media (max-width: 374px) {
  .hero-header-right { gap: 4px; }
  .hero-book { padding: 0 13px; }
}

@media (max-width: 359px) {
  .hero-actions .hero-btn { flex: 1 1 100%; }
  .hero-book { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-marquee-track { animation: none; }
  .hero-menu, .hero-menu.is-open, .hero-menu-block, .hero-menu.is-open .hero-menu-block, .hero-menu-sub-wrap, .hero-menu-sub li, .hero-menu-toggle + .hero-menu-sub-wrap li, .hero-menu-toggle svg { transition: none; }
}
