/* ==========================================================================
   WARD HEATING & COOLING INC. - ARCHITECTURAL PRODUCTION CSS
   ========================================================================== */

:root {
    --primary: #1A5B9A;       /* Professional HVAC Blue */
    --secondary: #0B2545;     /* Deep Trust Navy */
    --accent: #D62222;        /* High-Conversion Red */
    --accent-hover: #A51818;
    --light-bg: #F4F7FA;
    --white: #FFFFFF;
    --dark-text: #1A202C;
    --light-text: #4A5568;
    --border-color: #E2E8F0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Elements */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--dark-text); background-color: var(--white); line-height: 1.6; padding-bottom: 60px; }
@media(min-width: 769px) { body { padding-bottom: 0; } }

/* Layout Utilities */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 90px 0; }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--secondary); }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-accent { color: var(--accent) !important; }
.margin-top-md { margin-top: 50px; }
.margin-bottom-sm { margin-bottom: 30px; }
.w-100 { width: 100%; }

/* Grid Layouts */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 30px; }
@media(min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.align-center { align-items: center; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--secondary); font-weight: 700; line-height: 1.2; }
h1 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; }
h2 { font-size: 2.25rem; margin-bottom: 15px; }
h3 { font-size: 1.5rem; margin-bottom: 10px; }
p { margin-bottom: 15px; color: var(--light-text); }
.badge-tagline { display: inline-block; font-family: var(--font-heading); color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.85rem; margin-bottom: 10px; }

/* Buttons System */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; text-decoration: none; padding: 14px 30px; border-radius: 4px; transition: var(--transition); cursor: pointer; border: 2px solid transparent; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px; }
.btn-accent { background-color: var(--accent); color: var(--white); }
.btn-accent:hover { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background-color: var(--primary); color: var(--white); }
.btn-secondary:hover { background-color: var(--secondary); transform: translateY(-2px); }
.btn-outline-white { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-white:hover { background-color: var(--white); color: var(--secondary); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-text { color: var(--primary); padding: 0; background: transparent; font-size: 0.95rem; }
.btn-text:hover { color: var(--secondary); }

/* Component Styles */
.emergency-bar { background-color: var(--secondary); color: var(--white); padding: 12px 0; font-size: 0.9rem; border-bottom: 3px solid var(--accent); font-family: var(--font-heading); font-weight: 600; }
.emergency-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.emergency-phone { color: var(--white); background-color: var(--accent); text-decoration: none; padding: 6px 16px; border-radius: 4px; font-weight: 700; }
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(214, 34, 34, 0.7); }
    70% { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(214, 34, 34, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(214, 34, 34, 0); }
}
.pulse-btn { animation: pulse 2s infinite; }

/* Navigation */
.main-header { background-color: var(--white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; padding: 20px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { text-decoration: none; display: flex; flex-direction: column; }
.logo-bold { font-family: var(--font-heading); font-weight: 800; font-size: 1.8rem; color: var(--secondary); line-height: 1; }
.logo-light { font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; color: var(--primary); letter-spacing: 0.5px; margin-top: 2px; }
.nav-menu { display: flex; align-items: center; gap: 24px; }
.nav-item { text-decoration: none; color: var(--dark-text); font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; transition: var(--transition); }
.nav-item:hover, .nav-item.active { color: var(--primary); }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-content { display: none; position: absolute; background-color: var(--white); min-width: 260px; box-shadow: var(--shadow-md); border-radius: 4px; overflow: hidden; top: 100%; left: 0; z-index: 1050; border-top: 3px solid var(--primary); }
.dropdown-content a { color: var(--dark-text); padding: 12px 20px; text-decoration: none; display: block; font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; transition: var(--transition); }
.dropdown-content a:hover { background-color: var(--light-bg); color: var(--primary); }



.nav-ctas { display: flex; align-items: center; gap: 15px; }
.mobile-toggle { display: none; background: transparent; border: none; font-size: 1.5rem; color: var(--secondary); cursor: pointer; }
/* 1. Forces the menu items below to push down naturally when expanded */
    .nav-dropdown { 
        display: flex; 
        flex-direction: column; 
        width: 100%; 
    }
    
    /* 2. Connects with your JavaScript to show the submenu when tapped */
    .nav-dropdown.active .dropdown-content { 
        display: block !important; 
        position: relative !important; 
        box-shadow: none !important; 
        min-width: 100%; 
        background: var(--light-bg); 
        margin-top: 10px;
        border-top: none;
    }

/* Hero UI */
.hero-section { background: linear-gradient(135deg, rgba(11,37,69,0.92) 0%, rgba(26,91,154,0.85) 100%), url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?auto=format&fit=crop&w=1200&q=80') no-repeat center center/cover; color: var(--white); padding: 120px 0; }
.hero-content h1 { color: var(--white); }
.hero-content p { color: #E2E8F0; font-size: 1.25rem; margin-bottom: 35px; }
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 30px; }
.badge-item { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; color: #CBD5E0; }
.badge-item i { color: var(--accent); font-size: 1.2rem; }

/* Structural Cards */
.card-feature { background-color: var(--white); padding: 40px 30px; border-radius: 6px; box-shadow: var(--shadow-sm); border-bottom: 4px solid transparent; transition: var(--transition); }
.card-feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-bottom-color: var(--primary); }
.icon-wrapper { width: 65px; height: 65px; background-color: var(--light-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; color: var(--primary); margin-bottom: 24px; }

.card-service { background: var(--white); border: 1px solid var(--border-color); border-radius: 6px; padding: 35px; display: flex; flex-direction: column; transition: var(--transition); }
.card-service:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.card-service ul { list-style: none; margin: 20px 0; padding-top: 15px; border-top: 1px solid var(--border-color); }
.card-service ul li { font-size: 0.9rem; color: var(--light-text); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.card-service ul li i { color: #38A169; }
.card-actions { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 20px; }

/* Service Areas Grid */
.areas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px 30px; margin-top: 30px; }
.area-item { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; color: #E2E8F0; display: flex; align-items: center; gap: 10px; }
.mock-map { width: 100%; height: 400px; background-color: #121e2e; border-radius: 8px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.map-pulse-point { position: absolute; width: 14px; height: 14px; background-color: var(--accent); border-radius: 50%; }
.map-pulse-point::after { content: ""; position: absolute; width: 100%; height: 100%; background-color: var(--accent); border-radius: 50%; animation: pulse 1.8s infinite; top: 0; left: 0; }

/* Carousel */
.testimonial-carousel { position: relative; min-height: 240px; overflow: hidden; max-width: 850px; margin: 0 auto; }
.testimonial-slide { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; transform: scale(0.96); transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); visibility: hidden; }
.testimonial-slide.active { opacity: 1; transform: scale(1); visibility: visible; position: relative; }
.stars-rating { color: #FFB020; font-size: 1.25rem; margin-bottom: 20px; }
.testimonial-quote { font-size: 1.5rem; font-style: italic; color: var(--secondary); margin-bottom: 25px; line-height: 1.6; font-weight: 500; }
.author-info strong { display: block; color: var(--secondary); font-size: 1.1rem; }
.carousel-controls { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }
.carousel-dot { width: 12px; height: 12px; border-radius: 50%; background-color: var(--border-color); border: none; cursor: pointer; transition: var(--transition); }
.carousel-dot.active { background-color: var(--primary); width: 28px; border-radius: 6px; }

/* Lead Generation Component Forms */
.form-wrapper-box { padding: 50px; border-radius: 8px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); margin-top: 40px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 30px; }
@media(max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; color: var(--secondary); }
.form-group input, .form-group select, .form-group textarea { padding: 14px; border: 1px solid #CBD5E0; border-radius: 4px; font-family: var(--font-body); font-size: 1rem; transition: var(--transition); background-color: #FAFAFA; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background-color: var(--white); box-shadow: 0 0 0 4px rgba(26,91,154,0.15); }
.form-success-alert { margin-top: 25px; background-color: #C6F6D5; border-left: 5px solid #38A169; color: #22543D; padding: 20px; border-radius: 4px; font-weight: 600; }

/* Map & Contact UI elements */
.info-strip { display: flex; gap: 20px; margin-top: 30px; }
.info-strip-icon { width: 50px; height: 50px; background-color: var(--light-bg); color: var(--primary); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.google-map-placeholder { width: 100%; height: 100%; min-height: 380px; background-color: #E2E8F0; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--secondary); text-align: center; border: 2px dashed #A0AEC0; }
.google-map-placeholder i { font-size: 3.5rem; color: var(--primary); }
#service-areas h2,
#service-areas p {
    color: white;
}

/* Sticky Mobile Conversion Bar */
.sticky-mobile-call-bar { position: fixed; bottom: 0; left: 0; width: 100%; height: 65px; display: grid; grid-template-columns: 1fr 1fr; z-index: 2000; box-shadow: 0 -4px 15px rgba(0,0,0,0.15); }
.mobile-call-action-btn { background-color: var(--accent); color: var(--white); text-decoration: none; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; gap: 8px; }
.mobile-schedule-action-btn { background-color: var(--primary); color: var(--white); text-decoration: none; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; gap: 8px; }
@media(min-width: 769px) { .sticky-mobile-call-bar { display: none; } }

/* Footer */
.footer-padding { padding: 80px 0 50px; }
.footer-bottom-bar { background-color: #061324; padding: 25px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-links h4 { color: var(--white); font-size: 1.2rem; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-links h4::after { content: ""; position: absolute; bottom: 0; left: 0; width: 45px; height: 3px; background-color: var(--primary); }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { color: #A0AEC0; text-decoration: none; font-size: 0.95rem; transition: var(--transition); }
.footer-links ul li a:hover { color: var(--white); padding-left: 5px; }

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.experience-block {
    background: #0B2545;
    color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,.15);
}

.exp-number {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: white;
}

.exp-text {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.privacy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
}

.privacy-container h1 {
    margin-bottom: 20px;
}

.privacy-container h2 {
    margin-top: 40px;
    margin-bottom: 15px;
}

.privacy-container p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.privacy-container ul {
    margin-left: 25px;
    margin-bottom: 25px;
}

.privacy-container li {
    margin-bottom: 10px;
    line-height: 1.8;
}
.logo img {
    height: 75px;
    width: auto;
}
.footer-logo {
    width: 160px;
    height: auto;
    margin-bottom: 10px;
}
.privacy-policy {
    padding: 60px 20px;
    background: #f8fafc;
    color: #1a1a1a;
}

.privacy-policy .container {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
}

.privacy-policy h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.privacy-policy h2 {
    margin-top: 30px;
    font-size: 1.4rem;
}

.privacy-policy ul {
    padding-left: 20px;
}

.privacy-policy li {
    margin-bottom: 8px;
}

/* Fix mobile touch tracking for icons inside dropdowns */
.dropdown-trigger i {
    pointer-events: none;
}
/* ==========================================
   MOBILE INTERACTION ENGINE CORRECTIONS
   ========================================== */
@media(max-width: 991px) {
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--white); padding: 30px 20px; box-shadow: var(--shadow-md); gap: 20px; }
    .nav-menu.open { display: flex; }
    
    .nav-dropdown { 
        display: flex; 
        flex-direction: column; 
        width: 100%; 
    }
    
    .nav-dropdown.active .dropdown-content { 
        display: block !important; 
        position: relative !important; 
        box-shadow: none !important; 
        min-width: 100%; 
        background: var(--light-bg); 
        margin-top: 10px;
        border-top: none;
    }
    
    .mobile-toggle { display: block; }
    .nav-ctas { display: none; }
}

/* Fix mobile touch tracking for the hamburger icon lines */
.mobile-toggle i {
    pointer-events: none;
}