/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    --primary-color: #0f172a;
    --accent-color: #ea580c;
    --text-color: #334155;
    --bg-light: #f1f5f9; /* Darkened slightly from f8fafc for better zebra-striping */
    --white: #ffffff;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
}

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

/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */
h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

/* ==========================================================================
   3. COMPONENTS
   ========================================================================== */
/* Header & Nav */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

/* Buttons */
.btn-primary, .btn-large {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-large { padding: 16px 32px; font-size: 1.1rem; }
.btn-primary:hover, .btn-large:hover { background-color: #c2410c; }

/* Service Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--white);
    padding: 30px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px 6px 0 0;
    margin-bottom: 20px;
    display: block;
}

.card:hover {
    border-color: #f97316;
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* --- Service Area Callout Box --- */
.service-area-box {
    max-width: 800px;
    padding: 60px 20px;
    text-align: center;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    margin: 0 auto;
    background-color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.service-area-box h2 {
    margin-bottom: 15px;
}

.service-area-box p {
    font-size: 1.2rem;
}

/* --- Fix for Lead Form Alignment --- */
.quote-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.quote-form input, 
.quote-form select, 
.quote-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #334155;
    border-radius: 6px;
    font-size: 1rem;
    background-color: var(--white);
    color: var(--text-color);
}

/* ==========================================================================
   4. SECTIONS (Zebra Striping Applied Here)
   ========================================================================== */

.hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}
.hero p { font-size: 1.25rem; max-width: 800px; margin: 0 auto 40px; color: #cbd5e1; }

.services, .faq-section, .trust-content, .service-areas { padding: 80px 0; }

/* Alternating Background Colors */
.services { background-color: var(--white); }
.service-areas { background-color: var(--bg-light); }
.trust-content { background-color: var(--white); }
.trust-content p { max-width: 800px; margin: 0 auto; text-align: center; font-size: 1.1rem; }
.faq-section { background-color: var(--bg-light); }
.lead-form-section { background-color: var(--primary-color); color: var(--white); padding: 80px 0; }

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.lead-form-section h2 { color: var(--white); margin-bottom: 10px; }

.form-wrapper { max-width: 600px; margin: 0 auto; text-align: center; }

.form-wrapper p {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 25px;
    line-height: 1.4;
}

.form-wrapper h2 {
    margin-bottom: 10px;
}

.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
    text-align: center;
}

.footer-content {
    margin-bottom: 20px;
}

.footer-bottom {
    margin-top: 40px;
    font-size: 0.9rem;
    color: #94a3b8;
    border-top: 1px solid #334155;
    padding-top: 20px;
}

/* ==========================================================================
   5. UTILITIES & RESPONSIVENESS
   ========================================================================== */
img { max-width: 100%; height: auto; }

@media (max-width: 768px) {
    /* Navigation */
    .flex-nav { flex-direction: column; text-align: center; gap: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 15px; padding: 0; }
    
    /* Horizontal Swipe Gallery */
    .card-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 20px;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
    }
    .card { min-width: 280px; scroll-snap-align: start; }
}

@media (max-width: 600px) {
    .input-group { flex-direction: column; }
}