/* =========================================================
   COST GUIDES HUB
========================================================= */

.cost-guides-page {
    background: #ffffff;
}


/* =========================================================
   HERO
========================================================= */

.cost-guides-hero {
    padding: 60px 0 85px;

    background:
        linear-gradient(
            135deg,
            #f0fdf4 0%,
            #ffffff 50%,
            #eef6ff 100%
        );
}

.cost-guides-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 70px;
    align-items: center;
}

.cost-guides-hero-content {
    max-width: 780px;
}

.cost-guides-hero h1 {
    margin: 14px 0 22px;
    max-width: 760px;

    color: #173b63;

    font-size: 54px;
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.cost-guides-hero-content > p {
    max-width: 680px;
    margin: 0 0 30px;

    color: #475569;

    font-size: 18px;
    line-height: 1.75;
}


/* =========================================================
   HERO CARD
========================================================= */

.cost-guides-hero-card {
    padding: 36px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 24px;

    box-shadow: 0 20px 55px rgba(15, 23, 42, .09);
}

.cost-guides-card-label {
    display: inline-flex;

    margin-bottom: 16px;
    padding: 6px 11px;

    background: #ecfdf3;
    color: #15803d;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.cost-guides-hero-card h3 {
    margin: 0 0 22px;

    color: #173b63;

    font-size: 26px;
    line-height: 1.3;
}

.cost-factor-row {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;

    padding: 17px 0;

    border-top: 1px solid #e2e8f0;
}

.cost-factor-row > span {
    color: #16a34a;

    font-size: 20px;
    font-weight: 800;
}

.cost-factor-row strong {
    display: block;

    margin-bottom: 3px;

    color: #173b63;
}

.cost-factor-row p {
    margin: 0;

    color: #475569;

    font-size: 14px;
    line-height: 1.55;
}


/* =========================================================
   SHARED SECTION HEADINGS
========================================================= */

.cost-guides-page .section-heading {
    max-width: 820px;

    margin: 0 auto 52px;

    text-align: center;
}


/* =========================================================
   FEATURED COST GUIDES
========================================================= */

.featured-cost-guides-section {
    padding: 100px 0;
}

.featured-cost-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 26px;
}

.featured-cost-card {
    padding: 34px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 20px;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.featured-cost-card:hover {
    transform: translateY(-5px);

    border-color: #bbf7d0;

    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.featured-primary {
    background:
        linear-gradient(
            145deg,
            #f0fdf4,
            #ffffff
        );

    border-color: #bbf7d0;
}

.cost-guide-badge {
    display: inline-flex;

    margin-bottom: 18px;
    padding: 6px 10px;

    border-radius: 999px;

    background: #ecfdf3;
    color: #15803d;

    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.featured-cost-card h3 {
    margin: 0 0 14px;

    color: #173b63;

    font-size: 23px;
    line-height: 1.35;
}

.featured-cost-card p {
    margin: 0 0 20px;

    color: #475569;

    line-height: 1.7;
}

.featured-cost-card a {
    color: #15803d;

    font-weight: 700;
    text-decoration: none;
}

.featured-cost-card a:hover {
    color: #166534;
}


/* =========================================================
   COST GUIDE CATEGORIES
========================================================= */

.cost-guide-categories-section {
    padding: 100px 0;

    background: #f8fafc;
}

.cost-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 22px;
}

.cost-category-card {
    display: block;

    padding: 28px;

    min-height: 250px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 18px;

    text-decoration: none;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.cost-category-card:hover {
    transform: translateY(-5px);

    border-color: #bbf7d0;

    box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
}

.featured-cost-category {
    background:
        linear-gradient(
            145deg,
            #f0fdf4,
            #ffffff
        );

    border-color: #bbf7d0;
}

.cost-category-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 14px;

    background: #f1f5f9;

    font-size: 26px;
}

.featured-cost-category .cost-category-icon {
    background: #dcfce7;
}

.cost-category-card h3 {
    margin: 0 0 10px;

    color: #173b63;

    font-size: 21px;
    line-height: 1.3;
}

.cost-category-card p {
    margin: 0 0 18px;

    color: #475569;

    font-size: 14px;
    line-height: 1.65;
}

.cost-category-card span {
    color: #15803d;

    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   PROJECT COST FACTORS
========================================================= */

.project-cost-factors-section {
    padding: 100px 0;
}

.project-cost-factors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}

.project-cost-factor {
    padding: 32px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

.project-cost-factor > span {
    display: block;

    margin-bottom: 18px;

    color: #16a34a;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: .8px;
}

.project-cost-factor h3 {
    margin: 0 0 10px;

    color: #173b63;

    font-size: 21px;
}

.project-cost-factor p {
    margin: 0;

    color: #475569;

    line-height: 1.7;
}


/* =========================================================
   LOCAL COST GUIDES
========================================================= */

.local-cost-guides-section {
    padding: 100px 0;

    background: #f8fafc;
}

.local-cost-guides-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;

    gap: 65px;

    align-items: center;
}

.local-cost-guides-grid h2 {
    margin: 13px 0 18px;

    color: #173b63;

    font-size: 41px;
    line-height: 1.2;
}

.local-cost-guides-grid p {
    color: #475569;

    line-height: 1.8;
}

.local-cost-city-box {
    padding: 36px;

    background: #173b63;

    border-radius: 22px;
}

.local-cost-city-box h3 {
    margin: 0 0 20px;

    color: #ffffff;

    font-size: 24px;
}

.local-cost-city-box a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 0;

    border-top: 1px solid rgba(255,255,255,.14);

    color: #e2e8f0;

    font-weight: 600;
    text-decoration: none;

    transition: color .2s ease;
}

.local-cost-city-box a:hover {
    color: #4ade80;
}

.local-cost-city-box a span {
    transition: transform .2s ease;
}

.local-cost-city-box a:hover span {
    transform: translateX(4px);
}


/* =========================================================
   COST GUIDE PROCESS
========================================================= */

.cost-guide-process-section {
    padding: 100px 0;
}

.cost-guide-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 28px;

    max-width: 1100px;

    margin: 0 auto;
}

.cost-guide-process-card {
    padding: 34px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 20px;
}

.cost-guide-process-card > span {
    display: block;

    margin-bottom: 20px;

    color: #16a34a;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: .8px;
}

.cost-guide-process-card h3 {
    margin: 0 0 11px;

    color: #173b63;

    font-size: 22px;
}

.cost-guide-process-card p {
    margin: 0;

    color: #475569;

    line-height: 1.7;
}


/* =========================================================
   COST GUIDE NOTE
========================================================= */

.cost-guides-note-section {
    padding: 0 0 100px;
}

.cost-guides-note {
    display: grid;
    grid-template-columns: 54px 1fr;

    gap: 20px;

    padding: 30px 34px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

.cost-note-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ecfdf3;
    color: #15803d;

    font-weight: 800;
    font-size: 20px;
}

.cost-guides-note h3 {
    margin: 0 0 8px;

    color: #173b63;

    font-size: 21px;
}

.cost-guides-note p {
    margin: 0;

    color: #475569;

    line-height: 1.7;
}


/* =========================================================
   FINAL CTA
========================================================= */

.cost-guides-final-cta {
    padding: 85px 0;

    background: #173b63;
}

.cost-guides-final-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

.cost-guides-final-cta h2 {
    margin: 12px 0;

    color: #ffffff;

    font-size: 37px;
}

.cost-guides-final-cta p {
    margin: 0;

    color: #cbd5e1;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .cost-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 950px) {

    .cost-guides-hero-grid,
    .local-cost-guides-grid {
        grid-template-columns: 1fr;
    }

    .featured-cost-grid,
    .project-cost-factors-grid,
    .cost-guide-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .cost-guides-hero h1 {
        font-size: 45px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .cost-guides-hero {
        padding: 45px 0 60px;
    }

    .cost-guides-hero h1 {
        font-size: 35px;
        letter-spacing: -.8px;
    }

    .featured-cost-grid,
    .cost-category-grid,
    .project-cost-factors-grid,
    .cost-guide-process-grid {
        grid-template-columns: 1fr;
    }

    .featured-cost-guides-section,
    .cost-guide-categories-section,
    .project-cost-factors-section,
    .local-cost-guides-section,
    .cost-guide-process-section {
        padding: 70px 0;
    }

    .cost-category-card {
        min-height: auto;
    }

    .local-cost-guides-grid h2 {
        font-size: 34px;
    }

    .cost-guides-note {
        grid-template-columns: 1fr;
    }

    .cost-guides-final-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cost-guides-final-cta h2 {
        font-size: 31px;
    }

}