/* =============================================
   THEME PARK STATS — Shared Stylesheet
   Palette: Navy / Gold / Off-White
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --navy:        #0f172a;
    --royal:       #1e293b;
    --gold:        #c5a059;
    --gold-light:  rgba(197,160,89,0.15);
    --slate:       #64748b;
    --off-white:   #f8fafc;
    --border:      #e2e8f0;
    --success:     #16a34a;
    --danger:      #dc2626;
    --highlight:   #fffbeb;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--navy);
    background: #ffffff;
}

/* ── SITE-WIDE NAVIGATION ── */
.site-nav {
    background: rgba(15,23,42,0.97);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(197,160,89,0.25);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.25rem;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.45rem 0.9rem;
    border-radius: 2px;
    transition: color 0.25s, background 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
    background: rgba(197,160,89,0.1);
}

/* ── PAGE HERO ── */
.page-hero {
    background: var(--navy);
    color: #fff;
    padding: 6rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(197,160,89,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 400;
    line-height: 1.2;
    max-width: 820px;
    margin: 0 auto 1.2rem;
}

.page-hero .hero-sub {
    color: #94a3b8;
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
    font-weight: 300;
}

/* ── LAYOUT ── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

section { margin-bottom: 5rem; }

/* ── SECTION HEADINGS ── */
h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

h2::before {
    content: '';
    width: 9px; height: 9px;
    background: var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

h2::after {
    content: '';
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(90deg, var(--gold), rgba(197,160,89,0.08));
}

h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--navy);
    margin: 2rem 0 0.75rem;
}

/* ── TABLES ── */
.table-wrap { overflow-x: auto; margin-top: 1.5rem; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

thead th {
    border-bottom: 2px solid var(--navy);
    padding: 0.9rem 1rem;
    text-align: left;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--navy);
}

tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

tbody tr:nth-child(even) td { background: var(--off-white); }
tbody tr:hover td { background: #f1f5f9; }

figcaption {
    font-size: 0.74rem;
    color: var(--slate);
    font-style: italic;
    margin-top: 0.9rem;
}

/* ── ANALYSIS CALLOUT ── */
.callout {
    background: #fdfcfa;
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: 3px;
    padding: 2rem 2.5rem;
    margin-top: 1.5rem;
}

.callout p { margin-bottom: 0.9rem; }
.callout p:last-child { margin-bottom: 0; }

/* ── STAT CARDS ── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--navy);
    color: #fff;
    padding: 2rem 1.5rem;
    border-radius: 4px;
    border-top: 3px solid var(--gold);
    text-align: center;
}

.stat-card .stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    font-weight: 600;
}

/* ── LOGO ── */
.logo-box {
    width: 46px; height: 46px;
    background: #fff;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    border-radius: 3px; overflow: hidden;
}

.logo-box img { width: 100%; height: 100%; object-fit: contain; }

/* ── UTILITY ── */
.pos  { color: var(--success); font-weight: 600; }
.neg  { color: var(--danger);  font-weight: 600; }
.bold { font-weight: 700; }
.muted { color: var(--slate); }
.text-gold { color: var(--gold); }

/* ── GLOSSARY ── */
.glossary-list { border-top: 1px solid var(--border); margin-top: 1.5rem; }
.glossary-list dt {
    font-weight: 600;
    color: var(--gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 1.8rem;
    cursor: pointer;
    display: flex; align-items: center; gap: 0.5rem;
}
.glossary-list dt::after { content: '＋'; font-size: 1rem; transition: transform 0.25s; }
.glossary-list dt.open::after { transform: rotate(45deg); }
.glossary-list dd {
    margin: 0.5rem 0 1.5rem;
    color: var(--slate);
    border-bottom: 1px dotted var(--border);
    padding-bottom: 1.2rem;
    display: none;
}

/* ── FOOTER ── */
.site-footer {
    background: var(--navy);
    color: #475569;
    padding: 4rem 2rem;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    border-top: 1px solid rgba(197,160,89,0.2);
}

.site-footer strong { color: var(--gold); }
.footer-links { margin-top: 1rem; display: flex; justify-content: center; gap: 2rem; }
.footer-links a { color: #64748b; text-decoration: none; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-links a:hover { color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-brand { font-size: 0.85rem; }
    .nav-links a { padding: 0.4rem 0.6rem; font-size: 0.65rem; }
    .container { padding: 3rem 1.25rem; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
}
