/* --- Root Variables --- */
:root {
    --primary: #0A192F; /* Deep Navy */
    --navy-deep: #020c1b; /* Background Navy */
    --gold: #B39359; /* Brand Gold */
    --white: #FFFFFF;
    --bg-light: #F8F9FA;
    --text-slate: #8892B0; /* Muted Text */
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* --- Reset & Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Critical for mobile */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--primary);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Layout Containers --- */
.nav-container, .footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background: var(--bg-light);
}

/* --- Grid System --- */
.responsive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.grid-2-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* --- Navigation --- */
.navbar {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    text-decoration: none;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.3rem;
}

    .logo span {
        color: var(--gold);
        display: block;
        font-size: 0.65rem;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

    .nav-link:hover {
        color: var(--gold);
    }

/* --- Components --- */
.hero {
    padding: 100px 0;
    background: radial-gradient(circle at top right, #fdfbf7, #ffffff);
}

.eyebrow {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 15px;
}

.card {
    background: white;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
}

    .card i {
        font-size: 2rem;
        color: var(--gold);
        margin-bottom: 20px;
        display: block;
    }

/* --- FOOTER SECTION (The Fix) --- */
.site-footer {
    background: var(--navy-deep);
    color: var(--white);
    padding: 80px 0 0;
    overflow: hidden;
}

/* Main footer layout - 4 columns on web */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    width: 100%;
}

.footer-column h4 {
    color: var(--gold);
    margin-bottom: 25px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Fix for the Services split list */
.footer-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns inside the service col */
    gap: 20px;
}

.footer-links a {
    display: block;
    color: var(--text-slate);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.85rem;
    transition: var(--transition);
}

    .footer-links a:hover {
        color: var(--white);
        padding-left: 5px;
    }

.service-category {
    color: var(--gold);
    font-size: 0.7rem;
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
    opacity: 0.8;
}

.contact-info p {
    color: var(--text-slate);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

/* Newsletter Fix */
.footer-form .form-input-group {
    display: flex;
    margin-top: 15px;
    width: 100%;
}

.footer-form input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px;
    color: white;
    flex: 1;
    min-width: 0; /* Prevents input from pushing out */
}

.footer-form button {
    background: var(--gold);
    border: none;
    padding: 0 15px;
    color: var(--primary);
    cursor: pointer;
}

/* Bottom Bar */
.footer-bottom {
    margin-top: 60px;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #010812;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* --- Mobile Menu --- */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        height: 100vh;
        padding: 40px 5%;
        transition: 0.4s;
        z-index: 999;
    }

        .nav-menu.active {
            left: 0;
        }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }

    .hero {
        text-align: center;
    }

        .hero h1 {
            font-size: 2.2rem;
        }

    /* Fix Footer Overflows on Mobile */
    .footer-grid {
        grid-template-columns: 1fr; /* Single column stack */
        gap: 30px;
    }

    .footer-services-grid {
        grid-template-columns: 1fr; /* Stack the two service lists */
    }

    .footer-column {
        margin-left: 0 !important; /* Forces removal of any inline margins */
        width: 100% !important;
    }

    .bottom-flex {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}
/* Section & Container Basics */
.section-padding {
    padding: 100px 0;
}

.bg-light {
    background: #f8fafc;
}

/* Hero Styles */
.hero {
    padding: 180px 0 120px;
    background: radial-gradient(circle at top right, #0a192f, #020c1b);
    color: white;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

/* Card Styling */
.card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    height: 100%;
    border: 1px solid #f1f5f9;
}

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }
    .nav-btn {
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
    text-align: center;
}
/* Button Styling */
.nav-btn {
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 650;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    background: var(--gold);
    color: var(--primary);
}

    .nav-btn:hover {
        background: white;
        color: var(--primary);
    }

/* Grid System */
.responsive-grid {
    display: grid;
    gap: 30px;
}

.grid-2-col {
    grid-template-columns: 1fr 1fr;
}

.grid-3-col {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
    .grid-2-col, .grid-3-col {
        grid-template-columns: 1fr;
    }

    .hero {
        text-align: center;
    }

        .hero div {
            justify-content: center !important;
        }
}