/* ELECTRICAL CONTRACTOR TEMPLATE - Main Stylesheet */

:root {
    --primary: #FFD700;
    --secondary: #1A1A2E;
    --accent: #0066CC;
    --emergency: #DC3545;
    --text: #333;
    --text-light: #666;
    --bg: #fff;
    --bg-light: #f8f9fa;
    --bg-dark: #1A1A2E;
    --border: #e0e0e0;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --radius: 12px;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--secondary); }
.btn-primary:hover { background: #e6c200; text-decoration: none; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--secondary); text-decoration: none; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; }

/* Emergency Banner */
.emergency-banner {
    background: var(--emergency);
    color: white;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.emergency-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.emergency-text {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}
.emergency-text i {
    font-size: 20px;
    animation: shake 0.5s infinite;
}
.emergency-btn {
    background: white;
    color: var(--emergency);
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.emergency-btn:hover { text-decoration: none; transform: scale(1.05); }

@keyframes shake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

/* Header */
.header {
    background: var(--secondary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 24px;
}
.logo:hover { text-decoration: none; }
.logo i { color: var(--primary); font-size: 28px; }
.nav {
    display: flex;
    gap: 30px;
}
.nav a {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    transition: color 0.3s;
}
.nav a:hover { color: var(--primary); text-decoration: none; }
.header-cta {
    background: var(--primary);
    color: var(--secondary);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
}
.header-cta:hover { text-decoration: none; background: #e6c200; }
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #16213E 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 48px; margin-bottom: 20px; }
.hero p { font-size: 20px; opacity: 0.9; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-badges {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-badges span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
}
.hero-badges i { color: var(--primary); }

/* Sections */
.section { padding: 80px 0; }
.section-dark { background: var(--bg-light); }
.section-light { background: white; }
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 { font-size: 36px; margin-bottom: 10px; }
.section-header p { font-size: 18px; color: var(--text-light); }

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.service-card.emergency { border-left: 4px solid var(--emergency); }
.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #e6c200);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.service-icon i { font-size: 28px; color: var(--secondary); }
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { color: var(--text-light); margin-bottom: 15px; }
.service-price { font-size: 18px; font-weight: 700; color: var(--accent); }
.emergency-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--emergency);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}
.project-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.project-card img, .project-card .placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-card .placeholder {
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-card .placeholder i { font-size: 48px; color: #ccc; }
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px 20px 20px;
    color: white;
}
.project-overlay h4 { font-size: 18px; margin-bottom: 5px; }
.project-overlay span { font-size: 13px; opacity: 0.8; }

/* ZIP Checker */
.zip-checker-box {
    background: linear-gradient(135deg, var(--secondary), #16213E);
    color: white;
    padding: 50px;
    border-radius: var(--radius);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.zip-checker-box h3 { font-size: 24px; margin-bottom: 25px; }
.zip-checker-box i { color: var(--primary); }
.zip-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}
.zip-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}
.zip-form button {
    background: var(--primary);
    color: var(--secondary);
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.zip-form button:hover { background: #e6c200; }
#zipResult {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}
#zipResult.success { display: block; background: rgba(40,167,69,0.2); color: #90EE90; }
#zipResult.error { display: block; background: rgba(220,53,69,0.2); color: #ff9999; }

/* Certifications */
.certs-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}
.cert-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.cert-badge img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}
.cert-badge i { font-size: 48px; color: var(--primary); }
.cert-badge span { font-size: 13px; color: var(--text-light); max-width: 120px; }

/* Contact Section */
.section-contact { background: var(--bg-light); }
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}
.contact-info h2 { font-size: 32px; margin-bottom: 15px; }
.contact-info p { color: var(--text-light); margin-bottom: 30px; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-item a { color: var(--text); font-weight: 500; }
.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 15px;
    font-family: inherit;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert.success { background: #d4edda; color: #155724; }
.alert.error { background: #f8d7da; color: #721c24; }

/* Footer */
.footer {
    background: var(--secondary);
    color: white;
    padding: 50px 0 30px;
}
.footer-content { text-align: center; }
.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.footer-logo i { color: var(--primary); }
.footer p { opacity: 0.7; font-size: 14px; }

/* Responsive */
@media (max-width: 768px) {
    .nav { 
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    .nav.open { display: flex; }
    .mobile-toggle { display: block; }
    .header-cta { display: none; }
    
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .hero-badges { gap: 15px; }
    
    .section { padding: 50px 0; }
    .section-header h2 { font-size: 28px; }
    
    .services-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    
    .contact-wrapper { grid-template-columns: 1fr; gap: 30px; }
    .contact-form { padding: 25px; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    
    .zip-checker-box { padding: 30px 20px; }
    .zip-form { flex-direction: column; }
    
    .emergency-content { justify-content: center; text-align: center; }
}
