/* ==========================================================================
   BASE — Reset, Typography, Global Styles
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Prevent layout shift/browser bar reveal - Reverted to prevent jump */
/* body.nav-open { ... } removed */


img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
    color: var(--accent-gold-light);
}

a:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* ── Typography ───────────────────────────────────────────────────────────── */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: var(--lh-heading);
    color: var(--text-primary);
}

h1 {
    font-family: var(--font-display);
    font-size: var(--fs-h1);
    letter-spacing: var(--ls-tight);
}

h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 600;
    letter-spacing: var(--ls-normal);
}

h3 {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: 600;
}

h4 {
    font-family: var(--font-body);
    font-size: var(--fs-h4);
    font-weight: 500;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
}

p {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

p:last-child {
    margin-bottom: 0;
}

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

/* ── Section Label ────────────────────────────────────────────────────────── */

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-body);
    font-size: var(--fs-label);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--accent-gold);
    margin-bottom: var(--space-md);
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--accent-gold);
}

/* ── Section Title ────────────────────────────────────────────────────────── */

.section-title {
    margin-bottom: var(--space-lg);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    margin-top: var(--space-md);
}

/* ── Layout Container ─────────────────────────────────────────────────────── */

.container {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container--narrow {
    max-width: var(--content-narrow);
}

/* ── Section Base ─────────────────────────────────────────────────────────── */

.section {
    padding: var(--section-pad) 0;
    position: relative;
}

.section--alt {
    background-color: var(--bg-secondary);
}

.section--dark {
    background-color: var(--bg-tertiary);
}

/* ── Gold Separator ───────────────────────────────────────────────────────── */

.section-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--accent-gold) 20%,
            var(--accent-gold) 80%,
            transparent);
    opacity: 0.3;
}

/* ── Reveal Animation Base ────────────────────────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ── Selection ────────────────────────────────────────────────────────────── */

::selection {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

/* ── Scrollbar ────────────────────────────────────────────────────────────── */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* ── Screen Reader Only ───────────────────────────────────────────────────── */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}