/* ==========================================================================
   IMD AGENCY - STANDARD HEADER FIX
   Absolute Standard Layout: Logo Left | Menu Right
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --c-ink: #0f172a;
    --c-accent: #d94e00;
    /* Orange */
    --c-slate: #64748b;
    --c-border: #e2e8f0;
    --font-main: 'Manrope', sans-serif;
    --font-head: 'Space Grotesk', sans-serif;
    --h-header: 80px;
    /* Standard height */
}

/* BASE */
body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--c-ink);
    background-color: transparent;
    line-height: 1.6;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
    height: 100%;
    /* Needed for header alignment */
}

section {
    padding: 5rem 0;
    position: relative;
}

/* MAIN CONTENT - Offset for fixed header */
main,
.main-content {
    padding-top: var(--h-header);
    /* Push content below fixed header */
}

/* HEADER - STANDARD LAYOUT */
.site-header {
    height: var(--h-header);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--c-border);
    z-index: 10000;
    /* display: flex REMOVED - header is a block container wrapper */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    /* CRITICAL: Pushes Logo Left, Menu Right */
    align-items: center;
    height: 100%;
    /* Fill header height */
    width: 100%;
}

.logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-ink);
    display: flex;
    align-items: center;
    letter-spacing: -0.02em;
    white-space: nowrap;
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--c-ink);
    white-space: nowrap;
}

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

.btn {
    padding: 0.6rem 1.25rem;
    background: var(--c-accent);
    color: white;
    font-weight: 700;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: var(--font-head);
    white-space: nowrap;
    margin-left: 2rem;
}

.btn:hover {
    background: #b34000;
    transform: translateY(-1px);
}

/* TYPOGRAPHY */
h1 {
    font-family: var(--font-head);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h2 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--c-ink);
}

h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.1rem;
    color: var(--c-slate);
    margin-bottom: 1.5rem;
    /* Removed max-width: 65ch - text should fill container */
}

.text-accent {
    color: var(--c-accent);
}

/* HERO */
.hero {
    padding-top: 4rem;
    /* Reduced since main already has header offset */
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* STATS */
.hero-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 1rem;
}

.stat-big {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--c-accent);
    display: block;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-lbl {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--c-slate);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* LOGOS */
.logos-section {
    background: rgba(255, 255, 255, 0.6);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    padding: 3rem 0;
    backdrop-filter: blur(5px);
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.logo-box {
    font-weight: 700;
    color: #94a3b8;
    font-size: 1.1rem;
    text-transform: uppercase;
    padding: 1rem;
    border: 1px dashed var(--c-border);
    border-radius: 6px;
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    font-family: var(--font-head);
}

/* SERVICES */
.services-section {
    background: transparent;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.module-card {
    background: #fff;
    border: 1px solid var(--c-border);
    padding: 2rem;
    border-radius: 8px;
    transition: 0.3s;
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: var(--c-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.mod-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--c-accent);
}

/* FOOTER */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--c-border);
    padding: 5rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer h4 {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer a {
    color: var(--c-slate);
    font-size: 0.95rem;
}

.footer a:hover {
    color: var(--c-accent);
}

/* MOBILE */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

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

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
    margin: 2rem 0;
    width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}