/* PAGE: Home */
/* Homepage-specific styles */

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

.hero {
    position: relative;
    width: 100%;
    height: 913px;
    overflow: hidden;
}

/* ===== RESPONSIVE BACKGROUND IMAGE ===== */
/* 
 * Using CSS background-image with media queries for optimal performance.
 * 
 * Path reference: This CSS file is at frontend/styles/pages/home.css
 * Images are at: frontend/assets/images/
 * Relative path: ../../assets/images/
 * 
 * Breakpoint strategy (mobile-first approach reversed for desktop-first):
 * - Default (≥1920px): Full resolution hero-bg.jpg
 * - 1440-1919px: hero-bg-1536x720.jpg
 * - 768-1439px: hero-bg-1280x600.jpg  
 * - 480-767px: hero-bg-768x360.jpg
 * - <480px: hero-bg-480x225.jpg
 */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    
    /* Default: Large desktop (≥1920px) - Full size image */
    background-image: url('../../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Standard desktop (1440-1919px) */
@media screen and (max-width: 1919px) {
    .hero-background {
        background-image: url('../../assets/images/hero-bg-1536x720.jpg');
    }
}

/* Tablet (768-1439px) */
@media screen and (max-width: 1439px) {
    .hero-background {
        background-image: url('../../assets/images/hero-bg-1280x600.jpg');
    }
}

/* Mobile (480–767px) — High-res mobile hero */
@media screen and (max-width: 767px) {
    .hero-background {
        background-image: url('../../assets/images/contact-us.jpg');
        background-size: cover;
        background-position: center;
    }
}

/* Small mobile (<480px) — High-res but lighter weight */
@media screen and (max-width: 479px) {
    .hero-background {
        background-image: url('../../assets/images/contact-us.jpg');
        background-size: cover;
        background-position: center;
    }
}

/* Overlay - Semi-transparent gray layer over background */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #D9D9D9;
    opacity: 0.6;
    z-index: 2;
}

/* Hero Container - Main content wrapper */
.hero-container {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

/* ===== LEFT COLUMN: LOGO + CONTACT CARD ===== */
.hero-left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 219px;
    margin-top: 40px;
    flex-shrink: 0;
}

/* Company Logo Above Contact Card */
.hero-logo {
    width: 300px;
    max-width: 100%;
    margin-bottom: 20px;
}

.hero-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Contact Card */
.hero-contact-card {
    flex-shrink: 0;
}

/* ===== RIGHT COLUMN: CONTENT ===== */
.hero-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-left: 116px;
    margin-top: 132px;
    margin-right: 111px;
}

/* ===== HERO HEADING ===== */
.hero-heading {
    font-family: 'Bowlby One', cursive;
    font-size: clamp(24px, 3vw, 40px);
    color: #00254D;
    line-height: 1.15;
    margin-bottom: 54px;
}

/* ===== FEATURE ICONS ROW ===== */
.hero-features {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 64px;
    max-width: 800px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon {
    width: 157px;
    height: 157px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-title,
.feature-subtitle {
    font-family: 'Bowlby One', cursive;
    font-size: clamp(16px, 2vw, 28px);
    color: #00254D;
    line-height: 1.1;
}

/* ===== CTA BUTTONS ROW ===== */
.hero-cta-buttons {
    display: flex;
    align-items: center;
    gap: 82px;
    margin-bottom: 56px;
}

.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 507px;
    height: 106px;
    font-family: 'Bowlby One', cursive;
    font-size: clamp(14px, 2vw, 28px);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 45px;
    transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
    text-align: center;
    padding: 0 20px;
    /* Minimum tap target size for accessibility */
    min-height: 44px;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.btn-cta:active {
    transform: translateY(0);
}

.btn-cta:focus-visible {
    outline: 3px solid #3DBF2B;
    outline-offset: 3px;
}

.btn-cta-quote {
    background-color: #00254D;
}

.btn-cta-quote:hover {
    background-color: #003366;
}

.btn-cta-call {
    background-color: #D80000;
}

.btn-cta-call:hover {
    background-color: #B50000;
}

/* ===== SATISFACTION SECTION ===== */
.hero-satisfaction {
    display: flex;
    align-items: center;
    gap: 119px;
}

.satisfaction-icon {
    width: 260px !important;
    height: auto;
    flex-shrink: 0;
}

.satisfaction-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.15));
}

.satisfaction-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(20px, 3vw, 42px);
    font-weight: 600;
    color: #00254D;
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.5px;
}


/* ===================================================
   HERO RESPONSIVE STYLES
   =================================================== */

/* ===== 4K SCREENS (≥2560px) ===== */
@media screen and (min-width: 2560px) {
    .hero-container {
        max-width: 85%;
        margin: 0 auto;
    }
    
    .hero-logo {
        width: 350px;
    }
}

/* ===== LARGE DESKTOPS (1920-2559px) ===== */
@media screen and (min-width: 1920px) and (max-width: 2559px) {
    .hero-container {
        max-width: 1920px;
    }
}

/* Desktop-only correction for icon row alignment */
@media (min-width: 1900px) {
    .hero-icon-row {
        transform: translateX(40px) !important;
    }
}

/* Desktop/4K alignment fix — moves feature icons slightly right */
@media screen and (min-width: 1920px) and (max-width: 2559px) {
    .hero-features {
        transform: translateX(110px);
    }
    
    .hero-cta-buttons {
        transform: translateX(-30px);
    }
}

@media screen and (min-width: 2560px) {
    .hero-features {
        transform: translateX(130px);
    }
    
    .hero-cta-buttons {
        transform: translateX(-40px);
    }
}


/* ===== STANDARD DESKTOPS (1440-1919px) ===== */
@media screen and (min-width: 1440px) and (max-width: 1919px) {
    .hero-left-column {
        margin-left: 100px;
    }
    
    .hero-logo {
        width: 280px;
    }
    
    .hero-content {
        margin-left: 80px;
        margin-right: 60px;
    }
    
    .hero-features {
        max-width: 700px;
    }
    
    .feature-icon {
        width: 130px;
        height: 130px;
    }
    
    .btn-cta {
        width: 420px;
        height: 90px;
    }
    
    .hero-cta-buttons {
        gap: 50px;
    }
    
    .hero-satisfaction {
        gap: 80px;
    }
    
    .satisfaction-icon {
        width: 210px;
        height: auto;
    }
}

/* ===== MOBILE/TABLET REORDERING (≤1024px) ===== */
/* Move heading above logo and contact card on smaller screens */
@media screen and (max-width: 1024px) {
    .hero-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "heading"
            "logo"
            "features"
            "ctas"
            "satisfaction";
        align-items: center;
        justify-items: center;
    }
    
    /* Move hero heading to appear first */
    .hero-heading {
        grid-area: heading;
        margin-top: 20px;
        text-align: center;
        width: 100%;
    }
    
    /* Logo + contact card come after heading */
    .hero-left-column {
        grid-area: logo;
    }
    
    /* Feature icons */
    .hero-features {
        grid-area: features;
    }
    
    /* CTA buttons */
    .hero-cta-buttons {
        grid-area: ctas;
    }
    
    /* Satisfaction section */
    .hero-satisfaction {
        grid-area: satisfaction;
    }
    
    /* hero-content becomes a subgrid container */
    .hero-content {
        display: contents;
    }
}

/* ===== LARGE TABLETS (1024-1439px) ===== */
@media screen and (min-width: 1024px) and (max-width: 1439px) {
    .hero {
        height: auto;
        min-height: 800px;
        padding-bottom: 60px;
    }
    
    .hero-left-column {
        margin-left: 40px;
        margin-top: 40px;
    }
    
    .hero-logo {
        width: 250px;
        margin-bottom: 15px;
    }
    
    .hero-content {
        margin-left: 50px;
        margin-right: 40px;
        margin-top: 80px;
    }
    
    .hero-heading {
        margin-bottom: 40px;
    }
    
    .hero-features {
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
        max-width: 500px;
        margin-bottom: 50px;
    }
    
    .feature-item {
        width: calc(50% - 20px);
    }
    
    .feature-item:nth-child(3) {
        width: 100%;
    }
    
    .feature-icon {
        width: 120px;
        height: 120px;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .btn-cta {
        width: 100%;
        max-width: 400px;
        height: 80px;
    }
    
    .hero-satisfaction {
        gap: 40px;
    }
    
    .satisfaction-icon {
        width: 190px;
        height: auto;
    }
}

/* ===== Nest Hub Max & Similar (1280px) ===== */
@media screen and (min-width: 1280px) and (max-width: 1439px) {
    .hero-heading {
        transform: translateX(90px);
    }
    
    .hero-features {
        transform: translateX(90px);
    }
    
    .hero-cta-buttons {
        transform: translateX(120px);
    }
    
    .hero-satisfaction {
        transform: translateX(90px);
    }
}

/* ===== SMALL TABLETS (768-1023px) ===== */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .hero {
        height: auto;
        min-height: auto;
        padding-bottom: 50px;
    }
    
    .hero-container {
        padding: 0 30px;
    }
    
    /* Heading appears first - already set by grid */
    .hero-heading {
        margin-top: 20px;
        margin-bottom: 40px;
        text-align: center;
    }
    
    /* Logo and contact card second */
    .hero-left-column {
        margin-left: 0;
        margin-top: 30px;
        width: 100%;
        max-width: 500px;
    }
    
    .hero-logo {
        width: 220px;
        margin-bottom: 15px;
    }
    
    .hero-contact-card {
        width: 100%;
    }
    
    /* Rest of content - using display: contents from parent rule */
    .hero-content {
        margin-left: 0;
        margin-right: 0;
        align-items: center;
        text-align: center;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-top: 40px;
        margin-bottom: 0;
        max-width: 100%;
    }
    
    .feature-item {
        width: auto;
    }
    
    .feature-icon {
        width: 100px;
        height: 100px;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        max-width: 450px;
        margin-top: 40px;
        margin-bottom: 0;
    }
    
    .btn-cta {
        width: 100%;
        height: 70px;
        border-radius: 35px;
    }
    
    .hero-satisfaction {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        margin-top: 40px;
    }
    
    .satisfaction-icon {
        width: 170px;
        height: auto;
    }
    
    .satisfaction-text {
        text-align: center;
    }
}

/* ===== MOBILE (≤767px) ===== */
@media screen and (max-width: 767px) {
    .hero {
        height: auto;
        min-height: auto;
        padding-bottom: 40px;
    }
    
    .hero-container {
        padding: 0;
    }
    
    /* Heading appears first - already set by grid */
    .hero-heading {
        margin-top: 20px;
        margin-bottom: 30px;
        text-align: center;
        padding: 0 20px;
    }
    
    /* Logo and contact card second */
    .hero-left-column {
        margin: 20px 20px 0;
        width: auto;
    }
    
    .hero-logo {
        width: 200px;
        margin-bottom: 15px;
    }
    
    .hero-contact-card {
        width: 100%;
        max-width: 100%;
    }
    
    /* Rest of content - using display: contents from parent rule */
    .hero-content {
        margin: 0;
        align-items: center;
        text-align: center;
    }
    
    /* Adjust spacing for grid children */
    .hero-features {
        flex-direction: column;
        gap: 25px;
        margin-top: 30px;
        margin-bottom: 0;
        padding: 0 20px;
    }
    
    .feature-icon {
        width: 100px;
        height: 100px;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        margin-top: 30px;
        margin-bottom: 0;
        padding: 0 20px;
    }
    
    .btn-cta {
        width: 100%;
        height: 65px;
        border-radius: 32px;
        /* Ensure minimum tap target */
        min-height: 48px;
    }
    
    .hero-satisfaction {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
        padding: 0 20px;
    }
    
    .satisfaction-icon {
        width: 150px;
        height: auto;
    }
}

/* ===== SMALL MOBILE (≤375px) ===== */
@media screen and (max-width: 375px) {
    .hero {
        padding-bottom: 30px;
    }
    
    .hero-heading {
        margin-top: 15px;
        margin-bottom: 25px;
        padding: 0 15px;
    }
    
    .hero-left-column {
        margin: 15px 15px 0;
    }
    
    .hero-logo {
        width: 180px;
        margin-bottom: 12px;
    }
    
    .hero-content {
        margin: 25px 15px 0;
    }
    
    .hero-features {
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
    }
    
    .hero-cta-buttons {
        gap: 12px;
        margin-bottom: 25px;
    }
    
    .btn-cta {
        height: 56px;
        border-radius: 28px;
    }
    
    .hero-satisfaction {
        gap: 12px;
    }
    
    .satisfaction-icon {
        width: 130px;
        height: auto;
    }
}

/* ===== EXTRA SMALL MOBILE (≤320px) ===== */
@media screen and (max-width: 320px) {
    .hero-heading {
        margin-top: 12px;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .hero-left-column {
        margin: 12px 10px 0;
    }
    
    .hero-logo {
        width: 150px;
        margin-bottom: 10px;
    }
    
    .hero-content {
        margin: 20px 10px 0;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .btn-cta {
        height: 52px;
        padding: 0 15px;
    }
    
    .satisfaction-icon {
        width: 110px;
        height: auto;
    }
}


/* ===================================================
   CTA BANNER SECTION - "AC Out? Heater Down?"
   =================================================== */

.cta-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* ===== RESPONSIVE BACKGROUND IMAGE ===== */
/* 
 * Path reference: This CSS file is at frontend/styles/pages/home.css
 * Images are at: frontend/assets/images/
 * Relative path: ../../assets/images/
 * 
 * Breakpoint strategy:
 * - Default (≥1920px): Full resolution blue-bg.jpg
 * - 1440-1919px: blue-bg-1536x960.jpg
 * - 768-1439px: blue-bg-1280x800.jpg
 * - 480-767px: blue-bg-768x480.jpg
 * - <480px: blue-bg-480x300.jpg
 */
.cta-banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    
    /* Default: Large desktop (≥1920px) - Full size image */
    background-image: url('../../assets/images/blue-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Standard desktop (1440-1919px) */
@media screen and (max-width: 1919px) {
    .cta-banner-background {
        background-image: url('../../assets/images/blue-bg-1536x960.jpg');
    }
}

/* Tablet (768-1439px) */
@media screen and (max-width: 1439px) {
    .cta-banner-background {
        background-image: url('../../assets/images/blue-bg-1280x800.jpg');
    }
}

/* Mobile (480-767px) */
@media screen and (max-width: 767px) {
    .cta-banner-background {
        background-image: url('../../assets/images/blue-bg-768x480.jpg');
    }
}

/* Small mobile (<480px) */
@media screen and (max-width: 479px) {
    .cta-banner-background {
        background-image: url('../../assets/images/blue-bg-480x300.jpg');
    }
}

/* CTA Banner Container - Content wrapper with proper z-index */
.cta-banner-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1920px;
    margin: 0 auto;
    padding: 85px 189px;
    text-align: center;
}

/* CTA Banner Heading */
.cta-banner-heading {
    font-family: 'Bowlby One', cursive;
    font-size: clamp(26px, 5vw, 64px);
    line-height: 1.15;
    margin-bottom: 10px;
}

.cta-banner-heading .text-white {
    color: #FFFFFF;
}

.cta-banner-heading .text-green {
    color: #3DBF2B;
}

/* CTA Banner Button */
.btn-cta-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 720px;
    max-width: 100%;
    height: 80px;
    background-color: #E50000;
    color: #FFFFFF;
    font-family: 'Bowlby One', cursive;
    font-size: clamp(16px, 2.5vw, 22px);
    text-decoration: none;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
    /* Minimum tap target size for accessibility */
    min-height: 44px;
}

.btn-cta-banner:hover {
    background-color: #C50000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-cta-banner:active {
    transform: translateY(0);
}

.btn-cta-banner:focus-visible {
    outline: 3px solid #FFFFFF;
    outline-offset: 3px;
}


/* ===== CTA BANNER RESPONSIVE STYLES ===== */

/* Large tablets (1024-1439px) */
@media screen and (max-width: 1439px) {
    .cta-banner-container {
        padding: 70px 120px;
    }
    
    .btn-cta-banner {
        width: 600px;
        height: 70px;
    }
}

/* Small tablets (768-1023px) */
@media screen and (max-width: 1023px) {
    .cta-banner-container {
        padding: 60px 80px;
    }
    
    .btn-cta-banner {
        width: calc(100% - 80px);
        max-width: 500px;
        height: 70px;
    }
}

/* Mobile (≤767px) */
@media screen and (max-width: 767px) {
    .cta-banner-container {
        padding: 50px 24px;
    }
    
    .btn-cta-banner {
        width: 100%;
        height: 70px;
        border-radius: 30px;
    }
}

/* Small mobile (≤375px) */
@media screen and (max-width: 375px) {
    .cta-banner-container {
        padding: 40px 20px;
    }
    
    .btn-cta-banner {
        height: 60px;
        border-radius: 25px;
    }
}

/* Extra small mobile (≤320px) */
@media screen and (max-width: 320px) {
    .cta-banner-container {
        padding: 35px 15px;
    }
    
    .btn-cta-banner {
        height: 56px;
        border-radius: 20px;
    }
}


/* ===================================================
   OUR SERVICES SECTION
   =================================================== */

/*
 * Services section layout:
 * - Full width container, max 1920px centered
 * - Five 300x300px cards in a row (desktop)
 * - 70px spacing between cards and edges
 * - Responsive background images per card
 */

.services {
    width: 100%;
    background-color: #FFFFFF;
}

.services-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0;
}

/* Section Title */
.services-title {
    font-family: 'Bowlby One', cursive;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: #00254D;
    text-align: center;
    margin: 0;
    padding-top: 60px;
    padding-bottom: 50px;
}

/* Services Grid - Flexbox layout */
.services-grid {
    display: flex;
    justify-content: space-between;
    padding: 0 70px;
    padding-bottom: 100px;
    gap: 70px;
}

/* ===== SERVICE CARD BASE STYLES ===== */
.service-card {
    position: relative;
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Card Background Layer */
.service-card__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 300ms ease;
}

/* Background Overlay - 70% opacity white/light overlay */
.service-card__background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.service-card:hover .service-card__background {
    transform: scale(1.05);
}

/* Card Content Layer */
.service-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 104px 20px 20px 20px;
}

/* Card Title with Green Underline */
.service-card__title {
    font-family: 'Bowlby One', cursive;
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    color: #00254D;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 3px solid #3DBF2B;
    display: inline-block;
    width: fit-content;
}

/* Card Description with Shadow */
.service-card__description {
    font-family: 'Carlito', sans-serif;
    font-size: clamp(16px, 3vw, 24px);
    font-weight: 700;
    color: #00254D;
    margin: 12px 0 0 0;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.35);
    line-height: 1.3;
    max-width: 260px;
}

/* Card Link (wraps arrow) */
.service-card__link {
    position: absolute;
    bottom: 20px;
    right: 14.12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    text-decoration: none;
    transition: transform 150ms ease;
}

.service-card__link:hover {
    transform: translateX(5px);
}

.service-card__link:focus-visible {
    outline: 2px solid #3DBF2B;
    outline-offset: 2px;
    border-radius: 50%;
}

/* Arrow Icon */
.service-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #00254D;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 16px;
    transition: background-color 150ms ease;
}

.service-card__link:hover .service-card__arrow {
    background-color: #3DBF2B;
}


/* ===== RESPONSIVE BACKGROUND IMAGES PER CARD ===== */
/*
 * Path reference: This CSS file is at frontend/styles/pages/home.css
 * Images are at: frontend/assets/images/
 * Relative path: ../../assets/images/
 *
 * Image mapping:
 * - Heating: services-img-02
 * - Cooling: services-img-03
 * - Repair: services-img-04
 * - Installation: services-img-05
 * - Air Quality: services-img-06
 */

/* Default: Desktop (≥1920px) - Full resolution */
.service-card--heating .service-card__background {
    background-image: url('../../assets/images/services-img-02.jpg');
}

.service-card--cooling .service-card__background {
    background-image: url('../../assets/images/services-img-03.jpg');
}

.service-card--repair .service-card__background {
    background-image: url('../../assets/images/services-img-04.jpg');
}

.service-card--installation .service-card__background {
    background-image: url('../../assets/images/services-img-05.jpg');
}

.service-card--air-quality .service-card__background {
    background-image: url('../../assets/images/services-img-06.jpg');
}

/* Standard desktop (1440-1919px) - Medium resolution */
@media screen and (max-width: 1919px) {
    .service-card--heating .service-card__background {
        background-image: url('../../assets/images/services-img-02-800x675.jpg');
    }
    .service-card--cooling .service-card__background {
        background-image: url('../../assets/images/services-img-03-800x675.jpg');
    }
    .service-card--repair .service-card__background {
        background-image: url('../../assets/images/services-img-04-800x675.jpg');
    }
    .service-card--installation .service-card__background {
        background-image: url('../../assets/images/services-img-05-800x675.jpg');
    }
    .service-card--air-quality .service-card__background {
        background-image: url('../../assets/images/services-img-06-800x675.jpg');
    }
}

/* Tablet (1024-1439px) */
@media screen and (max-width: 1439px) {
    .service-card--heating .service-card__background {
        background-image: url('../../assets/images/services-img-02-480x453.jpg');
    }
    .service-card--cooling .service-card__background {
        background-image: url('../../assets/images/services-img-03-480x453.jpg');
    }
    .service-card--repair .service-card__background {
        background-image: url('../../assets/images/services-img-04-480x453.jpg');
    }
    .service-card--installation .service-card__background {
        background-image: url('../../assets/images/services-img-05-480x453.jpg');
    }
    .service-card--air-quality .service-card__background {
        background-image: url('../../assets/images/services-img-06-480x453.jpg');
    }
}

/* Mobile (<1024px) */
@media screen and (max-width: 1023px) {
    .service-card--heating .service-card__background {
        background-image: url('../../assets/images/services-img-02-300x283.jpg');
    }
    .service-card--cooling .service-card__background {
        background-image: url('../../assets/images/services-img-03-300x283.jpg');
    }
    .service-card--repair .service-card__background {
        background-image: url('../../assets/images/services-img-04-300x283.jpg');
    }
    .service-card--installation .service-card__background {
        background-image: url('../../assets/images/services-img-05-300x283.jpg');
    }
    .service-card--air-quality .service-card__background {
        background-image: url('../../assets/images/services-img-06-300x283.jpg');
    }
}


/* ===================================================
   SERVICES SECTION RESPONSIVE STYLES
   =================================================== */

/* ===== STANDARD DESKTOPS (1440-1919px) ===== */
@media screen and (min-width: 1440px) and (max-width: 1919px) {
    .services-grid {
        padding: 0 50px;
        padding-bottom: 80px;
        gap: 40px;
    }
    
    .service-card {
        width: 280px;
        height: 280px;
    }
}

/* ===== LARGE TABLETS (1024-1439px) - 2×3 Grid ===== */
@media screen and (min-width: 1024px) and (max-width: 1439px) {
    .services-title {
        padding-top: 100px;
        padding-bottom: 80px;
    }
    
    .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 300px);
        justify-content: center;
        gap: 60px;
        padding: 0 40px;
        padding-bottom: 80px;
    }
    
    .service-card {
        width: 300px;
        height: 300px;
    }
}

/* ===== SMALL TABLETS (768-1023px) - 2 Column ===== */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .services-title {
        padding-top: 80px;
        padding-bottom: 60px;
    }
    
    .services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding: 0 40px;
        padding-bottom: 60px;
    }
    
    .service-card {
        width: 100%;
        height: 0;
        padding-bottom: 100%; /* Maintain square aspect ratio */
    }
    
    .service-card__content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 30% 20px 20px 20px;
    }
    
    .service-card__arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* ===== MOBILE (≤767px) - Single Column ===== */
@media screen and (max-width: 767px) {
    .services-title {
        padding-top: 60px;
        padding-bottom: 40px;
    }
    
    .services-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 32px;
        padding: 0 24px;
        padding-bottom: 50px;
    }
    
    .service-card {
        width: 100%;
        max-width: 400px;
        height: 0;
        padding-bottom: 100%; /* Square aspect ratio */
    }
    
    .service-card__content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 28% 20px 20px 20px;
    }

    /* NEW: bigger fonts on mobile */
    .service-card__title {
        font-size: 26px;
        line-height: 1.2;
    }

    .service-card__description {
        font-size: 18px;
        line-height: 1.35;
    }
    
    .service-card__link {
        bottom: 15px;
        right: 15px;
    }
    
    .service-card__arrow {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* ===== SMALL MOBILE (≤375px) ===== */
@media screen and (max-width: 375px) {
    .services-title {
        padding-top: 50px;
        padding-bottom: 35px;
    }
    
    .services-grid {
        gap: 28px;
        padding: 0 20px;
        padding-bottom: 40px;
    }
    
    .service-card__content {
        padding: 25% 15px 15px 15px;
    }
    
    .service-card__title {
        padding-bottom: 6px;
        border-bottom-width: 2px;
    }
    
    .service-card__description {
        margin-top: 10px;
    }
}

/* ===== EXTRA SMALL MOBILE (≤320px) ===== */
@media screen and (max-width: 320px) {
    .services-title {
        padding-top: 40px;
        padding-bottom: 30px;
    }
    
    .services-grid {
        gap: 24px;
        padding: 0 15px;
        padding-bottom: 35px;
    }
    
    .service-card__content {
        padding: 22% 12px 12px 12px;
    }
    
    .service-card__arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}


/* ===================================================
   SERVICE AREAS SECTION
   =================================================== */

/*
 * Two-column layout with Leaflet map on left and city list on right.
 * Uses same background image as CTA banner section.
 * Font: Barlow for title and cities.
 */

.service-areas {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Ensure content doesn't get clipped */
.service-areas__container,
.service-areas__cities {
    overflow: visible !important;
}

/* Background Image - Same as CTA Banner */
.service-areas__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url('../../assets/images/blue-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Responsive background images */
@media screen and (max-width: 1919px) {
    .service-areas__background {
        background-image: url('../../assets/images/blue-bg-1536x960.jpg');
    }
}

@media screen and (max-width: 1439px) {
    .service-areas__background {
        background-image: url('../../assets/images/blue-bg-1280x800.jpg');
    }
}

@media screen and (max-width: 767px) {
    .service-areas__background {
        background-image: url('../../assets/images/blue-bg-768x480.jpg');
    }
}

/* Dark Overlay for Readability */
.service-areas__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: rgba(0, 37, 77, 0.5);
}

/* Content Container */
.service-areas__container {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    max-width: 1920px;
    margin: 0 auto;
    padding: 80px 100px;
}

/* ===== MAP WRAPPER ===== */
.service-areas__map-wrapper {
    flex-shrink: 0;
}

.service-areas__map {
    width: 720px;
    height: 720px;
    border-radius: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Leaflet map overrides */
.service-areas__map .leaflet-container {
    width: 100%;
    height: 100%;
    border-radius: 25px;
}

/* ===== CONTENT COLUMN (Title + Cities) ===== */
.service-areas__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Section Title */
.service-areas__title {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 700;
    color: #3DBF2B;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    margin-top: 53px;
    margin-bottom: 52px;
    letter-spacing: 0.02em;
}

/* Cities Grid - Two Columns */
.service-areas__cities {
    display: flex;
    gap: 220px;
}

/* Single Column of Cities */
.service-areas__column {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual City Item */
.service-areas__city {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(18px, 2.5vw, 32px);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.3;
    white-space: nowrap;
}


/* ===================================================
   SERVICE AREAS RESPONSIVE STYLES
   =================================================== */

/* ===== Large Desktop (≥1440px) ===== */
@media screen and (min-width: 1440px) {
    .service-areas__container {
        max-width: 1600px;
        margin: 0 auto;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: start;
        padding: 80px 100px;
    }
    
    .service-areas__map {
        width: 720px;
        height: 720px;
    }
    
    /* Raise the green title to align with map top */
    .service-areas__title {
        margin-top: 0 !important;
        padding-top: 0 !important;
        transform: translateY(-32px);
    }
    
    .service-areas__cities {
        font-size: 20px !important;
        line-height: 1.3;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px 40px;
        transform: translateX(40px);
    }
    
    .service-areas__city {
        white-space: nowrap;
        font-size: 20px;
    }
}

/* ===== Standard Desktop (1280-1439px) ===== */
@media screen and (min-width: 1280px) and (max-width: 1439px) {
    .service-areas__container {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        align-items: flex-start;
        gap: 32px;
        padding: 70px 80px;
    }
    
    .service-areas__map {
        width: 600px;
        height: 600px;
    }
    
    .service-areas__title {
        transform: translateY(-24px);
    }
    
    .service-areas__cities {
        font-size: 18px !important;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 32px;
        transform: translateX(35px);
    }
    
    .service-areas__city {
        font-size: 18px;
    }
}

/* ===== Small Desktop / Large Tablet (1024-1279px) ===== */
@media screen and (min-width: 1024px) and (max-width: 1279px) {
    .service-areas__container {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        align-items: flex-start;
        gap: 32px;
        padding: 60px 40px;
    }
    
    .service-areas__map-wrapper {
        width: 100% !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }
    
    .service-areas__map {
        width: 100%;
        height: 500px;
    }
    
    .service-areas__title {
        margin-top: 0;
        margin-bottom: 40px;
        transform: translateY(-16px);
    }
    
    .service-areas__cities {
        font-size: 16px !important;
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 32px;
        row-gap: 8px;
        transform: translateX(30px);
    }
    
    .service-areas__city {
        font-size: 16px;
    }
    
    .service-areas__column {
        gap: 8px;
        display: contents;
    }
}

/* ===== Tablet (768-1023px) - Stacked Layout ===== */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .service-areas__container {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        align-items: flex-start;
        gap: 32px;
        padding: 60px 24px;
    }
    
    .service-areas__map-wrapper {
        width: 100% !important;
        max-width: 95% !important;
        margin: 0 auto !important;
    }
    
    .service-areas__map {
        width: 100%;
        height: 0;
        padding-bottom: 100%; /* Maintain square aspect ratio */
    }
    
    .service-areas__content {
        width: 100%;
        align-items: flex-start;
    }
    
    .service-areas__title {
        margin-top: 0;
        margin-bottom: 40px;
    }
    
    .service-areas__cities {
        font-size: 16px !important;
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 48px;
        row-gap: 8px;
    }
    
    .service-areas__column {
        gap: 8px;
        padding-right: 0;
        display: contents;
    }
    
    .service-areas__city {
        text-align: left;
        font-size: 16px;
    }
}

/* ===== Mobile (≤767px) - Two Column Grid ===== */
@media screen and (max-width: 767px) {
    .service-areas__container {
        flex-direction: column;
        gap: 40px;
        padding: 50px 24px;
    }
    
    .service-areas__map-wrapper {
        width: 90%;
        max-width: 500px;
    }
    
    .service-areas__map {
        width: 100%;
        height: 0;
        padding-bottom: 100%;
        border-radius: 20px;
    }
    
    .service-areas__content {
        width: 100%;
    }
    
    .service-areas__title {
        margin-top: 0;
        margin-bottom: 30px;
    }
    
    .service-areas__cities {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px 24px;
        width: 100%;
        padding: 0 16px;
    }
    
    .service-areas__column {
        gap: 8px;
        display: contents !important;
    }
    
    .service-areas__city {
        text-align: center;
        font-size: 15px !important;
    }
}

/* ===== Small Mobile (≤540px) - Two Column Grid ===== */
@media screen and (max-width: 540px) {
    .service-areas__container {
        padding: 40px 20px;
        gap: 30px;
    }
    
    .service-areas__map-wrapper {
        width: 95%;
    }
    
    .service-areas__map {
        border-radius: 15px;
    }
    
    .service-areas__title {
        margin-bottom: 25px;
    }
    
    .service-areas__cities {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px 24px !important;
        width: 100%;
        padding: 0 16px;
    }
    
    .service-areas__column {
        display: contents !important;
    }
    
    .service-areas__city {
        font-size: 15px !important;
        text-align: center;
    }
}

/* ===== Extra Small Mobile (≤375px) ===== */
@media screen and (max-width: 375px) {
    .service-areas__container {
        padding: 35px 16px;
        gap: 25px;
    }
    
    .service-areas__map-wrapper {
        width: 100%;
    }
    
    .service-areas__map {
        border-radius: 12px;
    }
    
    .service-areas__title {
        margin-bottom: 20px;
    }
    
    .service-areas__column {
        gap: 5px;
    }
}

/* ===== Ultra Small Mobile (≤320px) ===== */
@media screen and (max-width: 320px) {
    .service-areas__container {
        padding: 30px 12px;
        gap: 20px;
    }
    
    .service-areas__map {
        border-radius: 10px;
    }
    
    .service-areas__title {
        margin-bottom: 18px;
    }
    
    .service-areas__cities {
        gap: 10px 20px !important;
        padding: 0 12px;
    }
    
    .service-areas__city {
        font-size: 14px !important;
    }
}

/* ===================================================
   4K AND ULTRAWIDE DISPLAYS (≥2560px)
   =================================================== */
@media screen and (min-width: 2560px) {
    .service-areas__container {
        max-width: 2200px;
        gap: 60px;
    }
    
    .service-areas__title {
        transform: translateY(-48px);
        font-size: 42px !important;
    }
    
    .service-areas__cities {
        font-size: 22px !important;
        gap: 16px 48px !important;
        transform: translateX(50px);
    }
    
    .service-areas__city {
        font-size: 22px;
    }
    
    .service-areas__map-wrapper {
        max-width: 1200px !important;
    }
    
    .service-areas__map {
        width: 100%;
        max-width: 1200px;
        height: 1200px;
    }
}


/* ===================================================
   COMMUNITY PHOTOS SECTION
   =================================================== */

.community-section {
    background-color: #00254D; /* match reviews / site background */
    padding: 48px 16px 56px;
}

.community-section__inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.community-section__title {
    font-family: "Bowlby One", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 2.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3DBF2B; /* or the same green used in headings, if preferred */
    margin-bottom: 8px;
}

.community-section__intro {
    max-width: 640px;
    margin: 0 auto 32px;
    color: #FFFFFF;
    font-size: 1rem;
    line-height: 1.5;
}

.community-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.community-gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background-color: #001931;
    aspect-ratio: 3 / 4; /* taller cards to show full people */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.community-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.community-gallery__item:hover img {
    transform: scale(1.03);
}

/* Tablet */
@media (min-width: 768px) {
    .community-section {
        padding: 64px 32px 72px;
    }
    
    .community-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* Desktop */
@media (min-width: 1200px) {
    .community-section {
        padding: 72px 48px 88px;
    }
    
    .community-section__title {
        font-size: 2.75rem;
    }
    
    .community-gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
    }
}


/* ===================================================
   FOOTER SECTION
   =================================================== */

/* Mobile-first layout - matches current good mobile design */

.site-footer {
    background-color: #00254D;
    color: #ffffff;
    padding: 40px 20px 32px;
    font-family: 'Barlow', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

/* ===== TOP SECTION (Mobile: stacked) ===== */

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.footer-top-left,
.footer-top-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Logo */
.footer-logo {
    margin-bottom: 10px;
}

.footer-logo__img {
    max-width: 230px;
    height: auto;
}

/* Phone */
.footer-phone {
    margin-bottom: 4px;
}

.footer-phone__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #3DBF2B;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-phone__link:hover,
.footer-phone__link:focus {
    opacity: 0.85;
}

.footer-phone__link:focus {
    outline: 2px solid #3DBF2B;
    outline-offset: 4px;
    border-radius: 4px;
}

.footer-phone__icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #3DBF2B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-phone__icon-wrapper i {
    color: #ffffff;
    font-size: 20px;
}

.footer-phone__number {
    color: #3DBF2B;
    font-family: 'Bowlby One', cursive;
    line-height: 1;
}

/* Email */
.footer-email {
    margin-bottom: 6px;
}

.footer-email__link {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    transition: opacity 0.3s ease;
    font-family: 'Bowlby One', cursive;
}

.footer-email__link:hover,
.footer-email__link:focus {
    opacity: 0.85;
}

.footer-email__link:focus {
    outline: 2px solid #3DBF2B;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Social Icons */
.footer-social {
    display: inline-flex;
    gap: 22px;
    margin-top: 6px;
    margin-bottom: 12px;
}

.footer-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-social__link:hover,
.footer-social__link:focus {
    transform: scale(1.15);
    opacity: 0.9;
}

.footer-social__link:focus {
    outline: 2px solid #3DBF2B;
    outline-offset: 4px;
    border-radius: 8px;
}

.footer-social__link--facebook i,
.footer-social__link--instagram i {
    font-size: 28px;
    color: #3DBF2B;
}

/* Address */
.footer-address {
    font-style: normal;
    margin: 0;
    margin-bottom: 8px;
}

.footer-address p {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.5;
}

/* License */
.footer-license {
    margin-bottom: 12px;
}

.footer-license p {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.5;
}

/* Services */
.footer-services {
    margin-top: 8px;
    margin-bottom: 12px;
}

.footer-services__heading {
    font-family: 'Barlow', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #3DBF2B;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 8px 0;
}

.footer-services__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-services__link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    font-family: 'Barlow', sans-serif;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-services__link:hover {
    color: #3DBF2B;
    opacity: 1;
}

.footer-services__link:focus {
    color: #3DBF2B;
    outline: 2px solid #3DBF2B;
    outline-offset: 4px;
    border-radius: 4px;
}

/* ===== BOTTOM SECTION ===== */

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    width: 100%;
}

.footer-bottom-nate {
    margin-top: 0;
}

.footer-nate__logo {
    max-width: 110px;
    height: auto;
}

.footer-copyright {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #FFFFFF;
    text-align: center;
    margin: 0;
    padding: 0 20px;
    line-height: 1.5;
    max-width: 90%;
}

.footer-separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-privacy-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-privacy-link:hover {
    color: #3DBF2B;
    text-decoration: underline;
}

/* ===================================================
   FOOTER RESPONSIVE STYLES
   =================================================== */

/* ===== Tablet (768px - 1023px) ===== */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .site-footer {
        padding: 50px 32px 36px;
    }

    .footer-logo__img {
        max-width: 280px;
    }

    .footer-phone__link {
        font-size: 22px;
    }

    .footer-phone__icon-wrapper {
        width: 46px;
        height: 46px;
    }

    .footer-phone__icon-wrapper i {
        font-size: 22px;
    }

    .footer-phone__number {
        font-size: 28px;
    }

    .footer-email__link {
        font-size: 22px;
    }

    .footer-social__link--facebook i,
    .footer-social__link--instagram i {
        font-size: 32px;
    }

    .footer-address p,
    .footer-license p {
        font-size: 16px;
    }

    .footer-services__heading {
        font-size: 20px;
    }

    .footer-services__list {
        gap: 8px;
    }

    .footer-services__link {
        font-size: 20px;
    }

    .footer-nate__logo {
        max-width: 130px;
    }

    .footer-copyright {
        font-size: 13px;
    }
}

/* ===== Small Mobile (≤480px) ===== */
@media screen and (max-width: 480px) {
    .site-footer {
        padding: 35px 18px 28px;
    }

    .footer-logo__img {
        max-width: 200px;
    }

    .footer-phone__link {
        font-size: 18px;
    }

    .footer-phone__icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .footer-phone__icon-wrapper i {
        font-size: 18px;
    }

    .footer-email__link {
        font-size: 16px;
    }

    .footer-social {
        gap: 20px;
        margin-top: 4px;
    }

    .footer-social__link--facebook i,
    .footer-social__link--instagram i {
        font-size: 26px;
    }

    .footer-address p,
    .footer-license p {
        font-size: 14px;
    }

    .footer-services__heading {
        font-size: 16px;
    }

    .footer-services__list {
        gap: 6px;
    }

    .footer-services__link {
        font-size: 17px;
    }

    .footer-nate__logo {
        max-width: 95px;
    }

    .footer-copyright {
        font-size: 12px;
    }
}

/* ===== Extra Small Mobile (≤375px) ===== */
@media screen and (max-width: 375px) {
    .site-footer {
        padding: 30px 16px 24px;
    }

    .footer-logo__img {
        max-width: 180px;
    }

    .footer-phone__link {
        font-size: 16px;
    }

    .footer-phone__icon-wrapper {
        width: 38px;
        height: 38px;
    }

    .footer-phone__icon-wrapper i {
        font-size: 16px;
    }

    .footer-email__link {
        font-size: 15px;
    }

    .footer-social {
        gap: 18px;
    }

    .footer-social__link--facebook i,
    .footer-social__link--instagram i {
        font-size: 24px;
    }

    .footer-address p,
    .footer-license p {
        font-size: 13px;
    }

    .footer-services__link {
        font-size: 16px;
    }

    .footer-nate__logo {
        max-width: 85px;
    }

    .footer-copyright {
        font-size: 11px;
    }
}

/* ===== DESKTOP LAYOUT (≥1024px) - CENTERED HORIZONTAL ===== */
@media screen and (min-width: 1024px) {
    .site-footer {
        padding: 64px 80px 40px;
    }

    .footer-inner {
        max-width: 1400px;
        align-items: center;
        gap: 40px;
    }

    /* TOP SECTION: Centered with horizontal grouping */
    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 36px;
        width: 100%;
        max-width: 1200px;
    }

    /* Logo + Contact (centered) */
    .footer-top-left {
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .footer-logo__img {
        max-width: 420px;
    }

    .footer-phone__link {
        font-size: 30px;
    }

    .footer-phone__icon-wrapper {
        width: 56px;
        height: 56px;
    }

    .footer-phone__icon-wrapper i {
        font-size: 28px;
    }

    .footer-phone__number {
        font-size: 36px;
    }

    .footer-email__link {
        font-size: 30px;
    }

    .footer-social {
        justify-content: center;
        gap: 35px;
        margin-top: 10px;
    }

    .footer-social__link--facebook i,
    .footer-social__link--instagram i {
        font-size: 44px;
    }

    /* Right section: Horizontal layout for Address, License, Services */
    .footer-top-right {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 60px;
        text-align: center;
        width: 100%;
    }

    .footer-address {
        margin-bottom: 0;
        order: 1;
    }

    .footer-address p {
        font-size: 18px;
    }

    .footer-license {
        margin-bottom: 0;
        order: 3;
    }

    .footer-license p {
        font-size: 18px;
    }

    .footer-services {
        margin-top: 0;
        margin-bottom: 0;
        margin-left: -20px;
        order: 2;
    }

    .footer-services__heading {
        font-size: 20px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        margin-bottom: 12px;
    }

    .footer-services__list {
        gap: 6px;
    }

    .footer-services__link {
        font-size: 20px;
    }

    /* BOTTOM ROW: NATE + Copyright centered */
    .footer-bottom {
        padding-top: 32px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        gap: 20px;
    }

    .footer-nate__logo {
        max-width: 160px;
    }

    .footer-copyright {
        font-size: 15px;
        max-width: 100%;
    }
}

/* ===== Large Desktop (≥1440px) ===== */
@media screen and (min-width: 1440px) {
    .site-footer {
        padding: 80px 100px 50px;
    }

    .footer-inner {
        max-width: 1600px;
        gap: 48px;
    }

    .footer-top {
        gap: 40px;
        max-width: 1400px;
    }

    .footer-top-right {
        gap: 80px;
    }

    .footer-logo__img {
        max-width: 500px;
    }

    .footer-phone__link {
        font-size: 34px;
    }

    .footer-phone__icon-wrapper {
        width: 62px;
        height: 62px;
    }

    .footer-phone__icon-wrapper i {
        font-size: 32px;
    }

    .footer-phone__number {
        font-size: 40px;
    }

    .footer-email__link {
        font-size: 34px;
    }

    .footer-social {
        gap: 42px;
    }

    .footer-social__link--facebook i,
    .footer-social__link--instagram i {
        font-size: 50px;
    }

    .footer-address p {
        font-size: 20px;
    }

    .footer-license p {
        font-size: 20px;
    }

    .footer-services {
        margin-left: -25px;
    }

    .footer-services__heading {
        font-size: 22px;
    }

    .footer-services__list {
        gap: 8px;
    }

    .footer-services__link {
        font-size: 24px;
    }

    .footer-bottom {
        padding-top: 40px;
    }

    .footer-nate__logo {
        max-width: 200px;
    }

    .footer-copyright {
        font-size: 17px;
    }
}

/* ===================================================
   AMANA CALLOUT (Service Pages)
   =================================================== */

.amana-callout {
    background: #00254D;
    border: none;
    padding: 32px 40px;
    border-radius: 10px;
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: 0 4px 12px rgba(0,37,77,0.15);
    text-align: center;
}

.amana-callout img {
    width: 120px;
    height: auto;
    flex-shrink: 0;
    filter: brightness(1.1);
}

.amana-callout p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #FFFFFF;
    font-weight: 400;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .amana-callout {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 16px;
        max-width: 100%;
        margin: 30px 16px;
    }
    
    .amana-callout img {
        width: 100px;
    }
    
    .amana-callout p {
        font-size: 1rem;
    }
}

/* ===================================================
   AMANA TRUST LINE (Contact Page)
   =================================================== */

.amana-trust-small {
    margin-top: 20px;
    font-size: 0.95rem;
    text-align: center;
    color: #555;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .amana-trust-small {
        font-size: 0.85rem;
        margin-top: 16px;
    }
}

/* ===================================================
   FOOTER TRUSTED BRANDS
   =================================================== */

.footer-trusted {
    text-align: center;
    padding-bottom: 20px;
}

.footer-trusted img {
    width: 220px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-trusted img:hover {
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .footer-trusted {
        padding-bottom: 16px;
    }
    
    .footer-trusted img {
        width: 110px;
    }
}

