/* ============================================
   BRAND THREADER — SHARED STYLES
   ============================================ */

/* ---- Variables ---- */
:root {
    --accent: #0070B0;
    --accent-light: rgba(0, 112, 176, 0.08);
    --burgundy: #2D0A14;
    --gold: #FBB203;
    --gold-glow: rgba(251, 178, 3, 0.3);
    --body-text: #333333;
    --muted: #666666;
    --light-muted: #999999;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --border: rgba(0, 0, 0, 0.08);
    --border-medium: rgba(0, 0, 0, 0.12);
    --card-bg: #2D0A14;
    --card-text: #F5F5F5;
    --card-muted: #AAAAAA;
    --transition-fast: 0.15s ease;
    --transition-medium: 0.25s ease;
    --transition-slow: 0.5s ease;
    --max-width: 1140px;
    --section-padding: 120px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--body-text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    line-height: 1.25;
    color: var(--burgundy);
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--burgundy); }
img { max-width: 100%; height: auto; }

/* ---- Utility ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-padding) 0; }

.section-label {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.section-headline {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 16px;
}

.section-sub {
    font-size: 18px;
    color: var(--muted);
    max-width: 600px;
    line-height: 1.6;
}

/* ---- Buttons ---- */
.btn-gold {
    display: inline-block;
    padding: 16px 36px;
    background: var(--gold);
    color: var(--burgundy);
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-medium);
}

.btn-gold:hover {
    transform: scale(1.03);
    box-shadow: 0 0 24px var(--gold-glow);
    color: var(--burgundy);
}

.btn-outline {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: var(--burgundy);
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid var(--burgundy);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-outline:hover {
    background: var(--burgundy);
    color: var(--white);
}

/* ---- Scroll reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible { 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; }

/* ============================================
   NAV
   ============================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid rgba(0, 0, 0, 0);
    transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

/* Subpages start scrolled */
.nav.solid {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto; width: 100%;
    display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex; align-items: center; gap: 32px; list-style: none;
}

.nav-links a {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px; font-weight: 500;
    color: var(--burgundy);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color var(--transition-fast);
    position: relative;
}

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

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.nav-links .nav-cta {
    padding: 10px 24px;
    background: var(--gold);
    color: var(--burgundy);
    border-radius: 5px;
    font-weight: 600;
    transition: transform var(--transition-fast), box-shadow var(--transition-medium);
}

.nav-links .nav-cta:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px var(--gold-glow);
    color: var(--burgundy);
}

.nav-links .nav-cta.active::after { display: none; }

/* Mobile nav */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--burgundy);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 48px 24px;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    font-family: Georgia, serif;
    font-size: 28px;
    color: var(--burgundy);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child { border-bottom: none; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--burgundy);
    color: var(--card-muted);
    padding: 72px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo img {
    height: 32px;
    width: auto;
    margin-bottom: 16px;
    /* Invert to white for dark bg */
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 15px;
    color: var(--card-muted);
    line-height: 1.6;
    max-width: 320px;
}

.footer-tagline {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 16px;
    color: var(--card-text);
    margin-bottom: 8px;
}

.footer-col h4 {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--card-text);
    margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }

.footer-col a {
    font-size: 14px;
    color: var(--card-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-col a:hover { color: var(--card-text); }

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   PAGE HEADER (subpages)
   ============================================ */
.page-header {
    padding-top: 140px;
    padding-bottom: 64px;
    text-align: center;
}

.page-header .section-label { margin-bottom: 16px; }

.page-header h1 {
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 16px;
}

.page-header .section-sub {
    margin: 0 auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    :root { --section-padding: 80px; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .page-header { padding-top: 120px; }
}
