/* Chicago Generator Service - Main Stylesheet */
:root {
    --primary: #1a365d;
    --secondary: #c53030;
    --accent: #dd6b20;
    --light: #f7fafc;
    --dark: #1a202c;
    --gray: #718096;
    --border: #e2e8f0;
    --success: #38a169;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #fff;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.header-inner { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }

.nav { display: flex; gap: 30px; align-items: center; }
.nav a { color: white; text-decoration: none; font-weight: 500; font-size: 15px; transition: opacity 0.3s; }
.nav a:hover { opacity: 0.8; }

.contact-header { text-align: right; }
.contact-header a { color: var(--accent); text-decoration: none; font-weight: 700; font-size: 18px; }
.contact-header p { font-size: 12px; opacity: 0.9; margin-top: 2px; }

/* Hero */
.hero {
    background: linear-gradient(rgba(26,54,93,0.85), rgba(26,54,93,0.9)), url('../images/main.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 { font-size: 52px; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 20px; max-width: 700px; margin: 0 auto 30px; opacity: 0.95; }

.btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover { background: #c05621; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-secondary { background: var(--secondary); }
.btn-secondary:hover { background: #9b2c2c; }

/* Trust Badges */
.trust-bar {
    background: var(--light);
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
}

.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; text-align: center; }
.trust-item { padding: 15px; }
.trust-item h3 { font-size: 28px; color: var(--primary); font-weight: 800; }
.trust-item p { color: var(--gray); font-size: 14px; margin-top: 5px; }

/* Sections */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 36px; color: var(--primary); margin-bottom: 15px; }
.section-title p { color: var(--gray); font-size: 18px; max-width: 600px; margin: 0 auto; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.service-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s;
}

.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.service-card h3 { color: var(--primary); font-size: 20px; margin-bottom: 12px; }
.service-card p { color: var(--gray); font-size: 15px; }

/* Gallery - 20 images */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.gallery-item:hover { border-color: var(--primary); transform: scale(1.05); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Why Choose Us */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.why-card { text-align: center; padding: 30px; }
.why-card .icon { font-size: 48px; margin-bottom: 15px; }
.why-card h3 { color: var(--primary); margin-bottom: 10px; }
.why-card p { color: var(--gray); }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.review-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    position: relative;
}

.review-card::before {
    content: '"';
    font-size: 60px;
    color: var(--accent);
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.review-card .stars { color: #ecc94b; margin-bottom: 10px; font-size: 18px; }
.review-card p { font-style: italic; margin-bottom: 15px; color: var(--dark); }
.review-card .author { font-weight: 700; color: var(--primary); }
.review-card .location { font-size: 13px; color: var(--gray); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-question {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--gray);
    padding-top: 0;
}

.faq-item.active .faq-answer { max-height: 500px; padding-top: 15px; }
.faq-toggle { font-size: 24px; transition: transform 0.3s; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }

/* Technical Specs */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.tech-item {
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border);
}

.tech-item h4 { color: var(--primary); font-size: 14px; margin-bottom: 8px; text-transform: uppercase; }
.tech-item p { font-size: 20px; font-weight: 700; }

/* Security Banner */
.security-banner {
    background: linear-gradient(135deg, var(--success) 0%, #2f855a 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.security-banner h2 { font-size: 32px; margin-bottom: 15px; }
.security-banner p { font-size: 18px; max-width: 700px; margin: 0 auto; opacity: 0.95; }

/* Footer */
.footer { background: var(--dark); color: white; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: var(--accent); margin-bottom: 20px; font-size: 18px; }
.footer-col a { color: #a0aec0; text-decoration: none; display: block; margin-bottom: 10px; transition: color 0.3s; }
.footer-col a:hover { color: white; }
.footer-col p { color: #a0aec0; margin-bottom: 10px; }

.social-links { display: flex; gap: 15px; margin-top: 20px; }
.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;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s;
}

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

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

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #742a2a 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .nav { display: none; }
    .section { padding: 50px 0; }
    .section-title h2 { font-size: 28px; }
}

/* AI SEO Badge */
.ai-seo-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Accessibility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Breadcrumb */
.breadcrumb { background: var(--light); padding: 15px 0; font-size: 14px; color: var(--gray); }
.breadcrumb a { color: var(--primary); text-decoration: none; }

/* Service Areas Section */
.service-areas-section { background: var(--light); padding: 60px 0; }
.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.area-link {
    display: block;
    padding: 10px 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-align: center;
}
.area-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.area-link.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    font-weight: 700;
}
.area-link.active:hover {
    background: #c05621;
    border-color: #c05621;
}
