/* ==========================================
   AIR DUCT ADVANCE
   Joomla 6 - Cassiopeia Custom Design
   ========================================== */

:root {
    --hvac-navy: #12305b;
    --hvac-blue: #1686d9;
    --hvac-orange: #f47b20;
    --hvac-white: #ffffff;
}


/* AIR DUCT ADVANCE - HERO BACKGROUND */

.hvac-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 90px 7%;

    background:
        linear-gradient(
            90deg,
            rgba(8, 31, 62, 0.95) 0%,
            rgba(8, 31, 62, 0.82) 45%,
            rgba(8, 31, 62, 0.35) 100%
        ),
        url("/images/hvac/hvac-hero.jpg");

    background-size: cover;
    background-position: center;

    color: #ffffff;
    border-radius: 0;
    overflow: hidden;
}
}

.hvac-hero-content {
    max-width: 760px;
    position: relative;
    z-index: 2;
}

/* SMALL HEADING */

.hvac-kicker {
    display: inline-block;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffad67;
    margin-bottom: 20px;
}

/* MAIN HEADLINE */

.hvac-hero h1 {
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 25px;
}

/* SECONDARY HEADLINE */

.hvac-hero h2 {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 600;
    line-height: 1.35;
    color: white;
    margin-bottom: 25px;
}

/* HERO DESCRIPTION */

.hvac-hero p {
    font-size: 18px;
    line-height: 1.8;
    color: #e8f2fa;
    margin-bottom: 30px;
}

/* BUTTON CONTAINER */

.hvac-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* ORANGE CALL BUTTON */

.hvac-btn-primary {
    display: inline-block;
    padding: 16px 28px;
    background: var(--hvac-orange);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.hvac-btn-primary:hover {
    background: #db6510;
    transform: translateY(-3px);
}

/* REQUEST SERVICE BUTTON */

.hvac-btn-secondary {
    display: inline-block;
    padding: 16px 28px;
    border: 2px solid white;
    background: transparent;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.hvac-btn-secondary:hover {
    background: white;
    color: var(--hvac-navy) !important;
}

/* SERVICE AREA TEXT */

.hvac-hero .hvac-service-area {
    font-size: 15px;
    color: #c9e4f7;
    margin-top: 25px;
}

/* MOBILE RESPONSIVE DESIGN */

@media (max-width: 768px) {

    .hvac-hero {
        min-height: auto;
        padding: 65px 25px;
        border-radius: 8px;
    }

    .hvac-hero h1 {
        font-size: 38px;
    }

    .hvac-hero h2 {
        font-size: 23px;
    }

    .hvac-hero p {
        font-size: 16px;
    }

    .hvac-buttons {
        flex-direction: column;
    }

    .hvac-btn-primary,
    .hvac-btn-secondary {
        text-align: center;
        width: 100%;
    }
}
/* FULL-WIDTH HOMEPAGE */

body:has(.hvac-hero) .site-grid {
    grid-template-columns: minmax(0, 1fr);
}

body:has(.hvac-hero) .container-component {
    grid-column: 1 / -1;
    max-width: 100%;
    width: 100%;
    padding: 0;
}

body:has(.hvac-hero) .com-content-article {
    width: 100%;
}

body:has(.hvac-hero) .hvac-hero {
    width: 100%;
}
/* =========================================
   AIR DUCT ADVANCE
   MOBILE RESPONSIVE WIDTH FIX
   ========================================= */

@media (max-width: 768px) {

    /* Remove narrow Joomla content columns */
    body:has(.hvac-hero) .site-grid {
        display: block;
        width: 100%;
    }

    body:has(.hvac-hero) .container-component {
        display: block;
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }

    /* Expand homepage article */
    body:has(.hvac-hero) .com-content-article,
    body:has(.hvac-hero) .com-content-article__body {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    /* Make hero occupy the available width */
    .hvac-hero {
        width: 100%;
        max-width: none;
        min-height: 500px;
        padding: 45px 20px;
        margin: 0;
        border-radius: 0;
        box-sizing: border-box;
        background-position: center;
    }

    .hvac-hero-content {
        width: 100%;
        max-width: 100%;
    }

    .hvac-hero h1 {
        font-size: clamp(30px, 8vw, 42px);
        line-height: 1.15;
    }

    .hvac-hero h2 {
        font-size: 21px;
        line-height: 1.35;
    }

    .hvac-hero p {
        font-size: 16px;
        line-height: 1.6;
    }

    .hvac-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .hvac-btn-primary,
    .hvac-btn-secondary {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}
/* ==========================================
   AIR DUCT ADVANCE - SERVICE CARDS
   ========================================== */

.hvac-services {
    padding: 85px 6%;
    background: #f4f8fc;
}

.hvac-section-heading {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px;
}

.hvac-section-heading span {
    color: #f47b20;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hvac-section-heading h2 {
    color: #12305b;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    margin: 15px 0;
}

.hvac-section-heading p {
    color: #64748b;
    font-size: 18px;
    line-height: 1.7;
}

.hvac-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    max-width: 1300px;
    margin: auto;
}

.hvac-service-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(20, 48, 85, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hvac-service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 45px rgba(20, 48, 85, 0.14);
}

.hvac-service-icon {
    font-size: 45px;
    margin-bottom: 25px;
}

.hvac-service-card h3 {
    font-size: 25px;
    color: #12305b;
    font-weight: 800;
    margin-bottom: 18px;
}

.hvac-service-card p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.8;
}

.hvac-service-link {
    display: inline-block;
    margin-top: 20px;
    color: #f47b20;
    font-weight: 800;
    text-decoration: none;
}

.hvac-service-link:hover {
    color: #12305b;
}

/* MOBILE RESPONSIVE SERVICE CARDS */

@media (max-width: 900px) {
    .hvac-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .hvac-services {
        padding: 55px 20px;
    }

    .hvac-services-grid {
        grid-template-columns: 1fr;
    }

    .hvac-service-card {
        padding: 30px 25px;
    }

    .hvac-section-heading h2 {
        font-size: 30px;
    }
}
/* ==========================================
   AIR DUCT ADVANCE
   FIX HOMEPAGE SHIFTED TO THE RIGHT
   Joomla 6 - Cassiopeia
   ========================================== */

/* Make homepage content span the entire grid */
body:has(.hvac-hero) .site-grid {
    grid-template-columns: minmax(0, 1fr) !important;
}

/* Remove Cassiopeia's reserved sidebar space */
body:has(.hvac-hero) .container-component {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
}

/* Full-width article */
body:has(.hvac-hero) .com-content-article,
body:has(.hvac-hero) .com-content-article__body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Correct the hero and service section alignment */
body:has(.hvac-hero) .hvac-hero,
body:has(.hvac-hero) .hvac-services {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

/* Prevent horizontal overflow */
body:has(.hvac-hero) {
    overflow-x: clip;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    body:has(.hvac-hero) .site-grid {
        display: block !important;
    }

    body:has(.hvac-hero) .hvac-hero {
        padding: 55px 20px;
        min-height: auto;
    }

    body:has(.hvac-hero) .hvac-services {
        padding: 55px 20px;
    }
}
/* AIR DUCT ADVANCE - COMPACT HEADER */

@media (min-width: 992px) {

    .container-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 12px 4%;
        gap: 20px;
    }

    .container-header .navbar-brand {
        margin: 0;
        padding: 0;
    }

    .container-header .container-nav {
        width: auto;
        margin: 0;
        padding: 0;
    }

    .container-header .mod-menu {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .container-header .mod-menu > li > a {
        padding: 12px 0;
    }
}

/* MOBILE HEADER */

@media (max-width: 991px) {

    .container-header {
        padding: 15px;
    }

    .container-header .container-nav {
        width: 100%;
    }

    .container-header .navbar-brand img {
        max-width: 180px;
        height: auto;
    }
}
/* =========================================
   AIR DUCT ADVANCE - SERVICE PAGES
   ========================================= */

/* SERVICE PAGE HERO */

.hvac-page-hero {
    background: linear-gradient(
        120deg,
        #0b2445,
        #174b7c
    );

    color: white;
    padding: 100px 7%;
    text-align: center;
}

.hvac-page-hero-content {
    max-width: 950px;
    margin: auto;
}

.hvac-page-hero h1 {
    color: white;
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 800;
    margin: 20px 0;
}

.hvac-page-hero p {
    color: #e0eaf5;
    font-size: 21px;
    line-height: 1.7;
    margin-bottom: 35px;
}

.hvac-page-hero .hvac-btn-primary,
.hvac-page-hero .hvac-btn-secondary {
    margin: 5px;
}

/* INTRO SECTION */

.hvac-page-intro {
    padding: 80px 7%;
    max-width: 1150px;
    margin: auto;
    text-align: center;
}

.hvac-page-intro > p {
    font-size: 18px;
    color: #526579;
    line-height: 1.9;
}

/* CALL TO ACTION */

.hvac-page-cta {
    background: #12305b;
    color: white;
    padding: 80px 25px;
    text-align: center;
}

.hvac-page-cta h2 {
    color: white;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
}

.hvac-page-cta p {
    color: #e0eaf5;
    font-size: 18px;
    margin: 20px auto 30px;
    max-width: 700px;
}

/* MOBILE DESIGN */

@media (max-width: 768px) {

    .hvac-page-hero {
        padding: 65px 20px;
    }

    .hvac-page-hero p {
        font-size: 17px;
    }

    .hvac-page-intro {
        padding: 55px 20px;
    }

    .hvac-page-cta {
        padding: 60px 20px;
    }
}
/* =========================================
   AIR DUCT ADVANCE - HEATING PAGE
   ========================================= */

/* HEATING HERO BACKGROUND */

.hvac-heating-hero {
    background:
        linear-gradient(
            90deg,
            rgba(8, 31, 62, 0.94),
            rgba(8, 31, 62, 0.65)
        ),
        url("/images/hvac/heating-hero.webp");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* CENTER HERO BUTTONS */

.hvac-center-buttons {
    justify-content: center;
}

/* HEATING SERVICE CARDS */

.hvac-service-page .hvac-service-card {
    min-height: 300px;
}

/* MOBILE DESIGN */

@media (max-width: 768px) {

    .hvac-heating-hero {
        min-height: 450px;
        padding: 65px 20px;
    }

    .hvac-heating-hero h1 {
        font-size: 36px;
    }

    .hvac-heating-hero p {
        font-size: 17px;
    }

    .hvac-center-buttons {
        flex-direction: column;
    }

    .hvac-service-page .hvac-service-card {
        min-height: auto;
    }
}
/* ==========================================
   AIR DUCT ADVANCE
   FIX HEATING AND OTHER SERVICE PAGE WIDTHS
   ========================================== */

/* Remove Cassiopeia's narrow content column */
body:has(.hvac-service-page) .site-grid {
    grid-template-columns: minmax(0, 1fr) !important;
}

/* Make the main Joomla component full-width */
body:has(.hvac-service-page) .container-component {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

/* Expand the Joomla article */
body:has(.hvac-service-page) .com-content-article,
body:has(.hvac-service-page) .com-content-article__body,
body:has(.hvac-service-page) .hvac-service-page {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

/* Keep service sections full-width */
.hvac-service-page .hvac-page-hero,
.hvac-service-page .hvac-services,
.hvac-service-page .hvac-page-cta {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Improve introductory content */
.hvac-service-page .hvac-page-intro {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 75px 30px;
    box-sizing: border-box;
}

.hvac-service-page .hvac-page-intro > p {
    max-width: 850px;
    margin: 20px auto;
    font-size: 18px;
    line-height: 1.8;
}

/* Expand service cards */
.hvac-service-page .hvac-services-grid {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

/* Keep text readable */
.hvac-service-page .hvac-service-card {
    min-width: 0;
    padding: 35px 30px;
}

.hvac-service-page .hvac-service-card h3 {
    font-size: 24px;
}

.hvac-service-page .hvac-service-card p {
    font-size: 16px;
    line-height: 1.7;
}

/* Mobile layout */
@media (max-width: 900px) {
    .hvac-service-page .hvac-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .hvac-service-page .hvac-services-grid {
        grid-template-columns: 1fr;
    }

    .hvac-service-page .hvac-page-intro {
        padding: 50px 20px;
    }

    .hvac-service-page .hvac-service-card {
        padding: 30px 25px;
    }
}