:root {
    --primary-blue: #002366;   /* Midnight Blue */
    --accent-steel: #4A6D8C;   /* Steel Blue */
    --paper-bg: #F5F7FA;       /* Off-White */
    --text-dark: #1A202C;      /* Charcoal */
    --text-light: #FFFFFF;
    --border-color: #E2E8F0;

    /* Institutional bronze/gold accents */
    --accent-gold: #B08D57;    /* Muted bronze */
    --border-gold: rgba(176, 141, 87, 0.35);
}

/* --- GLOBAL RESET & TYPOGRAPHY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--paper-bg);
}

h1, h2, h3, h4,
.nav-link, .btn-nav, .btn-primary, .btn-secondary {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* --- NAVIGATION --- */
nav {
    background-color: #fff;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 110px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.logo-img {
    height: 110px;
    width: auto;
    display: block;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.25s ease;
}

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

.nav-link.active {
    color: var(--accent-steel);
    position: relative;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: var(--accent-steel);
    opacity: 0.8;
}

.btn-nav {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 2px;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    white-space: nowrap;
}

/* --- HERO SECTION --- */
.hero {
    background-color: var(--primary-blue);
    color: white;
    padding: 8rem 5% 6rem;
    position: relative;
    overflow: hidden;

    display: grid;
    grid-template-columns: 1.65fr 0.35fr;
    align-items: center;
    gap: 4rem;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-small {
    padding: 6rem 5% 4rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-steel);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 2px;
    font-weight: 600;
    transition: background 0.25s ease;
}

.btn-primary:hover {
    background-color: #5d81a3;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary-blue);
    padding: 0.9rem 2rem;
    text-decoration: none;
    border-radius: 2px;
    border: 1px solid rgba(0,35,102,0.35);
    font-weight: 600;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.btn-secondary:hover {
    background: rgba(0,35,102,0.06);
    border-color: rgba(0,35,102,0.55);
}

/* --- HERO VIDEO (optional) --- */
.hero-video {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-left: 2px solid rgba(255,255,255,0.15);
    z-index: 2;

    justify-self: end;
    align-self: center;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) brightness(0.9);
}

.hero-video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,35,102,0.15),
        rgba(0,35,102,0.45)
    );
    pointer-events: none;
}

/* --- HERO STATIC IMAGE (critical fix) --- */
/* Make the static image behave like the video: bounded width + bounded height */
/* === HERO IMAGE: DESKTOP (CROSS-BROWSER SAFE) === */
.hero-image-container {
  width: 280px;
  height: 320px;
  max-width: 280px;
  max-height: 320px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  border-left: 2px solid rgba(255,255,255,0.15);
  padding-left: 2rem;
  justify-self: end;
  align-self: center;
  border-left: 2px solid rgba(255,255,255,0.15);
  border-radius: 8px;
}

.hero-static-img {
  width: 100%;
  height: 100%;
  object-fit: contain;          /* <-- fully visible */
  object-position: center;
  display: block;
  background: rgba(255,255,255,0.06); /* optional: avoids “empty” edges looking accidental */
  border-radius: 6px;
}

/* --- SECTION LAYOUT --- */
.section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    color: var(--accent-steel);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

/* Two-column content blocks */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #4a5568;
}

.section-alt {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.bg-white {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* --- SERVICES GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--paper-bg);
    padding: 2.5rem;
    border-left: 4px solid var(--accent-steel);
    transition: transform 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    color: #4a5568;
}

/* --- FOUNDER BIO --- */
.founder-section {
    background-color: var(--primary-blue);
    color: white;
}

.founder-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.founder-text h2 {
    color: white;
}

.stat-grid {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat h4 {
    font-size: 2.5rem;
    color: var(--accent-steel);
    margin-bottom: 0.5rem;
}

.stat span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* Founder LinkedIn */
.founder-linkedin {
    margin-top: 2rem;
}

.founder-linkedin a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
}

.founder-linkedin a:hover {
    color: var(--accent-steel);
}

.founder-linkedin img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.founder-linkedin a:hover img {
    opacity: 1;
}

/* --- FOOTER --- */
footer {
    background-color: #1A202C;
    color: #A0AEC0;
    padding: 4rem 5%;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.disclaimer {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #2D3748;
    color: rgba(160, 174, 192, 0.9);
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    line-height: 1.6;
}

.disclaimer p {
    margin: 0;
}

.copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #2D3748;
    text-align: center;
    font-size: 0.8rem;
}

/* =========================================================
   RESPONSIVE — IMPORTANT: sequence first, then compact hero
   ========================================================= */

/* 1) At <= 900px: force sequential flow (no side-by-side columns).
      This fixes the misaligned two-column content on mobile devices. */
@media (max-width: 900px) {

    /* NAV: wrap into two rows, menu visible */
    nav {
        height: auto;
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .logo-container { order: 1; }
    .btn-nav { order: 2; }

    .logo-img { height: 54px; }

    .nav-links {
        display: flex;
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        padding-bottom: 0.25rem;
    }

    .nav-link {
        font-size: 0.8rem;
        letter-spacing: 0.06em;
    }

    /* KEY FIX: all content grids become a single column */
    .intro-grid,
    .founder-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        align-items: start !important;
    }

    /* ensure right-side boxes stretch full width */
    .intro-visual {
        width: 100%;
    }

    .intro-visual > div {
        width: 100%;
    }
}

/* 2) At <= 768px: collapse hero to one column and constrain media blocks */
@media (max-width: 768px) {

    .hero {
        grid-template-columns: 1fr;
        padding: 5rem 5% 3.5rem;
        gap: 1.5rem;
    }

    .hero h1 { font-size: 2.5rem; }
    .hero-content { max-width: 100%; }

    /* video becomes landscape */
    .hero-video {
        max-width: 100%;
        aspect-ratio: 16 / 9;
        margin-top: 1.75rem;
        border-left: none;
        border-top: 2px solid rgba(255,255,255,0.15);
        justify-self: stretch;
    }

    /* static image becomes compact and never dominates */
    .hero-image-container {
        max-width: 100%;
        max-height: 220px;
        border-left: none;
        border-top: 2px solid rgba(255,255,255,0.15);
        padding-left: 0;
        padding-top: 1.25rem;
        justify-self: stretch;
    }

    .hero-static-img {
        max-height: 200px;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}