/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e7eb;
}

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

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 0.5rem;
    color: #3b82f6;
}

.nav-desktop {
    display: none;
    margin-left: 2.5rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        gap: 2rem;
    }
}

.nav-link {
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #2563eb;
}

.phone-cta {
    display: flex;
    align-items: center;
}

.phone-button {
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.phone-button:hover {
    background: #1d4ed8;
}

.phone-button i {
    margin-right: 0.5rem;
}

.phone-desktop {
    display: none;
}

.phone-mobile {
    display: inline;
}

@media (min-width: 640px) {
    .phone-desktop {
        display: inline;
    }
    .phone-mobile {
        display: none;
    }
}

.mobile-menu-btn {
    display: block;
    background: #f9fafb;
    border: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: #6b7280;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.mobile-menu-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    display: none;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    padding: 0.5rem 0 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-link {
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    transition: color 0.2s;
}

.mobile-nav-link:hover {
    color: #2563eb;
}

/* Main content offset for fixed header */
main {
    margin-top: 4rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, #dbeafe, #ffffff);
    padding: 4rem 0 6rem 0;
}

@media (min-width: 640px) {
    .hero {
        padding: 6rem 0;
    }
}

.hero-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-highlight {
    color: #2563eb;
}

.hero-description {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 32rem;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

@media (min-width: 640px) {
    .hero-features {
        flex-direction: row;
        gap: 1.5rem;
    }
}

.feature-item {
    display: flex;
    align-items: center;
}

.feature-item i {
    color: #10b981;
    margin-right: 0.5rem;
}

.hero-image {
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    .hero-image {
        margin-top: 0;
    }
}

.hero-img {
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn i {
    margin-right: 0.5rem;
}

.btn-primary {
    color: white;
    background: #2563eb;
    border-color: #2563eb;
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-secondary {
    color: #2563eb;
    background: white;
    border-color: #2563eb;
}

.btn-secondary:hover {
    background: #dbeafe;
}

/* Services Section */
.services {
    padding: 4rem 0 6rem 0;
    background: white;
}

@media (min-width: 640px) {
    .services {
        padding: 6rem 0;
    }
}

.section-header {
    text-align: center;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-description {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    margin-top: 4rem;
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.service-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: #dbeafe;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.service-icon i {
    color: #2563eb;
    font-size: 1.25rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.service-description {
    color: #4b5563;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.service-features i {
    color: #10b981;
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

.services-cta {
    margin-top: 3rem;
    text-align: center;
}

.services-cta p {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

/* Reviews Section */
.reviews {
    padding: 4rem 0 6rem 0;
    background: #f9fafb;
}

@media (min-width: 640px) {
    .reviews {
        padding: 6rem 0;
    }
}

.rating-display {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stars {
    display: flex;
}

.stars i {
    color: #fbbf24;
    margin-right: 0.125rem;
}

.rating-score {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.rating-count {
    color: #4b5563;
}

.reviews-grid {
    margin-top: 4rem;
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.review-stars {
    display: flex;
    margin-bottom: 1rem;
}

.review-stars i {
    color: #fbbf24;
    margin-right: 0.125rem;
}

.review-text {
    color: #374151;
    margin-bottom: 1rem;
    font-style: italic;
}

.review-author strong {
    color: #111827;
}

.review-author span {
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Contact Section */
.contact {
    padding: 4rem 0 6rem 0;
    background: white;
}

@media (min-width: 640px) {
    .contact {
        padding: 6rem 0;
    }
}

.contact-content {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.contact-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .contact-title {
        font-size: 2.25rem;
    }
}

.contact-description {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: #dbeafe;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: #2563eb;
    font-size: 1.25rem;
}

.contact-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.contact-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

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

.contact-details p {
    color: #6b7280;
    font-size: 0.875rem;
}

.emergency-contact {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 0.5rem;
    padding: 1rem;
}

.emergency-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.emergency-notice i {
    color: #f59e0b;
    margin-top: 0.125rem;
}

.emergency-notice h4 {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.25rem;
}

.emergency-notice p {
    color: #92400e;
    font-size: 0.875rem;
}

/* Contact Form */
.contact-form {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
}

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

.form-row {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-submit {
    width: 100%;
    margin-bottom: 1rem;
}

.form-note {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem 0;
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.footer-brand i {
    color: #3b82f6;
    margin-right: 0.5rem;
}

.footer-brand p {
    color: #9ca3af;
}

.footer-contact h4,
.footer-hours h4 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-contact p,
.footer-hours p {
    color: #d1d5db;
    margin-bottom: 0.25rem;
}

.footer-contact a {
    color: #3b82f6;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-contact i {
    margin-right: 0.5rem;
    width: 1rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        transition: none !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2563eb;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}