:root {
    /* Color Palette - Deep Nature & Premium Swiss */
    --primary: #1b3022;
    /* British Racing Green / Deep Forest */
    --primary-light: #2c4a35;
    --secondary: #d4a373;
    /* Warm Gold / Earth Tones */
    --accent: #bc6c25;
    /* Rich Terracotta */
    --bg-creme: #fefae0;
    /* Soft Paper / Nature White */
    --bg-dark: #121212;
    --white: #ffffff;
    --text-main: #283618;
    /* Dark Moss */
    --text-muted: #606c38;

    /* System Tokens */
    --glass: rgba(255, 255, 255, 0.95);
    --glass-blur: blur(20px);
    --glass-dark: rgba(27, 48, 34, 0.95);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 20px;
    --container-max: 1440px;
    --nav-height: 100px;
    --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography Overhaul */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.text-gold {
    color: var(--secondary);
}

.text-white {
    color: var(--white);
}

/* Layout Components */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

/* Premium Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
    background: transparent;
}

/* On subpages we want the header to be visible immediately */
body.subpage .header {
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    height: 80px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    height: 80px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-mark {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--primary);
    color: var(--white);
    padding: 10px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo-type {
    display: flex;
    flex-direction: column;
}

.logo-type .top {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--secondary);
    font-weight: 700;
}

.logo-type .bottom {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.navbar {
    display: flex;
    gap: 35px;
    list-style: none;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    margin-right: -10px;
    transition: var(--transition);
}

body.home .header:not(.scrolled) .mobile-toggle {
    color: var(--white);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    text-decoration: none;
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ensure links are white on index-hero when not scrolled */
body.home .header:not(.scrolled) .nav-link {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.home .header:not(.scrolled) .logo-type .bottom {
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(27, 48, 34, 0.2);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Generic Section Styles */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-tag {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 20px;
}

/* UI Elements - Overlays */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Overhaul */
.site-footer {
    background: var(--primary);
    color: var(--white);
    padding: 100px 0 40px;
    border-radius: 60px 60px 0 0;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand p {
    margin-top: 25px;
    opacity: 0.7;
    max-width: 300px;
}

.footer-title {
    color: var(--secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.6;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .container {
        padding: 0 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 80px;
    }

    .mobile-toggle {
        display: block;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 30px;
    }

    .navbar.open {
        right: 0;
    }

    .nav-link {
        color: var(--primary) !important;
        font-size: 1.5rem;
    }

    /* Fixed Overlap for small mobiles */
    @media (max-width: 480px) {
        .logo-type .top {
            display: none;
        }

        .logo-link {
            gap: 8px;
        }

        .btn-primary {
            padding: 12px 20px;
            font-size: 0.85rem;
        }

        .logo-mark {
            padding: 6px;
            border-radius: 8px;
        }
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 2.4rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    .section {
        padding: 60px 0;
    }
}