/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 80px;
    position: relative;
}

.logo {
    position: absolute;
    top: 0;
    left: 0;
    /* Reset from -2rem to be safe on mobile */
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 900;
    /* decreased to be below menu */
}

/* ... middle content same ... */

.nav-menu.active {
    /* Reverted right:0 only */
    right: 0;
}

.logo span {
    color: var(--primary-color);
}

.logo img {
    height: 250px;
    width: auto;
    object-fit: contain;
    margin-top: -85px;
    /* Moved down half a step (-95px -> -85px) */
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 700;
    /* Bold as requested */
    color: var(--text-dark);
    font-size: 1.1rem;
    /* Increased size */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Mobile Toggle */
/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: var(--secondary-color);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    z-index: 1001;
    position: relative;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    line-height: 1.2;
    min-width: 80px;
    /* Ensure visible width */
    text-align: center;
}

.mobile-toggle.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .mobile-toggle {
        display: inline-block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        /* Precise header height */
        left: 0;
        width: 100%;
        height: auto;
        /* Allow content to dictate height, or 100vh */
        min-height: 50vh;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem 0;

        /* Waterfall Slide Logic */
        transform: translateY(-150%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);

        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        z-index: 990;
        /* Just below toggle button */
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        visibility: hidden;
        /* Hide when closed to prevent clicks */
    }

    .nav-menu.active {
        transform: translateY(0);
        visibility: visible;
    }

    .nav-links {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        width: 100%;
        opacity: 0;
        transition: opacity 0.3s ease 0.2s;
    }

    .nav-menu.active .nav-links {
        opacity: 1;
    }

    .nav-links a {
        font-size: 1.25rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    display: block;
    /* Removed flex since we are doing custom positioning */
    background-color: var(--secondary-color);
    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark Navy/Black gradient for premium feel */
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.4));
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    /* Increased z-index significantly to be above overlay */
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    /* Reduced from 3.5rem to prevent overwhelming the screen */
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.25;
}

/* Mobile Hero text */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
        /* Smaller for mobile */
    }

    .hero p {
        font-size: 1rem;
    }
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Improve readability against video */
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--gray-200);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}