/* Ocean Blue Day Spa
   Layout concept: the shop's brown signage as a full-width band at the top, calm stone-paper pages beneath,
   and the price list set like a printed treatment menu with dotted leaders. */
:root {
  --bg: #F6F2EF;          /* stone paper, slight brown bias */
  --surface: #FFFFFF;
  --ink: #2C2320;
  --muted: #6A5B54;
  --brand: #8C6A5C;       /* logo brown */
  --brand-ink: #6B4F43;   /* brown dark enough for text on paper */
  --on-brand: #FFFFFF;
  --sea: #355F6B;         /* the "ocean blue": health fund notes only */
  --sea-soft: #E3ECEE;
  --line: #E2D8D2;
  --todo-bg: #FFE98A;
  --todo-ink: #4A3A00;

  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-body: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.1rem, 4.5vw, 3rem);
  --step-4: clamp(2.6rem, 7vw, 4.6rem);

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B1614; --surface: #251E1B; --ink: #EFE6E1; --muted: #B7A69D;
    --brand: #7E5E51; --brand-ink: #D9B9AA; --on-brand: #FFFFFF;
    --sea: #93BCC7; --sea-soft: #1E2C30; --line: #3A2F2B;
    --todo-bg: #5A4A12; --todo-ink: #FFE9A0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1B1614; --surface: #251E1B; --ink: #EFE6E1; --muted: #B7A69D;
  --brand: #7E5E51; --brand-ink: #D9B9AA; --on-brand: #FFFFFF;
  --sea: #93BCC7; --sea-soft: #1E2C30; --line: #3A2F2B;
  --todo-bg: #5A4A12; --todo-ink: #FFE9A0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; text-wrap: balance; margin: 0; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface); padding: 8px 12px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.prose { max-width: 65ch; display: grid; gap: 1em; }
.eyebrow {
  font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}

/* Placeholders the owner still needs to fill in */
mark.todo {
  background: var(--todo-bg); color: var(--todo-ink);
  padding: 0 0.3em; border-radius: 3px; font-style: normal;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Monogram: logo cut-out used as a mask so it takes the text colour */
.monogram {
  display: inline-block; width: 46px; aspect-ratio: 400 / 356; flex: none;
  background: currentColor;
  -webkit-mask: url("assets/monogram.png") center / contain no-repeat;
          mask: url("assets/monogram.png") center / contain no-repeat;
}
.monogram-lg { width: 64px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 46px; padding: 0.6em 1.4em; border-radius: 999px;
  font: 500 var(--step--1)/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--brand); color: var(--on-brand); }
.btn-solid:hover { background: var(--brand-ink); color: var(--bg); }
.btn-light { background: var(--on-brand); color: #5E4439; }
.btn-light:hover { background: #F1E7E2; }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: var(--on-brand); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--brand-ink); color: var(--brand-ink); }
.btn-outline:hover { background: var(--brand-ink); color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { background: var(--brand); color: var(--on-brand); position: relative; z-index: 10; }
.header-row { display: flex; align-items: center; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-brand); text-decoration: none; margin-right: auto; min-width: 0; }
.brand-text { display: grid; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; }
.brand-tag { font-size: 0.78rem; font-weight: 300; letter-spacing: 0.04em; opacity: .9; }
.nav-toggle {
  display: none; background: none; color: var(--on-brand); border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px; padding: 8px 16px; font: 500 0.8rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.site-nav ul a { color: var(--on-brand); text-decoration: none; font-size: 0.95rem; padding-block: 6px; border-bottom: 1px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { border-bottom-color: currentColor; }
.page-book .nav-book { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding-block: 8px 12px; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .nav-book { display: none; }
}

/* Hero (home) */
.hero { background: var(--brand); color: var(--on-brand); position: relative; overflow: hidden; }
.hero-inner { display: grid; gap: 24px; padding-block: clamp(40px, 8vw, 96px) clamp(48px, 9vw, 110px); position: relative; }
.hero-h1 { font-family: var(--font-body); line-height: 1.4; }
.hero-display { font-family: var(--font-display); font-size: var(--step-4); font-weight: 400; line-height: 1.08; max-width: 13ch; text-wrap: balance; }
.hero-display em { font-style: italic; }
.hero-sub { font-size: var(--step-1); font-weight: 300; max-width: 34ch; }
.hero-mark {
  position: absolute; right: -4%; bottom: -14%; width: min(46vw, 520px); color: rgba(255,255,255,.09);
  pointer-events: none;
}
.hero .eyebrow { color: rgba(255,255,255,.85); }

/* Page heading band for inner pages */
.page-head { background: var(--brand); color: var(--on-brand); }
.page-head .wrap { padding-block: clamp(32px, 6vw, 64px); display: grid; gap: 12px; }
.page-head h1 { font-size: var(--step-3); font-weight: 400; }
.page-head p { max-width: 60ch; font-weight: 300; font-size: var(--step-1); }
.page-head .eyebrow { color: rgba(255,255,255,.85); }

/* Sections */
.section { padding-block: clamp(48px, 8vw, 96px); }
.section + .section { padding-top: 0; }
.section-head { display: grid; gap: 10px; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head h2 { font-size: var(--step-3); }
.lead { font-size: var(--step-1); font-weight: 300; max-width: 52ch; }

/* Head spa / remedial feature pair (home) */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(28px, 5vw, 64px); }
.feature { display: grid; gap: 12px; align-content: start; min-width: 0; }
.feature h2 { font-size: var(--step-3); }
.feature p:not(.eyebrow) { color: var(--muted); max-width: 52ch; }
.feature a { justify-self: start; font-weight: 500; }
.sub-h { color: var(--muted); font-style: italic; font-family: var(--font-display); font-size: var(--step-1); }
.map-wrap { display: grid; gap: 12px; justify-items: start; min-width: 0; }
.map { width: 100%; max-width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }

/* Legal page */
.draft-note { background: var(--todo-bg); color: var(--todo-ink); padding: 14px 18px; border-radius: var(--radius); }
.legal h2 { font-size: var(--step-2); margin-top: 1em; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* Treatment cards (home) */
.treatments { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.treatment {
  background: var(--surface); padding: 28px 24px; display: grid; gap: 12px; align-content: start;
  text-decoration: none; color: var(--ink); min-width: 0;
}
.treatment:hover { background: var(--bg); }
.treatment h3 { font-size: var(--step-2); }
.treatment p { color: var(--muted); }
.treatment .from { margin-top: auto; font-family: var(--font-display); font-size: var(--step-1); color: var(--brand-ink); }
.treatment .from small { font-family: var(--font-body); font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: .4em; }

/* Split feature rows */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }

.packages-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.packages-strip .wrap { padding-block: 40px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.packages-strip h2 { font-size: var(--step-2); }
.packages-strip p { color: var(--muted); max-width: 52ch; }

/* HICAPS / health fund panel */
.fund {
  background: var(--sea-soft); color: var(--ink); border-left: 3px solid var(--sea);
  padding: clamp(24px, 4vw, 40px); display: grid; gap: 12px;
}
.fund h2, .fund h3 { color: var(--sea); }
.fund h2 { font-size: var(--step-2); }
.fund .fine { font-size: var(--step--1); color: var(--muted); }

/* Why list */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; list-style: none; padding: 0; margin: 0; }
.why li { display: grid; gap: 8px; align-content: start; border-top: 1px solid var(--brand); padding-top: 16px; }
.why h3 { font-size: var(--step-1); }
.why p { color: var(--muted); }

/* Visit strip */
.visit { background: var(--surface); border-top: 1px solid var(--line); }
.visit .wrap { padding-block: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; align-items: center; }
.visit h2 { font-size: var(--step-2); }
.visit-phone { font-family: var(--font-display); font-size: var(--step-2); color: var(--brand-ink); text-decoration: none; font-variant-numeric: lining-nums; }

/* Services: category jump links */
.jump { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.jump ul { list-style: none; margin: 0; padding-block: 10px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.jump a {
  display: block; white-space: nowrap; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; color: var(--ink); font-size: 0.9rem; background: var(--surface);
}
.jump a:hover { border-color: var(--brand-ink); }

/* Treatment menu */
.category { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 5vw, 72px); padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); scroll-margin-top: 64px; }
.category:last-of-type { border-bottom: 0; }
.category-intro { display: grid; gap: 14px; align-content: start; }
.category-intro h2 { font-size: var(--step-3); }
.category-intro p { color: var(--muted); }
@media (max-width: 760px) { .category { grid-template-columns: minmax(0, 1fr); } }

.tag {
  justify-self: start; display: inline-block; font-size: 0.75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--brand-ink); color: var(--brand-ink);
}
.tag-sea { border-color: var(--sea); color: var(--sea); }

.menu { list-style: none; margin: 0; padding: 0; display: grid; }
.menu-row {
  display: grid; grid-template-columns: minmax(0, auto) 1fr auto auto; align-items: baseline; gap: 12px;
  padding-block: 14px; border-bottom: 1px solid var(--line);
}
.menu-row:first-child { border-top: 1px solid var(--line); }
.menu-name { font-size: var(--step-0); font-weight: 500; display: grid; gap: 2px; }
.menu-includes { font-weight: 300; font-size: var(--step--1); color: var(--muted); }
.menu-leader { border-bottom: 1px dotted var(--muted); opacity: .6; transform: translateY(-4px); min-width: 12px; }
.menu-dur { font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-price { font-family: var(--font-display); font-size: var(--step-1); font-variant-numeric: lining-nums tabular-nums; min-width: 3.4em; text-align: right; color: var(--ink); }
@media (max-width: 480px) {
  .menu-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .menu-leader { display: none; }
  .menu-dur { grid-column: 1; grid-row: 2; }
  .menu-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
.category-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.category-actions .fine { font-size: var(--step--1); color: var(--muted); }

.notes { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.notes li { padding-left: 22px; position: relative; }
.notes li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 1px; background: var(--brand-ink); }

/* Book page */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.path { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.path h2 { font-size: var(--step-2); }
.path p { color: var(--muted); }
.path-sea { border-color: var(--sea); }
.path-sea h2 { color: var(--sea); }
.widget-area { display: grid; gap: 16px; }
.square-widget { min-height: 600px; }
.widget-pending {
  border: 1px dashed var(--brand-ink); border-radius: var(--radius); background: var(--surface);
  padding: clamp(28px, 5vw, 56px) 24px; display: grid; gap: 14px; justify-items: center; text-align: center;
}
.widget-pending-label { font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase; color: var(--brand-ink); font-weight: 500; }
.widget-phone a { font-family: var(--font-display); font-size: var(--step-3); text-decoration: none; color: var(--ink); font-variant-numeric: lining-nums; }
.widget-fallback { font-size: var(--step--1); color: var(--muted); }

/* About */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.member { border-top: 1px solid var(--brand); padding-top: 16px; display: grid; gap: 6px; }
.member h3 { font-size: var(--step-1); }
.member .role { font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pull { font-family: var(--font-display); font-style: italic; font-size: var(--step-2); line-height: 1.3; color: var(--brand-ink); max-width: 24ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(28px, 5vw, 64px); }
.contact-grid > * { min-width: 0; }
.details { display: grid; gap: 18px; margin: 0; }
.details div { display: grid; gap: 2px; }
.details dt { font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.details dd { margin: 0; font-size: var(--step-1); }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { color: var(--muted); width: 45%; }
.map-pending {
  aspect-ratio: 16 / 9; max-width: 100%; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface);
  display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); gap: 12px;
}
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--brand-ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.form-status { background: var(--sea-soft); color: var(--ink); border-left: 3px solid var(--sea); padding: 12px 16px; }
.fine { font-size: var(--step--1); color: var(--muted); }

/* Footer */
.site-footer { background: #2B211D; color: #E9DFD9; margin-top: 0; padding-bottom: 72px; }
.site-footer a { color: #F3E7E0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-block: 56px 32px; }
.footer-grid p { color: #CDBFB7; font-size: 0.95rem; }
.footer-brand { display: grid; gap: 6px; justify-items: start; color: #F3E7E0; }
.footer-name { font-family: var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: #F3E7E0 !important; margin-top: 8px; }
.footer-h { font-family: var(--font-body); font-size: 0.75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #B9A79D; margin-bottom: 10px; }
.footer-phone { font-family: var(--font-display); font-size: 1.4rem; text-decoration: none; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-base { border-top: 1px solid #44362F; padding-block: 20px; }
.footer-base p { font-size: 0.8rem; color: #A8968C; }
.site-footer mark.todo { background: #5A4A12; color: #FFE9A0; }

/* Mobile quick-action bar */
.mobile-bar { display: none; }
@media (max-width: 860px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--surface); border-top: 1px solid var(--line);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; min-height: 54px; text-decoration: none;
    font-weight: 500; font-size: 0.85rem; letter-spacing: .1em; text-transform: uppercase;
  }
  .mobile-bar-call { color: var(--brand-ink); }
  .mobile-bar-book { background: var(--brand); color: var(--on-brand); }
  .page-book .mobile-bar-book { display: none; }
  .page-book .mobile-bar { grid-template-columns: 1fr; }
}
@media (min-width: 861px) { .site-footer { padding-bottom: 0; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }

/* Announcement banner (switched on in the admin page) */
.announce { background: var(--sea-soft); color: var(--ink); border-bottom: 1px solid var(--line); }
.announce p { margin: 0; padding: 10px 0; text-align: center; font-size: var(--step--1); }
.announce a { color: inherit; font-weight: 500; }

/* Team photos (uploaded in the admin page) */
.team { list-style: none; padding: 0; margin: 0; }
.member-photo { width: 100%; max-width: 240px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 6px; }
