/* Chicago Comfort HVAC Services - Main Stylesheet */

/* ========== CSS RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* HVAC Brand Colors */
    --primary-blue: #0066CC;
    --dark-blue: #003366;
    --accent-orange: #FF6600;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #DDDDDD;
    --success-green: #28A745;
    
    /* Typography */
    --font-main: 'Arial', 'Helvetica', sans-serif;
    --font-heading: 'Georgia', serif;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

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

/* ========== HEADER & NAVIGATION ========== */
.top-bar {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

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

.top-bar-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

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

.top-bar-info i {
    color: var(--accent-orange);
}

header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    color: var(--primary-blue);
    font-size: 28px;
    font-weight: bold;
}

.logo .tagline {
    color: var(--accent-orange);
    font-size: 14px;
    font-weight: normal;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-blue);
}

nav ul li a.active {
    color: var(--primary-blue);
}

.cta-phone {
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-phone:hover {
    background-color: #E65500;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary-blue);
    cursor: pointer;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0,50 Q25,30 50,50 T100,50" stroke="rgba(255,255,255,0.05)" stroke-width="2" fill="none"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn {
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #E65500;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* ========== SECTIONS ========== */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.section-title p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ========== SERVICES GRID ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--primary-blue);
}

.service-icon {
    font-size: 50px;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-card a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-card a:hover {
    color: var(--accent-orange);
}

/* ========== FEATURES / WHY CHOOSE US ========== */
.features {
    background-color: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    margin: 0 auto 20px;
}

.feature-item h3 {
    font-size: 20px;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-light);
}

/* ========== CALL TO ACTION ========== */
.cta-section {
    background: linear-gradient(135deg, var(--accent-orange), #FF8833);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* ========== SERVICE PAGE STYLES ========== */
.service-hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.service-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.service-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.service-main {
    background-color: var(--white);
}

.service-main h2 {
    font-size: 30px;
    color: var(--dark-blue);
    margin-bottom: 20px;
    margin-top: 30px;
}

.service-main h3 {
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    margin-top: 25px;
}

.service-main p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.service-main ul {
    list-style: none;
    margin: 20px 0;
}

.service-main ul li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: var(--text-dark);
}

.service-main ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
    font-size: 18px;
}

.service-sidebar {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-cta {
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-cta h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.sidebar-cta p {
    font-size: 32px;
    font-weight: bold;
    margin: 15px 0;
}

.sidebar-links h3 {
    font-size: 20px;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.sidebar-links ul {
    list-style: none;
}

.sidebar-links ul li {
    margin-bottom: 10px;
}

.sidebar-links ul li a {
    display: block;
    padding: 12px 15px;
    background-color: var(--white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar-links ul li a:hover,
.sidebar-links ul li a.active {
    background-color: var(--primary-blue);
    color: var(--white);
    padding-left: 20px;
}

/* ========== ABOUT PAGE ========== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

.about-text h2 {
    font-size: 32px;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-image {
    text-align: center;
}

.about-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--accent-orange);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
}

/* ========== CONTACT PAGE ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-form {
    background-color: var(--white);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: var(--font-main);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

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

.btn-submit {
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #E65500;
}

.contact-info {
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: 8px;
}

.contact-info h3 {
    font-size: 24px;
    color: var(--dark-blue);
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    width: 45px;
    height: 45px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 18px;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.info-text p {
    color: var(--text-light);
    line-height: 1.6;
}

.info-text a {
    color: var(--primary-blue);
    text-decoration: none;
}

.info-text a:hover {
    color: var(--accent-orange);
}

.business-hours {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.hours-list li:last-child {
    border-bottom: none;
}

/* ========== FOOTER ========== */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 10px;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--accent-orange);
}

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

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 968px) {
    .service-content,
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .service-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    nav {
        display: none;
        width: 100%;
        order: 3;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px 0;
        gap: 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .top-bar-info {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}
