/* ================================
   HVAC Template Styles
   Created by WebPCDesigns
   Updated with Darker Blue Theme
   ================================ */

:root {
    /* Darker Blue Color Scheme */
    --primary: #1e40af;        /* Deep royal blue */
    --primary-dark: #1e3a8a;   /* Darker navy blue */
    --primary-light: #3b82f6;  /* Brighter blue for accents */
    --secondary: #f59e0b;      /* Amber/gold for contrast */
    --dark: #0f172a;           /* Very dark blue-black */
    --dark-alt: #1e293b;       /* Lighter dark for cards */
    --light: #f1f5f9;          /* Cool gray background */
    --gray: #64748b;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-light: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    --shadow: 0 10px 30px rgba(30, 64, 175, 0.15);
    --shadow-lg: 0 20px 60px rgba(30, 64, 175, 0.25);
    --header-height: 135px; /* Total header height including top bar */
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================
   HEADER & NAVIGATION
   ================================ */

.top-bar {
    background: var(--dark);
    color: var(--white);
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 2px solid var(--primary);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info svg {
    opacity: 0.9;
}

.emergency-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.1);
}

.navbar {
    padding: 18px 0;
    background: var(--white);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark);
    font-size: 24px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo svg {
    filter: drop-shadow(0 2px 4px rgba(30, 64, 175, 0.3));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:not(.btn-call)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:not(.btn-call):hover::after,
.nav-menu a:not(.btn-call).active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.btn-call {
    background: var(--gradient);
    color: var(--white) !important;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4);
    transition: all 0.3s ease;
}

.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(30, 64, 175, 0.5);
    background: var(--gradient-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: all 0.3s ease;
    border-radius: 3px;
}

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

.hero {
    min-height: 650px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.95) 0%, rgba(30, 58, 138, 0.98) 100%), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%230f172a" width="1200" height="600"/><circle cx="200" cy="150" r="100" fill="%231e40af" opacity="0.2"/><circle cx="800" cy="400" r="150" fill="%233b82f6" opacity="0.15"/><circle cx="1000" cy="200" r="80" fill="%231e40af" opacity="0.2"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: 60px 60px;
    animation: patternMove 25s linear infinite;
    opacity: 0.4;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 62px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
    color: var(--secondary);
    text-shadow: 0 2px 10px rgba(245, 158, 11, 0.5);
}

.hero p {
    font-size: 21px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 38px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 16px;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
    border: 2px solid var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5);
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* ================================
   FEATURES SECTION
   ================================ */

.features {
    padding: 90px 0;
    background: var(--light);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    padding: 45px 35px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(30, 64, 175, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(30, 64, 175, 0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(30, 64, 175, 0.2);
    border-color: var(--primary);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.4);
}

.feature-icon svg {
    width: 45px;
    height: 45px;
    stroke: var(--white);
}

.feature-card h3 {
    font-size: 23px;
    margin-bottom: 16px;
    color: var(--dark);
    font-weight: 600;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 15px;
}

/* ================================
   SECTION UTILITIES
   ================================ */

.section {
    padding: 90px 0;
    position: relative;
    scroll-margin-top: var(--header-height);
}

.section[id] {
    scroll-margin-top: var(--header-height);
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 65px;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 22px;
    color: var(--dark);
    line-height: 1.2;
}

.section-description {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.8;
}

/* ================================
   SERVICES GRID
   ================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(30, 64, 175, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(30, 64, 175, 0.2);
    border-color: var(--primary);
}

.service-image {
    height: 240px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="white" stroke-width="0.5" opacity="0.2"/></svg>');
    background-size: 50px 50px;
}

.service-image svg {
    width: 110px;
    height: 110px;
    stroke: var(--white);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.service-content {
    padding: 35px;
}

.service-card h3 {
    font-size: 25px;
    margin-bottom: 16px;
    color: var(--dark);
    font-weight: 600;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 24px;
    line-height: 1.8;
}

.service-features {
    list-style: none;
    margin-bottom: 28px;
}

.service-features li {
    padding: 10px 0;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}

/* ================================
   ABOUT PAGE
   ================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    margin-top: 50px;
}

.about-image {
    position: relative;
}

.about-image-main {
    width: 100%;
    height: 550px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(30, 64, 175, 0.25);
}

.about-image-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="white" stroke-width="0.5" opacity="0.15"/></svg>');
    background-size: 60px 60px;
}

.about-image-main svg {
    width: 220px;
    height: 220px;
    stroke: var(--white);
    position: relative;
    z-index: 2;
}

.about-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(30, 64, 175, 0.3);
    text-align: center;
}

.about-badge h4 {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 700;
}

.about-badge p {
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 45px;
}

.stat-card {
    text-align: center;
    padding: 35px 25px;
    background: var(--light);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 64, 175, 0.05);
}

.stat-card:hover {
    background: var(--white);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.15);
    transform: translateY(-5px);
}

.stat-card h4 {
    font-size: 46px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.stat-card p {
    color: var(--gray);
    font-weight: 500;
}

/* ================================
   CONTACT FORM
   ================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    margin-top: 50px;
}

.contact-info-box {
    background: var(--gradient);
    color: var(--white);
    padding: 55px 45px;
    border-radius: 20px;
    height: fit-content;
    box-shadow: 0 15px 40px rgba(30, 64, 175, 0.3);
}

.contact-info-box h3 {
    font-size: 30px;
    margin-bottom: 35px;
    font-weight: 700;
}

.contact-item {
    display: flex;
    gap: 22px;
    margin-bottom: 35px;
}

.contact-item-icon {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 26px;
    height: 26px;
}

.contact-item-content h4 {
    font-size: 16px;
    margin-bottom: 6px;
    opacity: 0.9;
    font-weight: 500;
}

.contact-item-content p {
    font-size: 18px;
    font-weight: 600;
}

.form-wrapper {
    background: var(--white);
    padding: 55px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(30, 64, 175, 0.12);
    border: 1px solid rgba(30, 64, 175, 0.05);
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 160px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.btn-submit {
    background: var(--gradient);
    color: var(--white);
    padding: 16px 45px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.5);
}

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

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 70px 0 25px;
    border-top: 3px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 45px;
    margin-bottom: 45px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 22px;
    font-size: 20px;
    font-weight: 600;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 22px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col ul li a:hover {
    color: var(--primary-light);
}

.contact-list li svg {
    width: 16px;
    height: 16px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
}

.footer-bottom p {
    margin-bottom: 10px;
}

.webpc-credit a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
}

.webpc-credit a:hover {
    text-decoration: underline;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 968px) {
    :root {
        --header-height: 200px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 135px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(30, 64, 175, 0.15);
        padding: 35px 0;
        gap: 0;
        border-top: 2px solid var(--primary);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 18px 0;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    
    .hero {
        min-height: 550px;
    }
    
    .hero h1 {
        font-size: 46px;
    }
    
    .section-title {
        font-size: 38px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 17px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .top-bar-content {
        justify-content: center;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-wrapper,
    .contact-info-box {
        padding: 35px 25px;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   ANIMATIONS & UTILITIES
   ================================ */

.fade-in {
    animation: fadeInUp 0.6s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Loading spinner for form submission */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    margin-left: 10px;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth scrolling fix for all anchor targets */
*[id] {
    scroll-margin-top: var(--header-height);
}
