/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */
:root {
    /* Brand Palette */
    --color-brand-red: #b20000;
    --color-brand-blue: #000daf;
    --color-brand-dark: #3d3d3d;

    /* Derived Colors */
    --color-bg: #ffffff;
    --color-bg-alt: #f8f7f5;
    --color-dark: #3d3d3d;
    --color-dark-soft: #4a4a4a;
    --color-accent: #b20000;
    --color-accent-warm: #000daf;
    --color-text: #3d3d3d;
    --color-text-soft: #5a5a5a;
    --color-text-muted: #888888;
    --color-border: rgba(0, 13, 175, 0.1);
    --color-success: #10b981;

    /* Typography */
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Fluid Typography */
    --text-xs: clamp(0.7rem, 0.65rem + 0.2vw, 0.8rem);
    --text-sm: clamp(0.8rem, 0.75rem + 0.2vw, 0.9rem);
    --text-base: clamp(0.9rem, 0.85rem + 0.3vw, 1.1rem);
    --text-lg: clamp(1rem, 0.95rem + 0.3vw, 1.25rem);
    --text-xl: clamp(1.1rem, 1rem + 0.5vw, 1.5rem);
    --text-2xl: clamp(1.3rem, 1.1rem + 1vw, 2rem);
    --text-3xl: clamp(1.6rem, 1.3rem + 1.5vw, 2.5rem);
    --text-4xl: clamp(1.8rem, 1.5rem + 1.5vw, 3rem);
    --text-display: clamp(2.5rem, 2rem + 2vw, 4rem);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 5rem;
    --space-4xl: 8rem;

    /* Animation Curves */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

a {
    color: inherit;
    text-decoration: none;
}

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

/* ========================================
   UTILITIES
   ======================================== */
.container {
    width: 100%;
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.full-height {
    min-height: 100vh;
    min-height: 100dvh;
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* Mobile content offset for fixed header */
@media (max-width: 768px) {
    main {
        padding-top: calc(70px + var(--space-lg));
    }
}
.stagger-4 { transition-delay: 0.4s; }

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: var(--space-3xl) var(--space-lg);
    background: var(--color-brand-dark);
    color: var(--color-bg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    max-width: 90rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    opacity: 0.7;
}

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

.footer-title {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-bg);
}

.footer-bottom {
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        justify-content: center;
    }
}

.footer-copyright {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    opacity: 0.6;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--color-brand-blue);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    color: var(--color-bg);
}

/* ========================================
   TYPOGRAPHY UTILITIES
   ======================================== */
.text-display { font-family: var(--font-display); font-size: var(--text-display); font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: var(--color-brand-blue); }
.text-h1 { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 600; line-height: 0.95; letter-spacing: -0.02em; color: var(--color-brand-blue); }
.text-h2 { font-family: var(--font-serif); font-size: var(--text-3xl); font-weight: 400; font-style: italic; line-height: 1.1; color: var(--color-brand-blue); }
.text-h3 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; color: var(--color-brand-blue); }
.text-body { font-family: var(--font-body); font-size: var(--text-base); font-weight: 400; line-height: 1.7; color: var(--color-text-soft); }
.text-caption { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-text-muted); }

/* Mobile Typography */
@media (max-width: 640px) {
    .text-display { font-size: 2.5rem; line-height: 1; }
    .text-h1 { font-size: 1.8rem; line-height: 1.1; }
    .text-h2 { font-size: 1.6rem; line-height: 1.2; }
}
