/* SPA-DEMO-001 — Baan Siam Spa demo site
   Brand system matches SPA-UI-001 (the in-app brand overhaul):
     · Slate Navy  #1e3a6e
     · Thai Gold   #C9A84C
     · Cream BG    #faf7f2
     · Playfair Display headings · Inter body · Georgia wordmark
*/

:root {
  --navy:        #1e3a6e;
  --navy-deep:   #14264a;
  --gold:        #C9A84C;
  --gold-soft:   #e0c884;
  --cream:       #faf7f2;
  --warm-white:  #fffdf8;
  --ink:         #1c1c1c;
  --muted:       #6b6b6b;
  --border:      #e8e3d8;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.12; margin: 0 0 16px; }
h2 { font-size: clamp(26px, 3.5vw, 38px); line-height: 1.22; margin: 0 0 12px; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
p  { margin: 0 0 14px; color: #333; }

a { color: var(--navy); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold); }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  padding: 14px 24px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(20,38,74,0.18);
}
.site-header .inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--warm-white); text-decoration: none;
}
.brand svg { width: 36px; height: 36px; flex-shrink: 0; }
.brand-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px; letter-spacing: 0.04em;
}
.brand:hover { color: var(--gold); }

.site-nav { display: flex; gap: 22px; align-items: center; }
.site-nav a {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.site-nav .nav-cta {
  background: var(--gold);
  color: var(--navy);
  padding: 9px 18px;
  border-radius: 4px;
  font-weight: 600;
  border-bottom: none;
}
.site-nav .nav-cta:hover {
  background: var(--gold-soft);
  color: var(--navy-deep);
  border-bottom: none;
}

.burger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center; gap: 5px;
  padding: 0;
}
.burger span { height: 2px; background: var(--gold); width: 24px; }

@media (max-width: 768px) {
  .burger { display: flex; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column; align-items: stretch;
    padding: 14px 24px 18px; gap: 12px;
    border-top: 1px solid rgba(201,168,76,0.15);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; font-size: 15px; }
  .site-nav .nav-cta { text-align: center; }
}

/* ── Hero (homepage — full-bleed photo) ─────────────────────── */
.hero {
  background-image: url('https://images.unsplash.com/photo-1544161515-4ab6ce6db874?w=1600&q=80');
  background-size: cover;
  background-position: center 40%;
  background-color: var(--navy-deep);
  color: var(--warm-white);
  padding: 100px 24px 108px;
  position: relative; overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,25,50,0.72) 0%, rgba(14,25,50,0.82) 100%);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero .lotus {
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  display: block;
  opacity: 0.92;
}
.hero h1 {
  color: var(--warm-white);
  max-width: 760px;
  margin: 0 auto 18px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero .tagline {
  color: rgba(255,255,255,0.80);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.hero .cta-row {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
}
@media (max-width: 480px) {
  .hero { padding: 72px 20px 80px; }
  .hero .cta-row { flex-direction: column; align-items: stretch; max-width: 280px; margin: 0 auto; }
}

/* ── Page hero (inner pages — shorter photo banner) ─────────── */
.page-hero {
  background-size: cover;
  background-position: center;
  background-color: var(--navy-deep);
  position: relative; overflow: hidden;
  padding: 72px 24px 64px;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(14, 25, 50, 0.70);
  z-index: 0;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.page-hero h1 { color: var(--warm-white); margin: 0 auto 12px; max-width: 640px; }
.page-hero p  { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto; font-size: 17px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  min-height: 50px;
  line-height: 1.2;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--warm-white);
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--warm-white);
  color: var(--warm-white);
}
.btn-navy {
  background: var(--navy);
  color: var(--warm-white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--gold);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ── Sections ───────────────────────────────────────────────── */
.section { padding: 80px 24px; }
.section.tight { padding: 52px 24px; }
.section .inner { max-width: 1100px; margin: 0 auto; }
.section.alt { background: var(--warm-white); }
.section.dark {
  background: var(--navy-deep);
  color: var(--warm-white);
}
.section.dark h2 { color: var(--warm-white); }
.section.dark p  { color: rgba(255,255,255,0.75); }

.section-head { text-align: center; margin-bottom: 52px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); max-width: 560px; margin: 8px auto 0; font-size: 17px; line-height: 1.6; }

/* ── Feature cards ──────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; gap: 16px; } }
@media (min-width: 481px) and (max-width: 880px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }

.feature {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  border-top: 3px solid var(--gold);
  padding: 32px 28px;
  text-align: left;
  transition: transform .2s, box-shadow .2s;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(20,38,74,0.10);
}
.feature .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  border-radius: 50%;
  font-size: 22px;
  margin-bottom: 20px;
}
.feature h3 { margin-bottom: 10px; font-size: 19px; }
.feature p  { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.65; }

/* ── Proof bar ──────────────────────────────────────────────── */
.proof-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 32px 24px;
  text-align: center;
}
.proof-bar .row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px 52px;
  max-width: 980px; margin: 0 auto;
  font-size: 14px; letter-spacing: 0.02em;
}
.proof-bar .row span { display: inline-flex; align-items: center; gap: 8px; }
.proof-bar .row .dot { color: var(--gold); font-size: 8px; }

/* ── Therapist teaser (homepage) ────────────────────────────── */
.therapist-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
@media (max-width: 760px) { .therapist-teaser { grid-template-columns: 1fr; } }
@media (min-width: 481px) and (max-width: 760px) { .therapist-teaser { grid-template-columns: repeat(2, 1fr); } }

.therapist-card-sm {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.therapist-card-sm:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(20,38,74,0.09);
}
.therapist-card-sm .avatar {
  width: 88px; height: 88px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  margin: 0 auto 14px; display: block;
}
.therapist-card-sm .initials-sm {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px; font-weight: 500;
  margin: 0 auto 14px;
  border: 2px solid var(--gold);
}
.therapist-card-sm h4 { margin: 0 0 4px; font-size: 16px; }
.therapist-card-sm .spec {
  color: var(--muted); font-size: 13px; margin-bottom: 16px; min-height: 18px;
}

/* ── CTA banner ─────────────────────────────────────────────── */
.cta-banner {
  background: var(--navy);
  padding: 72px 24px;
  text-align: center;
}
.cta-banner h2 {
  color: var(--warm-white);
  margin-bottom: 10px;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}
.cta-banner p {
  color: rgba(255,255,255,0.68);
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 17px;
}
.cta-banner .cta-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
@media (max-width: 480px) {
  .cta-banner .cta-row { flex-direction: column; align-items: stretch; max-width: 280px; margin: 0 auto; }
}

/* ── Treatments page ────────────────────────────────────────── */
.cat-block { margin-bottom: 52px; }
.cat-block h2 {
  font-size: 26px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.treatment-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.treatment {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 22px 24px;
  align-items: center;
  transition: box-shadow .15s;
}
.treatment:hover { box-shadow: 0 4px 16px rgba(20,38,74,0.08); }
.treatment .name { font-weight: 600; font-size: 17px; color: var(--navy); }
.treatment .meta { color: var(--gold); font-size: 13px; font-weight: 600; margin-top: 4px; letter-spacing: 0.04em; }
.treatment .desc { color: #555; font-size: 14px; margin-top: 8px; line-height: 1.5; }
.treatment .price-col { text-align: right; flex-shrink: 0; }
.treatment .price { font-family: 'Playfair Display', Georgia, serif; font-size: 24px; color: var(--navy); font-weight: 500; }
.treatment .book-btn { margin-top: 10px; }
@media (max-width: 640px) {
  .treatment { grid-template-columns: 1fr; }
  .treatment .price-col { text-align: left; }
}

/* ── Therapists page ────────────────────────────────────────── */
.therapist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 760px) { .therapist-grid { grid-template-columns: 1fr; } }

.therapist {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 28px 28px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.therapist:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(20,38,74,0.11);
}
.therapist img.photo {
  width: 140px; height: 140px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  margin: 0 auto 20px; display: block;
  box-shadow: 0 4px 16px rgba(201,168,76,0.25);
}
.therapist .initials {
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px; font-weight: 500;
  margin: 0 auto 20px;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 16px rgba(201,168,76,0.20);
}
.therapist h3 { margin-bottom: 4px; font-size: 22px; }
.therapist .role {
  color: var(--gold); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 700; margin-bottom: 10px;
}
.therapist .specialisms {
  color: var(--muted); font-size: 14px; margin-bottom: 8px;
  min-height: 20px; line-height: 1.5;
}
.therapist .experience {
  font-size: 13px; color: var(--muted); margin-bottom: 22px;
}
.therapist .experience strong { color: var(--navy); }

/* ── About / contact ────────────────────────────────────────── */
.two-col {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.two-col img { width: 100%; border-radius: 10px; display: block; box-shadow: 0 8px 28px rgba(20,38,74,0.10); }

.values-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-top: 8px;
}
@media (max-width: 600px) { .values-grid { grid-template-columns: 1fr; } }
.value-item {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
}
.value-item .v-icon { font-size: 22px; margin-bottom: 8px; }
.value-item h4 { font-size: 15px; margin: 0 0 6px; }
.value-item p { font-size: 14px; color: var(--muted); margin: 0; }

.contact-info {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
}
.contact-info dl { margin: 0; }
.contact-info dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
  margin-top: 22px;
}
.contact-info dt:first-of-type { margin-top: 0; }
.contact-info dd { margin: 0; color: #333; font-size: 15px; line-height: 1.6; }
.contact-info a { color: var(--navy); border-bottom: 1px dotted var(--navy); }
.contact-info a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.map-frame {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  height: 380px;
  box-shadow: 0 4px 16px rgba(20,38,74,0.08);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 60px 24px 28px;
  font-size: 14px;
}
.site-footer .inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
}
@media (max-width: 760px) {
  .site-footer .inner { grid-template-columns: 1fr; gap: 28px; }
}
.site-footer h4 {
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 14px;
}
.site-footer p { color: rgba(255,255,255,0.65); margin: 0 0 6px; line-height: 1.6; }
.site-footer a { color: rgba(255,255,255,0.72); display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--gold); }
.site-footer .bottom {
  max-width: 1100px; margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}
.site-footer .bottom a { display: inline; color: rgba(201,168,76,0.7); }

/* ── Loading + empty states ─────────────────────────────────── */
.loading {
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
  font-size: 15px;
}
.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
}

/* ── Utility ────────────────────────────────────────────────── */
.center { text-align: center; }
.muted  { color: var(--muted); }
.mt-3   { margin-top: 24px; }
.mt-4   { margin-top: 36px; }
.mt-5   { margin-top: 48px; }

/* iOS form zoom prevention */
input, select, textarea, button { font-size: 16px; }
