﻿/* =========================================================
   ALPINE HOME PAGE
========================================================= */

:root {
    --home-navy: #092454;
    --home-blue: #1769e0;
    --home-blue-dark: #0d55bd;
    --home-text: #17233b;
    --home-muted: #667085;
    --home-border: #e5eaf2;
    --home-light: #f5f8fd;
    --home-white: #ffffff;
}


/* =========================================================
   GLOBAL
========================================================= */

.home-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.home-eyebrow {
    margin-bottom: 14px;
    color: var(--home-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
}


/* =========================================================
   BUTTONS
========================================================= */

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

    .home-btn:hover {
        transform: translateY(-2px);
        text-decoration: none;
    }

.home-btn-primary {
    background: var(--home-blue);
    color: #fff;
    box-shadow: 0 8px 20px rgba(23,105,224,.18);
}

    .home-btn-primary:hover {
        background: var(--home-blue-dark);
        color: #fff;
    }

.home-btn-secondary {
    border: 1px solid #ccd6e5;
    background: #fff;
    color: var(--home-navy);
}

    .home-btn-secondary:hover {
        background: #f7f9fc;
        color: var(--home-navy);
    }

.home-btn-light {
    background: #fff;
    color: var(--home-navy);
}

    .home-btn-light:hover {
        background: #f4f7fb;
        color: var(--home-navy);
    }


/* =========================================================
   HERO
========================================================= */

.home-hero {
    padding: 78px 0 90px;
    overflow: hidden;
    background: linear-gradient( 135deg, #f5f9ff 0%, #eef5ff 55%, #f8fbff 100% );
}

.home-hero-grid {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    align-items: center;
    gap: 65px;
}

.home-hero-content h1 {
    margin: 0;
    color: var(--home-navy);
    font-size: clamp(44px, 5vw, 66px);
    line-height: 1.03;
    font-weight: 850;
    letter-spacing: -2.5px;
}

    .home-hero-content h1 span {
        display: block;
        color: var(--home-blue);
    }

.home-hero-text {
    max-width: 570px;
    margin: 25px 0 0;
    color: var(--home-muted);
    font-size: 17px;
    line-height: 1.7;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.home-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
    color: #46536b;
    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   HERO DASHBOARD
========================================================= */

.home-hero-visual {
    min-width: 0;
}

.home-dashboard {
    overflow: hidden;
    border: 1px solid #dce5f1;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(16,48,91,.15), 0 8px 20px rgba(16,48,91,.07);
}

.home-dashboard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    padding: 0 20px;
    border-bottom: 1px solid #e5eaf2;
    background: #fff;
}

.home-dashboard-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-dashboard-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: var(--home-navy);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.home-dashboard-brand strong {
    display: block;
    color: var(--home-navy);
    font-size: 12px;
    letter-spacing: .8px;
}

.home-dashboard-brand small {
    display: block;
    margin-top: 2px;
    color: #8a96a8;
    font-size: 7px;
    letter-spacing: .8px;
}

.home-dashboard-status {
    padding: 6px 9px;
    border-radius: 5px;
    background: #edf4ff;
    color: var(--home-blue);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .7px;
}

.home-dashboard-body {
    padding: 27px;
    background: #f7f9fc;
}

.home-dashboard-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

    .home-dashboard-heading span {
        color: var(--home-navy);
        font-size: 15px;
        font-weight: 800;
    }

    .home-dashboard-heading small {
        color: #8792a4;
        font-size: 9px;
    }

.home-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

    .home-dashboard-cards > div {
        min-height: 105px;
        padding: 15px;
        border: 1px solid #e2e8f0;
        border-radius: 7px;
        background: #fff;
    }

    .home-dashboard-cards span {
        display: block;
        color: #8894a7;
        font-size: 9px;
    }

    .home-dashboard-cards strong {
        display: block;
        margin-top: 9px;
        color: var(--home-navy);
        font-size: 19px;
    }

    .home-dashboard-cards small {
        display: block;
        margin-top: 6px;
        color: #8c97a8;
        font-size: 8px;
    }

.home-dashboard-chart {
    position: relative;
    height: 170px;
    margin-top: 12px;
    padding: 17px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #fff;
}

.home-chart-title strong {
    display: block;
    color: var(--home-navy);
    font-size: 12px;
}

.home-chart-title span {
    display: block;
    margin-top: 4px;
    color: #929cad;
    font-size: 8px;
}

.home-chart-lines {
    position: absolute;
    right: 18px;
    bottom: 20px;
    left: 18px;
    height: 75px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 15px;
}

    .home-chart-lines i {
        display: block;
        width: 14%;
        border-radius: 3px 3px 0 0;
        background: #d9e8ff;
    }

        .home-chart-lines i:nth-child(1) {
            height: 35%;
        }

        .home-chart-lines i:nth-child(2) {
            height: 60%;
        }

        .home-chart-lines i:nth-child(3) {
            height: 45%;
        }

        .home-chart-lines i:nth-child(4) {
            height: 80%;
        }

        .home-chart-lines i:nth-child(5) {
            height: 65%;
        }


/* =========================================================
   SECTION HEADING
========================================================= */

.home-section-heading {
    max-width: 720px;
    margin: 0 auto 55px;
    text-align: center;
}

    .home-section-heading h2 {
        margin: 0;
        color: var(--home-navy);
        font-size: 38px;
        line-height: 1.15;
        font-weight: 800;
        letter-spacing: -.8px;
    }

        .home-section-heading h2 span {
            color: var(--home-blue);
        }

    .home-section-heading p {
        max-width: 650px;
        margin: 18px auto 0;
        color: var(--home-muted);
        font-size: 16px;
        line-height: 1.7;
    }


/* =========================================================
   PRODUCTS
========================================================= */

.home-products {
    padding: 100px 0;
    background: #fff;
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.home-product-card {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 20px;
    padding: 30px;
    border: 1px solid var(--home-border);
    border-radius: 10px;
    background: #fff;
    transition: .2s ease;
}

    .home-product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 35px rgba(19,45,83,.08);
    }

.home-product-number {
    color: #b7c2d2;
    font-size: 12px;
    font-weight: 800;
}

.home-product-icon {
    position: absolute;
    top: 27px;
    right: 27px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #edf4ff;
    font-size: 18px;
}

.home-product-content {
    grid-column: 2;
}

    .home-product-content small {
        color: var(--home-blue);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 1.1px;
    }

    .home-product-content h3 {
        margin: 8px 0 0;
        color: var(--home-navy);
        font-size: 22px;
        font-weight: 800;
    }

    .home-product-content p {
        max-width: 460px;
        margin: 12px 0 20px;
        color: var(--home-muted);
        font-size: 14px;
        line-height: 1.65;
    }

    .home-product-content a {
        color: var(--home-blue);
        font-size: 13px;
        font-weight: 750;
        text-decoration: none;
    }

        .home-product-content a:hover {
            color: var(--home-blue-dark);
            text-decoration: underline;
        }


/* =========================================================
   WHY ALPINE
========================================================= */

.home-why {
    padding: 100px 0;
    background: var(--home-light);
}

.home-why-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 85px;
    align-items: start;
}

.home-why-content h2 {
    margin: 0;
    color: var(--home-navy);
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
}

    .home-why-content h2 span {
        display: block;
        color: var(--home-blue);
    }

.home-why-content > p {
    margin: 20px 0 25px;
    color: var(--home-muted);
    font-size: 15px;
    line-height: 1.75;
}

.home-text-link {
    color: var(--home-blue);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

    .home-text-link:hover {
        color: var(--home-blue-dark);
        text-decoration: underline;
    }

.home-why-list {
    border-top: 1px solid #dfe6f0;
}

.home-why-item {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #dfe6f0;
}

    .home-why-item > span {
        color: #aab6c8;
        font-size: 12px;
        font-weight: 800;
    }

    .home-why-item h3 {
        margin: 0;
        color: var(--home-navy);
        font-size: 18px;
        font-weight: 800;
    }

    .home-why-item p {
        margin: 7px 0 0;
        color: var(--home-muted);
        font-size: 13px;
        line-height: 1.6;
    }


/* =========================================================
   BUSINESS TYPES
========================================================= */

.home-businesses {
    padding: 100px 0;
    background: #fff;
}

.home-business-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.home-business-item {
    padding: 28px 23px;
    border: 1px solid var(--home-border);
    border-radius: 9px;
    background: #fff;
}

.home-business-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 7px;
    background: var(--home-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.home-business-item h3 {
    margin: 0;
    color: var(--home-navy);
    font-size: 18px;
    font-weight: 800;
}

.home-business-item p {
    min-height: 45px;
    margin: 10px 0 18px;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.55;
}

.home-business-item a {
    color: var(--home-blue);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}


/* =========================================================
   ABOUT
========================================================= */

.home-about {
    padding: 100px 0;
    background: var(--home-light);
}

.home-about-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 85px;
}

    .home-about-grid h2 {
        margin: 0;
        color: var(--home-navy);
        font-size: 38px;
        line-height: 1.18;
        font-weight: 800;
    }

        .home-about-grid h2 span {
            display: block;
            color: var(--home-blue);
        }

    .home-about-grid p {
        margin: 0 0 18px;
        color: var(--home-muted);
        font-size: 15px;
        line-height: 1.75;
    }


/* =========================================================
   FINAL CTA
========================================================= */

.home-final {
    padding: 80px 0;
    background: #fff;
}

.home-final-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 55px 60px;
    border-radius: 12px;
    background: var(--home-navy);
}

    .home-final-card .home-eyebrow {
        color: #8bb7ff;
    }

    .home-final-card h2 {
        max-width: 650px;
        margin: 0;
        color: #fff;
        font-size: 34px;
        line-height: 1.2;
        font-weight: 800;
    }

    .home-final-card p {
        max-width: 650px;
        margin: 12px 0 0;
        color: #c4d0e3;
        font-size: 14px;
        line-height: 1.6;
    }

.home-final-actions {
    flex-shrink: 0;
    text-align: center;
}

.home-back-link {
    display: block;
    margin-top: 15px;
    color: #b9c8df;
    font-size: 12px;
    text-decoration: none;
}

    .home-back-link:hover {
        color: #fff;
    }


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .home-hero {
        padding: 60px 0 70px;
    }

    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .home-hero-content {
        text-align: center;
    }

    .home-hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-actions {
        justify-content: center;
    }

    .home-hero-points {
        justify-content: center;
    }

    .home-product-grid {
        grid-template-columns: 1fr 1fr;
    }

    .home-business-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-why-grid,
    .home-about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .home-final-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 45px;
    }

    .home-final-actions {
        text-align: left;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .home-container {
        width: min(100% - 28px, 600px);
    }

    .home-hero {
        padding: 45px 0 55px;
    }

    .home-hero-content h1 {
        font-size: 42px;
        letter-spacing: -1.5px;
    }

    .home-hero-text {
        font-size: 15px;
    }

    .home-hero-actions {
        flex-direction: column;
    }

    .home-btn {
        width: 100%;
    }

    .home-hero-points {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
        text-align: left;
    }

    .home-dashboard-body {
        padding: 16px;
    }

    .home-dashboard-cards {
        grid-template-columns: 1fr 1fr;
    }

        .home-dashboard-cards > div {
            min-height: 90px;
        }

    .home-dashboard-status {
        display: none;
    }

    .home-section-heading {
        margin-bottom: 38px;
    }

        .home-section-heading h2 {
            font-size: 30px;
        }

        .home-section-heading p {
            font-size: 14px;
        }

    .home-products,
    .home-why,
    .home-businesses,
    .home-about {
        padding: 70px 0;
    }

    .home-product-grid {
        grid-template-columns: 1fr;
    }

    .home-product-card {
        padding: 24px;
    }

    .home-product-icon {
        top: 22px;
        right: 22px;
    }

    .home-product-content h3 {
        font-size: 20px;
    }

    .home-business-grid {
        grid-template-columns: 1fr;
    }

    .home-why-content h2,
    .home-about-grid h2 {
        font-size: 30px;
    }

    .home-final {
        padding: 50px 0;
    }

    .home-final-card {
        padding: 35px 25px;
        border-radius: 9px;
    }

        .home-final-card h2 {
            font-size: 28px;
        }

    .home-final-actions {
        width: 100%;
    }
}
