/* ============================================
   CSS Styles for Denton County Electrician Site
   Mobile-First Responsive Design
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #e5e7eb;
    background-color: #0f172a;
}

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

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #f1f5f9;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fbbf24;
}

.inline-link {
    text-decoration: underline;
}

/* === HEADER === */
.site-header {
    background-color: #020617;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    border-bottom: 1px solid #1e293b;
}

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

.logo {
    font-size: 1.5rem;
    color: #ffffff;
}

.main-nav {
    display: none;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #f59e0b;
}

.btn-phone {
    background-color: #f59e0b;
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 600;
}

.btn-phone:hover {
    background-color: #d97706;
    color: #ffffff;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: 0.3s;
}

.main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #020617;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
    border-bottom: 1px solid #1e293b;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: #f59e0b;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background-color: #1e40af;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.btn-emergency {
    background-color: #dc2626;
    color: #ffffff;
}

.btn-emergency:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    width: 100%;
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: #ffffff;
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid #1e293b;
}

.hero h1 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.hero-intro {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.hero-intro .inline-link {
    color: #fbbf24;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 3rem;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
    padding-top: 2rem;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.badge img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.badge span {
    font-size: 0.875rem;
    font-weight: 600;
}

/* === SECTION STYLING === */
section {
    padding: 4rem 0;
}

.section-intro {
    text-align: center;
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #94a3b8;
}

/* === SERVICES SECTION === */
.services-section {
    background-color: #0f172a;
}

.services-section h2 {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background-color: #1e293b;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    border: 1px solid #334155;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
    border-color: #f59e0b;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #60a5fa;
    margin-bottom: 0.75rem;
}

.service-link {
    color: #f59e0b;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

.service-link:hover {
    text-decoration: underline;
}

/* === PRICING SECTION === */
.pricing-section {
    background-color: #1e293b;
    border-top: 1px solid #334155;
}

.pricing-section h2 {
    text-align: center;
}

.pricing-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #0f172a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #334155;
}

.pricing-table thead {
    background-color: #1e3a8a;
    color: #ffffff;
}

.pricing-table th,
.pricing-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #334155;
}

.pricing-table th {
    font-weight: 600;
}

.pricing-table tbody tr:hover {
    background-color: #1e293b;
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-cta {
    text-align: center;
    margin-top: 2rem;
}

.pricing-cta p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

/* === URGENCY SECTION === */
.urgency-section {
    background-color: #451a03;
    border-top: 4px solid #f59e0b;
    border-bottom: 4px solid #f59e0b;
}

.urgency-section h2 {
    text-align: center;
}

.urgency-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.urgency-item {
    background-color: #1e293b;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid #dc2626;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    border: 1px solid #334155;
    border-left: 4px solid #dc2626;
}

.urgency-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.urgency-item h3 {
    color: #dc2626;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.urgency-cta {
    text-align: center;
    margin-top: 2rem;
}

.urgency-cta p {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fbbf24;
}

/* === WHY CHOOSE SECTION === */
.why-choose-section {
    background-color: #0f172a;
}

.why-choose-section h2 {
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background-color: #1e293b;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    text-align: center;
    border: 1px solid #334155;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #f59e0b;
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #60a5fa;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* === TESTIMONIALS === */
.testimonials-section {
    margin-top: 3rem;
}

.testimonials-section h3 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background-color: #1e293b;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
    border-left: 4px solid #f59e0b;
    border: 1px solid #334155;
    border-left: 4px solid #f59e0b;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: #94a3b8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: #e5e7eb;
}

/* === SERVICE AREAS SECTION === */
.service-areas-section {
    background-color: #1e293b;
    border-top: 1px solid #334155;
}

.service-areas-section h2 {
    text-align: center;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.area-link {
    background-color: #0f172a;
    padding: 1rem;
    border-radius: 0.375rem;
    text-align: center;
    font-weight: 600;
    color: #60a5fa;
    border: 2px solid #334155;
    transition: all 0.3s ease;
}

.area-link:hover {
    background-color: #1e3a8a;
    color: #ffffff;
    border-color: #f59e0b;
}

/* === FAQ SECTION === */
.faq-section {
    background-color: #0f172a;
}

.faq-section h2 {
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: #1e293b;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    border: 1px solid #334155;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #f59e0b;
}

.faq-item h3 {
    color: #60a5fa;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

/* === QUOTE FORM SECTION === */
.quote-form-section {
    background-color: #1e293b;
    border-top: 1px solid #334155;
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: #0f172a;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
    border: 1px solid #334155;
}

.form-wrapper h2 {
    text-align: center;
    color: #60a5fa;
}

.form-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: #94a3b8;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #e5e7eb;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #334155;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background-color: #1e293b;
    color: #e5e7eb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.form-disclaimer {
    font-size: 0.875rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 1rem;
}

/* === FOOTER === */
.site-footer {
    background-color: #020617;
    color: #ffffff;
    padding: 3rem 0 1rem;
    border-top: 1px solid #1e293b;
}

.footer-cta {
    text-align: center;
    padding-bottom: 3rem;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 2rem;
}

.footer-cta h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-phone {
    color: #f59e0b;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    color: #f59e0b;
    margin-bottom: 1rem;
}

.footer-column p,
.footer-column a {
    color: #d1d5db;
}

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a:hover {
    color: #f59e0b;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    color: #94a3b8;
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: #f59e0b;
}

/* === ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE DESIGN === */
@media (min-width: 768px) {
    /* Typography */
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    /* Header */
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-nav {
        display: flex;
        flex-direction: row;
    }
    
    /* Hero */
    .hero {
        padding: 6rem 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
    
    .trust-badges {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Form Row */
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Urgency Grid */
    .urgency-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Areas Grid */
    .areas-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* FAQ Grid */
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === PRINT STYLES === */
@media print {
    .site-header,
    .hero-cta,
    .footer-cta,
    .quote-form-section,
    .mobile-menu-toggle {
        display: none;
    }
}
