/* ============================================================
   Genesis x Sonesta — Document Design System v3
   Matches index.html v3 design: cream backgrounds, gold accents,
   Cormorant Garamond + Inter typography
   ============================================================ */

:root {
  --gold: #C5A258;
  --gold-light: #D4B876;
  --gold-dark: #B8973E;
  --dark: #1A1A2E;
  --darker: #0F0F1A;
  --cream: #FAF8F5;
  --warm-white: #F5F0EB;
  --text: #2C2C3A;
  --text-light: #6B6B7B;
  --accent: #8B6F47;
  --sonesta-blue: #003B5C;
  --sonesta-gold: #C5A258;
  --teal: #2A8B8B;
  --warm-red: #C14533;
  --navy: #1B2A4A;
  --medium-gray: #A2AAAD;
  --sidebar-w: 280px;
  --toolbar-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.8;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  padding: 0;
}

/* ============ LAYOUT ============ */
.doc-layout {
  display: flex;
  min-height: 100vh;
}

/* ============ SIDEBAR (Dark nav — matches v3 navbar) ============ */
.doc-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(197, 162, 88, 0.15);
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.doc-sidebar .sidebar-header {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(197, 162, 88, 0.15);
}

.doc-sidebar .sidebar-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  display: block;
  margin-bottom: 0.25rem;
}

.doc-sidebar .sidebar-brand span {
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  font-size: 0.85rem;
  display: inline;
  letter-spacing: 0.5px;
  text-transform: none;
  margin-left: 6px;
}

.doc-sidebar .sidebar-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  margin-top: 0.75rem;
  transition: color 0.2s;
}

.doc-sidebar .sidebar-back:hover { color: var(--gold); }

.doc-sidebar .sidebar-nav {
  flex: 1;
  padding: 0.75rem 0;
  overflow-y: auto;
}

.doc-sidebar .sidebar-nav a {
  display: block;
  padding: 0.55rem 1.25rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.4;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.doc-sidebar .sidebar-nav a:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(197,162,88,0.06);
  border-left-color: rgba(197,162,88,0.3);
}

.doc-sidebar .sidebar-nav a.active {
  color: var(--gold);
  background: rgba(197,162,88,0.1);
  border-left-color: var(--gold);
  font-weight: 600;
}

.doc-sidebar .sidebar-section {
  padding: 1rem 1.25rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  border-top: 1px solid rgba(197, 162, 88, 0.12);
  margin-top: 0.5rem;
}

.doc-sidebar .sidebar-nav > .sidebar-section:first-child {
  border-top: none;
  margin-top: 0;
}

/* ============ TOOLBAR ============ */
.doc-toolbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--toolbar-h);
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(197, 162, 88, 0.2);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2.5rem;
  z-index: 90;
  gap: 1rem;
}

.doc-toolbar .toolbar-title {
  flex: 1;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
}

.doc-toolbar button {
  background: transparent;
  border: 1px solid rgba(197, 162, 88, 0.25);
  color: rgba(255,255,255,0.6);
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.doc-toolbar button:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(197,162,88,0.1);
}

.doc-toolbar .btn-download {
  background: rgba(197,162,88,0.15);
  border-color: rgba(197,162,88,0.35);
  color: var(--gold);
}

.doc-toolbar .btn-download:hover {
  background: var(--gold);
  color: var(--darker);
}

/* ============ MOBILE HAMBURGER ============ */
.doc-hamburger {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  background: var(--dark);
  border: 1px solid rgba(197, 162, 88, 0.25);
  color: var(--gold);
  width: 42px;
  height: 42px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
}

.doc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

/* ============ MAIN CONTENT (LIGHT THEME) ============ */
.doc-main {
  margin-left: var(--sidebar-w);
  padding-top: var(--toolbar-h);
  flex: 1;
  min-width: 0;
  background: var(--cream);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 4rem 5rem 5rem;
  min-height: calc(100vh - var(--toolbar-h));
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.back-link { display: none; }

/* ============ DOCUMENT HEADER ============ */
.doc-header-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.doc-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ============ TYPOGRAPHY — v3 DESIGN ============ */
h1 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--dark);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 3px solid var(--gold);
  line-height: 1.2;
}

h2 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--dark);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  margin: 3rem 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  line-height: 1.25;
}

h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--dark);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  line-height: 1.3;
}

h2 + h3,
hr + h3 {
  border-top: none;
  padding-top: 0;
  margin-top: 1.5rem;
}

h4 {
  font-family: 'Inter', sans-serif;
  color: var(--sonesta-blue);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--gold);
  line-height: 1.4;
}

h5 {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
  letter-spacing: 0.3px;
}

p {
  margin: 1rem 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
}

ul, ol { margin: 1rem 0 1rem 2rem; }
li {
  margin: 0.6rem 0;
  line-height: 1.75;
  font-size: 0.95rem;
  color: var(--text);
}

strong { color: var(--dark); font-weight: 600; }
em { color: var(--text); }

a { color: var(--sonesta-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

hr {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin: 2.5rem 0;
}

/* ============ SECTION LABELS (v3 pattern) ============ */
.section-label {
  font-size: 0.78rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

/* ============ TABLES — CLEAN, READABLE ============ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}

thead, tbody, tr { display: table; width: 100%; table-layout: fixed; }

th {
  background: var(--dark);
  color: var(--gold);
  padding: 0.85rem 1.1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,0.08);
}

td {
  padding: 0.8rem 1.1rem;
  border: 1px solid rgba(0,0,0,0.06);
  color: var(--text);
  line-height: 1.6;
}

tr:nth-child(even) td { background: var(--cream); }
tr:hover td { background: var(--warm-white); }

/* ============ BLOCKQUOTES & CALLOUTS ============ */
blockquote {
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.75rem;
  margin: 1.75rem 0;
  background: var(--warm-white);
  border-radius: 0 2px 2px 0;
  color: var(--text);
  font-style: italic;
  line-height: 1.7;
}

blockquote p { color: var(--text); margin: 0.5rem 0; }
blockquote strong { color: var(--dark); }

.callout {
  background: var(--warm-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 4px solid var(--gold);
  border-radius: 0 2px 2px 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.callout-title {
  font-weight: 700;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.callout p {
  margin: 0.5rem 0;
  color: var(--text);
}

/* Key Insight boxes (3-part structure from v3) */
.key-insight {
  background: var(--warm-white);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 2px 2px 0;
}

.key-insight-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.key-insight-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.key-insight p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0.25rem 0;
}

.key-insight-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-top: 0.5rem;
}

/* ============ METRIC CARDS ============ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 2rem 0;
}

.metric-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 2px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height 0.3s ease;
}

.metric-card:hover::before { height: 100%; }
.metric-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.metric-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1.1;
  margin-bottom: 6px;
}

.metric-label {
  font-size: 0.82rem;
  color: var(--text-light);
  letter-spacing: 0.3px;
}

/* ============ STAT ROW (inline) ============ */
.stat-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 2rem 0;
  margin: 2rem 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.stat-item { text-align: center; }

.stat-item .stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.stat-item .stat-label {
  font-size: 0.78rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

/* ============ FEATURE CARDS ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin: 2rem 0;
}

.feature-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 2px;
  padding: 36px;
  transition: all 0.3s ease;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height 0.3s ease;
}

.feature-card:hover::before { height: 100%; }
.feature-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--sonesta-blue);
  margin: 0 0 12px;
  padding: 0;
  border: none;
  letter-spacing: 0.3px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============ DARK HIGHLIGHT SECTIONS (FIFA pattern) ============ */
.highlight-section {
  background: linear-gradient(135deg, #003B5C 0%, #00527F 100%);
  border-radius: 2px;
  padding: 48px;
  margin: 2.5rem 0;
  color: white;
}

.highlight-section h3 {
  color: white;
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}

.highlight-section p { color: rgba(255,255,255,0.85); }

.highlight-section .metric-value { color: var(--gold); }
.highlight-section .metric-label { color: rgba(255,255,255,0.65); }

/* ============ TIMELINE ============ */
.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(197,162,88,0.2));
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid white;
}

.timeline-phase {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.timeline-item h4 {
  border: none;
  padding: 0;
  margin: 0 0 8px;
  color: var(--dark);
  font-size: 1.05rem;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* ============ PROGRESS BARS ============ */
.progress-bar-container {
  margin: 1rem 0;
}

.progress-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--text);
}

.progress-bar-track {
  height: 8px;
  background: rgba(0,0,0,0.06);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 4px;
  transition: width 1.5s ease;
}

/* ============ COMPARISON TABLE (enhanced) ============ */
.comparison-table th:first-child { width: 35%; }

.comparison-table .score-high { color: var(--teal); font-weight: 700; }
.comparison-table .score-mid { color: var(--gold-dark); font-weight: 600; }
.comparison-table .score-low { color: var(--warm-red); font-weight: 600; }

/* ============ CHART CONTAINER ============ */
.chart-container {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 2px;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
}

.chart-container canvas {
  max-height: 400px;
}

.chart-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* ============ PAGE HERO (Dark header per document — matches v3 standalone pages) ============ */
.page-hero {
  background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 55%, #0d1e2e 100%);
  padding: 3.5rem 4rem 3rem;
  position: relative;
  overflow: hidden;
  margin: -4rem -5rem 3rem;
  width: calc(100% + 10rem);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(197,162,88,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(0,59,92,0.25) 0%, transparent 50%);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}

.page-hero * { position: relative; z-index: 1; }

.page-hero .hero-label {
  font-size: 0.75rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 600;
}

.page-hero h1 {
  color: white;
  border-bottom: none;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  margin-bottom: 0.5rem;
  padding-bottom: 0;
}

.page-hero .hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  line-height: 1.7;
  max-width: 700px;
}

.page-hero .hero-meta {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-top: 1rem;
}

.page-hero .hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(197,162,88,0.15);
}

.page-hero .hero-stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
}

.page-hero .hero-stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

/* ============ DARK SECTIONS (alternating like v3 index) ============ */
.section-dark {
  background: var(--dark);
  color: white;
  padding: 3rem 4rem;
  margin: 2.5rem -5rem;
  width: calc(100% + 10rem);
}

.section-dark h2 {
  color: white;
  border-bottom-color: rgba(197,162,88,0.2);
}

.section-dark h3 {
  color: rgba(255,255,255,0.95);
  border-top-color: rgba(197,162,88,0.15);
}

.section-dark h4 {
  color: var(--gold-light);
}

.section-dark p {
  color: rgba(255,255,255,0.7);
}

.section-dark li {
  color: rgba(255,255,255,0.7);
}

.section-dark strong { color: white; }

.section-dark table th {
  background: rgba(197,162,88,0.15);
  color: var(--gold);
  border-color: rgba(197,162,88,0.15);
}

.section-dark table td {
  border-color: rgba(197,162,88,0.1);
  color: rgba(255,255,255,0.75);
}

.section-dark table tr:nth-child(even) td {
  background: rgba(255,255,255,0.03);
}

.section-dark table tr:hover td {
  background: rgba(197,162,88,0.06);
}

.section-dark .callout,
.section-dark .key-insight {
  background: rgba(197,162,88,0.06);
  border-color: rgba(197,162,88,0.2);
}

.section-dark .callout p,
.section-dark .key-insight p {
  color: rgba(255,255,255,0.75);
}

.section-dark .key-insight-title { color: white; }

/* ============ DARK CARDS (tech assessment, practices — from v3) ============ */
.dark-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 2rem 0;
}

.dark-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(197,162,88,0.15);
  border-radius: 2px;
  padding: 32px;
  transition: all 0.3s ease;
}

.dark-card:hover {
  border-color: var(--gold);
  background: rgba(197,162,88,0.06);
}

.dark-card-label {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 600;
}

.dark-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: white;
  margin: 0 0 10px;
  padding: 0;
  border: none;
  font-weight: 500;
}

.dark-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.dark-card.highlight {
  border-color: rgba(197,162,88,0.5);
  background: rgba(197,162,88,0.08);
}

.dark-card.highlight h3 {
  color: var(--gold);
}

/* ============ SONESTA BLUE SECTION (FIFA pattern from v3) ============ */
.sonesta-blue-section {
  background: linear-gradient(135deg, #003B5C 0%, #00527F 100%);
  border-radius: 2px;
  padding: 48px;
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  color: white;
}

.sonesta-blue-section h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: white;
  margin: 0 0 12px;
  padding: 0;
  border: none;
}

.sonesta-blue-section p {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.sonesta-blue-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sonesta-blue-stat {
  text-align: center;
  padding: 20px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}

.sonesta-blue-stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 700;
}

.sonesta-blue-stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ============ GOLD CALLOUT (centered banner from v3) ============ */
.gold-callout {
  background: linear-gradient(135deg, rgba(197,162,88,0.12), rgba(197,162,88,0.06));
  border: 1px solid rgba(197,162,88,0.3);
  border-left: 4px solid var(--gold);
  border-radius: 2px;
  padding: 28px 32px;
  margin: 2rem 0;
  text-align: center;
}

.gold-callout p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--dark);
  font-weight: 500;
  line-height: 1.5;
}

.gold-callout strong { color: var(--gold); }

/* ============ DARK CALLOUT (for dark sections) ============ */
.dark-callout {
  background: rgba(197,162,88,0.08);
  border: 1px solid rgba(197,162,88,0.25);
  border-radius: 2px;
  padding: 24px 32px;
  text-align: center;
  margin: 1.5rem 0;
}

.dark-callout p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.dark-callout strong { color: var(--gold); }

/* ============ URGENT BANNER (deadline alerts from v3) ============ */
.urgent-banner {
  background: linear-gradient(135deg, rgba(192,57,43,0.12), rgba(192,57,43,0.06));
  border: 1px solid rgba(192,57,43,0.3);
  border-left: 4px solid #C0392B;
  border-radius: 2px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.urgent-banner p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

.urgent-banner strong { color: #C0392B; }

/* ============ BENEFIT DEADLINE BADGE ============ */
.deadline-badge {
  display: inline-block;
  background: #C0392B;
  color: white;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 2px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ============ INTERACTIVE ELEMENTS ============ */

/* Slider / Range Input (for what-if calculators) */
.range-input {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(0,0,0,0.08);
  border-radius: 3px;
  outline: none;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(197,162,88,0.4);
}

/* Tab Controls */
.tab-controls {
  display: flex;
  gap: 0;
  border-bottom: 2px solid rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s;
  letter-spacing: 0.3px;
}

.tab-btn:hover { color: var(--text); }

.tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  font-weight: 600;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============ CHART THEMES (Chart.js custom colors) ============ */
.chart-container.dark-chart {
  background: var(--dark);
  border-color: rgba(197,162,88,0.15);
}

.chart-container.dark-chart .chart-title {
  color: white;
}

/* ============ MAP CONTAINER (Leaflet) ============ */
.map-container {
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  margin: 2rem 0;
}

.map-container .leaflet-container {
  height: 450px;
  width: 100%;
}

/* ============ COUNTDOWN TIMER ============ */
.countdown-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.countdown-unit { text-align: center; min-width: 80px; }

.countdown-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.countdown-unit-label {
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 8px;
}

/* ============ FOOTER ============ */
.doc-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 1px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .doc-sidebar {
    transform: translateX(-100%);
  }
  .doc-sidebar.open {
    transform: translateX(0);
  }
  .doc-hamburger {
    display: flex;
  }
  .doc-overlay.open {
    display: block;
  }
  .doc-main {
    margin-left: 0;
  }
  .doc-toolbar {
    left: 0;
    padding-left: 60px;
  }
  .container {
    padding: 2.5rem 2rem;
  }
  .page-hero {
    margin: -2.5rem -2rem 2rem;
    width: calc(100% + 4rem);
    padding: 2.5rem 2rem 2rem;
  }
  .section-dark {
    margin: 2rem -2rem;
    width: calc(100% + 4rem);
    padding: 2.5rem 2rem;
  }
  .stat-row {
    flex-wrap: wrap;
    gap: 24px;
  }
  .highlight-section {
    padding: 32px 24px;
  }
  .sonesta-blue-section {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 2rem 1.5rem;
  }
  .page-hero {
    margin: -2rem -1.5rem 2rem;
    width: calc(100% + 3rem);
    padding: 2rem 1.5rem;
  }
  .page-hero .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  .section-dark {
    margin: 2rem -1.5rem;
    width: calc(100% + 3rem);
    padding: 2rem 1.5rem;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .cards-grid, .dark-cards-grid {
    grid-template-columns: 1fr;
  }
  .stat-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .timeline { padding-left: 24px; }
  .timeline-item::before { left: -29px; }
  .sonesta-blue-stats {
    grid-template-columns: 1fr;
  }
  .map-container .leaflet-container {
    height: 300px;
  }
  .countdown-row { gap: 16px; }
  .countdown-number { font-size: 2.2rem; }
  .tab-controls { overflow-x: auto; }
}

@media (max-width: 480px) {
  .container { padding: 1.5rem 1rem; }
  .page-hero {
    margin: -1.5rem -1rem 1.5rem;
    width: calc(100% + 2rem);
    padding: 1.5rem 1rem;
  }
  .section-dark {
    margin: 1.5rem -1rem;
    width: calc(100% + 2rem);
    padding: 1.5rem 1rem;
  }
  .metrics-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.6rem; }
}

/* ============ PRINT STYLES ============ */
@media print {
  body {
    background: white;
    color: #1A1A2E;
    font-size: 11pt;
    line-height: 1.5;
    padding: 0;
  }

  .doc-sidebar,
  .doc-toolbar,
  .doc-hamburger,
  .doc-overlay,
  .no-print {
    display: none !important;
  }

  .doc-main {
    margin-left: 0;
    padding-top: 0;
  }

  .container {
    background: white;
    border: none;
    border-radius: 0;
    padding: 0;
    max-width: 100%;
    min-height: auto;
    box-shadow: none;
  }

  h1 {
    color: #1A1A2E;
    font-size: 22pt;
    border-bottom-color: #8B6F47;
    page-break-after: avoid;
  }

  h2 {
    color: #1A1A2E;
    font-size: 16pt;
    page-break-after: avoid;
    border-bottom-color: #ddd;
  }

  h3 {
    color: #1A1A2E;
    page-break-after: avoid;
    border-top-color: #ddd;
  }

  h4 {
    color: #333;
    page-break-after: avoid;
    border-left-color: #8B6F47;
  }

  p, li { color: #1A1A2E; }
  strong { color: #1A1A2E; }
  a { color: #003B5C; text-decoration: underline; }

  table {
    page-break-inside: avoid;
    font-size: 9pt;
  }
  thead { display: table-header-group; }
  tr { page-break-inside: avoid; }

  th {
    background: #003B5C !important;
    color: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  td { border-color: #ddd; }
  tr:nth-child(even) td { background: #f8f8f8 !important; }
  tr:hover td { background: inherit; }

  blockquote, .callout, .key-insight {
    background: #f9f7f3;
    border-left-color: #8B6F47;
    color: #333;
  }

  .page-hero {
    background: #003B5C !important;
    color: white !important;
    margin: 0;
    width: 100%;
    padding: 2rem;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .page-hero h1 { color: white !important; }
  .page-hero .hero-label { color: #B8973E !important; }
  .page-hero .hero-subtitle { color: rgba(255,255,255,0.8) !important; }
  .page-hero .hero-stat-value { color: #B8973E !important; }

  .section-dark {
    background: #f5f5f5 !important;
    color: #1A1A2E !important;
    margin: 0;
    width: 100%;
    padding: 1.5rem;
    page-break-inside: avoid;
  }

  .section-dark h2, .section-dark h3 { color: #1A1A2E !important; border-color: #ddd !important; }
  .section-dark h4 { color: #4a3f2e !important; }
  .section-dark p, .section-dark li { color: #333 !important; }
  .section-dark strong { color: #1A1A2E !important; }
  .section-dark table th { background: #003B5C !important; color: white !important; }
  .section-dark table td { color: #333 !important; border-color: #ddd !important; }

  .highlight-section, .sonesta-blue-section {
    background: #003B5C !important;
    color: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    page-break-inside: avoid;
  }

  .dark-card {
    background: #f5f5f5 !important;
    border-color: #ddd !important;
  }

  .dark-card h3 { color: #1A1A2E !important; }
  .dark-card p { color: #333 !important; }
  .dark-card-label { color: #8B6F47 !important; }

  .gold-callout, .dark-callout {
    page-break-inside: avoid;
  }

  .urgent-banner {
    page-break-inside: avoid;
    border-left-color: #C0392B !important;
  }

  .map-container, .tab-controls, .range-input,
  .countdown-row { display: none !important; }

  .metric-card, .feature-card {
    border: 1px solid #ddd;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .metric-value, .stat-value, .key-insight-value {
    color: #8B6F47;
  }

  .chart-container {
    page-break-inside: avoid;
  }

  ul, ol { page-break-inside: avoid; }

  .doc-footer {
    border-top-color: #ddd;
    color: #888;
  }
}

@page {
  size: letter;
  margin: 0.75in;
}
