﻿/* =========================================================
   ACCUTRAK-CACFP.NET
   FEATURES PAGE
========================================================= */


/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */

.features-hero {
    background: linear-gradient( 110deg, #f7fbfa 0%, #eef8f1 55%, #e5f2e8 100% );
    overflow: hidden;
}

.features-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    min-height: 430px;
}

.features-hero-copy {
    padding: 58px 45px 55px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}


/* Small section label */

.eyebrow {
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

    .eyebrow::after {
        content: "";
        display: block;
        width: 48px;
        height: 3px;
        margin-top: 9px;
        background: var(--green);
        border-radius: 10px;
    }


/* Hero headline */

.features-hero h1 {
    margin: 0 0 22px;
    color: var(--blue);
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.035em;
}

    .features-hero h1 span {
        color: var(--green);
    }


/* Hero description */

.features-hero-copy p {
    max-width: 570px;
    margin: 0 0 25px;
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   HERO IMAGE
--------------------------------------------------------- */

.features-hero-photo {
    position: relative;
    min-height: 430px;
}

    .features-hero-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }


/* Text overlay */

.hero-note {
    position: absolute;
    right: 30px;
    bottom: 28px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.90);
    border-radius: 14px;
    color: var(--blue);
    font-size: 1.15rem;
    font-weight: 700;
    transform: rotate(-2deg);
}

    .hero-note span {
        color: var(--green);
    }


/* ---------------------------------------------------------
   FEATURES SECTION
--------------------------------------------------------- */

.features-section {
    padding: 65px 0 80px;
    background: #edf8fc;
}


/* Section heading */

.section-heading {
    max-width: 780px;
    margin: 0 auto 38px;
    text-align: center;
}

    .section-heading .eyebrow {
        margin-bottom: 12px;
    }

        .section-heading .eyebrow::after {
            margin-left: auto;
            margin-right: auto;
        }

    .section-heading h2 {
        margin: 0 0 8px;
        color: var(--blue);
        font-size: clamp(2rem, 4vw, 3rem);
        line-height: 1.1;
    }

    .section-heading p {
        margin: 0;
        color: var(--text-light);
        font-size: 1.08rem;
        line-height: 1.55;
    }


/* ---------------------------------------------------------
   FEATURE GRID
--------------------------------------------------------- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}


/* ---------------------------------------------------------
   FEATURE CARDS
--------------------------------------------------------- */

.feature-card {
    min-width: 0;
    padding: 22px 20px 24px;
    background: #ffffff;
    border: 1px solid #dce9ef;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(18, 59, 109, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .feature-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(18, 59, 109, 0.12);
    }


/* ---------------------------------------------------------
   FEATURE ICONS
--------------------------------------------------------- */

.feature-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 15px;
    border-radius: 50%;
    background: var(--green);
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
}


/* Give cards some visual variety */

.feature-card:nth-child(5n + 1) .feature-icon {
    background: #397fc1;
}

.feature-card:nth-child(5n + 2) .feature-icon {
    background: #3a984d;
}

.feature-card:nth-child(5n + 3) .feature-icon {
    background: #9452a6;
}

.feature-card:nth-child(5n + 4) .feature-icon {
    background: #ed741f;
}

.feature-card:nth-child(5n + 5) .feature-icon {
    background: #d52f39;
}


/* ---------------------------------------------------------
   FEATURE TITLES
--------------------------------------------------------- */

.feature-card h3 {
    margin: 0 0 15px;
    color: var(--blue);
    font-size: 1.22rem;
    line-height: 1.12;
    font-weight: 800;
}


/* ---------------------------------------------------------
   FEATURE BULLET LISTS
--------------------------------------------------------- */

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card li {
    position: relative;
    padding: 3px 0 3px 15px;
    color: #42545e;
    font-size: 0.93rem;
    line-height: 1.3;
}

    .feature-card li::before {
        content: "•";
        position: absolute;
        left: 0;
        top: 3px;
        color: var(--green);
        font-weight: 900;
    }


/* ---------------------------------------------------------
   CALL TO ACTION
--------------------------------------------------------- */

.features-cta {
    padding: 22px 0;
    background: #edf7e9;
}

.features-cta-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 18px 34px;
    background: linear-gradient( 90deg, #e7f5e5, #d9efd8 );
    border-radius: 14px;
}

.features-cta h2 {
    margin: 0;
    color: var(--blue);
    font-size: clamp( 1.35rem, 2.4vw, 2rem );
    line-height: 1.2;
}


/* CTA button */

.cta-button {
    flex-shrink: 0;
    padding: 13px 27px;
    background: var(--green);
    color: #ffffff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

    .cta-button:hover {
        background: var(--green-dark);
    }


/* ---------------------------------------------------------
   LARGE SCREENS
--------------------------------------------------------- */

@media (min-width: 1300px) {

    .features-section .container {
        width: min( 1420px, calc(100% - 40px) );
    }
}


/* ---------------------------------------------------------
   TABLET / SMALL DESKTOP
--------------------------------------------------------- */

@media (max-width: 1150px) {

    .features-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* ---------------------------------------------------------
   TABLET
--------------------------------------------------------- */

@media (max-width: 850px) {

    .features-hero-inner {
        grid-template-columns: 1fr;
    }

    .features-hero-copy {
        padding: 45px 0 40px;
    }

    .features-hero-photo {
        min-height: 360px;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .features-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 560px) {

    .features-section {
        padding: 48px 0 55px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 22px;
    }

    .features-hero h1 {
        font-size: 2.65rem;
    }

    .features-hero-photo {
        min-height: 300px;
    }

    .hero-note {
        right: 15px;
        bottom: 15px;
    }

    .features-cta-inner {
        padding: 24px;
    }
}
