/* ===== CSS RESET & VARIABLES ===== */
:root {
    --navy: #0a192f;
    --gold: #c5a059;
    --bg-light: #f8f9fa;
    --text-dark: #333333;
    --text-grey: #555555;
    --white: #ffffff;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Offset scroll target to account for sticky header */
section[id] {
    scroll-margin-top: 100px; 
}

/* ===== ACCESSIBILITY: FOCUS STATES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

h3, h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.bg-navy { background-color: var(--navy); }
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--white); }
.text-white { color: var(--white); }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.max-w-700 { max-width: 700px; margin: 0 auto 2rem auto; }
.underline { text-decoration: underline; }

/* ===== HEADER ===== */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* UPDATED: Logo Link and Image Styles */
.logo-link {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 60px; /* Adjust this value if the logo looks too big/small */
    width: auto;
    display: block;
}

.main-nav a {
    margin-left: 2rem;
    font-weight: 600;
    color: var(--text-grey);
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--navy);
}

.nav-cta {
    background-color: var(--navy);
    color: var(--white) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
}
.nav-cta:hover { background-color: var(--gold); color: var(--navy) !important; }

/* ===== HERO SECTION ===== */
.hero {
    background-image: linear-gradient(to right, rgba(10, 25, 47, 0.95) 40%, rgba(10, 25, 47, 0.6)), url('images/webpage_image1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 8rem 0;
    color: var(--white);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero h1 {
    color: var(--white);
}

.sub-headline {
    font-size: 1.25rem;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
}

.hero-image-wrapper {
    flex-shrink: 0;
}

.headshot {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--navy);
}

.btn-primary:hover {
    background-color: #b08d4a;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--navy);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
}

/* ===== THE GAP SECTION ===== */
.lead {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    background-color: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
}

.gap-conclusion {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== THE SOLUTION SECTION ===== */
.section-subtext {
    color: var(--text-grey);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    text-align: center;
}

.solution-layout {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.solution-image {
    flex: 1;
}

.solution-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cards-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background-color: var(--bg-light);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--navy);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ===== HOW WE WORK SECTION ===== */
.process-list {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    background-color: var(--white);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--gold);
}

.process-step h4 {
    color: var(--navy);
}

/* ===== TRACK RECORD ===== */
.track-record-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.tr-item strong {
    display: block;
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.tr-item span {
    color: var(--text-grey);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== GATED CONTENT ===== */
.border-top {
    border-top: 1px solid #eeeeee;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    max-width: 600px;
    margin: 3rem auto 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.2);
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    margin-left: 1.5rem;
    color: var(--text-grey);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

/* ===== DATA SOURCE FOOTNOTE ===== */
.data-source {
    font-size: 0.85rem;
    color: #8892b0;
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.data-source a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.data-source a:hover {
    color: var(--white);
}

.data-source em {
    color: var(--gold);
    font-style: normal;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }
    
    .solution-layout {
        flex-direction: column;
    }
    
    .card:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
        gap: 1rem;
    }

    /* UPDATED: Make logo smaller on mobile */
    .header-logo {
        height: 45px;
    }
    
    .main-nav a {
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }

    /* UPDATED: Better spacing for mobile nav links */
    .main-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px; 
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links a {
        margin: 0 1rem;
    }

    /* UPDATED: Larger scroll offset for taller mobile header */
    section[id] {
        scroll-margin-top: 180px; 
    }
}