/* Food Handlers Fast - Homepage Modernization */

.fhf-offer-section {
    padding: 64px 0;
    background: #f7f9fb;
}

.fhf-offer-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.fhf-primary-card,
.fhf-bundle-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
}

.fhf-primary-card {
    padding: 42px;
    border-top: 6px solid #29abe2;
}

.fhf-eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 14px;
    font-weight: 800;
    color: #6c757d;
    margin-bottom: 8px;
}

.fhf-offer-title {
    font-size: 42px;
    line-height: 1.05;
    margin-bottom: 8px;
}

.fhf-price {
    font-size: 48px;
    line-height: 1;
    font-weight: 800;
    color: #dc3545;
    margin-bottom: 18px;
}

.fhf-offer-copy {
    font-size: 20px;
    line-height: 1.55;
    max-width: 760px;
    margin: 0 auto 28px;
    color: #495057;
}

.fhf-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 28px 0 32px;
}

.fhf-benefit {
    background: #f7f9fb;
    border: 1px solid #e4e8ec;
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    font-weight: 700;
}

.fhf-benefit i {
    display: block;
    font-size: 26px;
    color: #29abe2;
    margin-bottom: 8px;
}

.fhf-primary-cta,
.fhf-bundle-cta {
    display: inline-block;
    text-decoration: none;
    font-weight: 800;
    border-radius: 9px;
    padding: 15px 32px;
    font-size: 18px;
}

.fhf-primary-cta {
    background: #dc3545;
    color: #fff;
}

.fhf-primary-cta:hover {
    color: #fff;
    text-decoration: none;
}

.fhf-bundle-card {
    margin-top: 28px;
    padding: 34px 38px;
    border: 1px solid #e4e8ec;
}

.fhf-bundle-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.fhf-bundle-title {
    font-size: 32px;
    margin-bottom: 6px;
}

.fhf-bundle-price {
    font-size: 34px;
    font-weight: 800;
    color: #29abe2;
}

.fhf-bundle-copy {
    font-size: 18px;
    color: #495057;
    margin: 4px 0 0;
}

.fhf-bundle-cta {
    background: #29abe2;
    color: #fff;
    white-space: nowrap;
}

.fhf-bundle-cta:hover {
    color: #fff;
    text-decoration: none;
}

.fhf-tabc-only {
    text-align: center;
    margin-top: 22px;
    font-size: 16px;
}

.fhf-tabc-only a {
    font-weight: 700;
}

@media (max-width: 767px) {
    .fhf-offer-section {
        padding: 40px 0;
    }

    .fhf-primary-card {
        padding: 28px 20px;
    }

    .fhf-offer-title {
        font-size: 34px;
    }

    .fhf-price {
        font-size: 40px;
    }

    .fhf-offer-copy {
        font-size: 18px;
    }

    .fhf-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .fhf-bundle-layout {
        display: block;
        text-align: center;
    }

    .fhf-bundle-card {
        padding: 28px 20px;
    }

    .fhf-bundle-cta {
        margin-top: 20px;
    }
}

/* Homepage V2 - Hero CTA */

.fhf-hero-cta-wrap {
    margin-top: 26px;
}

.fhf-hero-cta {
    display: inline-block;
    background: #dc3545;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 18px;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 14px rgba(0,0,0,.18);
}

.fhf-hero-cta:hover {
    color: #fff !important;
    text-decoration: none !important;
}


/* Homepage V2 - How It Works */

.fhf-how-section {
    padding: 70px 0;
    background: #fff;
}

.fhf-how-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.fhf-how-heading {
    margin-bottom: 38px;
}

.fhf-how-heading h2 {
    font-size: 46px;
    margin: 4px 0 8px;
}

.fhf-how-heading p {
    font-size: 19px;
    color: #5f6872;
    margin: 0;
}

.fhf-how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.fhf-how-card {
    position: relative;
    text-align: center;
    background: #f7f9fb;
    border: 1px solid #e2e7eb;
    border-radius: 16px;
    padding: 36px 24px 30px;
}

.fhf-step-number {
    position: absolute;
    top: 16px;
    left: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #29abe2;
    color: #fff;
    font-weight: 800;
    line-height: 34px;
    text-align: center;
}

.fhf-how-icon {
    color: #29abe2;
    font-size: 40px;
    margin: 14px 0 20px;
}

.fhf-how-card h3 {
    font-size: 27px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.fhf-how-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #4f5963;
}

.fhf-how-cta-wrap {
    margin-top: 36px;
}

@media (max-width: 767px) {
    .fhf-hero-cta {
        width: 100%;
        max-width: 340px;
        text-align: center;
    }

    .fhf-how-section {
        padding: 48px 0;
    }

    .fhf-how-heading h2 {
        font-size: 38px;
    }

    .fhf-how-grid {
        grid-template-columns: 1fr;
    }

    .fhf-how-card {
        padding: 30px 20px 26px;
    }
}


/* Homepage V3 - Strong Primary CTA */

.fhf-primary-cta,
.fhf-hero-cta {
    min-width: 285px;
    text-align: center;
    padding: 17px 34px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .01em;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,.16);
    transition: transform .15s ease, box-shadow .15s ease;
}

.fhf-primary-cta:hover,
.fhf-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.20);
}

.fhf-cta-arrow {
    display: inline-block;
    margin-left: 8px;
    font-size: 23px;
    line-height: 1;
    vertical-align: -1px;
}

@media (max-width: 767px) {
    .fhf-primary-cta,
    .fhf-hero-cta {
        width: 100%;
        min-width: 0;
        max-width: 360px;
        padding: 16px 20px;
        font-size: 17px;
    }
}

/* Sharper homepage CTA treatment */
.section.home.first .fhf-hero-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-width: 330px !important;
    padding: 19px 32px !important;

    background: #ed3347 !important;
    border: 0 !important;
    border-radius: 10px !important;

    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    box-shadow: 0 6px 18px rgba(0,0,0,.22) !important;
    transform: none !important;
}

.section.home.first .fhf-hero-cta:hover {
    background: #d9273b !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

.section.home.first .fhf-cta-arrow {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 25px !important;
    font-weight: 400 !important;
    margin-left: 2px !important;
}

@media (max-width: 767px) {
    .section.home.first .fhf-hero-cta {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 360px;
        padding: 17px 20px !important;
        font-size: 18px !important;
    }
}


/* Homepage V4 - Unified CTA styling */

.fhf-primary-cta,
.fhf-final-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-width: 330px;
    padding: 19px 32px !important;

    background: #ed3347 !important;
    border: 0 !important;
    border-radius: 10px !important;

    color: #fff !important;
    text-decoration: none !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    box-shadow: 0 6px 18px rgba(0,0,0,.18) !important;
}

.fhf-primary-cta:hover,
.fhf-final-cta:hover {
    background: #d9273b !important;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}


/* Homepage V4 - Final CTA */

.fhf-final-cta-section {
    padding: 72px 0;
    background: #07314e;
}

.fhf-final-cta-card {
    max-width: 900px;
    margin: 0 auto;
    color: #fff;
}

.fhf-final-cta-card .fhf-eyebrow {
    color: #8bd4f4;
}

.fhf-final-cta-card h2 {
    color: #fff;
    font-size: 48px;
    margin: 6px 0 8px;
}

.fhf-final-price {
    font-size: 46px;
    font-weight: 800;
    color: #8bd4f4;
    margin-bottom: 14px;
}

.fhf-final-cta-card p {
    max-width: 700px;
    margin: 0 auto 28px;
    font-size: 19px;
    line-height: 1.55;
    color: #fff;
}

@media (max-width: 767px) {
    .fhf-primary-cta,
    .fhf-final-cta {
        width: 100%;
        min-width: 0;
        max-width: 360px;
        padding: 17px 20px !important;
        font-size: 18px !important;
    }

    .fhf-final-cta-section {
        padding: 50px 0;
    }

    .fhf-final-cta-card h2 {
        font-size: 38px;
    }

    .fhf-final-price {
        font-size: 40px;
    }
}

/* Hero alignment refinement */
@media (min-width: 992px) {
    .section.home.first > .container {
        max-width: 1180px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .section.home.first .col-md-6:first-child {
        padding-left: 0 !important;
    }
}

@media (min-width: 1200px) {
    .section.home.first .col-md-6:first-child {
        padding-left: 18px !important;
    }
}

/* Homepage V5 - Reduce white space and add section rhythm */

/* Slightly tighter pricing/offer section */
.fhf-offer-section {
    padding: 52px 0 !important;
    background: #f4f8fb !important;
}

/* Give How It Works its own visual band */
.fhf-how-section {
    padding: 58px 0 !important;
    background: #eaf5fb !important;
    border-top: 1px solid #d7ebf5;
    border-bottom: 1px solid #d7ebf5;
}

/* Cards stay bright against the blue-tinted section */
.fhf-how-card {
    background: #fff !important;
    border: 1px solid #d9e4ea !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
}

/* Tighten heading spacing */
.fhf-how-heading {
    margin-bottom: 30px !important;
}

.fhf-how-cta-wrap {
    margin-top: 30px !important;
}

/* Slightly tighten final CTA while keeping the strong navy finish */
.fhf-final-cta-section {
    padding: 60px 0 !important;
}

@media (max-width: 767px) {
    .fhf-offer-section {
        padding: 34px 0 !important;
    }

    .fhf-how-section {
        padding: 42px 0 !important;
    }

    .fhf-how-heading {
        margin-bottom: 24px !important;
    }

    .fhf-how-cta-wrap {
        margin-top: 26px !important;
    }

    .fhf-final-cta-section {
        padding: 44px 0 !important;
    }
}

/* Homepage V5.1 - Slightly stronger How It Works band */
.fhf-how-section {
    background: #dceef7 !important;
    border-top-color: #c8e2ef !important;
    border-bottom-color: #c8e2ef !important;
}

/* Homepage V5.1 - Slightly stronger How It Works band */
.fhf-how-section {
    background: #dceef7 !important;
    border-top-color: #c8e2ef !important;
    border-bottom-color: #c8e2ef !important;
}
