:root {
    /* Colors - Corporate/Industrial Theme */
    --color-primary: #111111;
    /* Near Black */
    --color-primary-light: #1e293b;
    --color-accent: #DC2626;
    /* Industrial Red */
    --color-accent-hover: #b91c1c;
    --color-bg: #F5F5F4;
    /* Warm Off-White */
    --color-surface: #ffffff;
    --color-text-main: #334155;
    --color-text-heading: #111111;
    --color-border: #e2e8f0;

    /* Typography */
    /* Importing in header.php */
    --font-heading: 'Anton', sans-serif;
    --font-body: 'Manrope', sans-serif;

    --scale-base: 1rem;
    --scale-lg: 1.25rem;
    --scale-xl: 1.5rem;
    --scale-2xl: 2.25rem;
    --scale-3xl: 3rem;
    --scale-4xl: 4.5rem;
    --scale-5xl: 6rem;

    /* Spacing */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 1.5rem;
    /* 24px */
    --spacing-lg: 2rem;
    /* 32px */
    --spacing-xl: 3rem;
    /* 48px */
    --spacing-2xl: 4rem;
    /* 64px */
    --spacing-3xl: 6rem;
    /* 96px */

    /* UI */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --container-width: 1280px;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-heading);
    line-height: 1.1;
    font-weight: 400;
    /* Anton is naturally bold */
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

h1 {
    font-size: var(--scale-4xl);
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: var(--scale-3xl);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: var(--scale-2xl);
    margin-bottom: var(--spacing-sm);
}

h4 {
    font-size: var(--scale-xl);
    margin-bottom: var(--spacing-sm);
}

@media (min-width: 768px) {
    h1 {
        font-size: var(--scale-5xl);
    }
}

/* Dark Mode Heading Override */
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4 {
    color: white !important;
}

/* Premium Textures */
.bg-dark {
    background-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-12 {
    grid-template-columns: repeat(1, 1fr);
}

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

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-12 {
        grid-template-columns: repeat(12, 1fr);
    }

    .col-span-12 {
        grid-column: span 12;
    }

    .col-span-7 {
        grid-column: span 7;
    }

    .col-span-5 {
        grid-column: span 5;
    }

    .col-span-4 {
        grid-column: span 4;
    }

    .mobile-only {
        display: none !important;
    }
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-weight: 700;
    font-family: var(--font-body);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 1rem;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-surface);
}

.btn-outline-white {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    background: transparent;
}

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

.card {
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    padding: var(--spacing-lg);
    border: 1px solid rgba(17, 17, 17, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Header */
.site-header {
    background: transparent;
    padding: var(--spacing-md) 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease;
}

/* Footer Single Row Layout */
.footer-row {
    display: flex;
    flex-direction: column;
    gap: 48px;
    justify-content: space-between;
}

@media (min-width: 1024px) {
    .footer-row {
        flex-direction: row;
        align-items: flex-start;
    }

    .footer-col-brand {
        flex: 0 0 350px;
    }

    .footer-col-links {
        display: flex;
        gap: 64px;
    }
}

/* Ensure Nav Links are White in Dark Header */
.bg-dark .nav-link,
.site-header .nav-link {
    color: white;
    /* Default to white for dark headers like Investors page */
}

/* Logo Text Visibility Fix */
.logo {
    color: white !important;
    /* Force logo text (NORTHSTAR) to be white always */
}

.logo span {
    color: var(--color-accent) !important;
}

.site-header.scrolled {
    background: rgba(245, 245, 244, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.logo span {
    color: var(--color-accent);
}

.nav-links {
    display: none;
    /* Mobile first hidden */
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        align-items: center;
        gap: var(--spacing-lg);
    }
}

.nav-link {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

/* Utilities */
.text-accent {
    color: var(--color-accent);
}

.text-white {
    color: white;
}

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

.bg-white {
    background-color: var(--color-surface);
}

.clip-slant {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    padding-bottom: 6rem;
}

.gradient-text {
    background: linear-gradient(to right, var(--color-primary), #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}