/* ============================================================
   Thai Room — shared stylesheet
   Common chrome shared across all pages (nav, footer, buttons,
   base typography, palette tokens). Page-specific component CSS
   stays in each page's inline <style> block.
   ============================================================ */

/* ── Self-hosted fonts (latin + latin-ext), replaces render-blocking Google Fonts.
   Variable woff2 files; font-display: swap. Weight ranges mirror prior usage
   (DM Sans 300–500, Playfair Display 400–500 normal + italic). ── */
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url('fonts/dm-sans-normal-latin-ext-f62989.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: 'DM Sans'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url('fonts/dm-sans-normal-latin-151a53.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: 'Playfair Display'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url('fonts/playfair-display-normal-latin-ext-f556cd.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: 'Playfair Display'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url('fonts/playfair-display-normal-latin-9deeae.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: 'Playfair Display'; font-style: italic; font-weight: 400 500; font-display: swap;
  src: url('fonts/playfair-display-italic-latin-ext-a9bc00.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: 'Playfair Display'; font-style: italic; font-weight: 400 500; font-display: swap;
  src: url('fonts/playfair-display-italic-latin-ef5ca8.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;
}

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

:root {
  /* PALETTE: Flow O'Clock — dark surfaces */
  --bg-deep:     #1C1510;
  --bg-mid:      #2C3D2C;
  --bg-card:     #271D16;
  --bg-card2:    #2F241B;
  --bg-section:  #150F0A;
  /* light surfaces */
  --surface-light:  #EFE5D4;
  --surface-light2: #F7F1E8;
  /* secondary (warm tan) */
  --sage:        #B89B72;
  --sage-light:  #D8C3A4;
  --sage-dim:    #6E5B43;
  /* text on dark */
  --cream:       #ECE4D6;
  --cream-dim:   #CBBBA2;
  --cream-muted: #998A72;
  /* text on light */
  --ink:         #2A211A;
  --ink-muted:   #6E5C49;
  /* accent (terracotta) */
  --gold:        #C0531D;
  --accent:      #C0531D;
  --accent-2:    #9E3F12;
  --on-accent:   #FBF3EA;
  /* borders */
  --border:      rgba(205,191,164,0.16);
  --border-hover:rgba(205,191,164,0.34);
  --border-ink:  rgba(42,33,26,0.14);
  /* fonts */
  --font-display:'Playfair Display', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 68px;
  background: color-mix(in srgb, var(--surface-light2) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--border-ink);
  transition: background 0.3s;
  gap: 1.75rem;
}
#nav.scrolled { background: color-mix(in srgb, var(--surface-light2) 97%, transparent); }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.nav-logo span { font-family: var(--font-display); font-size: 20px; font-weight: 400; color: var(--ink); letter-spacing: 0.04em; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink-muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { border: 1px solid var(--accent) !important; color: var(--accent) !important; padding: 8px 22px; border-radius: 999px; transition: background 0.2s !important; }
.nav-cta:hover { background: color-mix(in srgb, var(--accent) 12%, transparent) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.lang-toggle { background: none; border: 1px solid var(--accent); color: var(--accent); padding: 6px 14px; border-radius: 999px; font-size: 12px; letter-spacing: 0.08em; font-weight: 600; cursor: pointer; transition: background 0.2s; font-family: inherit; line-height: 1; }
.lang-toggle:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* ── SECTION PRIMITIVES ── */
section { position: relative; z-index: 1; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 3rem; }
.section-eyebrow { font-size: 16px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 400; display: flex; align-items: center; gap: 12px; }
.section-eyebrow::before { content: ''; display: inline-block; width: 28px; height: 0.5px; background: var(--gold); }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; color: var(--cream); line-height: 1.15; margin-bottom: 1.5rem; }
.section-title em { font-style: italic; color: var(--accent); }

/* ── BUTTONS ── */
.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--on-accent); padding: 14px 32px; border-radius: 999px; text-decoration: none; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; transition: background 0.25s, transform 0.2s; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-wa { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--cream-dim); padding: 14px 24px; border-radius: 999px; text-decoration: none; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; border: 0.5px solid var(--border-hover); transition: border-color 0.25s, color 0.25s; }
.btn-wa:hover { border-color: var(--sage-dim); color: var(--sage-light); }
.section-light .btn-wa { color: var(--ink-muted); border-color: var(--border-ink); }
.section-light .btn-wa:hover { color: var(--accent); border-color: var(--accent); }
.btn-wa svg, .btn-primary svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── FOOTER ── */
footer { border-top: 0.5px solid var(--border); padding: 2.5rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: 12px; color: var(--cream-muted); }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { font-size: 12px; color: var(--cream-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--sage); }

/* ── WA FLOAT ── */
.wa-float { position: fixed; bottom: 2rem; right: 2rem; z-index: 200; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 4px 20px rgba(37,211,102,0.35); transition: transform 0.2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

.nav-links a.active { color: var(--accent); }

/* ── LIGHT SECTION (colour-blocking utility) ── */
.section-light { background: var(--surface-light); }
.section-light .section-title { color: var(--ink); }
.section-light .section-title em { color: var(--accent); }
.section-light .section-eyebrow { color: var(--accent); }
.section-light p { color: var(--ink-muted); }

/* ── ACCENT CTA BAND ── */
.cta-band { background: var(--accent); padding: 6rem 0; text-align: center; }
.cta-title { font-family: var(--font-display); font-size: clamp(2rem,4.5vw,3.4rem); font-weight: 500; line-height: 1.12; color: var(--on-accent); margin-bottom: 1rem; }
.cta-title em { font-style: italic; color: var(--on-accent); opacity: 0.8; }
.cta-sub { font-size: 18px; color: var(--on-accent); opacity: 0.82; margin: 0 auto 2rem; max-width: 520px; }
.btn-cta { display: inline-flex; align-items: center; gap: 10px; background: var(--on-accent); color: var(--accent); padding: 15px 36px; border-radius: 999px; text-decoration: none; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; transition: transform 0.2s, opacity 0.2s; }
.btn-cta:hover { transform: translateY(-1px); opacity: 0.92; }

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── COOKIE CONSENT BANNER ── */
.consent-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 300; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem; padding: 1.1rem 1.5rem; background: color-mix(in srgb, var(--surface-light2) 97%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 0.5px solid var(--border-ink); box-shadow: 0 -4px 24px rgba(42,33,26,0.10); }
.consent-text { font-size: 13px; line-height: 1.55; color: var(--ink-muted); max-width: 640px; margin: 0; }
.consent-text a { color: var(--accent); text-decoration: underline; }
.consent-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.consent-accept, .consent-reject { font-family: inherit; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; padding: 9px 22px; border-radius: 999px; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.consent-accept { background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); }
.consent-accept:hover { background: var(--accent-2); border-color: var(--accent-2); }
.consent-reject { background: none; color: var(--ink-muted); border: 1px solid var(--border-ink); }
.consent-reject:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 600px) { .consent-banner { justify-content: flex-start; } .consent-actions { width: 100%; } .consent-accept, .consent-reject { flex: 1; } }
