/*
Theme Name: Med Spa
Version: 1.0.0
Text Domain: kit
*/

@font-face { font-family: "Prata"; src: url(fonts/display-prata.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --ivory: #fbf4ec;
  --ivory-2: #f4e9dc;
  --rose: #d9735a;
  --rose-d: #b85a43;
  --sage: #9bb59a;
  --sage-l: #dfe8dc;
  --apricot: #f3c7a1;
  --apricot-l: #fbe6d3;
  --clay: #c89b7b;
  --clay-l: #ead6c6;
  --gold: #e2b36a;
  --ink: #2e2420;
  --muted: #74635b;
  --gap: clamp(20px, 3vw, 44px);
  --wide: 1240px;
  --display: "Prata", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --fx-accent: #d9735a;
  --shadow: 0 30px 60px -30px rgba(46,36,32,.45), 0 12px 24px -16px rgba(46,36,32,.3);
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background-color: var(--ivory);
  background-image:
    repeating-linear-gradient(0deg, rgba(46,36,32,.028) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(46,36,32,.028) 0 1px, transparent 1px 3px); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0 0 .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(34px, 4.4vw, 60px); }
h3 { font-size: 24px; }
a { color: inherit; }
p { color: color-mix(in srgb, var(--ink) 78%, transparent); }
.small { font-size: 14px; color: var(--muted); }
.sample { display: inline-block; font: 700 11px/1 var(--sans); letter-spacing: .04em; color: var(--ink); background: var(--gold); padding: 4px 8px; border-radius: 6px; vertical-align: middle; }
.sample-block { margin: 0 var(--gap) 10px; }

.btn, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 28px; border-radius: 14px 14px 22px 14px; background: var(--rose); color: #fff; font: 600 16px var(--sans); text-decoration: none; border: 0; cursor: pointer; box-shadow: 0 16px 30px -16px rgba(184,90,67,.9); transition: transform .2s ease, background .2s ease; }
.btn:hover, .wp-block-button__link:hover { background: var(--rose-d); transform: translateY(-2px); }
.btn-big { min-height: 62px; font-size: 18px; padding: 14px 34px; }
.is-quiet .wp-block-button__link { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

/* Header */
.masthead { background: color-mix(in srgb, var(--ivory) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(46,36,32,.08); transition: transform .35s ease; }
.masthead-in { max-width: var(--wide); margin: 0 auto; padding: 12px var(--gap); min-height: 76px; }
.brand-name { font: 400 24px var(--display); letter-spacing: -.01em; }
.brand-tag { margin-left: 8px; }
.nav-list a { font-weight: 500; font-size: 15px; padding: 8px 10px; border-radius: 10px; }
.nav-list a:hover, .nav-list .current-menu-item > a, .nav-list .current-page-ancestor > a { background: var(--ivory-2); }
.nav-book { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px; border-radius: 12px 12px 18px 12px; background: var(--rose); color: #fff; font-weight: 600; text-decoration: none; }
.nav-toggle { background: var(--ink); color: var(--ivory); border: 0; border-radius: 12px; padding: 0 16px; font: 600 15px var(--sans); margin-left: 10px; }
@media (max-width: 1080px) { .masthead-in { flex-wrap: nowrap; gap: 10px; } .brand { flex-wrap: wrap; min-width: 0; gap: 4px 10px; } .brand-name { font-size: 20px; } .brand-tag { margin-left: 0; } .nav-toggle { flex: 0 0 auto; } .site-nav { background: var(--ivory); padding: 16px var(--gap) 22px; box-shadow: var(--shadow); } .nav-list { flex-direction: column; gap: 6px; } .nav-book { margin-top: 10px; } }

/* Hero */
.ms-hero { position: relative; min-height: calc(100svh - 76px); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; padding: clamp(16px, 3vw, 40px) var(--gap) 0; isolation: isolate; overflow: clip; color: var(--ivory); }
.hero-vid { position: absolute; inset: -10% 0 0; z-index: -2; }
.hero-vid video { width: 100%; height: 100%; object-fit: cover; }
.ms-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(46,36,32,.82) 0, rgba(46,36,32,.72) 520px, rgba(46,36,32,.3) 780px, rgba(46,36,32,0) 1000px), linear-gradient(180deg, rgba(46,36,32,.3) 0%, rgba(46,36,32,0) 45%, rgba(46,36,32,.5) 100%); }
.hero-top { max-width: 600px; }
.hero-top .brandline { margin-bottom: 8px; }
.brandline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; color: #fff; margin-bottom: 14px; text-shadow: 0 1px 3px rgba(46,36,32,.7); }
.brand-w { font: 400 22px var(--display); }
.town { padding-left: 10px; border-left: 1px solid rgba(251,244,236,.5); display: inline-flex; gap: 8px; align-items: center; }
.promise { font-size: clamp(38px, 5.4vw, 76px); overflow-wrap: anywhere; color: #fff; text-shadow: 0 2px 6px rgba(46,36,32,.55), 0 10px 40px rgba(46,36,32,.5); margin-bottom: .3em; }
.hero-note { color: #fff; max-width: 46ch; font-size: 18px; font-weight: 500; text-shadow: 0 1px 3px rgba(46,36,32,.7), 0 6px 24px rgba(46,36,32,.6); }
.hero-acts { display: flex; align-items: center; gap: 22px; margin: 6px 0 18px; }
.hero-all { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-shadow: 0 1px 3px rgba(46,36,32,.7); }

/* The hand */
.hand { position: relative; align-self: end; padding-bottom: 28px; min-width: 0; }
.hand.has-open .hand-hint { opacity: 0; visibility: hidden; }
.hand-hint { position: absolute; left: 50%; top: -34px; translate: -50% 0; transition: opacity .3s ease; font: 700 12px var(--sans); letter-spacing: .02em; color: var(--ink); background: var(--gold); padding: 5px 10px; border-radius: 8px; margin: 0; z-index: 50; }
.hand-track { position: relative; height: calc(clamp(250px, 21vw, 300px) + 44px); perspective: 1600px; }
.hand .card { position: absolute; left: 50%; bottom: 0; width: clamp(180px, 15.5vw, 216px); height: clamp(250px, 21vw, 300px); margin-left: calc(var(--w, 220px) / -2);
  --o: calc(var(--i) - 3); transform-origin: 50% 160%; transform: translateX(calc(var(--o) * 31%)) rotate(calc(var(--o) * 4deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .4s ease; z-index: calc(10 - (var(--o) * var(--o))); }
.hand .card:hover { transform: translateX(calc(var(--o) * 31%)) rotate(calc(var(--o) * 4deg)) translateY(-26px); z-index: 45; }
.hand .card.is-open { transform: translateX(0) rotate(0) translateY(-64px) scale(1.06); z-index: 40; }
.hand.has-open .card:not(.is-open) { filter: saturate(.8) brightness(.9); }
.js .hand .card { animation: deal .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 70ms + .2s); }
@keyframes deal { from { transform: translateX(0) rotate(0) translateY(140px); opacity: 0; } }

/* The card */
.card { position: relative; perspective: 1400px; }
.card-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.card.is-open .card-in { transform: rotateY(180deg); }
.card-f, .card-b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 18px 18px 28px 18px; padding: 18px 18px 16px; display: flex; flex-direction: column; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.7);
  background: linear-gradient(160deg, rgba(255,255,255,.55), rgba(255,255,255,0) 40%), var(--tint, var(--ivory-2)); color: var(--ink); }
.card-f::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 80% at 10% 0%, rgba(255,255,255,.5), transparent 55%); pointer-events: none; }
.card-b { transform: rotateY(180deg); background: linear-gradient(160deg, rgba(255,255,255,.4), rgba(255,255,255,0) 40%), var(--ivory); }
.tint-apricot { --tint: var(--apricot); --tint-l: var(--apricot-l); }
.tint-sage { --tint: var(--sage); --tint-l: var(--sage-l); }
.tint-clay { --tint: var(--clay); --tint-l: var(--clay-l); }
.tint-ivory2 { --tint: var(--ivory-2); --tint-l: #f8f0e6; }
.card-fam { font: 700 11px var(--sans); letter-spacing: .04em; color: var(--ink); opacity: .7; }
.card-t { font-size: 24px; margin: 6px 0 8px; }
.card-for { font-size: 14px; line-height: 1.45; margin: 0; }
.card-flip { margin-top: auto; font: 600 12px var(--sans); color: var(--rose-d); opacity: .9; }
.card-flip::before { content: "↻ "; }
.facts { margin: 4px 0 6px; display: grid; gap: 6px; font-size: 13px; }
.facts div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
.card-b .small { margin: 0 0 8px; font-size: 11px; }
.card-acts { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.card-acts .btn { min-height: 42px; padding: 8px 18px; font-size: 15px; }
.card-more { font-size: 13px; font-weight: 600; }
.card-hit { position: absolute; inset: 0; background: none; border: 0; cursor: pointer; border-radius: 18px; z-index: 2; }
.card.is-open .card-hit { inset: auto 0 0 0; height: 40%; }
.card.is-open .card-acts { position: relative; z-index: 3; }
.card.mode-flat, .card.mode-full { width: 100%; max-width: 300px; aspect-ratio: 3 / 4.1; }
.card.mode-full { max-width: 340px; }

/* Bands */
.bands { padding: clamp(40px, 6vw, 90px) 0 20px; overflow-x: clip; }
.band { padding: 0 var(--gap); margin: 0 0 26px; }
.band-in { max-width: var(--wide); margin: 0 auto; padding: clamp(26px, 3.6vw, 48px); border-radius: 30px 30px 42px 30px; background: linear-gradient(140deg, var(--tint-l), color-mix(in srgb, var(--tint-l) 60%, var(--ivory))); box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(220px, .9fr) 2fr; gap: clamp(20px, 3vw, 44px); align-items: start; position: relative; overflow: clip; }
.band-in::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(46,36,32,.06) 1px, transparent 1.3px); background-size: 9px 9px; pointer-events: none; mix-blend-mode: multiply; }
.band-k { font: 700 12px var(--sans); color: var(--muted); margin: 0 0 6px; }
.band-line { margin: 0 0 14px; }
.band-more { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.band-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; position: relative; z-index: 1; }
.js .band { opacity: 0; transition: opacity .7s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.js .band.from-left { transform: translateX(-70px) rotate(-1deg); }
.js .band.from-right { transform: translateX(70px) rotate(1deg); }
.js .band.in { opacity: 1; transform: none; }

/* Visit card */
.visit { padding: clamp(40px, 6vw, 100px) var(--gap); background: var(--ink); color: var(--ivory); }
.visit-card { max-width: 760px; margin: 0 auto; background: var(--ivory); color: var(--ink); border-radius: 22px 22px 36px 22px; padding: clamp(26px, 4vw, 52px); box-shadow: var(--shadow); position: relative; background-image: repeating-linear-gradient(0deg, transparent 0 39px, rgba(46,36,32,.1) 39px 40px); background-position: 0 14px; }
.visit-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; border-radius: 22px 22px 0 0; background: var(--rose); }
.visit-k { font: 700 12px var(--sans); color: var(--muted); margin: 6px 0 4px; }
.visit-lines { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.vl { display: grid; grid-template-columns: 36px 140px 1fr; gap: 12px; align-items: baseline; }
.vl-n { font: 400 26px var(--display); color: var(--rose); }
.vl-t { font-weight: 700; }
.vl-x { display: inline-block; }
.js .vl .vl-t, .js .vl .vl-x { clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.2,.8,.2,1); }
.js .vl.in .vl-t { clip-path: inset(0 0 0 0); }
.js .vl.in .vl-x { clip-path: inset(0 0 0 0); transition-delay: .35s; }
.visit-foot { margin: 26px 0 0; display: flex; gap: 10px; align-items: baseline; font-weight: 600; }
.vl-blank { flex: 1; border-bottom: 1px solid var(--ink); height: 1em; }
.vl-blank.short { flex: 0 0 120px; }
@media (max-width: 640px) { .vl { grid-template-columns: 30px 1fr; } .vl-x { grid-column: 2; } }

/* People */
.sec { padding: clamp(40px, 6vw, 100px) var(--gap); }
.sec-in { max-width: var(--wide); margin: 0 auto; }
.sec-k { font: 700 12px var(--sans); color: var(--muted); margin: 0 0 6px; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-like { background: linear-gradient(160deg, rgba(255,255,255,.6), rgba(255,255,255,0) 40%), var(--ivory-2); border-radius: 18px 18px 28px 18px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.7); padding: 20px; }
.person-ph { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 14px; background: linear-gradient(160deg, var(--sage-l), var(--ivory)); margin-bottom: 14px; overflow: hidden; }
.person-r { font-weight: 600; color: var(--muted); margin: 0 0 6px; }
@media (max-width: 860px) { .people { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.q { background: var(--ivory-2); border-radius: 16px 16px 24px 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.q summary { font: 400 21px var(--display); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.q-ic { width: 28px; height: 28px; border-radius: 50%; background: var(--rose); position: relative; flex: 0 0 auto; transition: transform .3s ease; }
.q-ic::before, .q-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: #fff; translate: -50% -50%; }
.q-ic::after { rotate: 90deg; }
.q[open] .q-ic { transform: rotate(45deg); }
.q p { margin: 12px 0 0; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }

/* Contact */
.contact-band { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; }
.cb-addr { font-size: 20px; }
.cb-phone { font-weight: 600; color: var(--muted); }
.hours-card { margin-top: 22px; max-width: 360px; }
.hc-k { font: 700 12px var(--sans); color: var(--muted); margin: 0 0 8px; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed rgba(46,36,32,.18); }
.hours li:last-child { border: 0; }
.cb-map { min-height: 380px; border-radius: 22px 22px 36px 22px; overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(140deg, var(--sage-l), var(--apricot-l)); display: grid; place-items: center; position: relative; }
.map-wait { text-align: center; padding: 30px; max-width: 320px; }
.pin { display: block; width: 26px; height: 26px; margin: 0 auto 14px; background: var(--rose); border-radius: 50% 50% 50% 0; rotate: -45deg; box-shadow: 0 10px 20px -10px rgba(46,36,32,.6); }
@media (max-width: 860px) { .contact-band { grid-template-columns: 1fr; } }

/* Treatment page */
.tp { padding: clamp(30px, 5vw, 70px) var(--gap); max-width: var(--wide); margin: 0 auto; }
.tp-head { display: grid; grid-template-columns: 1.3fr 340px; gap: clamp(26px, 4vw, 60px); align-items: center; }
.tp-head h1 { font-size: clamp(40px, 5.6vw, 76px); }
.tp-head .card { justify-self: end; }
@media (max-width: 860px) { .tp-head { grid-template-columns: 1fr; } .tp-head .card { justify-self: start; } }
.crumb { font-weight: 600; text-decoration: none; color: var(--muted); }
.tp-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(26px, 4vw, 60px); margin-top: 50px; padding-top: 40px; border-top: 1px solid rgba(46,36,32,.12); }
.tp-col h2 { font-size: 30px; margin-top: 1em; }
.tp-col h2:first-child { margin-top: 0; }
.pair-cards { display: grid; gap: 18px; }
@media (max-width: 860px) { .tp-body { grid-template-columns: 1fr; } }

/* Booking page */
.bookpage { padding: clamp(30px, 5vw, 70px) var(--gap); max-width: 900px; margin: 0 auto; display: grid; gap: 22px; }
.bookpage h1 { font-size: clamp(36px, 5vw, 64px); }
.bp-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.pick { text-decoration: none; padding: 10px 16px; border-radius: 12px 12px 18px 12px; background: var(--ivory-2); font-weight: 600; box-shadow: var(--shadow); }
.bp-wait { max-width: 560px; }
.bp-k { font: 400 26px var(--display); margin: 0 0 8px; }
.bp-embed { min-height: 400px; }

/* Page heads and generic */
.page-head { padding: clamp(40px, 6vw, 90px) var(--gap) 10px; max-width: var(--wide); margin: 0 auto; }
.page-head h1 { font-size: clamp(40px, 6vw, 80px); }
.lead { font-size: 20px; max-width: 58ch; }
.story { max-width: 70ch; }
.promise-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.promise-list li { padding: 16px 18px; background: var(--ivory-2); border-radius: 14px 14px 22px 14px; box-shadow: var(--shadow); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* Footer */
.foot { background: var(--ink); color: var(--ivory); padding: clamp(36px, 5vw, 70px) var(--gap) 20px; margin-top: 60px; }
.foot-in { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; }
.foot p, .foot a { color: var(--ivory); }
.foot-title { font: 400 26px var(--display); margin: 0 0 6px; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-list a { text-decoration: none; opacity: .85; }
.foot-base { max-width: var(--wide); margin: 30px auto 0; opacity: .6; font-size: 14px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }

/* Phones */
@media (max-width: 760px) {
  .ms-hero { padding-top: 14px; }
  .ms-hero::before { background: linear-gradient(180deg, rgba(46,36,32,.78) 0%, rgba(46,36,32,.72) 52%, rgba(46,36,32,.35) 70%, rgba(46,36,32,.45) 100%); }
  .hero-acts { margin-bottom: 10px; }
  .hand { padding-bottom: 20px; }
  .hand-track { height: auto; min-width: 0; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px 4px 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .hand-track::-webkit-scrollbar { display: none; }
  .hand .card, .js .hand .card { position: relative; left: auto; bottom: auto; margin: 0; flex: 0 0 76%; height: 300px; transform: none; animation: none; scroll-snap-align: center; z-index: auto; }
  .hand .card:hover { transform: none; }
  .hand .card.is-open { transform: translateY(-6px); }
  .hand .card:first-child { transform: translateY(-6px); }
  .band-in { grid-template-columns: 1fr; }
  .band-cards { grid-template-columns: 1fr 1fr; }
  .card.mode-flat { max-width: none; aspect-ratio: auto; height: 250px; }
  .card.mode-flat .card-t { font-size: 20px; }
  .facts div { grid-template-columns: 70px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hand .card { animation: none; }
  .card-in, .hand .card, .js .band, .js .vl .vl-t, .js .vl .vl-x, .q-ic, .btn { transition: none; }
  .js .band { opacity: 1; transform: none; }
  .js .vl .vl-t, .js .vl .vl-x { clip-path: none; }
}
