@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Nunito:wght@400;600;700;800&display=swap');

:root {
    /* Mardisen Palette - Scaled Brand */
    --mgm-primary: #3B6FE8;
    /* Primary Blue */
    --mgm-primary-hover: #2952C4;
    /* Deep Blue (Hover) */
    --mgm-deep-blue: #2952C4;
    /* Deep Blue */
    --mgm-bg: #F0F4FF;
    /* Light Blue BG */
    --mgm-card-bg: #FFFFFF;
    /* Card White */
    --mgm-text: #1A1A2E;
    /* Text Navy */
    --mgm-border: #E2E8F8;
    /* Light Border */
    --mgm-muted-text: #6B7280;
    /* Muted Text */

    /* Legacy / Targeted Accents */
    --mgm-purple: #6B4E9E;
    /* Empowering Purple (Hearts/Footer only) */
    --mgm-accent: #F8C1CC;
    /* Blush Pink (Mom sections only) */
    --mgm-secondary: #38BFA7;
    /* Teal */
    --mgm-accent-gentle: #F9D5E5;
    /* Gentle Pink */
    --mgm-gray-light: #F4F1ED;
    --mgm-gray-text: #666666;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--mgm-bg);
    color: var(--mgm-text);
    line-height: 1.6;
    font-size: 16px;
    /* Min body size for mobile readable */
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-font {
    font-family: 'Nunito', sans-serif;
    color: var(--mgm-text);
    font-weight: 800;
}

/* Button & Tap Target Rules */
.btn,
.form-control,
.form-select {
    min-height: 48px;
    /* Mobile tap target rule */
}

.btn-primary-custom {
    background-color: var(--mgm-primary);
    border-color: var(--mgm-primary);
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    border-radius: 50px;
    /* Round, warm */
    padding: 16px 36px;
    font-size: 1.25rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(59, 111, 232, 0.2);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
    background-color: var(--mgm-primary-hover);
    border-color: var(--mgm-primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 111, 232, 0.3);
}

.btn-outline-custom {
    color: var(--mgm-primary);
    border: 2px solid var(--mgm-primary);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    border-radius: 50px;
    padding: 10px 24px;
}

.btn-outline-custom:hover {
    background-color: var(--mgm-primary);
    color: #fff;
}

/* Utilities */
.text-primary-custom {
    color: var(--mgm-primary);
}

.text-accent {
    color: var(--mgm-accent);
}

.text-secondary-custom {
    color: var(--mgm-secondary);
}

.bg-cream {
    background-color: var(--mgm-bg);
}

.bg-white-card {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(45, 45, 45, 0.05);
}

/* Sticky Mobile CTA Footer */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 15px 20px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

/* Navbar */
.navbar-brand {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--mgm-primary) !important;
}

.navbar {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background-color: var(--mgm-bg);
    overflow: hidden;
}

.min-vh-90 {
    min-height: 90vh;
}

/* Hero Text Column */
.hero-text-col {
    z-index: 2;
}

.hero-headline {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--mgm-text);
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--mgm-muted-text);
    line-height: 1.7;
    max-width: 540px;
}

.btn-hero {
    background-color: var(--mgm-primary);
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(59, 111, 232, 0.35);
}

.btn-hero:hover {
    background-color: var(--mgm-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 111, 232, 0.45);
    color: white;
}

/* Hero Image Column */
.hero-image-wrapper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    height: 520px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Badge overlay */
.hero-badge {
    bottom: 24px;
    left: 24px;
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    color: var(--mgm-text);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-badge .badge-check {
    background: var(--mgm-primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    margin-right: 8px;
}

.hero-badge small {
    color: #888;
    font-size: 0.75rem;
    font-weight: 400;
    padding-left: 28px;
}

/* Mobile overrides */
@media (max-width: 991px) {
    .hero-image-wrapper {
        height: 380px;
        border-radius: 16px;
    }

    .hero-headline {
        font-size: 1.9rem;
    }

    .btn-hero {
        width: 100% !important;
        text-align: center;
    }

    .min-vh-90 {
        min-height: auto;
        padding: 3rem 0;
    }
}

@media (max-width: 575px) {
    .hero-image-wrapper {
        height: 280px;
    }
}

.social-proof-bar {
    background-color: var(--mgm-accent);
    color: var(--mgm-text);
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.trust-badges {
    font-size: 0.85rem;
    color: var(--mgm-gray-text);
    margin-top: 1.5rem;
}

.trust-badges i,
.trust-badges img {
    vertical-align: middle;
    margin-right: 5px;
}

/* Scrolling Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: #ffffff;
    padding: 2.5rem 0;
    border-top: 1px solid var(--mgm-gray-light);
    border-bottom: 1px solid var(--mgm-gray-light);
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mgm-primary);
}

.ticker-item .grant-amount {
    color: var(--mgm-text);
    background: var(--mgm-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 10px;
    font-size: 0.95rem;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Feature Cards (What Makes Us Different) */
.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--mgm-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--mgm-primary);
}

/* Step Icons */
.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--mgm-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonial-card {
    background-color: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    height: 100%;
}

.testimonial-quote {
    font-family: 'Nunito', sans-serif;
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 600;
    color: var(--mgm-text);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-size: 0.9rem;
    color: var(--mgm-gray-text);
}

/* Micro-Testimonials (Hero) */
.micro-testimonial {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--mgm-gray-text);
}

.micro-testimonial p {
    margin-bottom: 2px;
}

.micro-testimonial span {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--mgm-text);
}

/* FAQ Accordion overrides */
.accordion-button {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--mgm-text);
    padding: 1.25rem 1.5rem;
    background-color: #ffffff;
}

.accordion-button:not(.collapsed) {
    background-color: var(--mgm-gray-light);
    color: var(--mgm-primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

.accordion-item {
    border: 1px solid var(--mgm-gray-light);
    border-radius: 16px !important;
    margin-bottom: 10px;
    overflow: hidden;
}

/* Lead Magnet */
.lead-magnet-box {
    background: linear-gradient(135deg, var(--mgm-primary) 0%, var(--mgm-deep-blue) 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
}

.lead-magnet-box h3 {
    color: #fff;
}

.lead-magnet-box .form-control {
    border: none;
    font-size: 1rem;
    border-radius: 50px 0 0 50px;
    padding-left: 24px;
}

.lead-magnet-box .btn {
    border-radius: 0 50px 50px 0;
    background-color: var(--mgm-secondary);
    color: var(--mgm-text);
    border: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
}

.lead-magnet-box .btn:hover {
    background-color: #8FCCBF;
}

/* Responsive Overrides */
@media (max-width: 768px) {

    .trust-badges {
        justify-content: center;
    }

    .mobile-sticky-cta {
        display: block;
        /* Show sticky footer CTA on mobile */
    }

    body {
        padding-bottom: 80px;
        /* Space for sticky footer */
    }

    .lead-magnet-box .form-control {
        border-radius: 50px;
        margin-bottom: 10px;
        text-align: center;
    }

    .lead-magnet-box .btn {
        border-radius: 50px;
        width: 100%;
    }
}