/* ===========================================================
   Serenity Essence Massage Therapy — shared stylesheet
   One file, all pages. Mobile-first. Tokens drive the brand.
   =========================================================== */

:root {
  --pine: #2E4039;
  --pine-deep: #233029;
  --sage: #8AA08F;
  --sage-soft: #B9C7BC;
  --honey: #C98F4E;
  --honey-soft: #E2B988;
  --linen: #F3EEE5;
  --surface: #FBF8F2;
  --ink: #232826;
  --muted: #5C665E;
  --line: #E2DACD;
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: var(--linen);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }

img, iframe, svg { max-width: 100%; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--honey);
  display: block;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

a { color: inherit; text-decoration: none; }

p a { color: var(--pine); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--sage); }
p a:hover { color: var(--honey); }

:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--pine); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--honey); color: #fff;
  padding: 14px 30px; border-radius: 100px;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  min-height: 48px; justify-content: center;
  transition: transform .2s ease, background .2s ease;
  border: none; cursor: pointer;
}
.btn:hover { background: #b87f42; transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--pine); border: 1.5px solid var(--sage); }
.btn.ghost:hover { background: rgba(138,160,143,.14); }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,238,229,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; max-width: var(--maxw); margin: 0 auto; gap: 16px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 46px; width: auto; display: block; }
.brand .mark { width: 26px; height: 26px; }
@media (max-width: 540px) { .brand-logo { height: 38px; } }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 0.92rem; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--pine); }
.nav-links a[aria-current="page"] { color: var(--pine); font-weight: 600; position: relative; }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--honey); border-radius: 2px; }
.nav-links a.btn-call { color: #fff; }
.nav-links a.btn-call[aria-current="page"]::after { display: none; }
.btn-call { background: var(--pine); color: #fff; padding: 11px 20px; border-radius: 100px; font-weight: 600; min-height: 48px; display: inline-flex; align-items: center; gap: 8px; transition: background .2s ease; }
.btn-call:hover { background: var(--pine-deep); }
.btn-call svg { width: 16px; height: 16px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 12px; min-width: 48px; min-height: 48px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--pine); margin: 5px 0; transition: .3s; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 100px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); color: var(--pine-deep); margin: 18px 0 22px; }
.hero h1 em { font-style: italic; color: var(--honey); font-weight: 400; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 480px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 26px; font-size: 0.92rem; color: var(--muted); }
.hero-meta a { color: var(--pine); font-weight: 600; }

/* breathing signature */
.breath-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 360px; }
.breath-glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,143,78,.28) 0%, rgba(138,160,143,.12) 45%, transparent 70%);
  animation: breathe 11s ease-in-out infinite;
}
.breath-ring { position: absolute; border-radius: 50%; border: 1.5px solid var(--sage); animation: breathe 11s ease-in-out infinite; }
.breath-ring.r1 { width: 150px; height: 150px; opacity: .9; }
.breath-ring.r2 { width: 230px; height: 230px; opacity: .5; animation-delay: -.4s; }
.breath-ring.r3 { width: 310px; height: 310px; opacity: .28; animation-delay: -.8s; }
.breath-core {
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--honey-soft), var(--honey));
  box-shadow: 0 18px 50px -12px rgba(201,143,78,.5);
  animation: breathe 11s ease-in-out infinite;
}
.breath-label { position: absolute; bottom: 8px; font-size: 0.72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); font-weight: 600; }
@keyframes breathe { 0%, 100% { transform: scale(.82); } 45%, 55% { transform: scale(1.06); } }

/* compact page hero (inner pages) */
.page-hero { padding: 64px 0 52px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; top: -120px; right: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,143,78,.16), transparent 70%); pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); color: var(--pine-deep); margin: 14px 0 18px; max-width: 14ch; }
.page-hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.page-hero .hero-cta { margin-top: 28px; }

/* ---------- BREADCRUMB ---------- */
.breadcrumb { font-size: 0.82rem; color: var(--muted); padding-top: 22px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--honey); }
.breadcrumb li[aria-current] { color: var(--pine); font-weight: 600; }
.breadcrumb .sep { color: var(--sage); }

/* ---------- SECTION SHELL ---------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); color: var(--pine-deep); margin: 12px 0 16px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.bg-surface { background: var(--surface); }
.bg-pine { background: var(--pine); color: var(--linen); }

/* answer-first lead sentence (AEO) */
.answer { font-size: 1.08rem; color: var(--pine-deep); font-weight: 500; margin-bottom: 14px; }

/* prose blocks */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--pine-deep); margin: 40px 0 14px; }
.prose h3 { font-size: 1.25rem; color: var(--pine-deep); margin: 26px 0 10px; }
.prose p { color: var(--muted); margin-bottom: 16px; }
.prose ul { color: var(--muted); margin: 0 0 16px 1.1rem; }
.prose li { margin-bottom: 8px; }
.prose .placeholder { background: rgba(201,143,78,.12); border-left: 3px solid var(--honey); padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 0.95rem; color: var(--pine); }

/* ---------- SERVICE CARDS (bento) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; transition: transform .25s ease, box-shadow .25s ease; }
.bg-surface .card { background: #fff; }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -24px rgba(46,64,57,.35); }
.card .num { font-family: "Fraunces", serif; font-style: italic; color: var(--honey); font-size: 1.1rem; }
.card h3 { font-size: 1.3rem; color: var(--pine-deep); margin: 8px 0 12px; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card .dur { display: inline-block; margin-top: 16px; font-size: 0.8rem; font-weight: 600; color: var(--sage); letter-spacing: .04em; }
.card a.card-link { display: inline-block; margin-top: 14px; font-size: 0.88rem; font-weight: 600; color: var(--honey); }
.card a.card-link:hover { color: var(--pine); }

/* service detail blocks (services page) */
.service-detail { display: grid; grid-template-columns: 80px 1fr; gap: 26px; padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service-detail:first-of-type { border-top: none; }
.service-detail .sd-num { font-family: "Fraunces", serif; font-style: italic; font-size: 2.2rem; color: var(--honey-soft); line-height: 1; }
.service-detail h2 { font-size: 1.6rem; color: var(--pine-deep); margin-bottom: 6px; }
.service-detail .sd-for { font-size: 0.78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); font-weight: 600; margin-bottom: 12px; }
.service-detail p { color: var(--muted); margin-bottom: 14px; }
.service-detail .sd-cta { font-weight: 600; color: var(--honey); font-size: 0.92rem; }

/* ---------- ABOUT VISUAL ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-visual {
  aspect-ratio: 4/5; border-radius: 22px;
  background: radial-gradient(circle at 70% 20%, rgba(201,143,78,.25), transparent 55%), linear-gradient(150deg, var(--pine) 0%, var(--pine-deep) 100%);
  position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 34px;
}
.about-visual .quote { color: var(--linen); font-family: "Fraunces", serif; font-style: italic; font-size: 1.5rem; line-height: 1.35; }
.about-visual .leaf { position: absolute; top: -30px; right: -30px; width: 220px; height: 220px; opacity: .14; }
.about-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--pine-deep); margin: 12px 0 18px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }

/* trust / cred badges */
.creds { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.cred { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-size: 0.88rem; font-weight: 500; color: var(--pine); }
.bg-surface .cred { background: #fff; }
.cred b { display: block; font-family: "Fraunces", serif; font-size: 1.4rem; color: var(--honey); }

.badge-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.badge { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 12px 22px; font-size: 0.9rem; font-weight: 600; color: var(--pine); }
.badge svg { width: 20px; height: 20px; color: var(--honey); }

/* ---------- FAQ (native, no JS) ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-family: "Fraunces", serif; font-size: 1.2rem; color: var(--pine-deep); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "Hanken Grotesk", sans-serif; font-size: 1.6rem; color: var(--honey); transition: transform .25s ease; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 0 22px; color: var(--muted); }

/* ---------- MAP ---------- */
.map-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); }
.map-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.map-note { margin-top: 14px; font-size: 0.92rem; }
/* click-to-load map facade — defers the heaviest asset to protect LCP/INP */
.map-facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 24px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  color: var(--linen); font: inherit;
  background: radial-gradient(circle at 30% 18%, rgba(201,143,78,.22), transparent 55%), linear-gradient(150deg, var(--pine) 0%, var(--pine-deep) 100%); }
.map-facade svg { width: 30px; height: 30px; color: var(--honey-soft); margin-bottom: 6px; }
.map-facade .map-load-title { font-family: "Fraunces", serif; font-size: 1.3rem; color: #fff; }
.map-facade small { color: var(--sage-soft); font-size: 0.84rem; }
.map-facade:hover { filter: brightness(1.08); }
.map-facade:focus-visible { outline: 3px solid var(--honey-soft); outline-offset: -5px; }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* address block */
address { font-style: normal; }

/* ---------- CONTACT ---------- */
.contact-card {
  background: var(--pine); color: var(--linen); border-radius: 26px;
  padding: 56px clamp(28px, 6vw, 64px);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center;
}
.contact-card h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.contact-card p { color: var(--sage-soft); margin-bottom: 26px; }
.contact-card .btn { background: var(--honey); }
.contact-card .btn:hover { background: var(--honey-soft); color: var(--pine-deep); }
.info-list { display: grid; gap: 18px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row .ic { width: 22px; height: 22px; flex-shrink: 0; color: var(--honey); margin-top: 3px; }
.info-row .lbl { font-size: 0.74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.info-row .val { color: var(--ink); font-size: 1rem; }
.info-row .val a { color: var(--pine); text-decoration: underline; text-underline-offset: 2px; }
.info-row .val a:hover { color: var(--honey); }
/* dark contexts (contact card / pine bands): values=linen, labels=sage-soft, links=honey-soft underlined */
.contact-card .info-row .ic, .bg-pine .info-row .ic { color: var(--honey-soft); }
.contact-card .info-row .lbl, .bg-pine .info-row .lbl { color: var(--sage-soft); }
.contact-card .info-row .val, .bg-pine .info-row .val { color: var(--linen); }
.contact-card .info-row .val a, .bg-pine .info-row .val a { color: var(--honey-soft); text-decoration: underline; }
.contact-card .info-row .val a:hover, .bg-pine .info-row .val a:hover { color: #fff; }

/* big click-to-call panel */
.call-panel { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 48px 28px; }
.call-panel .num { font-family: "Fraunces", serif; font-size: clamp(2rem, 6vw, 3rem); color: var(--pine-deep); display: inline-block; margin: 10px 0 22px; }
.call-panel .num:hover { color: var(--honey); }

/* contact form */
.contact-form { display: grid; gap: 16px; max-width: 560px; }
.contact-form label { font-size: 0.82rem; font-weight: 600; color: var(--pine); letter-spacing: .02em; }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; margin-top: 6px;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(138,160,143,.25); }
.form-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 110px 0 100px; position: relative; overflow: hidden; }
.notfound .breath-stage { min-height: 220px; margin-bottom: 8px; }
.notfound h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--pine-deep); margin-bottom: 16px; }
.notfound p { color: var(--muted); max-width: 460px; margin: 0 auto 30px; font-size: 1.08rem; }
.notfound .hero-cta { justify-content: center; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--pine-deep); color: var(--sage-soft); padding: 60px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-brand { font-family: "Fraunces", serif; color: var(--linen); font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }
.foot-about p { font-size: 0.94rem; max-width: 34ch; margin-bottom: 18px; }
.foot-fb { display: inline-flex; align-items: center; gap: 8px; color: var(--honey-soft); font-weight: 600; font-size: 0.92rem; text-decoration: underline; text-underline-offset: 3px; }
.foot-fb:hover { color: var(--linen); }
.foot-fb svg { width: 18px; height: 18px; }
.foot-h { font-size: 0.74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--honey-soft); font-weight: 600; margin-bottom: 16px; }
.foot-col address a, .foot-col .foot-phone a { color: var(--linen); }
.foot-col address a:hover, .foot-col .foot-phone a:hover { color: var(--honey-soft); }
.foot-phone { margin: 12px 0; font-size: 1.05rem; }
.foot-phone a { font-weight: 600; }
.foot-hours { font-size: 0.92rem; color: var(--linen); }
.foot-nav { list-style: none; display: grid; gap: 10px; }
.foot-nav a { color: var(--sage-soft); font-size: 0.94rem; }
.foot-nav a:hover { color: var(--honey-soft); }
.foot-bottom { border-top: 1px solid rgba(185,199,188,.2); margin-top: 40px; padding-top: 24px; }
.foot-bottom small { color: var(--sage-soft); font-size: 0.85rem; }

/* ---------- TRUST STRIP ---------- */
.trust-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-strip ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; padding: 12px 0; margin: 0; }
.trust-strip li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 600; color: var(--pine); }
.trust-strip svg { width: 17px; height: 17px; color: var(--honey); flex-shrink: 0; }

/* ---------- HEADER SCROLL SHADOW ---------- */
.site-header.scrolled { box-shadow: 0 6px 24px -16px rgba(35,48,41,.55); }

/* ---------- SCROLL REVEAL (only when JS active; hero/first section never hidden -> protects LCP) ---------- */
.js main > section:nth-of-type(n+2) { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js main > section.is-visible { opacity: 1; transform: none; }

/* ---------- STICKY MOBILE CALL BAR ---------- */
.call-bar { display: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .call-bar {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: var(--honey); color: #fff; font-weight: 700; font-size: 1.02rem;
    padding: 15px 18px; min-height: 56px;
    box-shadow: 0 -8px 24px -12px rgba(35,48,41,.5);
  }
  .call-bar svg { width: 19px; height: 19px; }
  body { padding-bottom: 64px; }
  .trust-strip li { font-size: 0.78rem; }
  .trust-strip ul { gap: 8px 18px; }
  .hero-grid, .about-grid, .contact-card, .visit-grid { grid-template-columns: 1fr; }
  .breath-stage { min-height: 280px; order: -1; }
  .services-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--linen); padding: 22px 28px; gap: 18px; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -24px rgba(46,64,57,.4);
  }
  .nav-links.open .btn-call { width: 100%; justify-content: center; }
  .about-visual { order: -1; aspect-ratio: 3/2; }
  .service-detail { grid-template-columns: 1fr; gap: 10px; }
  .service-detail .sd-num { font-size: 1.6rem; }
  section { padding: 60px 0; }
}

@media (max-width: 540px) {
  .foot-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .breath-glow, .breath-ring, .breath-core { animation: none; transform: scale(1); }
  html { scroll-behavior: auto; }
  .card:hover, .btn:hover { transform: none; }
  .faq details[open] summary::after { transition: none; }
  .js main > section:nth-of-type(n+2) { opacity: 1 !important; transform: none !important; transition: none; }
}
