/* ==========================================================================
   Save Solutions — Design System
   Roboto-based, brand red (#C00000) fintech / financial-inclusion site.
   Sections:
     1. Design tokens (:root custom properties)
     2. Reset & base
     3. Layout: container, grid utilities, sections
     4. Header & navigation (+ mobile drawer)
     5. Buttons
     6. Hero & page-hero / breadcrumb
     7. Cards, service grid, features
     8. Stats band & CTA band
     9. Forms, alerts, badges
    10. Footer
    11. Responsive breakpoints (992px, 640px)
   ========================================================================== */

/* ============================== 1. TOKENS ============================== */
:root {
    /* Brand reds */
    --red:            #C00000; /* primary brand red */
    --red-dark:       #9E0000; /* hover / active */
    --red-accent:     #DE5156; /* lighter accent */
    --red-accent-2:   #D35A5A; /* secondary accent */

    /* Soft tints */
    --tint:           #F8E2E2; /* very light pink */
    --tint-alt:       #FBEDED; /* alternating section bg */

    /* Neutral backgrounds */
    --white:          #FFFFFF;
    --bg-1:           #F7F7F8;
    --bg-2:           #F2F2F2;

    /* Text */
    --text-dark:      #1A1A1A;
    --text-darker:    #212221;
    --text-muted:     #5C5C5C;
    --text-muted-2:   #616161;
    --text-light:     #8F8F8F;
    --text-light-2:   #9CA3AF;

    /* Borders */
    --border:         #E5E7EB;
    --border-2:       #DDDDDD;

    /* Semantic */
    --success:        #1E7E34;
    --success-bg:     #E6F4EA;
    --success-border: #A9D5B5;
    --error:          #C00000;
    --error-bg:       #FBEDED;
    --error-border:   #F0BFBF;

    /* Typography */
    --font: "Roboto", system-ui, Arial, sans-serif;

    /* Layout */
    --container:      1180px;
    --radius:         10px;
    --radius-sm:      6px;
    --radius-lg:      16px;
    --shadow-sm:      0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow:         0 6px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg:      0 14px 40px rgba(0, 0, 0, 0.12);
    --header-h:       72px;
    --transition:     0.22s ease;
}

/* ============================== 2. RESET ============================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-muted);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.6em;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.25;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1rem; }

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }

img { max-width: 100%; display: block; }

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

/* ============================== 3. LAYOUT ============================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-tint { background: var(--tint-alt); }      /* alternating tint */
.section-tint-soft { background: var(--tint); }
.section-light { background: var(--bg-1); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* Eyebrow label above headings */
.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
}

/* Heading underline accent */
.heading-accent { position: relative; display: inline-block; }
.heading-accent::after {
    content: "";
    position: absolute;
    left: 0; bottom: -10px;
    width: 64px; height: 4px;
    background: var(--red);
    border-radius: 2px;
}
.section-head.text-center .heading-accent::after,
.section-head:not(.left) .heading-accent::after { left: 50%; transform: translateX(-50%); }

/* Grid utilities */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* ============================== 4. HEADER / NAV ============================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition), background var(--transition);
}
/* JS adds .scrolled once the page is scrolled */
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
}

/* Brand */
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 42px; width: auto; }
.brand-text { font-weight: 900; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1; }
.brand-mark { color: var(--red); }
.brand-sub  { color: var(--text-dark); font-weight: 500; margin-left: 4px; }

/* Primary nav */
.primary-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    display: inline-block;
    padding: 10px 16px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.98rem;
    border-radius: var(--radius-sm);
    position: relative;
    transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--red); }
.nav-link.active { color: var(--red); }
.nav-link.active::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px; bottom: 2px;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
}

.nav-cta-mobile { display: none; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.nav-toggle-bar {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
/* Animate to an X when the drawer is open */
.nav-open .nav-toggle .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Flash wrap spacing */
.flash-wrap { margin-top: 18px; }

/* ============================== 5. BUTTONS ============================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    font-family: var(--font);
    font-weight: 500;
    font-size: 0.98rem;
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), transform var(--transition),
                box-shadow var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    box-shadow: 0 4px 14px rgba(192, 0, 0, 0.25);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

.btn-outline {
    background: transparent;
    border-color: var(--red);
    color: var(--red);
}
.btn-outline:hover { background: var(--red); color: #fff; }

.btn-light {
    background: #fff;
    border-color: #fff;
    color: var(--red);
}
.btn-light:hover { background: var(--tint); border-color: var(--tint); color: var(--red-dark); }

.btn-lg { padding: 15px 34px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

/* ============================== 6. HERO / PAGE-HERO ============================== */
.hero {
    position: relative;
    color: #fff;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 60%, #7d0000 100%);
    overflow: hidden;
}
.hero::after { /* subtle accent glow */
    content: "";
    position: absolute;
    right: -120px; top: -120px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(222, 81, 86, 0.55), transparent 70%);
    pointer-events: none;
}
.hero-inner { position: relative; padding: 96px 0; max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p { color: rgba(255, 255, 255, 0.92); font-size: 1.2rem; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Inner-page banner */
.page-hero {
    color: #fff;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    padding: 64px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; margin: 0; }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.9rem; margin-top: 14px; }
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: rgba(255, 255, 255, 0.6); }
.breadcrumb .current { color: #fff; font-weight: 500; }

/* ============================== 7. CARDS / SERVICES / FEATURES ============================== */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

/* Service card with icon medallion + read-more */
.service-card { display: flex; flex-direction: column; }
.service-icon {
    width: 58px; height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red-accent), var(--red-accent-2));
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}
.service-card .service-link {
    margin-top: auto;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Feature row (icon + text, no card chrome) */
.feature { display: flex; gap: 16px; }
.feature-icon {
    flex: 0 0 auto;
    width: 46px; height: 46px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--tint);
    color: var(--red);
    font-weight: 700;
}
.feature h4 { margin-bottom: 6px; }
.feature p { margin: 0; font-size: 0.96rem; }

/* ============================== 8. STATS / CTA BANDS ============================== */
.stats-band {
    background: var(--tint-alt);
    border-block: 1px solid var(--border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    text-align: center;
}
.stat-num {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: var(--red);
    line-height: 1;
}
.stat-label { margin-top: 8px; color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }

/* CTA band — red background, white text */
.cta-band {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: #fff;
    text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.92); max-width: 620px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ============================== 9. FORMS / ALERTS / BADGES ============================== */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    margin-bottom: 7px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
}
.form-label .req { color: var(--red); margin-left: 2px; }

.form-control {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text-dark);
    background: #fff;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control::placeholder { color: var(--text-light-2); }
.form-control:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(192, 0, 0, 0.15); /* brand focus ring */
}
textarea.form-control { min-height: 140px; resize: vertical; }
select.form-control { appearance: none; background-image: none; }

/* Validation states */
.form-control.has-error,
.has-error .form-control { border-color: var(--red); }
.has-error .form-control:focus { box-shadow: 0 0 0 3px rgba(192, 0, 0, 0.18); }

.invalid-feedback {
    display: none;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--error);
}
.has-error .invalid-feedback,
.form-control.has-error + .invalid-feedback { display: block; }

/* Honeypot field — visually hidden, kept in the DOM for bots */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* Card-wrapped form */
.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.96rem;
    margin-bottom: 20px;
}
.alert-success { background: var(--success-bg); border-color: var(--success-border); color: var(--success); }
.alert-error   { background: var(--error-bg);   border-color: var(--error-border);   color: var(--error); }

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 999px;
    background: var(--tint);
    color: var(--red);
}
.badge-solid { background: var(--red); color: #fff; }
.badge-accent { background: linear-gradient(135deg, var(--red-accent), var(--red-accent-2)); color: #fff; }

/* ============================== 9b. PAGE CONTENT HELPERS ============================== */
/* These classes are used by the inner pages (about, services, apply, contact).
   They reuse the same design tokens so the deep-red brand theme stays consistent. */

/* Alternating tinted section (About / Apply) — same family as .section-tint */
.section-alt { background: var(--tint-alt); }

/* Standalone required-field marker (used outside .form-label, e.g. apply.php) */
.req { color: var(--red); margin-left: 2px; }
.optional { color: var(--text-light); font-weight: 400; font-size: 0.85em; }

/* Lead/intro + note paragraphs under a section head */
.section-intro { color: var(--text-muted); font-size: 1.05rem; }
.section-note  { color: var(--text-light); font-size: 0.92rem; margin-top: 24px; }

/* Centered action row beneath a grid (e.g. "Explore all services") */
.section-actions { text-align: center; margin-top: 40px; }

/* Card title / body helpers (About, Apply, Services cards) */
.card-title { margin-bottom: 10px; }
.card-text  { margin-bottom: 0; color: var(--text-muted); font-size: 0.96rem; }

/* Value cards: a touch of brand accent on the top edge */
.value-card { border-top: 3px solid var(--red); }

/* Long-form prose block (About overview) */
.prose { max-width: 820px; }
.prose p { color: var(--text-muted); }
.prose p:last-child { margin-bottom: 0; }

/* Split CTA band layout (About closing CTA) */
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.cta-text { flex: 1 1 420px; text-align: left; }
.cta-text h2 { color: #fff; }
.cta-band .cta-inner p { margin: 0; }

/* Check-list (Apply eligibility) — brand check bullets */
.check-list {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}
.check-list li {
    position: relative;
    padding-left: 34px;
    color: var(--text-muted);
}
.check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0; top: 0;
    width: 22px; height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--tint);
    color: var(--red);
    font-weight: 700;
    font-size: 0.8rem;
}

/* Feature list (Services detail bullets) — restores layout for <ul class="feature-list"> */
.feature-list { display: grid; gap: 18px; margin: 22px 0; }
.feature-list .feature { align-items: flex-start; }
.feature-list .feature-icon {
    width: 34px; height: 34px;
    font-size: 0.95rem;
    flex: 0 0 auto;
}
.feature-list .feature h4 { margin-bottom: 4px; }
.feature-list .feature p  { margin: 0; font-size: 0.94rem; }

/* Application form layout (apply.php) */
.form { max-width: 860px; }
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.form-field { display: flex; flex-direction: column; }
.form-field-full { grid-column: 1 / -1; }
.form-field label {
    margin-bottom: 7px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
}
.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text-dark);
    background: #fff;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-light-2); }
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(192, 0, 0, 0.15);
}
.form-field textarea { resize: vertical; }
.form-field.has-error input,
.form-field.has-error textarea,
.form-field input.has-error,
.form-field textarea.has-error { border-color: var(--red); }

.form-actions { margin-top: 26px; }

/* ============================== 10. FOOTER ============================== */
.site-footer { background: var(--text-darker); color: #cfcfcf; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr;
    gap: 40px;
    padding: 64px 24px 48px;
}
.footer-logo { font-size: 1.4rem; }
.footer-logo .brand-sub { color: #fff; }
.footer-blurb { color: #a8a8a8; font-size: 0.95rem; margin: 16px 0 20px; }

.footer-heading {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #b6b6b6; font-size: 0.94rem; }
.footer-links a:hover { color: var(--red-accent); }

.footer-social { display: flex; gap: 10px; }
.social-link {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: lowercase;
    transition: background var(--transition);
}
.social-link:hover { background: var(--red); color: #fff; }

.contact-list li { display: flex; flex-direction: column; margin-bottom: 14px; }
.contact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: #888; }
.contact-value { color: #d7d7d7; font-size: 0.95rem; }
a.contact-value:hover { color: var(--red-accent); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
}
.copyright { margin: 0; color: #9a9a9a; font-size: 0.88rem; }
.legal-links { display: flex; gap: 22px; }
.legal-links a { color: #9a9a9a; font-size: 0.88rem; }
.legal-links a:hover { color: var(--red-accent); }

/* ============================== 11. RESPONSIVE ============================== */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

    /* Switch to mobile nav drawer */
    .nav-toggle { display: flex; }
    .nav-cta-desktop { display: none; }
    .nav-cta-mobile { display: block; margin-top: 8px; }

    .primary-nav {
        position: fixed;
        top: var(--header-h);
        right: 0;
        width: min(320px, 86vw);
        height: calc(100vh - var(--header-h));
        background: #fff;
        border-left: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 24px;
        transform: translateX(105%);
        transition: transform var(--transition);
        overflow-y: auto;
    }
    .nav-open .primary-nav { transform: translateX(0); }

    .primary-nav .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .nav-link { padding: 12px 14px; border-radius: var(--radius-sm); }
    .nav-link.active::after { display: none; }
    .nav-link.active { background: var(--tint); }
    .nav-cta-mobile .btn { width: 100%; }

    /* Dim backdrop behind the open drawer */
    body.nav-open::before {
        content: "";
        position: fixed;
        inset: var(--header-h) 0 0 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
    }
}

@media (max-width: 640px) {
    .section { padding: 56px 0; }
    .container { padding-inline: 18px; }

    .grid-4, .grid-3, .grid-2,
    .stats-grid,
    .form-grid { grid-template-columns: 1fr; }

    .cta-inner { flex-direction: column; text-align: center; }
    .cta-text { text-align: center; }

    .footer-grid { grid-template-columns: 1fr; padding: 48px 18px 36px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }

    .hero-inner { padding: 64px 0; }
    .hero p { font-size: 1.08rem; }
    .hero-actions .btn,
    .cta-actions .btn { width: 100%; }

    .form-card { padding: 24px; }
}

/* ==========================================================================
   12. IMAGERY
   Reusable image components layered on top of the existing deep-red theme.
   Adds: home hero split, stat icons, why-choose feature badges, photo
   page-heroes, media-split sections, company cards, and footer logo/social
   imagery. All reuse the existing tokens (--red, --radius-lg, --shadow*, etc).
   PHOTOS are real .jpg images; ICONS are transparent PNGs (red on light,
   white on dark/red). In CSS reference images as url("../img/NAME").
   ========================================================================== */

/* ---- Home hero: text + photo side by side (stacks <992px) ---- */
.hero-split {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}
.hero-split .hero-copy { flex: 1 1 440px; min-width: 0; }
.hero-split .hero-media { flex: 1 1 420px; min-width: 0; }
.hero-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ---- Stat icon: red line icon above each stat number ---- */
.stat-icon {
    width: 46px;
    height: 46px;
    object-fit: contain;
    margin: 0 auto 12px;
    display: block;
}

/* ---- Why-choose feature badge: white icon inside a red circle ---- */
.feature-badge {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 4px 14px rgba(192, 0, 0, 0.25);
}
.feature-badge img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

/* ---- Page-hero with a background photo + red overlay for readable text ---- */
.page-hero--photo {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.page-hero--photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(192, 0, 0, 0.85);
    z-index: 0;
}
.page-hero--photo .container {
    position: relative;
    z-index: 1;
}

/* ---- Media split: text + image, 2 columns (stacks on mobile) ---- */
.media-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.media-split--reverse .media-frame { order: -1; }
.media-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* ---- Company grid: 3 responsive cards, each with a cover photo ---- */
.company-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.company-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.company-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.company-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius) var(--radius) 0 0;
}
.company-card .company-body { padding: 22px 24px; }
.company-card h3 { margin-bottom: 8px; }
.company-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ---- Footer white logo image (replaces the text logo in the dark footer) ---- */
.footer-logo-img {
    width: 160px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---- Footer social: white PNG icons on the dark footer (red on hover) ---- */
.social-link img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

/* ---- Imagery responsive behaviour ---- */
@media (max-width: 992px) {
    .hero-split { gap: 32px; }
    .media-split { grid-template-columns: 1fr; gap: 32px; }
    .media-split--reverse .media-frame { order: 0; }
    .company-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .hero-media { width: 100%; }
    .company-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   13. CSP LEAD POPUP + THANK-YOU PAGE
   ========================================================================== */

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

/* ---- Modal shell ---- */
.csp-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.csp-modal[hidden] { display: none; }
.csp-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 6, 6, 0.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.csp-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
    padding: 34px 32px 28px;
    animation: cspPop 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.csp-modal__form .form-grid { margin-top: 4px; }
.csp-modal__form .form-actions { margin-top: 18px; }
@keyframes cspPop {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}
.csp-modal__close {
    position: absolute;
    top: 12px; right: 16px;
    background: none; border: none;
    font-size: 1.9rem; line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition);
}
.csp-modal__close:hover { color: var(--red); }
.csp-modal__eyebrow {
    display: inline-block;
    color: var(--red);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.csp-modal__dialog h3 { margin: 0 0 10px; font-size: 1.5rem; line-height: 1.25; }
.csp-modal__dialog > p { color: var(--text-muted); margin: 0 0 20px; font-size: 0.98rem; }
.csp-modal__form .form-control { margin-bottom: 14px; }
.csp-modal__note { font-size: 0.8rem; color: var(--text-muted); margin: 12px 0 0; text-align: center; }

/* ---- Thank-you page ---- */
.thankyou-section { padding: 72px 0 96px; }
.thankyou-card {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 48px 40px;
}
.thankyou-icon {
    width: 76px; height: 76px;
    margin: 0 auto 22px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    box-shadow: 0 10px 26px rgba(192, 0, 0, 0.3);
}
.thankyou-card h2 { margin-bottom: 14px; }
.thankyou-card p { color: var(--text-muted); margin: 0 auto 14px; max-width: 540px; }
.thankyou-contact {
    list-style: none;
    padding: 18px 0;
    margin: 22px auto;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: inline-flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}
.thankyou-contact li { color: var(--text-darker); }
.thankyou-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 26px;
}
@media (max-width: 480px) {
    .csp-modal__dialog { padding: 32px 22px 26px; }
    .thankyou-card { padding: 36px 22px; }
    .thankyou-actions .btn { width: 100%; }
}

/* ==========================================================================
   14. HEADER LOGO + HOMEPAGE STAT GRID
   ========================================================================== */
.brand-logo { height: 46px; width: auto; display: block; }

/* Homepage "Achievements": six stats in a 3-column grid */
.stats-grid--six { grid-template-columns: repeat(3, 1fr); }
.stat-icon--svg { width: 46px; height: 46px; margin: 0 auto 12px; display: block; }
.stat-icon--svg svg { display: block; }

@media (max-width: 860px) { .stats-grid--six { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .brand-logo { height: 38px; } }
@media (max-width: 460px) { .stats-grid--six { grid-template-columns: 1fr; } }

/* ==========================================================================
   15. HERO BANNER (photo + red overlay) + white-outline button
   ========================================================================== */

/* Full-width hero: the CSP photo behind a red gradient overlay (one layered
   background — gradient on top, image beneath). */
.hero--banner {
    background:
        linear-gradient(100deg, rgba(120, 0, 0, 0.95) 0%, rgba(168, 0, 0, 0.88) 45%, rgba(192, 0, 0, 0.58) 100%),
        url("../img/hero-csp.jpg") center / cover no-repeat;
}
.hero--banner::after { display: none; } /* drop the corner glow over the photo */
.hero--banner .hero-inner { padding: 104px 0; }

/* White-outline button — readable on red/dark backgrounds */
.btn-outline-light {
    background: transparent;
    border-color: #fff;
    color: #fff;
}
.btn-outline-light:hover {
    background: #fff;
    border-color: #fff;
    color: var(--red-dark);
}

/* On small screens, use a near-solid overlay so text stays readable */
@media (max-width: 640px) {
    .hero--banner {
        background:
            linear-gradient(rgba(140, 0, 0, 0.92), rgba(168, 0, 0, 0.90)),
            url("../img/hero-csp.jpg") center / cover no-repeat;
    }
    .hero--banner .hero-inner { padding: 72px 0; }
}

/* ==========================================================================
   16. BUTTONS ON RED SECTIONS — keep them readable (no red-on-red)
   Any outline or solid-red button inside the hero, an inner page-hero, or a
   red CTA band renders white instead of red.
   ========================================================================== */
.hero .btn-outline,
.page-hero .btn-outline,
.cta-band .btn-outline {
    background: transparent;
    border-color: #fff;
    color: #fff;
}
.hero .btn-outline:hover,
.page-hero .btn-outline:hover,
.cta-band .btn-outline:hover {
    background: #fff;
    border-color: #fff;
    color: var(--red-dark);
}
.hero .btn-primary,
.page-hero .btn-primary,
.cta-band .btn-primary {
    background: #fff;
    border-color: #fff;
    color: var(--red);
}
.hero .btn-primary:hover,
.page-hero .btn-primary:hover,
.cta-band .btn-primary:hover {
    background: var(--tint);
    border-color: var(--tint);
    color: var(--red-dark);
}

/* ==========================================================================
   17. FAQ ACCORDION (homepage)
   Native <details>/<summary> accordion — no JavaScript required. Reuses the
   deep-red brand tokens (--red, --border, --radius, --text-muted). Each
   <summary> shows a +/- affordance that flips to a minus when the item is
   open. Fully responsive; long questions wrap and never overflow on mobile.
   ========================================================================== */
.faq-accordion {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item[open] {
    border-color: var(--red);
    box-shadow: var(--shadow);
}

/* Question row (the clickable summary) */
.faq-question {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;                 /* hide default disclosure triangle */
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--text-dark);
    transition: color var(--transition), background var(--transition);
}
/* Remove the default marker across engines */
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ""; }

.faq-question:hover { color: var(--red); }
.faq-item[open] .faq-question { color: var(--red); }

/* Keyboard focus ring (accessibility) */
.faq-question:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: -2px;
}

/* +/- affordance on the right, in a soft brand-tint chip */
.faq-question::after {
    content: "+";
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--tint);
    color: var(--red);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    transition: transform var(--transition), background var(--transition), color var(--transition);
}
.faq-item[open] .faq-question::after {
    content: "\2212";                 /* minus sign */
    background: var(--red);
    color: #fff;
}

/* Answer body */
.faq-answer {
    padding: 0 22px 20px;
    color: var(--text-muted);
}
.faq-answer p { margin: 0; }

/* Responsive: tighten padding so nothing overflows on small screens */
@media (max-width: 640px) {
    .faq-question {
        padding: 16px 16px;
        font-size: 1rem;
        gap: 12px;
    }
    .faq-answer { padding: 0 16px 18px; }
}

/* ==========================================================================
   18. MOBILE TAP TARGETS — comfortable footer link spacing on phones
   ========================================================================== */
@media (max-width: 640px) {
    .footer-links a,
    .legal-links a { display: inline-block; padding: 5px 0; }
}
