﻿/* =========================================================
   ACCUTRAK-CACFP.NET
   HOME PAGE
========================================================= */


/* =========================================================
   HERO
========================================================= */

.home-hero {
    position: relative;
    padding: 0 0 48px;
    overflow: hidden;
    background: linear-gradient( 100deg, rgba(247, 252, 249, 1) 0%, rgba(241, 250, 245, 0.98) 46%, rgba(228, 245, 233, 0.94) 100% );
}


    /* Subtle decorative glow */

    .home-hero::before {
        content: "";
        position: absolute;
        width: 600px;
        height: 600px;
        right: -180px;
        top: -180px;
        background: radial-gradient( circle, rgba(112, 190, 125, 0.25), transparent 68% );
        pointer-events: none;
    }


/* ---------------------------------------------------------
   HERO GRID
--------------------------------------------------------- */

.hero-grid {
    min-height: 455px;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: 55px;
    position: relative;
    z-index: 2;
}


/* ---------------------------------------------------------
   HERO COPY
--------------------------------------------------------- */

.hero-copy {
    padding: 65px 0 95px;
}

    .hero-copy h1 {
        max-width: 650px;
        margin-bottom: 24px;
        color: var(--blue);
        font-size: clamp( 2.7rem, 4.8vw, 4.25rem );
        font-weight: 700;
        line-height: 1.02;
        letter-spacing: -0.035em;
    }

        .hero-copy h1 span {
            color: var(--green);
        }

.hero-intro {
    max-width: 660px;
    margin: 0;
    color: #455a64;
    font-size: 1.08rem;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   HERO IMAGE
--------------------------------------------------------- */

.hero-photo {
    height: 455px;
    position: relative;
    align-self: stretch;
}

    .hero-photo::before {
        content: "";
        position: absolute;
        width: 330px;
        height: 330px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        background: rgba(255, 255, 255, 0.35);
        border-radius: 50%;
        filter: blur(20px);
    }

    .hero-photo img {
        position: relative;
        z-index: 2;
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center;
        border-radius: 0 0 0 70px;
    }


/* =========================================================
   LOGIN CARDS
========================================================= */

.login-cards {
    position: relative;
    z-index: 10;
    margin-top: -45px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.login-card {
    min-height: 94px;
    display: grid;
    grid-template-columns: 50px 1fr 20px;
    align-items: center;
    gap: 13px;
    padding: 20px 19px;
    color: var(--white);
    background: linear-gradient( 135deg, #154778, #0d3763 );
    border-radius: 12px;
    box-shadow: 0 12px 25px rgba(9, 42, 78, 0.17);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .login-card:hover {
        color: var(--white);
        transform: translateY(-4px);
        background: linear-gradient( 135deg, #19609a, #123b6d );
        box-shadow: 0 16px 32px rgba(9, 42, 78, 0.24);
    }


/* Login icons */

.login-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.11);
    border-radius: 50%;
}

    .login-icon svg {
        width: 25px;
        height: 25px;
        fill: #ffffff;
    }


/* Login text */

.login-label {
    font-size: 0.93rem;
    line-height: 1.15;
}

    .login-label strong {
        display: block;
        margin-top: 3px;
        color: var(--white);
        font-size: 1.15rem;
        font-weight: 700;
    }

.login-arrow {
    color: #9fdeb1;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
}


/* =========================================================
   FOUR FEATURE COLUMNS
========================================================= */

.home-features {
    padding: 58px 0 62px;
    background: linear-gradient( 180deg, #f7fbf5 0%, #f1f8ee 100% );
    border-top: 1px solid #e2eee0;
    border-bottom: 1px solid #dce8dc;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.home-feature {
    position: relative;
    padding: 5px 30px;
    text-align: center;
}

    .home-feature:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 12px;
        bottom: 12px;
        width: 1px;
        background: #d8e5d7;
    }


/* Feature icons */

.feature-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 17px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 2rem;
}

    .feature-icon svg {
        width: 30px;
        height: 30px;
    }

.feature-icon-green {
    color: var(--green);
    background: #e2f3e5;
}

    .feature-icon-green svg {
        fill: var(--green);
    }

.feature-icon-blue {
    color: var(--blue);
    background: #e4eef7;
}

    .feature-icon-blue svg {
        fill: var(--blue);
    }


/* Feature text */

.home-feature h2 {
    margin-bottom: 8px;
    color: var(--blue);
    font-size: 1.2rem;
    font-weight: 700;
}

.home-feature p {
    min-height: 52px;
    margin-bottom: 12px;
    color: #60717c;
    font-size: 0.96rem;
    line-height: 1.45;
}

.home-feature a {
    color: var(--green);
    font-size: 0.92rem;
    font-weight: 700;
}

    .home-feature a span {
        display: inline-block;
        margin-left: 3px;
        transition: transform 0.2s ease;
    }

    .home-feature a:hover span {
        transform: translateX(4px);
    }


/* =========================================================
   COMMUNITY SECTION
========================================================= */

.community-section {
    padding: 90px 0;
    background: var(--white);
}

.community-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 75px;
}


/* Copy */

.community-copy {
    max-width: 650px;
}

    .community-copy h2 {
        margin-bottom: 24px;
        color: var(--blue);
        font-size: clamp( 2rem, 3.6vw, 3rem );
        line-height: 1.08;
        letter-spacing: -0.02em;
    }

    .community-copy p {
        margin-bottom: 17px;
        color: #566b77;
        font-size: 1.04rem;
        line-height: 1.72;
    }

    .community-copy .secondary-button {
        margin-top: 12px;
    }


/* ---------------------------------------------------------
   COMMUNITY IMAGE
--------------------------------------------------------- */

.community-image {
    position: relative;
}

    .community-image::before {
        content: "";
        position: absolute;
        left: -20px;
        bottom: -20px;
        width: 65%;
        height: 75%;
        background: #e4f2e8;
        border-radius: 25px;
        z-index: 0;
    }

    .community-image img {
        position: relative;
        z-index: 1;
        width: 100%;
        min-height: 370px;
        display: block;
        object-fit: cover;
        border-radius: 22px;
        box-shadow: var(--shadow-large);
    }


/* =========================================================
   TRUST / SUPPORT STRIP
========================================================= */

.trust-section {
    padding: 44px 0;
    background: #f4f7f8;
    border-top: 1px solid #e2e8eb;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.trust-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    padding: 5px 35px;
}

    .trust-item:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 5px;
        bottom: 5px;
        width: 1px;
        background: #d8e1e5;
    }


/* Trust icons */

.trust-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    color: var(--green);
    background: #e3f2e7;
    border-radius: 50%;
}

    .trust-icon svg {
        width: 28px;
        height: 28px;
        fill: var(--green);
    }

.leaf-icon {
    font-size: 1.2rem;
}


/* Trust copy */

.trust-item h2 {
    margin: 0 0 3px;
    color: var(--blue);
    font-size: 1.1rem;
}

.trust-item p {
    margin: 0;
    color: #65757e;
    font-size: 0.9rem;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    /* Hero */

    .hero-grid {
        grid-template-columns: 1fr 0.8fr;
        gap: 30px;
    }

    .hero-copy h1 {
        font-size: 3.15rem;
    }


    /* Login */

    .login-cards {
        grid-template-columns: repeat(2, 1fr);
    }


    /* Features */

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .home-feature {
        padding: 30px;
    }

        .home-feature:nth-child(2)::after {
            display: none;
        }

        .home-feature:nth-child(-n + 2) {
            border-bottom: 1px solid #d8e5d7;
        }


    /* Community */

    .community-grid {
        gap: 45px;
    }
}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 800px) {

    /* Hero */

    .home-hero {
        padding-bottom: 40px;
    }

    .hero-grid {
        display: block;
        min-height: auto;
    }

    .hero-copy {
        padding: 55px 0 35px;
    }

        .hero-copy h1 {
            max-width: 650px;
            font-size: 3.2rem;
        }

    .hero-photo {
        height: 390px;
    }

        .hero-photo img {
            border-radius: 24px 24px 0 0;
        }


    /* Login cards */

    .login-cards {
        margin-top: 25px;
    }


    /* Community */

    .community-grid {
        grid-template-columns: 1fr;
    }

    .community-copy {
        max-width: 720px;
    }

    .community-image {
        max-width: 650px;
    }


    /* Trust */

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-item {
        justify-content: flex-start;
        padding: 20px 0;
    }

        .trust-item:not(:last-child)::after {
            left: 0;
            right: 0;
            top: auto;
            bottom: 0;
            width: auto;
            height: 1px;
        }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 560px) {

    /* Hero */

    .hero-copy {
        padding-top: 45px;
    }

        .hero-copy h1 {
            font-size: 2.55rem;
        }

    .hero-intro {
        font-size: 1rem;
    }

    .hero-photo {
        height: 310px;
    }


    /* Login */

    .login-cards {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .login-card {
        min-height: 82px;
    }


    /* Feature section */

    .home-features {
        padding: 35px 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .home-feature {
        padding: 30px 10px;
        border-bottom: 1px solid #d8e5d7;
    }

        .home-feature:not(:last-child)::after {
            display: none;
        }

        .home-feature:last-child {
            border-bottom: 0;
        }

        .home-feature p {
            min-height: auto;
        }


    /* Community */

    .community-section {
        padding: 65px 0;
    }

    .community-copy h2 {
        font-size: 2.15rem;
    }

    .community-image img {
        min-height: 285px;
    }


    /* Trust */

    .trust-section {
        padding: 25px 0;
    }
}
