/* Custom Properties - Updated to match logo colors */
:root {
    --primary-color: #1E7FB8;
    --secondary-color: #2E4A62;
    --accent-color: #E8E8E8;
    --text-color: #2E4A62;
    --light-text: #5a6f7f;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --border-color: #1E7FB8;
    --success-color: #1E7FB8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --header-font: 'Georgia', serif;
    
    --container-max-width: 1200px;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Account for fixed header height */
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--light-text);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--secondary-color);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

/* Icons */
.icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.logo-section:hover {
    opacity: 0.8;
    color: inherit;
}

.logo img,
.logo svg {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

.company-info h1 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--secondary-color);
}

.tagline {
    margin: 0;
    font-size: 0.8rem;
    color: var(--light-text);
}

.contact-header {
    text-align: right;
}

.emergency-badge {
    background-color: var(--danger-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.phone-link, .email-link {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
}

.phone-link {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Navigation Styles */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    padding: 0.5rem 0.8rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-menu a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    gap: 2px;
    position: relative;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* Header Call Now Button */
.call-now-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 600;
}

.feature-icon {
    color: var(--accent-color);
    font-size: 1.5rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.rating-feature .feature-icon {
    color: var(--warning-color);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-icon i {
    font-size: 3rem;
    display: block;
}

/* Emergency Banner */
.emergency-banner {
    background-color: var(--secondary-color);
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    color: var(--white);
}

.emergency-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.emergency-text h3 {
    color: var(--white);
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.emergency-text p {
    color: var(--white);
    margin: 0;
    opacity: 0.9;
}

.emergency-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    white-space: nowrap;
}

.emergency-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.emergency-btn i {
    font-size: 1rem;
}

/* Emergency Banner Mobile Responsive */
@media (max-width: 768px) {
    .emergency-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .emergency-banner {
        padding: 1rem;
    }
    
    .emergency-text h3 {
        font-size: 1.25rem;
    }
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.service-image-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Service Areas Section */
.service-areas {
    background-color: var(--light-gray);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.area-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 600;
}

.area-icon {
    color: var(--primary-color);
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: var(--light-gray);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.reasons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reason h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.image-content img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Reviews Section */
.reviews {
    background-color: var(--white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--secondary-color);
}

.rating {
    display: flex;
    gap: 2px;
}

.star {
    color: var(--warning-color);
}

.review-text {
    font-style: italic;
    color: var(--light-text);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact h2,
.contact p {
    color: var(--white);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    color: var(--accent-color);
    margin-top: 2px;
}

.contact-item h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--white);
}

.contact-item a:hover {
    color: var(--accent-color);
}

.emergency-note {
    font-size: 0.9rem;
    color: var(--warning-color);
    font-weight: 600;
}

/* Contact Form */
.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 127, 184, 0.1);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #ffffff;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.footer-section a {
    color: var(--white);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo img,
.footer-logo svg {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin-right: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: #ffffff !important;
}

.footer-bottom p {
    color: #ffffff !important;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .main-navigation {
        order: 3;
        width: 100%;
        position: relative;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: -15px;
        right: -15px;
        width: calc(100vw - 30px);
        gap: 0;
        background-color: var(--white);
        box-shadow: var(--box-shadow);
        border-radius: 0;
        padding: 0;
        margin: 0;
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        padding: 4px;
        border-bottom: none;
        text-align: left;
    }
    
    .nav-menu a:hover {
        background-color: transparent;
        color: var(--secondary-color);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .contact-header {
        text-align: center;
        order: 2;
    }
    
    .hero-content .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .areas-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .logo-section {
        flex-direction: row;
        text-align: left;
        gap: 0.5rem;
        flex: 1;
    }
    
    .logo img,
    .logo svg {
        width: 80px;
        height: 80px;
    }
    
    .tagline {
        display: none;
    }
    
    .main-navigation {
        order: unset;
        width: auto;
        position: static;
    }
    
    .nav-menu {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        width: 100vw;
        background-color: var(--white);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .mobile-menu-toggle {
        margin-left: 1rem;
        margin-right: 0.5rem;
        position: relative;
        z-index: 1000;
    }
    
    .contact-header {
        display: none;
    }
    
    .call-now-btn {
        display: none;
    }
    
    .company-info h1 {
        font-size: 1.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.75rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .service-image-grid {
        grid-template-columns: 1fr;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .contact-form {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero {
        background: none;
        color: black;
    }
    
    .hero-text h2 {
        color: black;
    }
}
