/* ===================================
   Ecohaul Systems - Main Stylesheet
   A warm, trustworthy family business aesthetic
   =================================== */

:root {
    /* Primary Colors - Earthy Greens */
    --forest: #2d5a3d;
    --forest-dark: #1e3d29;
    --sage: #6b8f71;
    --mint: #a8c5a8;
    
    /* Warm Accents */
    --terracotta: #c9673f;
    --terracotta-light: #e8926a;
    --sand: #e8dcc4;
    --cream: #faf8f3;
    --warm-white: #fffefa;
    
    /* Neutrals */
    --charcoal: #2c2c2c;
    --slate: #4a4a4a;
    --stone: #7a7a7a;
    --pebble: #b5b5b5;
    --cloud: #e8e8e8;
    
    /* Typography */
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(45, 90, 61, 0.08);
    --shadow-md: 0 4px 20px rgba(45, 90, 61, 0.12);
    --shadow-lg: 0 8px 40px rgba(45, 90, 61, 0.16);
}

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

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--warm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--forest-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h1 em, h2 em, h3 em {
    font-style: italic;
    color: var(--terracotta);
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--slate);
    line-height: 1.7;
}

/* ===================================
   Layout
   =================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    padding: var(--space-2xl) 0;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--terracotta);
    margin-bottom: var(--space-sm);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.section-header p {
    color: var(--stone);
    font-size: 1.125rem;
    margin-top: var(--space-sm);
}

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

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

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

.btn-primary:hover {
    background: var(--forest-dark);
    border-color: var(--forest-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--forest);
    border-color: var(--forest);
}

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

.btn-light {
    background: white;
    color: var(--forest);
    border-color: white;
}

.btn-light:hover {
    background: var(--cream);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.btn-full {
    width: 100%;
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 254, 250, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(45, 90, 61, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--forest-dark);
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--forest);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate);
    position: relative;
}

.nav-links a:not(.btn-nav):hover {
    color: var(--forest);
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terracotta);
    transition: width var(--transition-base);
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--forest);
    color: white !important;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
}

.btn-nav:hover {
    background: var(--forest-dark);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--forest);
    transition: all var(--transition-fast);
}

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

.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(168, 197, 168, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(232, 220, 196, 0.5) 0%, transparent 50%),
        linear-gradient(135deg, var(--cream) 0%, var(--warm-white) 100%);
    z-index: -1;
}

.hero-content {
    padding: var(--space-xl) var(--space-md) var(--space-xl) var(--space-xl);
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--sand);
    color: var(--forest-dark);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.6s ease forwards;
}

.hero h1 {
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero p {
    font-size: 1.25rem;
    color: var(--slate);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.hero-image-frame {
    position: relative;
    background: var(--sand);
    border-radius: 20px;
    padding: var(--space-lg);
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.truck-illustration {
    width: 100%;
    max-width: 400px;
}

.truck-illustration svg {
    width: 100%;
    height: auto;
}

/* ===================================
   Stats Bar
   =================================== */

.stats-bar {
    background: var(--forest);
    padding: var(--space-lg) 0;
}

.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.stat {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.about {
    background: var(--cream);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-text h2 {
    margin-bottom: var(--space-md);
}

.about-text p {
    color: var(--slate);
}

.about-signature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--forest);
}

.signature-line {
    width: 40px;
    height: 2px;
    background: var(--terracotta);
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.family-illustration svg {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--terracotta);
    border-radius: 50%;
    opacity: 0.15;
    z-index: -1;
}

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

.services {
    background: var(--warm-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.service-card {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: var(--space-lg);
    border: 1px solid var(--cloud);
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card.featured {
    background: var(--forest);
    color: white;
    border-color: var(--forest);
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured li {
    color: white;
}

.service-card.featured .service-icon {
    background: rgba(255,255,255,0.15);
    color: white;
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--terracotta);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sand);
    border-radius: 12px;
    color: var(--forest);
    margin-bottom: var(--space-md);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    margin-bottom: var(--space-xs);
    color: var(--forest-dark);
}

.service-card p {
    color: var(--stone);
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
}

.service-features {
    font-size: 0.875rem;
}

.service-features li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.375rem;
    color: var(--slate);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sage);
    font-weight: 700;
}

.service-card.featured .service-features li::before {
    color: var(--mint);
}

/* ===================================
   Why Us Section
   =================================== */

.why-us {
    background: linear-gradient(135deg, var(--cream) 0%, var(--sand) 100%);
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 6rem;
    line-height: 0.5;
    color: var(--terracotta);
    opacity: 0.2;
    position: absolute;
    top: 30px;
    left: 30px;
}

.testimonial-card p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--charcoal);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--forest);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.testimonial-author strong {
    display: block;
    color: var(--charcoal);
}

.testimonial-author span {
    font-size: 0.875rem;
    color: var(--stone);
}

.why-us-text h2 {
    margin-bottom: var(--space-lg);
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.benefit {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.benefit-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--forest);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.benefit-icon svg {
    width: 22px;
    height: 22px;
}

.benefit h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.0625rem;
    margin-bottom: 0.25rem;
    color: var(--forest-dark);
}

.benefit p {
    color: var(--slate);
    font-size: 0.9375rem;
    margin: 0;
}

/* ===================================
   CTA Section
   =================================== */

.cta-section {
    background: 
        linear-gradient(135deg, var(--forest) 0%, var(--forest-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: white;
    margin-bottom: var(--space-sm);
}

.cta-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

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

.contact {
    background: var(--warm-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.contact-info h2 {
    margin-bottom: var(--space-sm);
}

.contact-info > p {
    color: var(--slate);
    margin-bottom: var(--space-lg);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-method {
    display: flex;
    gap: var(--space-md);
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--sand);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-method strong {
    display: block;
    margin-bottom: 0.125rem;
    color: var(--charcoal);
}

.contact-method span,
.contact-method a {
    display: block;
    font-size: 0.9375rem;
    color: var(--stone);
}

.contact-method a:hover {
    color: var(--terracotta);
}

.contact-form-wrapper {
    background: white;
    border-radius: 20px;
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    margin-bottom: var(--space-md);
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--cloud);
    border-radius: 8px;
    background: var(--cream);
    color: var(--charcoal);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--forest);
    background: white;
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn {
    margin-top: var(--space-sm);
}

.form-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--stone);
    margin-top: var(--space-sm);
    margin-bottom: 0;
}

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

.footer {
    background: var(--charcoal);
    color: white;
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand .logo {
    color: white;
    margin-bottom: var(--space-sm);
}

.footer-brand .logo-img {
    height: 56px;
}

.footer-brand .logo-icon {
    color: var(--mint);
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9375rem;
    max-width: 280px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.footer-column h4 {
    color: white;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a,
.footer-column li {
    color: rgba(255,255,255,0.6);
    font-size: 0.9375rem;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
    color: white;
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-bottom: var(--space-xl);
    }
    
    .hero-content {
        padding: var(--space-xl) var(--space-md);
        max-width: 100%;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image {
        padding: 0 var(--space-md) var(--space-lg);
    }
    
    .hero-image-frame {
        max-width: 400px;
    }
    
    .about-content,
    .why-us-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .about-image {
        order: -1;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--warm-white);
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-sm);
        border-bottom: 1px solid var(--cloud);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .stats-bar .container {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-xs);
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-xl: 3rem;
        --space-2xl: 4rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}
