/* ==========================================================================
   TIMVEST IMPACT PAGE STYLES (impact.css)
   ========================================================================== */

/* 
   -------------------------------------------------------------------------
   EASY COLOR CUSTOMIZATION (GLOBAL & SECTION VARIABILITY)
   Modify these CSS variables to adjust backgrounds, texts, and accents per section.
   -------------------------------------------------------------------------
*/
:root {
    /* Global Brand Palette */
    --brand-red: #c8102e;
    --brand-red-hover: #a00c23;
    --brand-pill: #c8102e;
    --accent-gold: #c8a362;
    --text-white: #ffffff;
    --text-black: #000000;
    --text-muted: rgba(255, 255, 255, 0.78);
    --border-subtle: rgba(255, 255, 255, 0.08);
    
    /* Header Navigation Variables */
    --header-bg: transparent;
    --nav-text: #ffffff;
    --nav-hover: #c8a362;
    --pill-text: #ffffff;

    /* Global Typography */
    --font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* --- SECTION 1: HERO SECTION COLORS --- */
    --hero-bg-overlay-top: rgba(0, 0, 0, 0.6);
    --hero-bg-overlay-bottom: rgba(0, 0, 0, 0.88);
    --hero-text-color: #ffffff;

    /* --- SECTION 2: IMPACT DASHBOARD COLORS --- */
    --dashboard-sec-bg: #0d0d0d;        /* Dark background section */
    --dashboard-title-color: #ffffff;
    --dashboard-text-color: rgba(255, 255, 255, 0.78);
    --dashboard-card-bg: #141414;       /* Dark card background */
    --dashboard-card-border: rgba(255, 255, 255, 0.08);
    --dashboard-metric-color: #c8a362;  /* Gold metric text */

    /* --- SECTION 3: STORY INTRODUCTION SECTION COLORS --- */
    --story-sec-bg: #f7f5ef;            /* Light contrast background */
    --story-title-color: #000000;
    --story-text-color: #333333;
    --story-card-bg: #141414;          /* Dark principle card inside light section */
    --story-card-text: rgba(255, 255, 255, 0.85);

    /* --- SECTION 4: CALL TO ACTION (CTA) SECTION COLORS --- */
    --cta-sec-bg: #080808;
    --cta-title-color: #ffffff;
    --cta-text-color: rgba(255, 255, 255, 0.8);

    /* --- SECTION 5: FOOTER COLORS --- */
    --footer-bg: #050505;
    --input-bg: #1a1a1a;
}

/* Base resets & typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--dashboard-sec-bg);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.body-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ==========================================================================
   NAVIGATION BAR & HERO WRAPPER
   ========================================================================== */

.hero-wrapper {
    position: relative;
    min-height: 80vh;
    background: linear-gradient(180deg, var(--hero-bg-overlay-top) 0%, var(--hero-bg-overlay-bottom) 100%), 
                url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.75rem 0;
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-slot {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-slot img {
    height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    list-style: none;
}

.nav-link {
    color: var(--nav-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--nav-hover);
}

.header-actions {
    display: flex;
    align-items: center;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-pill);
    color: var(--pill-text);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem 1.6rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-height: 44px;
}

.btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.3);
    filter: brightness(1.05);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--nav-text);
    margin: 5px 0;
    transition: 0.3s;
}

/* ==========================================================================
   SECTION 1: HERO SECTION
   ========================================================================== */
.impact-hero {
    padding: 8rem 0 5rem 0;
    color: var(--hero-text-color);
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 2rem;
    max-width: 1050px;
}

.hero-headline .highlight {
    color: var(--accent-gold);
}

.hero-intro {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 880px;
    line-height: 1.7;
}

/* ==========================================================================
   SECTION 2: IMPACT DASHBOARD
   ========================================================================== */
.dashboard-section {
    background-color: var(--dashboard-sec-bg);
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.dashboard-section .section-header {
    max-width: 800px;
    margin-bottom: 4rem;
}

.dashboard-section .section-title {
    color: var(--dashboard-title-color);
}

.dashboard-section .body-text {
    color: var(--dashboard-text-color);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.metric-card {
    background-color: var(--dashboard-card-bg);
    border: 1px solid var(--dashboard-card-border);
    padding: 2.5rem 2rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--dashboard-metric-color);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.metric-label {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1.25rem;
}

.metric-condition {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
}

.metric-condition strong {
    color: var(--accent-gold);
}

/* ==========================================================================
   SECTION 3: STORY INTRODUCTION
   ========================================================================== */
.story-section {
    background-color: var(--story-sec-bg);
    color: var(--story-text-color);
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.story-section .section-title {
    color: var(--story-title-color);
}

.story-principle-card {
    background: var(--story-card-bg);
    border: 1px solid var(--border-subtle);
    padding: 3rem 2.5rem;
    border-radius: 6px;
    color: var(--story-card-text);
}

.card-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--brand-red);
    margin-bottom: 1rem;
    display: block;
}

.principle-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.principle-text {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ==========================================================================
   SECTION 4: CALL TO ACTION (CTA)
   ========================================================================== */
.cta-section {
    background-color: var(--cta-sec-bg);
    padding: 6rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

.center-content {
    max-width: 850px;
    margin: 0 auto;
}

.cta-section .section-title {
    color: var(--cta-title-color);
}

.cta-text {
    font-size: 1.15rem;
    color: var(--cta-text-color);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--brand-pill);
    color: var(--text-white);
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-primary:hover {
    background-color: var(--brand-red-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.btn-tertiary {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.85rem 1rem;
    transition: color 0.2s ease;
}

.btn-tertiary:hover {
    color: var(--text-white);
    text-decoration: underline;
}

/* ==========================================================================
   SECTION 5: FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--footer-bg);
    padding: 5rem 0 3rem 0;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-white);
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand-col .logo-slot img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-address {
    font-size: 1.65rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--text-white);
    max-width: 440px;
    letter-spacing: -0.02em;
    margin-top: 0.35rem;
}

.newsletter-box {
    margin-top: 1rem;
    max-width: 440px;
}

.newsletter-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.newsletter-input-wrap {
    background-color: var(--input-bg);
    border-radius: 100px;
    padding: 5px 6px 5px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.newsletter-input-wrap input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    font-size: 0.9rem;
    width: 100%;
}

.newsletter-input-wrap input::placeholder {
    color: var(--text-muted);
}

.btn-newsletter {
    background-color: var(--text-white);
    color: #111111;
    border: none;
    border-radius: 50px;
    padding: 0.65rem 1.6rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.btn-newsletter:hover {
    opacity: 0.9;
}

.newsletter-consent {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 1rem;
    line-height: 1.5;
}

.newsletter-consent a {
    color: var(--text-white);
    text-decoration: underline;
}

.footer-col h4 {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.footer-col a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--brand-pill);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.copyright-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.compliance-disclaimer {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-2col {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    .hero-headline {
        font-size: 2.25rem;
    }
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn-primary, .btn-secondary, .btn-tertiary {
        width: 100%;
        text-align: center;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
}