:root {
    --primary-navy: #0F172A;
    --primary-slate: #334155;
    --cta-blue: #0369A1;
    --background-light: #F8FAFC;
    --text-primary: #020617;
    --text-secondary: #4b5563;
    --white: #ffffff;
    --accent-gold: #FFD700;
    --accent-green: #16a34a;
    --accent-red: #DC2626;
    --border-light: #e2e8f0;
    --grid-gap: 1rem;
    --max-width: 1240px;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Missing variables used in landing pages */
    --primary-blue: #0369A1;
    --accent-orange: #f97316;
    --text-dark: #1e293b;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--background-light);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

h1,
.h1-style,
h2,
.h2-style,
h3,
.h3-style,
h4,
h5,
h6 {
    font-family: 'EB Garamond', serif;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    /* Universal Pill Shape */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    font-family: 'Lato', sans-serif;
}

.btn-primary {
    background-color: var(--cta-blue);
    color: var(--white);
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #0284c7;
    transform: translateY(-1px);
    box-shadow: var(--card-hover-shadow);
}

.btn-green {
    background-color: var(--accent-green);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.btn-green:hover {
    background-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
}

/* Navigation */
header {
    background: var(--white);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 17px;
    /* 50% reduction */
}

.nav-items {
    display: none;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-phone-info {
    text-align: right;
    display: none;
}

@media (min-width: 640px) {
    .header-phone-info {
        display: block;
    }
}

.call-247 {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: -2px;
}

.header-phone-info a {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
}

.btn-call-now {
    background-color: var(--cta-blue);
    color: var(--white) !important;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease;
}

.btn-call-now:hover {
    background-color: #0284c7;
    transform: translateY(-1px);
    box-shadow: var(--card-hover-shadow);
}

@media (min-width: 768px) {
    .nav-items {
        display: flex;
        gap: 2rem;
        font-weight: 600;
    }

    .nav-items a {
        color: var(--text-dark);
        transition: color 0.2s;
    }

    .nav-items a:hover {
        color: var(--primary-blue);
    }
}

/* Hero - Professional Trust Design */
.hero {
    background: linear-gradient(135deg, var(--background-light) 0%, rgba(15, 23, 42, 0.03) 100%),
        url('../images/hvac-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--background-light);
    padding: 0.9rem 0 2.5rem 0;
    position: relative;
    min-height: 750px;
    display: flex;
    align-items: center;
}

.hero.hero-home {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)),
        url('../images/car_photo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero.hero-ac {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)),
        url('../images/ac-repair-hero.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero.hero-duct {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)),
        url('../images/air-ducts-cleaning-main-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero.hero-chimney {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)),
        url('../images/chimey-cleaning-main.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero.hero-dryer {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)),
        url('../images/dryer-vent-cleaning-main.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero.hero-attic {
    background: linear-gradient(rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.55)),
        url('../images/attic-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
        /* Text larger, Form smaller */
    }
}

.hero-content h1,
.hero-content .h1-style {
    color: rgba(248, 250, 252, 0.9);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(248, 250, 252, 0.85);
    opacity: 1;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    max-width: 600px;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--background-light);
    transition: all 0.2s ease;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.trust-badge i {
    color: var(--background-light);
    font-size: 1.2rem;
}

/* Make icon colors blue for better visibility on white backgrounds */
i.fa-shield-alt,
i.fa-umbrella,
i.fa-certificate,
i.fa-calendar-check,
i.fa-home {
    color: var(--cta-blue) !important;
}

/* Mobile Hero Optimizations */
@media (max-width: 767px) {
    .hero {
        padding: 0.6rem 0 1.5rem 0;
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
    }

    .hero-content h1,
    .hero-content .h1-style {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Better home hero framing on mobile */
    .hero.hero-home,
    .hero.hero-duct,
    .hero.hero-attic,
    .hero.hero-chimney,
    .hero.hero-dryer,
    .hero.hero-ac {
        background-position: 30% center;
        background-size: cover;
    }

    @media (max-width: 480px) {

        .hero.hero-home,
        .hero.hero-duct,
        .hero.hero-attic,
        .hero.hero-chimney,
        .hero.hero-dryer,
        .hero.hero-ac {
            background-size: 150%;
            /* Prevent extreme zoom by limiting size on very small screens */
            background-position: 25% center;
        }
    }

    /* Enable CTA buttons in hero on mobile now that form is below */
    .hero .btn,
    .hero .btn-primary,
    .hero .btn-green,
    .hero-content .btn {
        display: inline-flex !important;
        margin-top: 1rem;
    }

    .hero-form-container-desktop {
        display: none !important;
    }

    .mobile-form-section {
        display: block;
        background: var(--white);
        padding: 2rem 0 4rem;
        border-top: 1px solid var(--border-light);
    }

    /* Trust badges in horizontal row */
    .trust-badges {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.75rem;
        margin-top: 1.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .trust-badges::-webkit-scrollbar {
        display: none;
    }

    .trust-badge {
        font-size: 0.56rem;
        /* 25% smaller than 0.75rem */
        padding: 0.45rem 0.675rem;
        /* 25% smaller padding */
        flex-shrink: 0;
        min-width: 120px;
    }

    .hero-grid {
        gap: 2rem;
    }
}

/* Center service card icons globally */
.s-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(3, 105, 161, 0.1);
    border-radius: 50%;
    margin: 0 auto 1rem auto;
}

.s-icon i {
    font-size: 1.5rem;
}

@media (min-width: 992px) {

    .hero-content h1,
    .hero-content .h1-style {
        font-size: 4.2rem;
    }

    .hero-form-container-desktop {
        display: block;
    }


}

/* Base styles for form visibility (Mobile/Tablet First) */
.hero-form-container-desktop {
    display: none;
}

.contact-section {
    display: block;
    background: var(--white);
    padding: 3rem 0;
    border-top: 1px solid var(--border-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.contact-image-col {
    text-align: center;
    order: 1;
    /* Image first on mobile */
}

.contact-form-col {
    order: 2;
    /* Form second on mobile */
}

/* Desktop styles for contact section */
@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .contact-image-col {
        order: 1;
        text-align: right;
        /* Align image towards center/form */
    }

    .contact-form-col {
        order: 2;
    }
}

/* Hero Form */
.hero-form-card {
    background: var(--white);
    padding: 0;
    /* Remove padding for iframe to be edge-to-edge if needed, or keep for spacing */
    border-radius: 15px;
    box-shadow: var(--card-hover-shadow);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

@media (max-width: 767px) {
    .hero-form-card {
        padding: 0;
        min-height: 800px;
        /* Iframe needs more height on mobile usually */
    }
}

.hero-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--cta-blue);
}

.hero-form-card h3,
.hero-form-card .h3-style {
    font-size: 1.6rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    text-align: center;
    font-family: 'EB Garamond', serif;
    font-weight: 600;
}

.hero-form-card p.sub-text {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background: var(--background-light);
    font-family: 'Lato', sans-serif;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--cta-blue);
    outline: none;
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
}

/* Cards & Grids */
.section-padding {
    padding: 3rem 0;
}

.grid-2x3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

@media (min-width: 640px) {
    .grid-2x3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .grid-2x3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-2x3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.solution-card {
    background: var(--white);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 16px;
    transition: all 0.2s ease;
    box-shadow: var(--card-shadow);
    position: relative;
    border-left: 4px solid transparent;
    min-height: 320px;
}

.solution-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
    border-left-color: var(--cta-blue);
}

/* Ensure both card types have same base structure */
.solution-card,
.service-item {
    background: var(--white);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 16px;
    transition: all 0.2s ease;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
    cursor: pointer;
    position: relative;
    min-height: 320px;
}

.solution-card:hover,
.service-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--cta-blue);
}

.service-item h3,
.service-item .h3-style {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Ensure both card types have same styling */
.solution-card h3,
.solution-card .h3-style,
.service-item h3,
.service-item .h3-style {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'EB Garamond', serif;
    line-height: 1.2;
}

.solution-card p,
.service-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-family: 'Lato', sans-serif;
}

.service-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Services */
.services-section {
    background-color: var(--bg-light);
    padding-top: 1rem;
}

.service-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .service-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .service-list-grid {
        gap: 2rem;
        max-width: 900px;
    }
}

@media (min-width: 1024px) {
    .service-list-grid {
        gap: 2rem;
        max-width: 1000px;
    }
}

.service-item {
    background: var(--white);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 16px;
    transition: all 0.2s ease;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
    cursor: pointer;
    position: relative;
    min-height: 320px;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--cta-blue);
}

.s-icon {
    font-size: 2rem;
    color: var(--cta-blue);
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(3, 105, 161, 0.08);
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.service-item:hover .s-icon,
.solution-card:hover .s-icon {
    background: rgba(3, 105, 161, 0.15);
    transform: scale(1.05);
}

/* Center icons for both card types */
.solution-card .s-icon,
.service-item .s-icon {
    margin: 0 auto 1.5rem;
}

.service-item:hover .s-icon {
    background: rgba(3, 105, 161, 0.2);
}

/* Center icons specifically for Specialized HVAC Solutions */
.solution-card .s-icon {
    margin: 0 auto 1.5rem;
}

.service-item:hover .s-icon {
    background: rgba(3, 105, 161, 0.15);
    transform: scale(1.05);
}

.service-item:hover .s-icon {
    background: rgba(3, 105, 161, 0.2);
    transform: scale(1.05);
}

/* Reviews - Professional Design */
.reviews-section {
    background-color: var(--primary-navy);
    color: white;
    text-align: center;
    padding: 4rem 0;
    position: relative;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--cta-blue);
}

.reviews-section h5 {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-family: 'Lato', sans-serif;
}

.reviews-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    margin-top: 3rem;
    padding-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.reviews-carousel::-webkit-scrollbar {
    display: none;
}

.review-card {
    background: rgba(51, 65, 85, 0.6);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--card-hover-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    min-width: 320px;
    flex: 0 0 auto;
    scroll-snap-align: center;
    width: 80%;
    max-width: 420px;
    position: relative;
}

@media (min-width: 768px) {
    .review-card {
        width: 380px;
    }
}

.g-logo {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.stars {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.reviewer {
    font-weight: 700;
    margin-top: 1.5rem;
    display: block;
    color: white;
    font-size: 1.1rem;
}

.review-date {
    font-size: 0.8rem;
    color: #9ca3af;
    display: block;
    margin-top: 0.2rem;
}

.review-card p {
    color: #e5e7eb;
    font-style: italic;
}

/* Footer Professional Design */
footer {
    background-color: var(--primary-navy);
    color: #94a3b8;
    padding: 3rem 0 0;
    font-size: 0.95rem;
}

.footer-row-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
}

@media (min-width: 640px) {
    .footer-row-1 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .footer-row-1 {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

.footer-col-links-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Support 2-cols on mobile */
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .footer-col-links-group {
        display: contents;
        /* Revert to separate cols on desktop */
    }
}

.footer-title {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: 'EB Garamond', serif;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #9ca3af;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.location-heading {
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.location-cloud-full {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.loc-tag {
    font-size: 0.85rem;
    color: #64748b;
}

.loc-tag:after {
    content: " | ";
    margin-left: 0.5rem;
}

.loc-tag:last-child:after {
    content: "";
}

.footer-row-3 {
    border-top: 1px solid #1f2937;
    margin-top: 3rem;
    padding: 1.5rem 0;
    background: #0a0a0a;
}

/* Professional FAQ */
details {
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0.5rem;
}

summary {
    padding: 1rem 2rem 1rem 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    padding-right: 3rem;
    transition: color 0.2s ease;
}

summary:hover {
    color: var(--cta-blue);
}

summary::after {
    content: '+';
    position: absolute;
    right: 0;
    font-weight: 700;
    color: var(--cta-blue);
    font-size: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

details[open] summary::after {
    content: '−';
}

/* Comprehensive Mobile Optimizations */
@media (max-width: 767px) {

    /* Prevent horizontal scroll */
    * {
        max-width: 100%;
    }

    /* Container adjustments */
    .container {
        padding: 0 1rem;
        width: 100%;
    }

    /* Image responsiveness */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Card adjustments */
    .solution-card,
    .service-item {
        padding: 1.5rem;
        min-height: auto;
    }

    /* Typography adjustments */
    h1,
    .h1-style {
        font-size: 2rem !important;
    }

    h2,
    .h2-style {
        font-size: 1.75rem !important;
    }

    h3,
    .h3-style {
        font-size: 1.5rem !important;
    }

    /* Button adjustments */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Section padding */
    .section-padding {
        padding: 2rem 0;
    }

    /* Form adjustments */
    .form-control {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Navigation adjustments */
    .nav-items {
        gap: 1rem;
    }

    /* Ensure no element causes overflow */
    .hero-grid,
    .grid-2x3,
    .service-list-grid {
        width: 100%;
        max-width: 100%;
    }

    /* Footer adjustments */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-column h4 {
        margin-bottom: 0.75rem;
    }

    .footer-column ul li {
        margin-bottom: 0.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Fade-in Animations for Mobile */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.reveal.active {
    opacity: 1;
}

/* Stagger animation delays for multiple elements */
.reveal:nth-child(1) {
    animation-delay: 0.1s;
}

.reveal:nth-child(2) {
    animation-delay: 0.2s;
}

.reveal:nth-child(3) {
    animation-delay: 0.3s;
}

.reveal:nth-child(4) {
    animation-delay: 0.4s;
}

.reveal:nth-child(5) {
    animation-delay: 0.5s;
}

.reveal:nth-child(6) {
    animation-delay: 0.6s;
}

/* Credibility Bar Mobile Optimization */
@media (max-width: 767px) {
    .credibility-bar {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        gap: 1rem !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .credibility-bar::-webkit-scrollbar {
        display: none;
    }

    .credibility-bar>div {
        flex-shrink: 0;
        min-width: 120px;
    }

    /* Service Page Layout Fixes - Force single column on mobile */
    section div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    section div[style*="display: flex"][style*="gap"] {
        flex-direction: column !important;
    }

    .solution-card,
    .service-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    .carousel-container,
    .carousel-slide {
        max-width: 100% !important;
    }

    div[style*="max-width: 800px"],
    div[style*="max-width: 900px"],
    div[style*="max-width: 1000px"] {
        max-width: 100% !important;
    }

    .placeholder-image {
        height: 250px !important;
    }

    .placeholder-image img,
    .carousel-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }

    div[style*="display: grid"][style*="gap: 2rem"],
    div[style*="display: grid"][style*="gap: 3rem"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    section>div[style*="padding"] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Professional Mobile Float */
@media (max-width: 767px) {
    #mobile-float-call {
        display: flex !important;
        left: 20px !important;
        right: auto !important;
        opacity: 0.9;
        background-color: var(--cta-blue) !important;
        border-radius: 50% !important;
        box-shadow: var(--card-hover-shadow) !important;
        transition: all 0.2s ease !important;
    }

    #mobile-float-call:hover {
        transform: scale(1.05) !important;
        opacity: 1 !important;
    }
}

/* Credibility Bar Base Styles */
.credibility-container {
    background: var(--white);
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
    overflow: hidden;
    /* Prevent scroll */
}

.credibility-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap !important;
    /* Force wrap */
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
}

.credibility-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(3, 105, 161, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(3, 105, 161, 0.2);
    box-sizing: border-box;
    /* Ensure padding doesn't add to width */
}

/* Mobile Optimizations */
@media (max-width: 768px) {

    .hero,
    .hero.hero-home,
    .hero.hero-ac,
    .hero.hero-duct,
    .hero.hero-chimney,
    .hero.hero-dryer,
    .hero.hero-attic {
        min-height: 550px !important;
        /* Reduce height to prevent zooming */
        padding-top: 0.75rem;
        /* Reduced by 50% from 5rem */
        background-position: center top !important;
        background-repeat: no-repeat !important;
        /* Force no-repeat on mobile */
        background-size: cover !important;
        /* Ensure cover on mobile */
        background-attachment: scroll !important;
        /* Prevent fixed bg glitches */
    }

    .credibility-container {
        padding: 1.5rem 0 !important;
    }

    .credibility-bar {
        gap: 0.75rem !important;
        /* Slightly smaller gap */
        justify-content: center !important;
        padding: 0 10px;
        /* Add side padding */
    }

    .credibility-item {
        flex: 0 0 calc(50% - 1rem) !important;
        /* Explicit width calculation */
        width: calc(50% - 1rem) !important;
        padding: 0.75rem 0.5rem !important;
        font-size: 0.8rem;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .credibility-item i {
        font-size: 1rem !important;
    }
}