/* ==========================================================================
   Homepage v2 Styles
   Riga Home Pro - Fairfield County CT
   Typography, colors and spacing mirror /css/locations.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables (same scheme as the Locations page)
   -------------------------------------------------------------------------- */
:root {
    --charcoal-primary: #1C1C1C;
    --charcoal-soft: #222222;
    --charcoal-dark: #555555;
    --accent-red: #9B1C2C;
    --accent-red-hover: #7F1824;
    --white: #FFFFFF;
    --light-gray: #DFDFDF;
    --body-text: #333333;
    --light-text: #DADADA;
    --border-color: #E5E5E5;
    --star-color: #F5B301;
    /* Service card body. Keep --card-dark-rgb in sync with --card-dark:
       it feeds the transparent stops of the fade gradient. */
    --card-dark: #393939;
    --card-dark-rgb: 57, 57, 57;
}

/* --------------------------------------------------------------------------
   Base Page Styles
   -------------------------------------------------------------------------- */
.hp-page {
    font-family: 'Inter', sans-serif;
    color: var(--body-text);
    line-height: 1.7;
}

.hp-page h1,
.hp-page h2,
.hp-page h3,
.hp-page h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.75em;
}

.hp-page h2 {
    color: var(--charcoal-primary);
    font-size: 2.0rem;
    margin: 0 0 1.0em;
}

.hp-page p {
    margin-bottom: 1em;
}

.hp-section {
    padding: 53px 0;
}

@media (min-width: 992px) {
    .hp-section {
        padding: 67px 0;
    }
}

/* Small uppercase red label above section titles */
.hp-page .hp-eyebrow {
    color: var(--accent-red);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.4;
    margin: 0 0 0.6em;
}

.hp-page .hp-subtitle {
    text-align: center;
    color: var(--body-text);
    font-size: 1.7rem;
    font-weight: 400;
    max-width: 750px;
    margin: 0 auto 35px;
}

/* Black source SVGs recolored in CSS: the file is used as a mask and the
   visible colour comes from background-color. Set the file via --icon. */
.hp-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--accent-red);
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   Button & Link Styles
   -------------------------------------------------------------------------- */
.btn-hp-primary,
.btn-hp-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 30px;
    font-size: 1.6rem;
    font-weight: 600;
    height: 44px;
    border-radius: 4px;
    text-decoration: none;
    text-shadow: none;
    background-image: none;
    transition: all 0.3s ease;
}

.btn-hp-primary {
    background-color: var(--accent-red);
    color: var(--white);
    border: 2px solid var(--accent-red);
}

.btn-hp-primary:hover,
.btn-hp-primary:focus {
    background-color: var(--accent-red-hover);
    border-color: var(--accent-red-hover);
    color: var(--white);
    text-decoration: none;
}

.btn-hp-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-hp-outline:hover,
.btn-hp-outline:focus {
    background-color: var(--white);
    color: var(--charcoal-primary);
    text-decoration: none;
}

.btn-hp-primary svg,
.btn-hp-outline svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Red text link with arrow (same as .view-more-link on /locations) */
.hp-link {
    color: var(--accent-red);
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
    background-image: none;
    text-shadow: none;
}

.hp-link:hover,
.hp-link:focus {
    color: var(--accent-red-hover);
    text-decoration: underline;
}

.hp-link svg,
.card-link svg {
    margin-left: 8px;
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Same size as the eyebrow label */
.hp-link.hp-link-small {
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hp-link.hp-link-small svg {
    width: 14px;
    height: 14px;
}

.hp-closing {
    text-align: center;
    margin-top: 35px;
}

/* --------------------------------------------------------------------------
   Section 1: Hero
   -------------------------------------------------------------------------- */
.hp-hero {
    position: relative;
    background: var(--charcoal-primary);
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 100px 0;
    overflow: hidden;
}

.hp-hero .hp-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Dark on the left behind the heading, text and buttons, fading out
   towards the centre so the house and roof on the right stay bright */
.hp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0.70) 0%,
        rgba(0, 0, 0, 0.60) 35%,
        rgba(0, 0, 0, 0.40) 55%,
        rgba(0, 0, 0, 0.15) 75%,
        rgba(0, 0, 0, 0.05) 100%);
    z-index: 1;
}

.hp-hero .container {
    position: relative;
    z-index: 2;
}

/* Keeps white text readable on the light overlay */
.hp-hero h1,
.hp-hero .hero-text {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hp-hero h1 {
    max-width: 900px;
    color: var(--white);
    font-size: 5.0rem;
    font-weight: 600;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

.hp-hero .hero-text {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 400;
    max-width: 700px;
    margin-bottom: 2em;
}

.hp-hero .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* --------------------------------------------------------------------------
   Section 2: Trust Line (White Background)
   -------------------------------------------------------------------------- */
.hp-trust {
    background-color: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.hp-trust .trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px 30px;
}

.hp-trust .trust-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--charcoal-soft);
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Section 3: Our Services (Light Gray Background)
   -------------------------------------------------------------------------- */
.hp-services {
    background-color: var(--light-gray);
    text-align: center;
}

.hp-services .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: left;
}

@media (min-width: 576px) {
    .hp-services .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .hp-services .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .hp-services .services-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

/* Same look as .location-card on /locations */
.service-card {
    display: flex;
    flex-direction: column;
    background: var(--card-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.20);
}

/* Source photos have different proportions; crop them to one shape */
.service-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.service-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
    position: relative;
    z-index: 1;
    margin-top: -100px;
    padding-top: 100px;
    background-image: linear-gradient(
        to bottom,
        rgba(var(--card-dark-rgb), 0) 0,
        rgba(var(--card-dark-rgb), 0.55) 55px,
        rgba(var(--card-dark-rgb), 0.92) 85px,
        var(--card-dark) 105px
    );
}

.service-card h3 {
    color: var(--white);
    font-size: 2.0rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
}

.service-card p {
    color: var(--light-text);
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.service-card .card-link {
    color: var(--white);
    font-size: 1.7rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    background-image: none;
    text-shadow: none;
    margin-top: auto;
}

.service-card .card-link:hover,
.service-card .card-link:focus {
    text-decoration: underline;
}

/* Five narrow columns: tighter type so the cards stay compact */
@media (min-width: 1200px) {
    .service-card .card-body {
        padding: 90px 18px 20px;
    }

    .service-card h3 {
        font-size: 1.7rem;
        margin-bottom: 1rem;
    }

    .service-card p {
        font-size: 1.5rem;
        line-height: 2.4rem;
        margin-bottom: 1.5rem;
    }

    .service-card .card-link {
        display: inline;
        font-size: 1.5rem;
    }

    .service-card .card-link svg {
        vertical-align: -2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card {
        transition: box-shadow 0.3s ease;
    }

    .service-card:hover,
    .service-card:focus-within {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Section 4: About (White Background)
   -------------------------------------------------------------------------- */
.hp-about {
    background-color: var(--white);
}

.hp-about .about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .hp-about .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.hp-about .about-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.hp-about .about-content > p:not(.hp-eyebrow) {
    color: var(--body-text);
    font-size: 1.7rem;
    font-weight: 400;
}

.hp-about .about-points {
    list-style: none;
    margin: 30px 0 35px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
}

.hp-about .about-points li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--charcoal-soft);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.4;
}

.hp-about .about-points .hp-icon {
    width: 44px;
    height: 44px;
}

/* --------------------------------------------------------------------------
   Section 5: Recent Projects (Light Gray Background)
   -------------------------------------------------------------------------- */
.hp-projects {
    background-color: var(--light-gray);
    text-align: center;
}

.hp-projects .projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: left;
}

@media (min-width: 768px) {
    .hp-projects .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Same look as .project-card on /locations */
.project-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover,
.project-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

@media (prefers-reduced-motion: reduce) {
    .project-card {
        transition: box-shadow 0.3s ease;
    }

    .project-card:hover,
    .project-card:focus-within {
        transform: none;
    }
}

.project-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.project-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.project-card h3 {
    color: var(--charcoal-primary);
    font-size: 2.0rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.project-card p {
    color: var(--body-text);
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.project-card .card-link {
    color: var(--accent-red);
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    background-image: none;
    text-shadow: none;
    margin-top: auto;
    transition: color 0.3s ease;
}

/* Stretched link: the red link's hit area covers the whole card, so the
   photo, town, project type and empty space all open the same page */
.project-card .card-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.project-card:hover .card-link,
.project-card .card-link:focus {
    color: var(--accent-red-hover);
    text-decoration: underline;
}

/* Keyboard focus ring goes around the whole card, not just the link text */
.project-card .card-link:focus-visible {
    outline: none;
}

.project-card:has(.card-link:focus-visible) {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Section 6: Roofing Specialty + Proudly Serving (White Background)
   -------------------------------------------------------------------------- */
.hp-specialty {
    background-color: var(--white);
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .split-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        align-items: stretch;
    }

    /* Right column matches the photo box height; the locations link
       sits on its bottom edge */
    .serving-box {
        display: flex;
        flex-direction: column;
    }

    .serving-box .serving-closing {
        margin-top: auto;
    }
}

.specialty-box {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: var(--charcoal-primary);
    padding: 50px 40px;
}

.specialty-box .specialty-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.specialty-box::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Darker on the left behind the text, lighter towards the right */
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.68) 50%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

/* Extra edge for the white text over the photo */
.specialty-box .hp-eyebrow,
.specialty-box h2,
.specialty-box p {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 2px 12px rgba(0, 0, 0, 0.3);
}

.specialty-box .specialty-content {
    position: relative;
    z-index: 2;
}

.hp-page .specialty-box h2 {
    color: var(--white);
    font-size: 2.45rem;
}

.specialty-box p:not(.hp-eyebrow) {
    color: var(--white);
    font-size: 1.7rem;
    margin-bottom: 2em;
}

.serving-box > p:not(.hp-eyebrow) {
    color: var(--body-text);
    font-size: 1.7rem;
}

/* Same tiles as .all-grid on /locations */
.serving-box .town-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0 35px;
}

.serving-box .town-grid a {
    display: block;
    padding: 10px 15px;
    background-color: #ededed;
    color: var(--charcoal-soft);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    background-image: none;
    text-shadow: none;
    border-radius: 4px;
}

.serving-box .town-grid a:hover,
.serving-box .town-grid a:focus {
    background-color: #dedede;
    text-decoration: none;
}

.serving-box .serving-closing,
.hp-about .about-closing {
    text-align: center;
}

/* --------------------------------------------------------------------------
   Section 7: Reviews + Financing (Light Gray Background)
   -------------------------------------------------------------------------- */
.hp-reviews {
    background-color: var(--light-gray);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

@media (min-width: 992px) {
    .reviews-grid {
        grid-template-columns: 2fr 1fr;
        gap: 50px;
    }

    .financing-box {
        border-left: 1px solid rgba(0, 0, 0, 0.12);
        padding-left: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Link sits on the bottom edge of the column, level with the reviews link */
    .financing-box > .hp-link {
        margin-top: auto;
    }
}

.reviews-box > .hp-eyebrow,
.reviews-box > h2,
.reviews-box > .reviews-closing {
    text-align: center;
}

.review-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 35px;
}

@media (min-width: 768px) {
    .review-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 25px;
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    border-radius: 4px;
}

.review-card .review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 15px;
}

.review-card .review-stars svg {
    width: 20px;
    height: 20px;
    fill: var(--star-color);
}

.review-card blockquote {
    margin: 0 0 15px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--charcoal-primary);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 2.5rem;
}

.review-card figcaption {
    margin-top: auto;
    color: var(--charcoal-soft);
    font-size: 1.5rem;
    font-weight: 600;
}

.review-card figcaption::before {
    content: '– ';
}

.financing-box {
    text-align: center;
}

.financing-box .financing-icon {
    display: block;
    width: 140px;
    height: 140px;
    margin: 30px auto 45px;
    background-color: var(--charcoal-primary);
}

.financing-box p:not(.hp-eyebrow) {
    color: var(--body-text);
    font-size: 1.7rem;
    margin-bottom: 2em;
}

/* --------------------------------------------------------------------------
   Section 8: Trusted Brands (White Background)
   -------------------------------------------------------------------------- */
.hp-brands {
    background-color: var(--white);
    padding: 40px 0 45px;
    text-align: center;
}

.hp-brands .brand-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px 40px;
    margin-top: 25px;
}

.hp-brands .brand-logos a {
    display: block;
    background-image: none;
    text-shadow: none;
    transition: opacity 0.3s ease;
}

.hp-brands .brand-logos a:hover,
.hp-brands .brand-logos a:focus {
    opacity: 0.75;
}

/* Balanced by visual weight, not equal width: GAF is square,
   the others are wide wordmarks. */
.hp-brands .brand-logos img {
    display: block;
    width: auto;
}

.hp-brands .brand-gaf img        { height: 64px; }
.hp-brands .brand-certainteed img { height: 42px; }
.hp-brands .brand-harvey img     { height: 52px; }
.hp-brands .brand-andersen img   { height: 32px; }
.hp-brands .brand-thermatru img  { height: 44px; }

/* --------------------------------------------------------------------------
   Section 9: FAQ + Final CTA (Light Gray Background)
   -------------------------------------------------------------------------- */
.hp-faq-cta {
    background-color: var(--light-gray);
}

.faq-cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .faq-cta-grid {
        grid-template-columns: 3fr 2fr;
        gap: 40px;
        align-items: start;
    }

    /* Fixed height (≈ the collapsed FAQ column) so opening an answer
       does not stretch the photo box */
    .final-cta {
        height: 430px;
    }

    /* Content starts at the top so "Ready to Start Your Project?" lines up
       with "Frequently Asked Questions" (which sits below the FAQ eyebrow).
       Higher specificity than the base .final-cta rule further down. */
    .faq-cta-grid .final-cta {
        align-items: flex-start;
        padding-top: 25px;
    }

    /* Heading and text stay at the top, buttons sit on the bottom edge */
    .faq-cta-grid .final-cta-content {
        align-self: stretch;
        display: flex;
        flex-direction: column;
    }

    .faq-cta-grid .final-cta .cta-buttons {
        margin-top: auto;
    }
}

/* Narrow desktops: slightly smaller questions so each stays on one line */
@media (min-width: 992px) and (max-width: 1199px) {
    .faq-section .faq-question {
        font-size: 1.5rem;
        padding-right: 30px;
    }
}

/* FAQ accordion (same format as /roofing) */
.faq-accordion {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin-bottom: 30px;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 10px 40px 10px 0;
    text-align: left;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--charcoal-soft);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-red);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    font-weight: 300;
    color: var(--accent-red);
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
}

.faq-answer p {
    color: var(--body-text);
    margin-bottom: 0;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 2.8rem;
}

/* Same link style as the FAQ on /roofing */
.faq-answer a {
    color: var(--body-text);
    text-decoration: none;
    background-image: none;
    text-shadow: none;
    transition: color 0.3s ease;
}

.faq-answer a:hover,
.faq-answer a:focus {
    color: var(--body-text);
    text-decoration: underline;
}

/* Final CTA box: real project photo with a charcoal overlay that still
   lets the house show through */
.final-cta {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: var(--charcoal-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    padding: 50px 30px;
    text-align: center;
}

.final-cta .final-cta-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(28, 28, 28, 0.52);
    z-index: 1;
}

/* Keeps white text crisp on the lighter overlay */
.final-cta h2,
.final-cta p {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 2px 12px rgba(0, 0, 0, 0.3);
}

.final-cta .final-cta-content {
    position: relative;
    z-index: 2;
}

.hp-page .final-cta h2 {
    color: var(--white);
    font-size: 2.45rem;
    margin-bottom: 0.75em;
}

.final-cta p {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 400;
    max-width: 520px;
    margin: 20px auto 2em;
}

.final-cta .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .hp-trust .trust-list {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .hp-page h2 { font-size: 1.85rem; }

    .hp-section {
        padding: 50px 0;
    }

    /* On phones the text spans the full width, so the overlay is even */
    .hp-hero::before {
        background: rgba(0, 0, 0, 0.5);
    }

    .hp-hero {
        min-height: 500px;
        padding: 80px 0;
    }

    .hp-hero h1 {
        font-size: 3.2rem;
        line-height: 3.8rem;
    }

    .hp-hero .hero-buttons,
    .final-cta .cta-buttons {
        flex-direction: column;
    }

    .btn-hp-primary,
    .btn-hp-outline {
        width: 100%;
    }

    .hp-trust .trust-list {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: start;
        gap: 15px;
        max-width: 320px;
        margin: 0 auto;
    }

    .hp-trust .trust-list li {
        font-size: 1.7rem;
    }

    .hp-trust .hp-icon {
        width: 32px;
        height: 32px;
    }

    .hp-about .about-points {
        grid-template-columns: 1fr;
    }

    .serving-box .town-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .specialty-box {
        padding: 40px 25px;
    }

    .hp-page .specialty-box h2,
    .hp-page .final-cta h2 {
        font-size: 2.1rem;
    }

    .hp-brands .brand-logos {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .service-card .card-body,
    .project-card .card-body,
    .review-card {
        padding: 20px;
    }

    .faq-question {
        padding: 15px 35px 15px 0;
    }
}
