/* ===================================
   CSS Reset & Base Styles
   =================================== */

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

:root {
    /* Colors */
    --primary-color: #2d8659;
    --primary-dark: #236b47;
    --primary-light: #3fa570;
    --secondary-color: #1a5a3d;
    --accent-color: #ff6b35;
    --text-dark: #1a1a1a;
    --text-light: #4a4a4a;
    --text-muted: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --border-color: #e5e7eb;
    --emergency-color: #dc2626;
    
    /* Spacing */
    --container-max: 1200px;
    --section-padding: 4rem 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Prevent any section from causing horizontal overflow */
.hero,
.emergency-banner,
.services,
.about,
.service-areas,
.reviews,
.faq,
.contact,
.footer {
    overflow-x: hidden;
    max-width: 100%;
}

/* ===================================
   Navigation
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
    overflow: hidden;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.nav-brand .logo {
    height: 75px;
    width: auto;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease;
    overflow-y: auto;
    transform: translateX(100%);
}

.nav-menu.active {
    transform: translateX(0);
}

.nav-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.nav-link:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.nav-cta {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    border: none;
}

.nav-cta:hover {
    background: var(--primary-dark);
    padding-left: 1rem !important;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: 
        linear-gradient(135deg, rgba(26, 90, 61, 0.85) 0%, rgba(45, 134, 89, 0.85) 100%),
        url('assets/hero-image.png') center center / cover no-repeat;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%),
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--bg-white);
    padding: 3rem 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-icon {
    font-size: 1.25rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 4px 40px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0.98;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 1.5rem;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-large {
    padding: 1.125rem 2rem;
    font-size: 1.125rem;
}

.btn-submit {
    background: var(--primary-color);
    color: var(--bg-white);
    width: 100%;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-emergency {
    background: var(--bg-white);
    color: var(--emergency-color);
    padding: 1rem 2rem;
    font-size: 1.125rem;
    flex-shrink: 0;
    white-space: nowrap;
    font-weight: 700;
    align-self: center;
}

.btn-emergency:hover {
    background: var(--bg-light);
    color: var(--emergency-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-icon {
    font-size: 1.25rem;
}

/* ===================================
   Emergency Banner
   =================================== */

.emergency-banner {
    background: linear-gradient(135deg, var(--emergency-color) 0%, #b91c1c 100%);
    color: var(--bg-white);
    padding: 2rem 1.5rem;
    min-height: 140px;
    display: flex;
    align-items: center;
}

.emergency-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    width: 100%;
}

.emergency-icon {
    font-size: 3rem;
    animation: pulse 2s infinite;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.emergency-text {
    flex: 1;
}

.emergency-text h3 {
    font-size: 1.5rem;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.emergency-text p {
    opacity: 0.95;
    line-height: 1.5;
    margin: 0;
}

/* ===================================
   Section Styles
   =================================== */

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

.section-label {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   Services Section
   =================================== */

.services {
    padding: var(--section-padding);
    background: var(--bg-white);
}

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

.service-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-card-highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    border: none;
}

.service-card-highlight .service-list li {
    color: var(--bg-white);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: inherit;
}

.service-card > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-card-highlight > p {
    color: rgba(255, 255, 255, 0.9);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-list li {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9375rem;
}

.service-list li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.125rem;
}

.service-card-highlight .service-list li::before {
    color: var(--bg-white);
}

/* ===================================
   About Section
   =================================== */

.about {
    padding: var(--section-padding);
    background: var(--bg-light);
}

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

.about-text {
    font-size: 1.0625rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

.about-benefits h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-white);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.benefit-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.benefit-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.benefit-item h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.benefit-item p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* ===================================
   Service Areas Section
   =================================== */

.service-areas {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.areas-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.area-item {
    background: var(--bg-light);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}

.area-item:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: scale(1.05);
}

/* Hide area items after 5th on mobile */
.areas-list:not(.expanded) .area-item:nth-child(n+6) {
    display: none;
}

.areas-toggle {
    display: block;
    margin: 1.5rem auto 0;
}

/* Show all items and hide toggle on tablet+ */
@media (min-width: 640px) {
    .areas-list .area-item:nth-child(n+6) {
        display: block;
    }

    .areas-toggle {
        display: none;
    }
}

/* ===================================
   Reviews Section
   =================================== */

.reviews {
    padding: var(--section-padding);
    background: var(--bg-light);
}

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

.review-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.review-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.review-stars {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-author {
    font-weight: 600;
    color: var(--primary-color);
}

.reviews-cta {
    text-align: center;
}

/* ===================================
   FAQ Section
   =================================== */

.faq {
    padding: var(--section-padding);
    background: var(--bg-white);
}

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

.faq-item {
    background: var(--bg-light);
    padding: 1.75rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================================
   Contact Section
   =================================== */

.contact {
    padding: var(--section-padding);
    background: var(--bg-light);
}

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

.contact-text {
    font-size: 1.0625rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 100%;
}

.contact-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.contact-item > div:not(.contact-icon) {
    min-width: 0;
}

.contact-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-item h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.0625rem;
    word-break: break-all;
    overflow-wrap: break-word;
}

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

.contact-item p {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.0625rem;
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 3rem 1.5rem 2rem;
}

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

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-contact {
    margin-top: 1rem;
}

.footer-phone {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-top: 0.5rem;
}

.footer-col h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li,
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    word-break: break-all;
    overflow-wrap: break-word;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-credit {
    font-size: 0.8125rem;
}

/* ===================================
   Responsive Design - Mobile Fixes
   =================================== */

@media (max-width: 480px) {
    .contact-item a {
        font-size: 0.875rem;
    }
    
    .footer-links li,
    .footer-links a {
        font-size: 0.875rem;
    }
}

/* ===================================
   Responsive Design - Tablet
   =================================== */

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .feature-item {
        flex: 1;
        min-width: 200px;
    }
    
    .emergency-content {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        text-align: left;
        gap: 2.5rem;
    }
    
    .emergency-banner {
        padding: 3rem 2rem;
        min-height: 160px;
    }
    
    .emergency-icon {
        font-size: 3.5rem;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .emergency-text {
        flex: 0 1 auto;
        max-width: 600px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .emergency-text h3 {
        line-height: 1.2;
        margin: 0 0 0.25rem 0;
    }
    
    .emergency-text p {
        line-height: 1.5;
        margin: 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .areas-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   Responsive Design - Desktop
   =================================== */

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        box-shadow: none;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        background: transparent;
        transform: none;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
        border: none;
    }
    
    .nav-link:hover {
        padding-left: 1rem;
    }
    
    .nav-cta {
        margin-top: 0;
        margin-left: 0.5rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    
    .areas-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    :root {
        --section-padding: 6rem 1.5rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

/* ===================================
   Utility Classes
   =================================== */

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
