/* ==========================================================================
   Lily's Home Spa – shared stylesheet
   Adjust colours, fonts and spacing centrally in :root.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no request to Google) ---------- */
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/marcellus-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/marcellus-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

@font-face { font-family: "Mulish"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/mulish-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/mulish-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/mulish-vietnamese-400-normal.woff2") format("woff2");
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/mulish-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/mulish-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/mulish-vietnamese-600-normal.woff2") format("woff2");
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/mulish-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/mulish-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/mulish-vietnamese-700-normal.woff2") format("woff2");
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }

/* Heading font for Vietnamese (Marcellus has no Vietnamese glyphs) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/cormorant-garamond-vietnamese-600-normal.woff2") format("woff2");
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }

/* ---------- Design-Tokens ---------- */
:root {
  --green: #4F6E55;          /* main accent: menu, buttons */
  --green-dark: #3E5C45;     /* text accent, hover */
  --green-deep: #2E4334;     /* Footer */
  --green-tint: #EEF3EB;     /* tinted surfaces */
  --green-soft: #DCE5D7;
  --line: #DDE5D9;
  --line-strong: #CFDACB;
  --sand: #E2C98F;           /* small accent: underline, rules */
  --sand-line: #D4B677;
  --sand-tint: #F7F0DD;
  --brown: #8A6A45;          /* eyebrow texts */
  --bg: #FBFAF6;
  --surface: #FFFFFF;
  --text: #26332A;
  --muted: #4A5A4F;
  --muted-2: #5B6A5F;
  --booked: #F2EEE5;
  --font-display: "Marcellus", Georgia, serif;
  --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
  --radius-lg: 24px;
  --container: 1200px;
}

html[lang="vi"] { --font-display: "Cormorant Garamond", Georgia, serif; }
html[lang="vi"] .section-title, html[lang="vi"] .hero-card h1, html[lang="vi"] .page-hero h1 { letter-spacing: -0.01em; }
.logo-name { font-family: "Marcellus", Georgia, serif !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--sand-line); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--surface); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }

[id] { scroll-margin-top: 84px; }   /* keep anchors clear of the sticky menu bar */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tint { background: var(--green-tint); }
.section-white { background: var(--surface); border-top: 1px solid #EEF1EA; border-bottom: 1px solid #EEF1EA; }
@media (max-width: 640px) { .section { padding: 64px 0; } }

.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brown); }
.section-title { margin: 0 0 14px; font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 40px); }
.section-lead { margin: 0; color: var(--muted); max-width: 680px; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.section-head-row .section-title { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted-2); }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 56px; align-items: center; }
@media (max-width: 400px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Buttons & Links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
       font: 700 16px/1 var(--font-body); text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--green-dark); border: 1.5px solid #9DB39E; }
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); }
.btn-sand { background: var(--sand); color: var(--green-deep); min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-sand:hover { background: var(--sand-line); color: var(--green-deep); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--green-dark); }
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.topbar { position: relative; z-index: 10; background: var(--surface); border-bottom: 1px solid #E6ECE2; transition: opacity 2s ease; }
.topbar-inner { max-width: var(--container); margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.logo-slot { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-mark { width: 56px; height: 56px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { font-family: var(--font-display); font-size: 30px; color: var(--green-dark); }
.logo-sub { font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--brown); margin-top: 4px; }
.topbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 15px; }
.phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text); font-weight: 600; text-decoration: none; }
.phone:hover { color: var(--green-dark); }
.lang { display: flex; gap: 4px; font-size: 14px; font-weight: 700; }
.lang a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--muted-2); text-decoration: none; border-bottom: 2px solid transparent; }
.lang a[aria-current="true"] { color: var(--green-dark); border-bottom-color: var(--sand-line); }
.lang a:hover { color: var(--green-dark); }
@media (max-width: 480px) {
  .phone-text { display: none; }
  .logo-mark { width: 46px; height: 46px; }
  .logo-name { font-size: 26px; }
  .topbar-inner { padding: 14px 16px; }
}

/* ---------- Menu bar ---------- */
.mainnav { background: var(--green); position: sticky; top: 0; z-index: 20; }
.mainnav-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.mainnav-links { display: flex; flex-wrap: wrap; gap: 4px; }
.mainnav-links a { display: flex; align-items: center; min-height: 64px; padding: 0 20px; color: #fff; font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.mainnav-links a:hover { border-bottom-color: rgba(226,201,143,.6); color: #fff; }
.mainnav-links a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--sand); }
@media (max-width: 640px) {
  .mainnav-inner { padding: 0 8px; }
  .mainnav-links a { padding: 0 12px; min-height: 56px; }
  .mainnav .btn-sand { display: none; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; height: 640px; overflow: hidden; background: #CBD8C6; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; }  /* keeps the subject on the right visible on mobile */
.hero-inner { position: relative; max-width: var(--container); height: 100%; margin: 0 auto; padding: 0 24px 56px; display: flex; align-items: flex-end; }
.hero-card { max-width: 540px; background: rgba(251,250,246,.96); border-radius: var(--radius-lg); padding: 40px;
             transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.hero-card h1 { margin: 0 0 16px; font: 400 clamp(36px, 5vw, 50px)/1.1 var(--font-display); }
.hero-card .lead { margin: 0 0 28px; color: var(--muted); font-size: 18px; }
@media (max-width: 640px) {
  .hero { height: 580px; }
  .hero-inner { padding: 0 16px 24px; }
  .hero-card { padding: 26px; }
}

/* ---------- Sub-page headers ---------- */
.page-hero { position: relative; height: 380px; overflow: hidden; background: #CBD8C6; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; }
.page-hero .hero-inner { padding-bottom: 40px; }
.page-hero .hero-card { padding: 28px 34px; max-width: 640px; }
.page-hero h1 { margin: 0; font: 400 clamp(32px, 4.5vw, 46px)/1.1 var(--font-display); }
.page-hero .lead { margin: 10px 0 0; color: var(--muted); }
.page-hero.compact { height: auto; background: var(--green-tint); }
.page-hero.compact .hero-inner { padding: 56px 24px; }
.page-hero.compact .hero-card { background: transparent; padding: 0; }
@media (max-width: 640px) { .page-hero { height: 320px; } .page-hero .hero-card { padding: 22px; } }

.page-hero.has-inset { height: 420px; }
.page-hero-inset { position: absolute; z-index: 1; bottom: 40px; right: max(24px, calc((100% - var(--container)) / 2 + 24px));
                   width: min(440px, 38%); aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden;
                   box-shadow: 0 24px 50px -28px rgba(46,67,52,.55); border: 6px solid rgba(251,250,246,.9); }
.page-hero-inset img { position: static; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .page-hero.has-inset { height: 320px; } .page-hero-inset { display: none; } }

.breadcrumb { font-size: 14px; color: var(--muted-2); padding-top: 20px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted-2); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.card-bordered { border: 1px solid #E1E8DD; border-radius: var(--radius-lg); }
.icon-tile { width: 52px; height: 52px; border-radius: 16px; background: var(--sand-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.therapy-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text);
                transition: transform .25s ease, box-shadow .25s ease; }
.therapy-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(46,67,52,.45); color: var(--text); }
.therapy-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.therapy-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.therapy-card h3 { margin: 0 0 6px; font: 400 24px/1.2 var(--font-display); }
.therapy-card p { margin: 0 0 14px; color: var(--muted); font-size: 16px; flex: 1; }
.therapy-card .meta { margin: 0; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; flex: 0; }
.therapy-card .meta span:first-child { color: var(--muted-2); }
.therapy-card .meta span:last-child { font-weight: 700; color: var(--green-dark); white-space: nowrap; }

/* ---------- Booking ---------- */
.booking-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 400px) { .booking-grid { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid #E1E8DD; border-radius: var(--radius-lg); padding: 28px; }
@media (max-width: 480px) { .panel { padding: 20px; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cal-head h3 { margin: 0; font: 400 24px var(--font-display); }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--green-dark); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover:not(:disabled) { border-color: var(--green); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-weekdays { margin-bottom: 6px; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted-2); }
.cal-day { height: 48px; width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
           font: 600 15px var(--font-body); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.cal-day:hover:not(:disabled) { border-color: var(--green); }
.cal-day.is-today { border-color: var(--sand-line); }
.cal-day[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.cal-day:disabled { background: transparent; border-color: transparent; color: #A3ACA2; cursor: default; }
.cal-day.is-closed:disabled { background: var(--booked); color: #8C857A; text-decoration: line-through; }
.cal-empty { visibility: hidden; }
@media (max-width: 400px) { .cal-day { height: 42px; font-size: 14px; } .cal-weekdays, .cal-grid { gap: 4px; } }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; font-size: 13px; color: var(--muted-2); }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

.booking-form { display: flex; flex-direction: column; gap: 24px; }
.booking-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.booking-form legend { padding: 0; margin-bottom: 12px; font-weight: 700; font-size: 15px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: 600 15px var(--font-body); cursor: pointer; }
.pill:hover:not(:disabled) { border-color: var(--green); }
.pill[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.slot { min-height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: 600 15px var(--font-body); cursor: pointer; }
.slot:hover:not(:disabled) { border-color: var(--green); }
.slot[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.slot:disabled { background: var(--booked); border-color: transparent; color: #8C857A; text-decoration: line-through; cursor: default; }
.slots-empty { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--muted-2); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea, .field select { min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 12px; font: 400 16px var(--font-body); color: var(--text); background: var(--bg); }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(212,182,119,.5); outline-offset: 1px; border-color: var(--green); }
.field-error { color: #9B3B2E; font-size: 13px; font-weight: 600; }
.summary { background: var(--sand-tint); border-radius: 16px; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.summary-label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brown); }
.summary-text { margin: 2px 0 0; font-weight: 700; }
.summary-price { margin: 0; font: 400 24px var(--font-display); color: var(--green-dark); }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); flex: none; }
.send-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.form-status { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--green-tint); font-size: 15px; }
.form-status[hidden] { display: none; }

/* ---------- Meaning / Origins / About ---------- */
.media-frame { border-radius: 28px; overflow: hidden; background: var(--green-soft); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.quote { margin: 0; padding: 22px 26px; background: var(--sand-tint); border-radius: var(--radius); font: 400 22px/1.4 var(--font-display); color: var(--green-dark); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.timeline li { border-top: 3px solid var(--sand-line); padding-top: 20px; }
.timeline .region { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brown); }
.timeline h3 { margin: 0 0 4px; font: 400 24px var(--font-display); }
.timeline .native { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--muted-2); }
.timeline p { margin: 0; color: var(--muted); font-size: 16px; }
.about-teaser { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.portrait { flex: 0 0 280px; height: 340px; border-radius: 200px 200px 28px 28px; overflow: hidden; background: #E4D8BF; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-teaser-text { flex: 1 1 360px; min-width: 0; }
.facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.prose .facts { padding-left: 0; }
.prose .facts li { margin: 0; }
.facts li { background: var(--sand-tint); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.facts strong { font: 700 20px/1.2 var(--font-body); color: var(--green-dark); }
.facts span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .portrait { flex-basis: 100%; height: 360px; max-width: 320px; margin: 0 auto; } }

/* ---------- Contact ---------- */
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 18px; border-radius: 14px; background: var(--green-tint); text-decoration: none; color: var(--text); font-weight: 700; }
.contact-item:hover { background: var(--green-soft); color: var(--text); }
.hours { margin: 0 0 22px; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 16px; }
.hours dt { color: var(--muted-2); }
.hours dd { margin: 0; font-weight: 600; }
.map-box { min-height: 300px; border-radius: var(--radius-lg); background: var(--green-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; overflow: hidden; }
.map-box p { margin: 0; max-width: 300px; font-size: 14px; color: var(--muted); }
.map-box iframe { width: 100%; height: 100%; min-height: 300px; border: 0; border-radius: 16px; }
.map-box.is-loaded { padding: 0; }

/* ---------- Therapy overview & detail ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; font-size: 16px; }
.price-table th, .price-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid #EEF1EA; vertical-align: top; }
.price-table thead th { background: var(--green); color: #fff; font-size: 14px; letter-spacing: .04em; }
.price-table tbody th { font-weight: 700; }
.price-table tbody th a { color: var(--text); }
.price-table td:last-child { white-space: nowrap; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps li { counter-increment: step; background: var(--surface); border-radius: var(--radius); padding: 26px; position: relative; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: var(--sand-tint); color: var(--brown); font: 400 20px var(--font-display); margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
.check-list, .cross-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li, .cross-list li { position: relative; padding-left: 32px; color: var(--muted); }
.check-list li::before, .cross-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 999px; background-repeat: no-repeat; background-position: center; }
.check-list li::before { background-color: var(--green-tint); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234F6E55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.cross-list li::before { background-color: var(--sand-tint); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A6A45' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E"); }
.duration-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.duration-card { background: var(--surface); border: 1px solid #E1E8DD; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.duration-card .mins { font: 400 28px var(--font-display); color: var(--green-dark); }
.duration-card .price { font-weight: 700; }
.duration-card .btn { margin-top: 12px; min-height: 44px; font-size: 15px; }
.aside-box { background: var(--sand-tint); border-radius: var(--radius); padding: 24px 26px; }
.aside-box h3 { margin: 0 0 10px; font-size: 18px; }
.aside-box p { margin: 0; color: var(--muted); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: start; }
@media (max-width: 400px) { .two-col { grid-template-columns: 1fr; } }
.prose { color: var(--muted); }
.prose h2 { color: var(--text); font: 400 clamp(26px, 3.4vw, 32px)/1.2 var(--font-display); margin: 48px 0 14px; }
.prose h3 { color: var(--text); font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border-radius: 16px; border: 1px solid #E6ECE2; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 26px var(--font-display); color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.gallery img { border-radius: var(--radius); aspect-ratio: 9 / 7; object-fit: cover; width: 100%; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.cta-band { background: var(--green); color: #fff; border-radius: 28px; padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0 0 6px; font: 400 clamp(26px, 3.4vw, 34px)/1.2 var(--font-display); }
.cta-band p { margin: 0; color: #DCE7DB; }
.cta-band .btn-sand { min-height: 52px; padding: 0 26px; font-size: 16px; }
@media (max-width: 640px) { .cta-band { padding: 32px 24px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: #E8EEE6; padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px; padding-bottom: 36px; border-bottom: 1px solid #4A6150; }
.footer-brand { margin: 0 0 4px; font: 400 28px var(--font-display); color: #fff; }
.site-footer h2 { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); }
.site-footer p { margin: 0; color: #DCE5D9; line-height: 1.7; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.site-footer a { color: #fff; display: inline-flex; min-height: 34px; align-items: center; }
.site-footer a:hover { color: var(--sand); }
.moit-badge { display: inline-flex; align-items: center; gap: 10px; border: 1px dashed #8FA693; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #DCE5D9; margin-top: 18px; }
.footer-bottom { margin: 24px 0 0 !important; font-size: 13px; color: #B9C8BA !important; }

/* ---------- Intro (home page only) ---------- */
.intro-layer { display: none; position: fixed; inset: 0; z-index: 50; background: transparent; }  /* video + logo only, no colour fill */
.intro-layer video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; }  /* same crop as the header image */
.intro-skip { position: absolute; right: 24px; bottom: 24px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
              background: rgba(255,255,255,.88); color: var(--green-dark); font: 700 14px var(--font-body); cursor: pointer; transition: opacity .4s ease; }
.intro-ending .intro-skip { opacity: 0; pointer-events: none; }
.intro-active .intro-layer { display: block; }
.intro-active:not(.intro-bar) .topbar { opacity: 0; }
.intro-active:not(.intro-landed) .topbar .logo-slot { visibility: hidden; }
.intro-active .hero-card { opacity: 0; transform: translateY(24px); pointer-events: none; }
.logo-flyer { position: fixed; z-index: 60; margin: 0; pointer-events: none; transform-origin: 0 0; will-change: transform, opacity; }
.logo-flyer::before { content: ""; position: absolute; inset: -18px -26px; z-index: -1; border-radius: 999px; background: rgba(251,250,246,.82); filter: blur(10px); transition: opacity 1.4s ease; }
.logo-flyer.is-landing::before { opacity: 0; }

.logo-flyer .logo-name, .logo-flyer .logo-sub { transition: color 1.6s ease; }
.logo-flyer.on-green .logo-name { color: #fff; }
.logo-flyer.on-green .logo-sub { color: var(--sand); }
.logo-flyer.on-green::before { inset: -46px -64px; background: radial-gradient(closest-side, rgba(255,255,255,.3), rgba(255,255,255,.08) 60%, rgba(255,255,255,0)); filter: blur(10px); }

/* Logo-only intro (phones): green background, no video */
.intro-logo .intro-layer { background: var(--green); }
.intro-logo .intro-layer video, .intro-logo .intro-skip { display: none; }

/* ---------- Bottom tab bar (phones) ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  .mainnav { display: none; }
  [id] { scroll-margin-top: 16px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
            padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--green);
            box-shadow: 0 -10px 30px -18px rgba(46,67,52,.6); transition: transform .35s ease, opacity .35s ease; }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; padding: 0 2px;
         color: rgba(255,255,255,.78); text-decoration: none; font-size: 11.5px; font-weight: 600; line-height: 1.1; text-align: center; border-radius: 14px; }
  .tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab:hover, .tab:active { color: #fff; }
  .tab[aria-current="page"] { color: #fff; }
  .tab[aria-current="page"]::after { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--sand); margin-top: 1px; }
  .tab-book { background: var(--sand); color: var(--green-deep); font-weight: 700; margin: 2px 2px; }
  .tab-book:hover, .tab-book:active { color: var(--green-deep); background: var(--sand-line); }
  .kb-open .tabbar { transform: translateY(110%); }                 /* hide while typing in the booking form */
  .intro-active:not(.intro-bar) .tabbar { transform: translateY(110%); opacity: 0; }
}

/* ---------- Phone layout ---------- */
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head-row { margin-bottom: 24px; }
  .container, .container-narrow { padding: 0 18px; }

  /* Home hero: photo stays visible, card sits below it */
  /* fills exactly the visible screen between top bar (75px) and tab bar (66px), so the buttons are always in view */
  .hero { display: flex; flex-direction: column; background: var(--bg);
          height: calc(100vh - 141px); height: calc(100svh - 141px - env(safe-area-inset-bottom)); min-height: 440px; max-height: 780px; }
  .hero-image { position: relative; flex: 1 1 0; height: 0; min-height: 150px; }
  .hero-inner { flex: none; height: auto; margin-top: -56px; padding: 0 14px 14px; }
  .hero-card { padding: 22px 22px; background: var(--surface); box-shadow: 0 18px 40px -28px rgba(46,67,52,.5); }
  .hero-card h1 { font-size: 34px; margin-bottom: 12px; }
  .hero-card .lead { font-size: 16px; margin-bottom: 18px; }
  .hero-card .btn-row { gap: 10px; }
  .hero-card .btn-row .btn { flex: 1 1 auto; min-height: 48px; padding: 0 18px; font-size: 15px; }
  .hero-card .btn-ghost { display: none; }          /* "Therapies" is in the tab bar on phones */

  /* Sub-page headers: same pattern */
  .page-hero:not(.compact), .page-hero.has-inset { height: auto; background: var(--bg); }
  .page-hero:not(.compact) > img { position: relative; height: 190px; }
  .page-hero:not(.compact) .hero-inner { height: auto; margin-top: -48px; padding: 0 14px; }
  .page-hero:not(.compact) .hero-card { padding: 20px 22px; background: var(--surface); box-shadow: 0 18px 40px -28px rgba(46,67,52,.5); }
  .page-hero h1 { font-size: 32px; }
  .page-hero .lead { font-size: 16px; }
  .page-hero.compact .hero-inner { padding: 40px 18px 32px; }

  /* Benefits: 2 × 2 */
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid-4 .card { padding: 18px 16px; }
  .grid-4 .icon-tile { width: 42px; height: 42px; border-radius: 13px; margin-bottom: 12px; }
  .grid-4 .card h3 { font-size: 16px; }
  .grid-4 .card p { font-size: 14px; line-height: 1.5; }

  /* Therapy cards: compact rows (photo left) */
  .grid-3 { gap: 12px; }
  .therapy-card { display: grid; grid-template-columns: 112px 1fr; border-radius: 18px; }
  .therapy-card img { width: 100%; height: 100%; aspect-ratio: auto; align-self: stretch; object-fit: cover; }
  .therapy-card-body { padding: 14px 16px 14px; }
  .therapy-card h3 { font-size: 20px; margin-bottom: 4px; }
  .therapy-card p { font-size: 14px; line-height: 1.45; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .therapy-card p { flex: none; }
  .therapy-card .meta { font-size: 13px; display: block; flex: none; }
  .therapy-card .meta span:last-child { display: none; }
  .therapy-card:hover { transform: none; }

  /* Meaning image + about portrait */
  .media-frame { height: 260px !important; border-radius: 22px; }
  .grid-2 { gap: 28px; }
  .about-teaser { gap: 28px; padding: 0 18px; }
  .portrait { height: 300px; max-width: 260px; }
  .quote { font-size: 20px; padding: 18px 20px; }

  /* Price table: drop the "in short" column */
  .price-table { font-size: 15px; }
  .price-table th, .price-table td { padding: 12px 12px; }
  .price-table th:nth-child(2), .price-table td:nth-child(2) { display: none; }

  /* Steps: number beside the text */
  .steps { gap: 10px; }
  .steps li { padding: 18px 18px 18px 68px; }
  .steps li::before { position: absolute; left: 16px; top: 16px; width: 36px; height: 36px; margin: 0; font-size: 18px; }
  .steps h3 { font-size: 17px; }
  .steps p { font-size: 15px; }

  /* Duration & price: one row each */
  .duration-cards { grid-template-columns: 1fr; gap: 10px; }
  .duration-card { flex-direction: row; align-items: center; gap: 4px 14px; padding: 12px 12px 12px 18px; }
  .duration-card .mins { font-size: 24px; }
  .duration-card .btn { margin: 0 0 0 auto; min-height: 42px; padding: 0 20px; }

  .two-col { gap: 32px; }
  .prose h2 { margin-top: 36px; }
  .timeline { gap: 20px; }
  .map-box, .map-box iframe { min-height: 220px; }
  .faq summary { padding: 16px 48px 16px 18px; }
  .cta-band { border-radius: 22px; }
  .site-footer { padding-top: 48px; }

  /* About page */
  .portrait[style] { height: 300px !important; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .facts li { padding: 12px 12px; }
  .facts strong { font-size: 16px; }
  .facts span { font-size: 12.5px; line-height: 1.35; }
  /* Icon cards (promise / values): icon beside the text */
  .grid-3 > .card { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; padding: 18px; }
  .grid-3 > .card .icon-tile { width: 42px; height: 42px; border-radius: 13px; margin: 0; grid-row: span 2; }
  .grid-3 > .card h3 { font-size: 17px; margin: 0 0 4px; }
  .grid-3 > .card p { font-size: 15px; line-height: 1.5; }
  /* Gallery: swipe sideways */
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -18px; padding: 0 18px 4px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery img { flex: 0 0 78%; scroll-snap-align: center; }
}
/* very short phone screens (e.g. iPhone SE with browser bars): slimmer hero card */
@media (max-width: 640px) and (max-height: 620px) {
  .hero { min-height: 400px; }
  .hero-card { padding: 18px 20px; }
  .hero-card .eyebrow { display: none; }
  .hero-card h1 { font-size: 29px; margin-bottom: 8px; }
  .hero-card .lead { font-size: 15px; line-height: 1.5; margin-bottom: 14px; }
}
