/* ============================================
   FILE: style.css
   ============================================ */
/*
Theme Name: The Duct Guys Light
Theme URI: https://theductguys.com
Author: The Duct Guys
Author URI: https://theductguys.com
Description: Ultra-lightweight, performance-optimized WordPress theme for The Duct Guys HVAC services
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ductguys-light
*/

/* CSS Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #0E3793;
    --primary-dark: #0B2B73;
    --primary-light: #1a4bb8;
    --accent: #04dbf1;
    --text-dark: #111;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #fff;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo img {
    max-height: 60px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover { color: var(--primary); }

.cta-btn {
    background: var(--primary);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(14, 55, 147, 0.2);
}

.cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 55, 147, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: clamp(18px, 2vw, 22px);
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-cta {
    display: inline-flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    padding: 16px 36px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 16px 36px;
    border: 2px solid var(--white);
    border-radius: 30px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

/* Alert Banner */
.alert-banner {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 40px 0;
    border-radius: 6px;
}

.alert-banner h3 {
    color: #856404;
    margin-bottom: 10px;
}

/* Services Grid */
.services {
    padding: 80px 20px;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: clamp(32px, 4vw, 42px);
    margin-bottom: 60px;
    color: var(--primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: var(--primary);
    color: var(--white);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-card p {
    line-height: 1.8;
    color: var(--text-light);
}

.service-card:hover p {
    color: rgba(255,255,255,0.9);
}

/* Gallery Section */
.gallery-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 55, 147, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Map Section */
.map-section {
    padding: 80px 20px;
    background: var(--white);
}

.map-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* Info Cards */
.info-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-card {
    background: var(--primary);
    color: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.info-card:hover {
    background: var(--primary-light);
    transform: translateY(-6px);
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 28px;
    font-weight: 700;
}

/* Content Area */
.content-area {
    padding: 80px 20px;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.page-content h1,
.page-content h2,
.page-content h3 {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-content p {
    margin-bottom: 20px;
}

/* Contact Form */
.contact-section {
    padding: 80px 20px;
    background: var(--white);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--primary);
    color: var(--white);
    padding: 16px 40px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(14, 55, 147, 0.3);
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section p,
.footer-section a {
    margin-bottom: 10px;
    opacity: 0.9;
    display: block;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
}

/* Mobile Phone Button */
.mobile-phone-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(14, 55, 147, 0.4);
    z-index: 999;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--white);
    font-size: 26px;
}

.mobile-phone-btn:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 999;
    font-size: 24px;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }
    
    nav ul.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .header-cta {
        display: none;
    }
    
    .mobile-phone-btn {
        display: flex;
    }
    
    .hero {
        padding: 60px 20px;
    }
    
    .services,
    .info-section,
    .gallery-section,
    .map-section,
    .contact-section {
        padding: 50px 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}