/* Mariposa Hair Stylists — “Metamorphosis”: bilateral symmetry around a central axis */
:root {
  --surface: #FBF6EE;
  --ink: #1C1B22;
  --brand: #E2711D;
  --apricot: #F4C095;
  --plum: #6B4E71;
  --cta: #0F5257;
  --soft: #F6EADB;
  --line: rgb(28 27 34 / .14);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "Rozha One", "Playfair Display", Georgia, serif;
  --sans: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 300 17px/1.65 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.02; }
strong, b { font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--surface); padding: 12px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 6px; }
.d-only { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 24px; border-radius: 999px; font: 500 16px/1.2 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .4s var(--ease), background-color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn--cta { background: var(--cta); color: #fff; }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--plum { background: var(--plum); color: #fff; }
.tag { display: inline-block; margin: 14px 0 0; padding: 6px 14px; border-radius: 999px; background: var(--soft); color: var(--plum); font-size: 14px; font-weight: 500; }

/* ---------- header (symmetric) ---------- */
.hdr { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; padding: 8px 12px; background: rgb(251 246 238 / .97); border-bottom: 1px solid transparent; transition: border-color .3s; }
html.is-scrolled .hdr { border-bottom-color: var(--line); }
.logo { grid-column: 2; justify-self: center; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; }
.logo span { font: 400 28px/1 var(--display); }
.menu-btn, .hdr-call { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; }
.menu-btn { grid-column: 1; grid-row: 1; }
.hdr-call { grid-column: 3; grid-row: 1; justify-self: end; }
.mb-i, .mb-i::before { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .35s var(--ease); }
.mb-i::before { content: ""; position: absolute; top: 6px; width: 18px; }
.mb-i { transform: translateY(-3px); }
html.menu-open .mb-i { transform: rotate(45deg); }
html.menu-open .mb-i::before { transform: translateY(-6px) rotate(-90deg); }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav--l { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 6px 16px 18px; display: none; text-align: center; }
html.menu-open .nav--l { display: block; }
.nav--l a { display: block; padding: 12px; font: 400 28px/1.2 var(--display); text-decoration: none; }
.nav--r { display: none; }
@media (min-width: 900px) {
  .hdr { grid-template-columns: 1fr auto 1fr; padding: 10px 32px; column-gap: 24px; }
  .menu-btn { display: none; }
  .nav--l { position: static; display: block; grid-column: 1; grid-row: 1; justify-self: end; background: none; border: 0; padding: 0; }
  .nav ul { display: flex; gap: 6px; }
  .nav a { font: 400 15px/1 var(--sans) !important; padding: 14px 14px !important; border-radius: 999px; text-decoration: none; display: block; }
  .nav a:hover { background: var(--soft); }
  .m-nav { display: none; }
  .nav--r { display: flex; align-items: center; gap: 6px; grid-column: 3; grid-row: 1; justify-self: start; }
  .hdr-call { position: absolute; right: 32px; top: 50%; translate: 0 -50%; width: auto; padding: 0 16px; border-radius: 999px; gap: 8px; display: inline-flex; align-items: center; }
  .d-only { display: inline; font-weight: 500; }
}

/* ---------- hero: wings opening from the centre ---------- */
.hero { padding: 16px 16px 64px; text-align: center; background: radial-gradient(70% 50% at 50% 30%, rgb(244 192 149 / .45), transparent 70%); }
.mirror-row { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 4px 0 16px; font: 500 13px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--plum); }
.mirror-row span:first-child { text-align: right; flex: 1; } .mirror-row span:last-child { text-align: left; flex: 1; }
.mr-dot { flex: none !important; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.wings { position: relative; max-width: 1200px; margin: 0 auto; aspect-ratio: 1 / 1; max-height: 56vh; width: 100%; perspective: 1600px; border-radius: 28px; }
.wing { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; backface-visibility: hidden; }
.wing img { width: 100%; height: 100%; object-fit: cover; object-position: 51% 50%; }
.wing--l { clip-path: inset(0 50% 0 0); transform-origin: 50% 50%; animation: openL 1.8s var(--ease) both, flapL 5s ease-in-out 2s infinite alternate; }
.wing--r { clip-path: inset(0 0 0 50%); transform-origin: 50% 50%; animation: openR 1.8s var(--ease) both, flapR 5s ease-in-out 2s infinite alternate; }
@keyframes openL { from { transform: rotateY(78deg); } }
@keyframes openR { from { transform: rotateY(-78deg); } }
@keyframes flapL { to { transform: rotateY(9deg); } }
@keyframes flapR { to { transform: rotateY(-9deg); } }
.hero h1 { margin-top: 18px; }
.h1-big { display: block; font-size: clamp(4rem, 21vw, 9rem); line-height: .9; letter-spacing: -.01em; }
.h1-sub { display: block; font: 400 15px/1 var(--sans); letter-spacing: .5em; text-transform: uppercase; color: var(--plum); margin-top: 10px; padding-left: .5em; }
.hero-lede { max-width: 34ch; margin: 18px auto 22px; font-size: 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (min-width: 701px) { .wings { aspect-ratio: 16 / 10; max-height: 54vh; } }
@media (min-width: 900px) { .hero { padding: 28px 32px 96px; } }

/* ---------- shared section heads (centred) ---------- */
section:not(.hero) { padding: 88px 16px; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.kicker { margin: 0 0 12px; font: 500 13px/1.3 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--plum); display: flex; align-items: center; justify-content: center; gap: 14px; }
.kicker::before, .kicker::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.sec-head h2 { font-size: clamp(2.4rem, 9vw, 4.8rem); }
.sec-head p:not(.kicker):not(.tag) { margin: 14px auto 0; max-width: 46ch; }
@media (min-width: 900px) { section:not(.hero) { padding: 128px 32px; } }

/* wing reveal: images open outward from their centre line */
html.js .wing-rev[data-reveal] img { clip-path: inset(0 50% 0 50%); transition: clip-path 1.3s var(--ease); }
html.js .wing-rev.is-in img { clip-path: inset(0 0 0 0); }
html.js .st-txt[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease) .2s, transform .9s var(--ease) .2s; }
html.js .st-txt.is-in { opacity: 1; transform: none; }

/* ---------- story: three mirrored stages on the axis ---------- */
.story { position: relative; }
.axis { position: absolute; left: 50%; top: 260px; bottom: 88px; width: 2px; margin-left: -1px; background: var(--line); }
.axis span { position: absolute; inset: 0; background: linear-gradient(var(--brand), var(--plum)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.stages { list-style: none; margin: 0 auto; padding: 0; max-width: 1120px; position: relative; display: grid; gap: 72px; }
.stage { display: grid; justify-items: center; text-align: center; gap: 18px; }
.node { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--apricot); font: 400 26px/1 var(--display); box-shadow: 0 0 0 8px var(--surface); }
.stage .node { order: -1; }
.st-img { width: min(86%, 380px); }
.st-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 200px 200px 24px 24px; }
.st-txt { background: var(--surface); padding: 6px 4px; max-width: 34ch; position: relative; z-index: 1; }
.st-k { margin: 0 0 8px; font: 500 13px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--plum); }
.st-txt h3 { font-size: clamp(1.9rem, 7vw, 2.8rem); margin-bottom: 10px; }
.st-txt p:last-child { margin: 0; }
@media (min-width: 900px) {
  .axis { top: 330px; }
  .stage { grid-template-columns: 1fr 120px 1fr; align-items: center; gap: 0; }
  .stage .node { order: 0; grid-column: 2; grid-row: 1; }
  .stage .st-img { grid-column: 1; grid-row: 1; justify-self: end; width: min(100%, 400px); }
  .stage .st-txt { grid-column: 3; grid-row: 1; justify-self: start; text-align: left; }
  .stage--flip .st-img { grid-column: 3; justify-self: start; }
  .stage--flip .st-txt { grid-column: 1; justify-self: end; text-align: right; }
  .stage--flip .st-img img { border-radius: 200px 200px 24px 24px; }
}

/* ---------- metamorphosis slider (dark band) ---------- */
.meta { background: var(--ink); color: var(--surface); }
.sec-head--dark .kicker { color: var(--apricot); }
.sec-head--dark h2 .amp { color: var(--brand); }
.sec-head--dark p { color: #e9e0d4; }
.ba { position: relative; max-width: 960px; margin: 0 auto; border-radius: 26px; overflow: hidden; --s: 50%; aspect-ratio: 4 / 3; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { position: absolute; inset: 0; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--s)) 0 0); }
.ba-before img { filter: saturate(.85); }
.ba-lab { position: absolute; top: 14px; padding: 8px 14px; border-radius: 999px; background: rgb(28 27 34 / .82); color: var(--surface); font: 500 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.ba-lab--b { left: 14px; } .ba-lab--a { right: 14px; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--s); width: 2px; margin-left: -1px; background: var(--surface); pointer-events: none; }
.ba-line svg { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; padding: 10px; translate: -50% -50%; background: var(--surface); border-radius: 50%; box-shadow: 0 8px 26px rgb(0 0 0 / .35); }
.ba-range { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; cursor: ew-resize; font-size: 16px; }
.ba-range::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.ba-range::-moz-range-track { background: transparent; }
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 58px; height: 100%; background: transparent; }
.ba-range::-moz-range-thumb { width: 58px; height: 100%; border: 0; background: transparent; }
.ba-range:focus-visible { outline: none; }
.ba:has(.ba-range:focus-visible) .ba-line svg { outline: 3px solid var(--apricot); outline-offset: 3px; }

/* ---------- menu: two mirrored wings ---------- */
.menu-wings { display: grid; gap: 40px; max-width: 1040px; margin: 0 auto; }
.mw h3 { font-size: 2rem; margin-bottom: 10px; text-align: center; }
.mw ul { list-style: none; margin: 0; padding: 0; }
.mw li { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mw b { font: 400 22px/1.2 var(--display); color: var(--plum); white-space: nowrap; }
.mw--r li { flex-direction: row-reverse; }
.mw-body { display: none; }
@media (min-width: 800px) {
  .menu-wings { grid-template-columns: 1fr 70px 1fr; gap: 0; align-items: start; }
  .mw--l h3 { text-align: right; } .mw--r h3 { text-align: left; }
  .mw--l li { justify-content: flex-end; text-align: right; }
  .mw--l li span { flex: 1; }
  .mw--r li { flex-direction: row; }
  .mw--r li span { flex: 1; text-align: left; }
  .mw--r li { flex-direction: row; }
  .mw--r li b { order: 0; }
  .mw-body { display: block; justify-self: center; width: 2px; height: 100%; min-height: 300px; background: linear-gradient(var(--brand), var(--plum)); border-radius: 2px; }
}

/* ---------- gallery: mirrored triptych ---------- */
.gal { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 1180px; margin: 0 auto; align-items: center; }
.g { margin: 0; }
.g img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; cursor: zoom-in; }
.g figcaption { margin-top: 8px; font: 400 20px/1.2 var(--display); text-align: center; }
.g--c { grid-column: 1 / -1; order: -1; }
.g--c img { border-radius: 200px 200px 24px 24px; max-height: 70vh; }
@media (min-width: 900px) {
  .gal { grid-template-columns: 1fr 1.3fr 1fr; gap: 28px; }
  .g--c { grid-column: auto; order: 0; }
  .g--l img { border-radius: 160px 20px 20px 160px; }
  .g--r img { border-radius: 20px 160px 160px 20px; }
}

/* ---------- booking stepper ---------- */
.book { background: linear-gradient(180deg, var(--surface), var(--soft)); }
.stepper { max-width: 680px; margin: 0 auto; background: #fff; border-radius: 28px; padding: 26px 18px; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgb(28 27 34 / .35); }
.steps-nav { list-style: none; margin: 0 0 24px; padding: 0; display: flex; justify-content: center; gap: 0; }
.steps-nav li { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; font-size: 14px; color: #55535e; position: relative; }
.steps-nav li::before { content: ""; position: absolute; top: 18px; left: calc(-50% + 22px); width: calc(100% - 44px); height: 2px; background: var(--line); }
.steps-nav li:first-child::before { display: none; }
.steps-nav span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-weight: 500; position: relative; z-index: 1; transition: background-color .3s, color .3s, border-color .3s; }
.steps-nav li.is-current, .steps-nav li.is-done { color: var(--ink); }
.steps-nav li.is-current span { background: var(--plum); border-color: var(--plum); color: #fff; }
.steps-nav li.is-done span { background: var(--apricot); border-color: var(--apricot); }
.steps-nav li.is-done::before, .steps-nav li.is-current::before { background: var(--plum); }
.step { border: 0; margin: 0 0 22px; padding: 0; }
.step legend { font: 400 clamp(1.6rem, 6vw, 2.1rem)/1.15 var(--display); text-align: center; margin: 0 auto 18px; padding: 0; }
html.js .stepper .step:not(.is-current) { display: none; }
html.js .stepper .step.is-current { animation: unfold .6s var(--ease); }
@keyframes unfold { from { opacity: 0; transform: scaleX(.92); } }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cards label, .chips label { position: relative; cursor: pointer; }
.cards input, .chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cards span { display: grid; gap: 2px; min-height: 84px; place-content: center; text-align: center; padding: 12px; border-radius: 18px; border: 1.5px solid var(--line); transition: border-color .3s, background-color .3s; }
.cards b { font-weight: 500; } .cards i { font-style: normal; font-size: 14px; color: #55535e; }
.cards input:checked + span, .chips input:checked + span { border-color: var(--plum); background: rgb(107 78 113 / .08); box-shadow: inset 0 0 0 1.5px var(--plum); }
.cards input:focus-visible + span, .chips input:focus-visible + span { outline: 3px solid var(--plum); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.chips span { display: inline-grid; place-items: center; min-width: 64px; min-height: 48px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 500; }
.f { display: grid; gap: 6px; margin-bottom: 14px; }
.f label { font-weight: 500; font-size: 15px; }
.stepper input:not([type=radio]), .stepper select, .stepper textarea { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid rgb(28 27 34 / .25); background: var(--surface); color: var(--ink); font: 300 17px/1.4 var(--sans); }
.stepper textarea { min-height: 90px; resize: vertical; }
.summary { margin: -6px 0 16px; text-align: center; color: var(--plum); font-weight: 500; }
.step-ctl { display: flex; justify-content: space-between; gap: 10px; }
html.js .stepper[data-at="0"] [data-back] { visibility: hidden; }
html.js .stepper:not([data-at="2"]) [data-submit] { display: none; }
html.js .stepper[data-at="2"] [data-next] { display: none; }
html:not(.js) [data-next], html:not(.js) [data-back] { display: none; }
.confirm { margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--soft); color: var(--ink); font-weight: 500; text-align: center; }
@media (min-width: 600px) { .stepper { padding: 36px; } .cards { grid-template-columns: repeat(4, 1fr); } }

/* ---------- reviews placeholder ---------- */
.reviews { text-align: center; padding-top: 40px !important; padding-bottom: 40px !important; }
.reviews p { margin: 0 auto 6px; font: 400 clamp(1.7rem, 6vw, 2.4rem)/1.1 var(--display); max-width: 20ch; }
.reviews small { color: #55535e; font-size: 14px; }

/* ---------- visit: mirrored cards ---------- */
.visit-wings { display: grid; gap: 22px; max-width: 1040px; margin: 0 auto; }
.vw { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 26px 22px; text-align: center; }
.vw h3 { font-size: 1.9rem; margin-bottom: 10px; }
.vw address { font-style: normal; font-size: 19px; margin-bottom: 18px; }
.vw-phone { margin: 14px 0 0; } .vw-phone a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 500; }
.vw .tag--sm { margin: 0 0 12px; }
.vw dl { margin: 0; }
.vw dl div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.vw dt { font-weight: 500; } .vw dd { margin: 0; }
.vw-body { justify-self: center; }
@media (min-width: 800px) {
  .visit-wings { grid-template-columns: 1fr 110px 1fr; align-items: center; gap: 0; }
  .vw--l { border-radius: 120px 26px 26px 120px; padding: 40px 40px 40px 70px; }
  .vw--r { border-radius: 26px 120px 120px 26px; padding: 40px 70px 40px 40px; }
}

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: var(--surface); text-align: center; padding: 48px 16px 34px; }
.ftr-logo { margin: 0; font: 400 clamp(3rem, 14vw, 6rem)/1 var(--display); color: var(--apricot); }
.ftr-line { margin: 10px 0 22px; color: #e9e0d4; }
.ftr a { color: #fff; }
.ftr .pv-note { max-width: 64ch; margin: 0 auto 16px; color: #e9e0d4; font-size: 13.5px; }
.photo-credits { max-width: 64ch; margin: 0 auto; font-size: 14px; color: #e9e0d4; }
.photo-credits summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: center; font-weight: 500; }
.photo-credits ul { list-style: none; padding: 0; columns: 2; }

/* ---------- mobile dock ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .dock { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); background: rgb(251 246 238 / .97); border-top: 1px solid var(--line); }
  .dock a { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; font-weight: 500; text-decoration: none; }
  .dock-call { border: 1.5px solid var(--ink); }
  .dock-cta { background: var(--cta); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wing--l, .wing--r { transform: none; }
  html.js .wing-rev[data-reveal] img { clip-path: none; }
  html.js .st-txt[data-reveal] { opacity: 1; transform: none; }
  .axis span { transform: scaleY(1); }
}
