/* ======================= GLOBAL VARIABLES ======================= */
/* Change these values to manage spacing across the page */

:root {
    --section-padding-desktop: 70px;   /* base top/bottom padding on desktop */
    --section-padding-mobile: 50px;    /* base top/bottom padding on mobile */

    --section-gap: 32px;               /* general vertical spacing between elements */
    --card-gap: 24px;                  /* grid gap between cards */

    --title-color: #0b1020;
    --text-color: #444;
    --muted-text: #555;

    --primary-purple: #4f46e5;
    --primary-purple-alt: #6d28d9;
    --accent-orange: #FF8804;
}

/* ======================= GLOBAL SAFE RESETS ======================= */

html,
body {
    margin: 0;
    padding: 0;
}

main,
.main-content,
.site-main,
.content,
.content-wrapper {
    margin-bottom: 0;
    padding-bottom: 0;
}

footer,
.site-footer,
.footer {
    margin-top: 0 !important;
}

/* ======================= GLOBAL PARAGRAPH STYLE ======================= */

p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
}

/* ======================= SHARED SECTION TITLE ======================= */

.section-title {
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 24px; /* top 0 so it doesn't add extra gap */
    color: var(--title-color);
}

/* ======================= HERO (OVERVIEW) ======================= */
/* Pattern: hero = full top, half bottom */

.overview-hero {
    padding-top: var(--section-padding-desktop);
    padding-bottom: calc(var(--section-padding-desktop) / 2);
    margin: 0;
}

.overview-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    flex-wrap: wrap;
}

.overview-left {
    flex: 1;
    min-width: 300px;
}

.overview-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 16px;
    color: var(--title-color);
}

.overview-subtitle {
    margin-top: 16px;
    font-size: 14px;              /* paragraph size */
    color: var(--muted-text);
    line-height: 1.7;
    max-width: 580px;
}

.overview-right {
    flex: 1;
    min-width: 320px;
}

.overview-image {
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    display: block;
}

/* ======================= INTRO SECTION ======================= */
/* Middle sections: half top, half bottom */

.intro-section {
    padding-top: calc(var(--section-padding-desktop) / 2);
    padding-bottom: calc(var(--section-padding-desktop) / 2);
    background: #ffffff;
    margin: 0;
}

.intro-inner {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    font-size: 14px;              /* paragraph size */
    line-height: 1.8;
    color: var(--text-color);
    margin: 0 0 16px;
}

/* ======================= VALUES ======================= */

.values-section {
    padding-top: calc(var(--section-padding-desktop) / 2);
    padding-bottom: calc(var(--section-padding-desktop) / 2);
    margin: 0;
}

.values-section > .section-title {
    margin-bottom: 10px;
}

.values-section > p {
    max-width: 900px;
    margin: 0 auto 24px;
    font-size: 14px;              /* paragraph size */
    line-height: 1.8;
    color: var(--text-color);
}

.values-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--card-gap);
}

.value-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #eee;
    transition: 0.25s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.value-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
    transition: color 0.25s ease;
}

.value-card p {
    font-size: 14px;              /* paragraph size */
    color: var(--muted-text);
    line-height: 1.7;
    transition: color 0.25s ease;
}

.value-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-alt));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

.value-card:hover h3,
.value-card:hover p {
    color: #ffffff;
}

/* ======================= APPROACH ======================= */

.approach-section {
    padding-top: calc(var(--section-padding-desktop) / 2);
    padding-bottom: calc(var(--section-padding-desktop) / 2);
    background: #ffffff;
    margin: 0;
}

.approach-steps {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--card-gap);
}

.step-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #eee;
    transition: 0.25s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.step-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.step-card p {
    font-size: 14px;              /* paragraph size */
    color: var(--muted-text);
    line-height: 1.7;
}

.step-card:hover {
    transform: translateY(-6px);
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-alt));
    border-color: transparent;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.15);
}

.step-card:hover h3,
.step-card:hover p {
    color: #fff;
}

.step-number {
    position: absolute;
    top: -12px;
    left: -12px;
    background: var(--primary-purple);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
}

/* ======================= STATS ======================= */

.stats-section {
    padding-top: calc(var(--section-padding-desktop) / 2);
    padding-bottom: calc(var(--section-padding-desktop) / 2);
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--card-gap);
    text-align: center;
}

.stat-box h3 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--primary-purple);
}

.stat-box span {
    font-size: 15px;
    color: var(--muted-text);
}

/* ======================= CTA ======================= */
/* CTA: tightened bottom so it hugs the footer nicely */

.overview-final-cta {
    padding-top: calc(var(--section-padding-desktop) / 2);
    padding-bottom: 24px;  /* ✅ reduced space below the button */
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-alt));
    color: white;
    text-align: center;
    margin: 0;
    margin-bottom: 0 !important;
}

.cta-title {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 8px;
}

.cta-subtitle {
    font-size: 14px;              /* paragraph-style text */
    opacity: 0.9;
    margin-top: 4px;
}

/* BRAND ORANGE BUTTON */

.cta-btn {
    display: inline-block;
    background: var(--accent-orange);
    color: #ffffff;
    font-weight: 700;
    font-size: 17px;
    padding: 15px 44px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.25s ease-in-out;
    margin-top: 18px;   /* small gap above button */
    box-shadow: 0px 10px 25px rgba(255, 136, 4, 0.35);
}

.cta-btn:hover {
    background: #e67600;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0px 14px 32px rgba(255, 136, 4, 0.45);
}

/* ======================= RESPONSIVE ======================= */

@media (max-width: 900px) {
    .overview-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .overview-left {
        order: 1;
    }

    .overview-right {
        order: 2;
    }

    .overview-image {
        margin: 0 auto;
    }

    /* mobile spacing pattern */
    .overview-hero {
        padding-top: var(--section-padding-mobile);
        padding-bottom: calc(var(--section-padding-mobile) / 2);
        padding-left: 16px;
        padding-right: 16px;
    }

    .intro-section,
    .values-section,
    .approach-section,
    .stats-section {
        padding-top: calc(var(--section-padding-mobile) / 2);
        padding-bottom: calc(var(--section-padding-mobile) / 2);
        padding-left: 16px;
        padding-right: 16px;
    }

    .overview-final-cta {
        padding-top: calc(var(--section-padding-mobile) / 2);
        padding-bottom: 22px;  /* ✅ smaller on mobile too */
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 640px) {
    .overview-title {
        font-size: 36px;
    }

    .intro-text {
        font-size: 14px;          /* keep consistent on mobile */
    }

    .section-title {
        font-size: 28px;
    }

    .stats-grid {
        gap: 20px;
    }

    .cta-title {
        font-size: 26px;
    }

    .cta-subtitle {
        font-size: 14px;          /* keep consistent on mobile */
    }
}
