/* Critical CSS - Preloaded */
:root {
    --primary: #0056b3;
    --primary-dark: #003d7a;
    --secondary: #e8491d;
    --light: #f8f9fa;
    --dark: #343a40;
    --text: #212529;
    --text-light: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.header {
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.main-heading {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.main-heading span {
    color: var(--secondary);
}

.contact-number {
    margin: 0.5rem 0;
}

.phone-link {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}

.phone-link:hover {
    color: var(--secondary);
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin: 0.5rem 0;
}

.cta-button:hover {
    background-color: #c53a13;
}

/* Hero Section */
.hero {
    padding: 3rem 0;
    background-color: var(--light);
}

.hero-content {
    margin-bottom: 2rem;
}

.hero-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

/* Services Section */
.services {
    padding: 3rem 0;
}

.services h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 1.75rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

/* Why Choose Section */
.why-choose {
    padding: 3rem 0;
    background-color: var(--light);
}

.why-choose h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 1.75rem;
}

.benefits-list {
    list-style-type: none;
    max-width: 800px;
    margin: 0 auto;
}

.benefits-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.benefits-list li:before {
    content: "✓";
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Testimonials Section */
.testimonials {
    padding: 3rem 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 1.75rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 1rem;
}

.rating {
    color: var(--secondary);
    font-size: 1.25rem;
}

/* Emergency CTA Section */
.emergency-cta {
    padding: 3rem 0;
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
}

.emergency-cta h2 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.emergency-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Footer Styles */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-contact h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-contact p {
    color: var(--text-light);
}

.service-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.service-link:hover {
    color: var(--white);
}

/* Accessibility Improvements */
a:focus, button:focus {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: white;
    padding: 0.5rem;
    z-index: 1001;
}

.skip-link:focus {
    left: 0;
}

/* Mobile First Media Queries */
@media (min-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .main-heading {
        font-size: 2rem;
    }
    
    .hero {
        display: flex;
        align-items: center;
    }
    
    .hero .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }
    
    .hero-content {
        margin-bottom: 0;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Print Styles */
@media print {
    .header, .footer, .cta-button {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.3;
    }
    
    a {
        text-decoration: underline;
    }
}