@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');

/* Shared design tokens — The Singer Center brand */
:root {
  /* Brand palette */
  --brand-slate: #3e404c;        /* primary brand mark color */
  --brand-teal:  #1e698d;        /* primary brand accent */
  --brand-cream: #fbf8f5;        /* light surface variant */

  /* Surfaces — slate-leaning dark theme */
  --bg-primary:   #14161c;       /* deep slate-black */
  --bg-secondary: #1c1f28;       /* card surface */
  --bg-tertiary:  #262a35;       /* elevated surface / chips */
  --bg-hover:     #2d3240;
  --border-color: #2f3340;
  --border-subtle: #242833;

  /* Text */
  --text-primary:   #f1eee8;     /* warm cream-tinted off-white */
  --text-secondary: #a4a8b3;
  --text-muted:     #6b6f7a;

  /* Accent (brand teal) */
  --accent:       #2f86b0;       /* slightly brighter than #1e698d for dark-bg legibility */
  --accent-hover: #3fa0cd;
  --accent-deep:  #1e698d;       /* the canonical brand teal */
  --accent-dim:   rgba(47, 134, 176, 0.16);

  /* Status */
  --success: #4cc38a;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-md: 0 4px 12px rgba(0,0,0,.5);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.6);
  --transition: 150ms ease;
  font-size: 16px;
}

/* ===== Light theme ===== */
/* Applied when: (a) system is light and no explicit override, or (b) data-theme="light" is set. */
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) {
    --bg-primary:   #f7f4f0;
    --bg-secondary: #ffffff;
    --bg-tertiary:  #ede9e4;
    --bg-hover:     #e5e0da;
    --border-color: #ccc7c0;
    --border-subtle: #dcd8d2;
    --text-primary:   #1a1917;
    --text-secondary: #56545f;
    --text-muted:     #96939e;
    --accent:       #1e698d;
    --accent-hover: #2780a8;
    --accent-dim:   rgba(30, 105, 141, 0.12);
    --shadow-md: 0 4px 12px rgba(0,0,0,.10);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.15);
  }
  html:not([data-theme="dark"]) .site-header {
    background: rgba(247, 244, 240, 0.92);
  }
}
html[data-theme="light"] {
  --bg-primary:   #f7f4f0;
  --bg-secondary: #ffffff;
  --bg-tertiary:  #ede9e4;
  --bg-hover:     #e5e0da;
  --border-color: #ccc7c0;
  --border-subtle: #dcd8d2;
  --text-primary:   #1a1917;
  --text-secondary: #56545f;
  --text-muted:     #96939e;
  --accent:       #1e698d;
  --accent-hover: #2780a8;
  --accent-dim:   rgba(30, 105, 141, 0.12);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.15);
}
html[data-theme="light"] .site-header { background: rgba(247, 244, 240, 0.92); }

/* Theme toggle button */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--border-color);
  color: var(--text-secondary); cursor: pointer; flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.theme-toggle:hover { background: var(--bg-tertiary); color: var(--text-primary); }
/* Menu-drawer copy only exists for mobile (see @media 820px below) — the
   header-bar copy above covers desktop, where there's no drawer at all. */
.theme-toggle-menu { display: none; }

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
button { cursor: pointer; font-family: inherit; font-size: 1rem; border: none; }

img { max-width: 100%; display: block; }

/* ===== Site header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 22, 28, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand {
  font-weight: 700; font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  width: 38px; height: 38px;
  background: var(--brand-cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 4px;
  flex-shrink: 0;
}
.brand-mark img, .brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text {
  display: flex; flex-direction: row; align-items: baseline; gap: 0.35em;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 300;
  white-space: nowrap;
}
.brand-text .b-the  { font-size: 1.0625rem; color: var(--brand-teal); letter-spacing: 0.12em; font-weight: 300; }
.brand-text .b-name { font-size: 1.0625rem; color: var(--brand-teal); letter-spacing: 0.08em; font-weight: 300; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  color: var(--text-secondary); font-size: 0.9375rem; font-weight: 500;
}
.site-nav a:hover, .site-nav a.active { color: var(--text-primary); }

/* Always-visible header CTA (Book Now). Stays in the bar at all sizes. */
.header-cta { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.header-cta + .site-nav { margin-left: 24px; }

/* ===== Mobile nav toggle (hamburger) ===== */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 70;
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center; justify-content: center;
  padding: 0;
  transition: all var(--transition);
  color: var(--text-primary);
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle .nav-toggle-bars { position: relative; width: 18px; height: 14px; display: block; }
.nav-toggle .nav-toggle-bars::before,
.nav-toggle .nav-toggle-bars::after,
.nav-toggle .nav-toggle-bars span {
  content: ''; position: absolute; left: 0; right: 0;
  height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), top var(--transition);
}
.nav-toggle .nav-toggle-bars::before { top: 0; }
.nav-toggle .nav-toggle-bars span    { top: 6px; display: block; }
.nav-toggle .nav-toggle-bars::after  { top: 12px; }
.nav-toggle.is-open .nav-toggle-bars::before { top: 6px; transform: rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bars::after  { top: 6px; transform: rotate(-45deg); }
.nav-toggle.is-open .nav-toggle-bars span    { opacity: 0; }

/* Backdrop shown when menu open */
.nav-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 49;
  opacity: 0;
  transition: opacity var(--transition);
}
.nav-backdrop.is-open { opacity: 1; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-size: 0.9375rem; font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--brand-cream); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover { background: var(--bg-tertiary); border-color: #444; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ===== Layout ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
.eyebrow {
  display: inline-block; color: var(--accent);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 16px;
}
.lead {
  font-size: 1.125rem; color: var(--text-secondary);
  max-width: 640px; line-height: 1.65;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
  margin-top: 64px;
}
.site-footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; flex-wrap: wrap; gap: 32px;
  justify-content: space-between; align-items: center;
}
.site-footer .muted { color: var(--text-muted); font-size: 0.875rem; }
.site-footer-links { display: flex; gap: 24px; }
.site-footer-links a { color: var(--text-secondary); font-size: 0.875rem; }

/* ===== Cards ===== */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition);
}
.card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }

  /* The header bar is tight on mobile (wordmark + CTA + hamburger) — move
     theme toggling into the drawer menu instead of also cramming an icon
     button into the bar. */
  .theme-toggle:not(.theme-toggle-menu) { display: none; }

  /* Tight mobile budget: logo stays full-size (it shouldn't look small),
     "The" stays visible, and the CTA/hamburger never shrink (they're the
     tap targets) — so the wordmark text is what's sized down to make
     everything fit. If it's still tight on the narrowest phones,
     flex-shrink+min-width:0 here lets the wordmark give a little rather
     than pushing the hamburger past the edge again. */
  .site-header-inner { gap: 8px; }
  .brand { gap: 6px; flex-shrink: 1; min-width: 0; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-text .b-the { font-size: 0.75rem; }
  .brand-text .b-name { font-size: 0.75rem; }

  /* Header CTA stays in the bar; sit left of the hamburger, compact */
  .header-cta { margin-left: auto; gap: 8px; }
  .header-cta .btn { padding: 7px 12px; font-size: 0.75rem; }
  .header-cta + .site-nav { margin-left: 0; }

  .site-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 86vw);
    height: 100vh; height: 100dvh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-subtle);
    box-shadow: -8px 0 32px rgba(0,0,0,0.4);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 88px 24px 32px;
    z-index: 60;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
  }
  .site-nav.is-open { transform: translateX(0); }

  .site-nav a {
    font-size: 1.0625rem;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav a.active { color: var(--accent); }

  /* Buttons inside the drawer become full-width pills, separated from text links */
  .site-nav a.btn {
    margin-top: 16px;
    width: 100%;
    border-radius: var(--radius-sm);
    border-bottom: none;
    padding: 14px 22px;
    font-size: 1rem;
    justify-content: center;
  }
  .site-nav a.btn + a.btn { margin-top: 10px; }
  .site-nav a.btn-secondary { color: var(--text-primary); }

  /* Theme toggle — icon only, no label needed */
  .theme-toggle-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    align-self: center;
    margin-top: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-primary);
  }
  .theme-toggle-menu:hover { background: var(--bg-tertiary); color: var(--accent); }

  .nav-backdrop.is-open { display: block; }

  .section { padding: 64px 0; }
  .site-header-inner, .container { padding-left: 20px; padding-right: 20px; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 720px) {
  .site-footer-links { gap: 14px 20px; flex-wrap: wrap; }
}
