/* BASE RESET & TYPOGRAPHY */
:root {
    --color-dark: #0f172a; 
    --color-light: #ffffff;
    --color-accent: #1e40af; 
    --color-soft-bg: #f8fafc; 
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --max-width: 1200px;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-dark);
    line-height: 1.6;
    background-color: var(--color-light);
    scroll-behavior: smooth;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

h1 { 
    font-size: 3.5rem; 
    line-height: 1.1; 
    margin-bottom: 1.5rem;
    font-weight: 800;
}

h2 { 
    font-size: 2.25rem; 
    margin-bottom: 2rem; 
    text-align: center;
    font-weight: 700;
}

h3 { 
    font-size: 1.5rem; 
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* BUTTONS */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.cta-primary {
    background-color: var(--color-accent);
    color: var(--color-light);
    border: 2px solid var(--color-accent);
}

.cta-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.cta-primary:focus {
    outline: 3px solid rgba(30, 64, 175, 0.5);
    outline-offset: 2px;
}

.cta-secondary {
    background-color: transparent;
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
    margin-left: 1rem;
}

.cta-secondary:hover {
    background-color: var(--color-soft-bg);
    transform: translateY(-2px);
}

.cta-secondary:focus {
    outline: 3px solid rgba(15, 23, 42, 0.3);
    outline-offset: 2px;
}

/* HEADER */
header {
    background-color: var(--color-light);
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 500;
    margin-right: 2rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-links a:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 4px;
}

/* HERO */
#hero {
    background-color: var(--color-soft-bg);
    padding: 8rem 0;
    text-align: center;
}

#hero p.sub-headline {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: #475569;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.vetting-step {
    padding: 2.5rem;
    border-radius: 12px;
    background-color: var(--color-soft-bg);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vetting-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.vetting-step h3 { 
    color: var(--color-accent);
}

.weight { 
    font-weight: bold; 
    color: #64748b; 
    font-size: 0.875rem; 
    display: block; 
    margin-top: 1rem;
}

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

.service-card {
    padding: 3rem;
    background-color: var(--color-light);
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.15);
}

.service-card ul { 
    list-style: none; 
    margin-top: 1.5rem;
}

.service-card li { 
    margin-bottom: 0.75rem; 
    padding-left: 1.5rem; 
    position: relative;
}

.service-card li::before { 
    content: '→'; 
    color: var(--color-accent); 
    position: absolute; 
    left: 0; 
    font-weight: bold;
}

/* CASE STUDY */
.case-study-box {
    max-width: 900px;
    margin: 2rem auto 0;
    padding: 3rem;
    border: 2px solid var(--color-accent);
    border-radius: 16px;
    text-align: center;
    background: white;
}

/* FAQ */
.faq-item {
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 8px;
    text-align: left;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-item:last-child {
    margin-bottom: 0;
}

/* METRICS */
.impact-metrics {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.metric { 
    text-align: center; 
    min-width: 120px;
}

.metric strong { 
    display: block; 
    font-size: 2.5rem; 
    color: var(--color-accent);
    font-weight: 800;
}

.metric span { 
    color: #64748b; 
    font-weight: 500; 
    display: block; 
    margin-top: 0.5rem;
}

.trust-badge { 
    text-align: center; 
    min-width: 150px;
}

/* FORM */
form input,
form select {
    width: 100%;
    padding: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form input:focus,
form select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

form select {
    background: white;
    cursor: pointer;
}

/* FINAL CTA */
#final-cta { 
    background-color: var(--color-dark); 
    color: white; 
    text-align: center;
}

#final-cta h2 { 
    color: white;
}

/* FOOTER */
footer { 
    padding: 3rem 0; 
    background: #0f172a; 
    color: #94a3b8; 
    text-align: center; 
    border-top: 1px solid #1e293b;
}

footer a:focus {
    outline: 2px solid #94a3b8;
    outline-offset: 2px;
    border-radius: 4px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    h1 { 
        font-size: 2.5rem;
    }
    
    .hero-ctas { 
        flex-direction: column;
    }
    
    .cta-secondary { 
        margin-left: 0; 
        margin-top: 1rem;
    }
    
    .services-grid { 
        grid-template-columns: 1fr;
    }
    
    .impact-metrics { 
        flex-direction: column; 
        gap: 2rem;
    }
    
    .nav-links { 
        display: none;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* ACCESSIBILITY */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* LOADING STATE */
.loading {
    opacity: 0.6;
    pointer-events: none;
}
