/*
Theme Name: Ernie's Excavation
Theme URI: https://erniesexcavationnh.com
Author: Coropos Web Services
Author URI: https://coroposws.com
Description: Custom WordPress theme for Ernie's Excavation of NH - A modern, responsive theme for excavation and site work services
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ernies-excavation
Tags: business, construction, excavation, responsive, custom-logo, custom-menu

Color Scheme: Green (#2d5016, #3d6b1f) & Tan/Gold (#c9b77c, #d4c794)
*/

/* ==========================================
   Ernie's Excavation - Modern Website Styles
   ========================================== */

/* ==========================================
   CSS Variables & Reset
   ========================================== */
:root {
    /* Primary Colors from Logo */
    --primary-green: #2d5016;
    --primary-green-light: #3d6b1f;
    --primary-green-dark: #1f3910;
    --accent-tan: #c9b77c;
    --accent-tan-light: #d4c794;
    --accent-tan-dark: #b5a269;

    /* Neutral Colors */
    --white: #ffffff;
    --off-white: #f8f8f8;
    --light-gray: #e8e8e8;
    --gray: #666666;
    --dark-gray: #333333;
    --black: #1a1a1a;

    /* Functional Colors */
    --emergency-red: #c92a2a;
    --success-green: #37b24d;
    --star-gold: #ffc107;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Spacing */
    --section-padding: 80px 0;
    --container-max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

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

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

ul {
    list-style: none;
}

/* ==========================================
   Container & Layout
   ========================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   Header & Navigation
   ========================================== */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

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

.logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu li a {
    color: var(--dark-gray);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-green);
    background-color: var(--accent-tan-light);
}

.nav-menu .social-links {
    display: flex;
    gap: 15px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 2px solid var(--light-gray);
}

.nav-menu .social-links a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    font-size: 16px;
    transition: var(--transition-fast);
}

.nav-menu .social-links a:hover {
    background-color: var(--accent-tan);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-green);
    transition: var(--transition-fast);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45,80,22,0.85) 0%, rgba(61,107,31,0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content .container {
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.emergency-banner {
    background-color: var(--emergency-red);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
}

.emergency-banner i {
    font-size: 1.3rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 20;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.carousel-btn {
    background-color: rgba(255,255,255,0.3);
    border: 2px solid var(--white);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.carousel-btn:hover {
    background-color: var(--accent-tan);
    border-color: var(--accent-tan);
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition-fast);
}

.indicator.active,
.indicator:hover {
    background-color: var(--accent-tan);
    transform: scale(1.2);
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-tan);
    color: var(--primary-green-dark);
    border-color: var(--accent-tan);
}

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

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

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

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-emergency {
    background-color: var(--emergency-red);
    color: var(--white);
    border-color: var(--emergency-red);
}

.btn-emergency:hover {
    background-color: #a81f1f;
    border-color: #a81f1f;
}

/* ==========================================
   Section Styles
   ========================================== */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================
   About Section
   ========================================== */
.about-section {
    background-color: var(--off-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--dark-gray);
}

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

/* ==========================================
   Services Preview
   ========================================== */
.services-preview {
    background-color: var(--white);
}

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

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--primary-green);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: var(--gray);
    line-height: 1.7;
}

.services-cta {
    text-align: center;
    margin-top: 30px;
}

/* ==========================================
   Values Section
   ========================================== */
.values-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

.values-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.values-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

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

.google-reviews-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 10px;
    padding: 10px 20px;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.google-reviews-link:hover {
    background-color: var(--accent-tan-light);
}

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

.review-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

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

.review-stars {
    color: var(--star-gold);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-style: italic;
}

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

/* ==========================================
   Gallery Section
   ========================================== */
.gallery-section {
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(45,80,22,0.9) 0%, transparent 100%);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h3 {
    color: var(--white);
    font-size: 1.3rem;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    background: linear-gradient(135deg, var(--accent-tan) 0%, var(--accent-tan-light) 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--primary-green-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-bottom: 30px;
}

/* ==========================================
   Page Header
   ========================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================
   Services Page
   ========================================== */
.services-intro {
    background-color: var(--off-white);
    padding: 60px 0;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

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

.services-detail h2 {
    font-size: 2.2rem;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
}

.services-list {
    display: grid;
    gap: 40px;
}

.service-detail-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    background-color: var(--off-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.service-detail-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.service-detail-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    flex-shrink: 0;
}

.service-detail-content h3 {
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-detail-content > p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.service-features {
    display: grid;
    gap: 10px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--dark-gray);
}

.service-features i {
    color: var(--success-green);
    font-size: 1.1rem;
}

/* ==========================================
   Contact Page
   ========================================== */
.contact-section {
    background-color: var(--off-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info-box,
.contact-form-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.contact-info-box h2,
.contact-form-box h2 {
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-info-box > p {
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-details {
    display: grid;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

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

.contact-text h3 {
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-text p {
    color: var(--dark-gray);
    line-height: 1.6;
}

.contact-text a {
    color: var(--primary-green);
    font-weight: 500;
}

.contact-text a:hover {
    color: var(--primary-green-light);
    text-decoration: underline;
}

.emergency-note {
    color: var(--emergency-red);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 5px;
}

.social-connect {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--light-gray);
}

.social-connect h3 {
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-bottom: 15px;
    font-weight: 600;
}

.social-links-large {
    display: flex;
    gap: 15px;
}

.social-links-large a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.social-links-large a:hover {
    background-color: var(--accent-tan);
    color: var(--primary-green-dark);
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 8px;
    font-size: 1rem;
}

.required {
    color: var(--emergency-red);
}

.form-group input,
.form-group textarea {
    padding: 14px;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45,80,22,0.1);
}

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

.form-note {
    color: var(--gray);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 10px;
}

/* Emergency Banner Section */
.emergency-banner-section {
    background-color: var(--emergency-red);
    padding: 40px 0;
}

.emergency-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.emergency-icon {
    font-size: 3rem;
    color: var(--white);
}

.emergency-text {
    flex: 1;
    color: var(--white);
}

.emergency-text h2 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.emergency-text p {
    font-size: 1.1rem;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background-color: var(--primary-green-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-tan);
    font-weight: 600;
}

.footer-col p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-col ul {
    display: grid;
    gap: 10px;
}

.footer-col ul li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--accent-tan);
    padding-left: 5px;
}

.footer .social-links {
    display: flex;
    gap: 12px;
}

.footer .social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.footer .social-links a:hover {
    background-color: var(--accent-tan);
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-info i {
    color: var(--accent-tan);
    margin-top: 3px;
}

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

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

/* Tablet */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .service-detail-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-detail-icon {
        margin: 0 auto;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 50px 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-normal);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-menu li a {
        display: block;
        padding: 15px 0;
    }

    .nav-menu .social-links {
        margin: 20px 0 0 0;
        padding: 20px 0 0 0;
        border-left: none;
        border-top: 2px solid var(--light-gray);
        width: 100%;
    }

    .hero {
        min-height: 100vh;
        height: 100vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .emergency-banner {
        font-size: 0.95rem;
        padding: 12px 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .services-grid,
    .reviews-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .carousel-controls {
        padding: 0 10px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .emergency-content {
        text-align: center;
        justify-content: center;
    }

    .emergency-text h2 {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 45px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .contact-info-box,
    .contact-form-box {
        padding: 25px;
    }

    .service-detail-card {
        padding: 25px;
    }
}
/* ============================================================
   Ernie's Excavation of NH — Stylesheet
   Colors pulled from logo: deep forest green + warm gold/tan
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* Brand — matched to logo */
    --green:        #2d5016;
    --green-dark:   #1d3410;
    --green-deep:   #0f1c08;
    --gold:         #c4a84e;
    --gold-light:   #d9bf76;
    --gold-dark:    #a08a38;
    --gold-pale:    #f2ebd0;

    /* Neutrals */
    --white:        #ffffff;
    --off-white:    #f5f2eb;
    --light:        #eae7de;
    --border:       #d4cec3;
    --mid:          #8a8780;
    --body:         #363330;
    --dark:         #1e1c17;
    --charcoal:     #131210;

    /* Emergency */
    --red:          #bf3e2a;
    --red-dark:     #9e3120;

    /* Typography */
    --font:         'Inter', system-ui, -apple-system, sans-serif;
    --line-height:  1.65;

    /* Shadows */
    --shadow-sm:    0 1px 4px rgba(0,0,0,0.08);
    --shadow:       0 3px 12px rgba(0,0,0,0.12);
    --shadow-md:    0 6px 20px rgba(0,0,0,0.16);
    --shadow-lg:    0 12px 40px rgba(0,0,0,0.20);

    /* Layout */
    --wrap:         1160px;
    --gap:          30px;
    --section-py:   88px;
    --radius:       3px;

    /* Transitions */
    --t:            0.2s ease;
    --t-slow:       0.4s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: var(--line-height);
    color: var(--body);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul { list-style: none; }

h1, h2, h3, h4 {
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--dark);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
    max-width: var(--wrap);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

section { padding: var(--section-py) 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--t);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn-lg {
    padding: 17px 36px;
    font-size: 1rem;
}

.btn-green {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}
.btn-green:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-gold {
    background: var(--gold);
    color: var(--green-deep);
    border-color: var(--gold);
}
.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-red {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-red:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--white);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold-light);
    border-color: var(--gold);
}
.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--green-deep);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

/* Emergency alert bar */
.alert-bar {
    background: var(--red);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 9px 0;
    text-align: center;
}

.alert-bar .wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.alert-bar__link {
    display: inline-block;
    background: var(--white);
    color: var(--red);
    font-weight: 800;
    padding: 3px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    transition: var(--t);
}
.alert-bar__link:hover { background: #ffe4e0; }

/* Navigation */
.nav {
    border-top: 1px solid var(--light);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav__logo img {
    height: 68px;
    width: auto;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__links a {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--body);
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: var(--t);
}
.nav__links a:hover,
.nav__links a.active {
    color: var(--green);
    background: var(--off-white);
}

.nav__links a.nav__cta {
    background: var(--green);
    color: var(--white);
    padding: 9px 18px;
}
.nav__links a.nav__cta:hover {
    background: var(--green-dark);
}

.nav__social {
    display: flex;
    gap: 8px;
    margin-left: 12px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
}

.nav__social a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.8rem;
    transition: var(--t);
}
.nav__social a:hover {
    background: var(--gold);
    color: var(--green-deep);
    transform: translateY(-2px);
}

/* Hamburger */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--green);
    transition: var(--t);
    transform-origin: center;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav__mobile {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--light);
    padding: 16px 0;
}
.nav__mobile.open { display: block; }
.nav__mobile a {
    display: block;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--body);
    border-bottom: 1px solid var(--light);
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--green); background: var(--off-white); }
.nav__mobile .nav__mobile-social {
    display: flex;
    gap: 10px;
    padding: 16px 24px 4px;
}
.nav__mobile .nav__mobile-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green);
    color: var(--white);
    border-radius: 50%;
    padding: 0;
    border: none;
    font-size: 0.9rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    /* Use JS-measured header height via --hh; dvh excludes mobile browser chrome */
    height: calc(100vh - var(--hh, 110px));           /* vh fallback */
    height: calc(100dvh - var(--hh, 110px));          /* modern: adjusts as address bar hides */
    min-height: 480px;                                 /* safety floor for tiny screens */
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Carousel */
.hero__slides {
    position: absolute;
    inset: 0;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}
.carousel-slide.active { opacity: 1; }
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Directional overlay — dark left, fades right so photo shows */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(10, 20, 5, 0.96) 0%,
        rgba(15, 28, 8, 0.90) 30%,
        rgba(15, 28, 8, 0.60) 58%,
        rgba(10, 20, 5, 0.10) 100%
    );
    z-index: 1;
}

/* Content */
.hero__content {
    position: relative;
    z-index: 2;
    padding: clamp(32px, 6vh, 80px) 0;
    max-width: 620px;
}

.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}
.hero__tag::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--gold);
    flex-shrink: 0;
}

.hero__title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 22px;
}

.hero__title span {
    color: var(--gold);
    display: block;
}

/* Phone callout box */
.hero__phone {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: rgba(191, 62, 42, 0.15);
    border: 1px solid rgba(191, 62, 42, 0.40);
    border-left: 3px solid var(--red);
    padding: 14px 22px;
    border-radius: var(--radius);
    margin-bottom: 28px;
    max-width: 380px;
}

.hero__phone-icon {
    color: var(--red);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.hero__phone-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55);
    margin-bottom: 4px;
}

.hero__phone-num {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.01em;
    transition: var(--t);
}
.hero__phone-num:hover { color: var(--gold); }

.hero__sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero__btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

/* Trust numbers */
.hero__trust {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero__trust-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 12px 18px;
    border-radius: var(--radius);
    text-align: center;
    min-width: 88px;
}

.hero__trust-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 4px;
}

.hero__trust-label {
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
}

/* Indicators */
.hero__indicators {
    position: absolute;
    bottom: 28px;
    left: 24px;
    z-index: 3;
    display: flex;
    gap: 7px;
}

.indicator {
    width: 28px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--t);
    padding: 0;
}
.indicator.active,
.indicator:hover {
    background: var(--gold);
    width: 44px;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    background: var(--charcoal);
    padding: 0;
}

.stats-bar__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stats-bar__item {
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.06);
    transition: var(--t);
}
.stats-bar__item:last-child { border-right: none; }
.stats-bar__item:hover { background: rgba(255,255,255,0.03); }

.stats-bar__num {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -0.02em;
}

.stats-bar__label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
    background: var(--white);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.about__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 16px;
}
.about__eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    flex-shrink: 0;
}

.about__title {
    font-size: 2.4rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.about__body p {
    font-size: 1rem;
    color: var(--body);
    line-height: 1.8;
    margin-bottom: 16px;
}
.about__body p:last-child { margin-bottom: 0; }

.about__highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 30px;
}

.about__highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--off-white);
    border-radius: var(--radius);
    border-left: 3px solid var(--gold);
}

.about__highlight-icon {
    width: 36px;
    height: 36px;
    background: var(--green);
    color: var(--gold);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.about__highlight-text strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
}
.about__highlight-text span {
    font-size: 0.82rem;
    color: var(--mid);
}

.about__img {
    position: relative;
}

.about__img img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.about__img-badge {
    position: absolute;
    bottom: -16px;
    left: -16px;
    background: var(--green);
    color: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.about__img-badge-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.about__img-badge-text {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-home {
    background: var(--green-deep);
}

.services-home .section-hd {
    text-align: center;
    margin-bottom: 52px;
}

.services-home .section-hd h2 { color: var(--white); }
.services-home .section-hd p { color: rgba(255,255,255,0.55); }

.services-home__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 44px;
}

.svc-card {
    background: rgba(255,255,255,0.02);
    padding: 36px 30px;
    transition: var(--t);
    border-right: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.svc-card:hover { background: rgba(255,255,255,0.05); }

.svc-card__icon {
    width: 48px;
    height: 48px;
    background: rgba(196, 168, 78, 0.12);
    border: 1px solid rgba(196, 168, 78, 0.25);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 18px;
}

.svc-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: 0;
}

.svc-card p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
}

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

/* ============================================================
   WHY US — 3 columns
   ============================================================ */
.why-us {
    background: var(--off-white);
    padding: 80px 0;
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 48px;
}

.why-card {
    background: var(--white);
    padding: 36px 30px;
    position: relative;
}

.why-card__num {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gold-pale);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.04em;
}

.why-card__icon {
    width: 44px;
    height: 44px;
    background: var(--green);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--mid);
    line-height: 1.7;
}

/* ============================================================
   SECTION HEADING PATTERN
   ============================================================ */
.section-hd {
    max-width: 620px;
}

.section-hd--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-hd__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 12px;
}
.section-hd__eyebrow::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gold);
    flex-shrink: 0;
}
.section-hd--center .section-hd__eyebrow { justify-content: center; }
.section-hd--center .section-hd__eyebrow::before { display: none; }

.section-hd h2 {
    font-size: 2.3rem;
    color: var(--dark);
    margin-bottom: 14px;
}

.section-hd p {
    font-size: 1rem;
    color: var(--mid);
    line-height: 1.75;
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews {
    background: var(--white);
}

.reviews__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.reviews__rating {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fffbeb;
    border: 1px solid #f5cc45;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--body);
}

.reviews__stars { color: #f5cc45; font-size: 1rem; }

.reviews__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--green);
    border: 2px solid var(--green);
    padding: 10px 20px;
    border-radius: var(--radius);
    transition: var(--t);
}
.reviews__link:hover {
    background: var(--green);
    color: var(--white);
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-bottom: 44px;
}

.review-card {
    background: var(--off-white);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--t);
}
.review-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.review-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--white);
    flex-shrink: 0;
}
.review-avatar--green { background: var(--green); }
.review-avatar--gold  { background: var(--gold-dark); }

.review-card__name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 3px;
}

.review-card__stars { color: #f5cc45; font-size: 0.85rem; }

.review-card__text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--body);
    font-style: italic;
    margin-bottom: 14px;
}

.review-card__source {
    font-size: 0.78rem;
    color: var(--mid);
    display: flex;
    align-items: center;
    gap: 6px;
}
.review-card__source i { color: #4285f4; }

/* Trust stat row */
.reviews__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.reviews__stat {
    background: var(--off-white);
    padding: 24px 16px;
    text-align: center;
}

.reviews__stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.reviews__stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mid);
}

/* ============================================================
   SERVICE AREAS
   ============================================================ */
.areas {
    background: var(--dark);
    padding: 72px 0;
}

.areas .section-hd h2 { color: var(--white); }
.areas .section-hd p  { color: rgba(255,255,255,0.45); }

.areas__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 40px 0 24px;
}

.areas__primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: var(--radius);
}
.areas__primary i { color: var(--gold); }

.areas__tag {
    display: inline-block;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: var(--radius);
    transition: var(--t);
}
.areas__tag:hover {
    background: rgba(196,168,78,0.12);
    border-color: rgba(196,168,78,0.30);
    color: var(--gold-light);
}

.areas__note {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.35);
    font-style: italic;
}

/* ============================================================
   EMERGENCY CTA
   ============================================================ */
.emergency-cta {
    background: var(--red);
    padding: 44px 0;
    text-align: center;
}

.emergency-cta .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.emergency-cta__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.60);
    margin-bottom: 6px;
}

.emergency-cta h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 6px;
}

.emergency-cta__sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 20px;
}

.emergency-cta__phone {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.20);
    padding: 13px 28px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    text-decoration: none;
    transition: var(--t);
}
.emergency-cta__phone:hover {
    background: rgba(0,0,0,0.30);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-2px);
}

.emergency-cta__phone i {
    color: var(--white);
    font-size: 1.4rem;
}

.emergency-cta__phone-inner {
    text-align: left;
}

.emergency-cta__phone-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.60);
    margin-bottom: 2px;
}

.emergency-cta__phone-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.01em;
}

.emergency-cta__btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.65);
    padding: 64px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer__brand p {
    font-size: 0.9rem;
    line-height: 1.75;
    margin: 16px 0 24px;
    max-width: 300px;
}

.footer__social {
    display: flex;
    gap: 8px;
}

.footer__social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.65);
    border-radius: 50%;
    font-size: 0.82rem;
    transition: var(--t);
}
.footer__social a:hover {
    background: var(--green);
    color: var(--white);
    transform: translateY(-2px);
}

.footer__col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer__col ul { display: grid; gap: 10px; }

.footer__col ul li a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    transition: var(--t);
    display: flex;
    align-items: center;
    gap: 7px;
}
.footer__col ul li a:hover { color: var(--white); padding-left: 4px; }

.footer__contact { display: grid; gap: 14px; }

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
}

.footer__contact-item i {
    color: var(--gold);
    font-size: 0.9rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer__contact-item a { color: rgba(255,255,255,0.65); }
.footer__contact-item a:hover { color: var(--white); }

.footer__bottom {
    padding: 18px 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.28);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer__bottom .wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer__cws {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.20);
}

.footer__cws a {
    color: rgba(255,255,255,0.35);
    transition: var(--t);
}
.footer__cws a:hover { color: var(--gold-light); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

.anim { opacity: 0; }

.anim-up.in     { animation: fadeUp   0.65s ease-out forwards; }
.anim-in.in     { animation: fadeIn   0.65s ease-out forwards; }
.anim-left.in   { animation: slideLeft  0.65s ease-out forwards; }
.anim-right.in  { animation: slideRight 0.65s ease-out forwards; }

.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.24s; }
.d4 { animation-delay: 0.32s; }
.d5 { animation-delay: 0.40s; }

/* ============================================================
   INNER PAGE SHARED (services.html, contact.html)
   ============================================================ */
.page-banner {
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-dark) 100%);
    color: var(--white);
    padding: 72px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 12px;
}

.page-banner p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.70);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   PAGE BANNER (inner pages — services, contact)
   ============================================================ */
.page-banner {
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-dark) 55%, var(--green) 100%);
    padding: 72px 0 80px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(196,168,78,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.page-banner__eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.page-banner__title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    color: var(--white);
    margin-bottom: 16px;
}

.page-banner__sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.page-banner__badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 40px;
}

.page-banner__badge i {
    color: var(--gold);
    font-size: 0.9rem;
}

/* ============================================================
   SERVICES DETAIL PAGE
   ============================================================ */
.services-intro {
    background: var(--white);
    padding: 56px 0 48px;
    text-align: center;
}

.services-intro p {
    font-size: 1.1rem;
    color: var(--body);
    max-width: 760px;
    margin: 0 auto 16px;
    line-height: 1.7;
}

.svc-detail-section {
    background: var(--off-white);
}

.svc-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.svc-detail-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    transition: box-shadow var(--t), transform var(--t);
}

.svc-detail-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.svc-detail-card__head {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.svc-detail-card__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--green);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.svc-detail-card h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin: 0;
    padding-top: 6px;
}

.svc-detail-card__desc {
    color: var(--body);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.svc-detail-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.svc-detail-card__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--body);
}

.svc-detail-card__list li::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23c4a84e' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 32px;
    align-items: start;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 36px;
}

.contact-card h2 {
    font-size: 1.7rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.contact-card__sub {
    font-size: 0.95rem;
    color: var(--mid);
    margin-bottom: 36px;
    line-height: 1.6;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 36px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.contact-info-item__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.contact-info-item__body h4 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-info-item__body p,
.contact-info-item__body a {
    font-size: 0.95rem;
    color: var(--body);
    line-height: 1.6;
}

.contact-info-item__body a:hover {
    color: var(--green);
}

.contact-info-item__body .emerg {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--red);
    margin-top: 2px;
}

.contact-social {
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.contact-social h4 {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 14px;
}

.contact-social__links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-social__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--radius);
    transition: background var(--t);
}

.contact-social__link:hover {
    background: var(--green-dark);
    color: var(--white);
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-label span {
    color: var(--red);
    margin-left: 2px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--body);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--t), box-shadow var(--t);
    outline: none;
    -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196,168,78,0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.form-submit {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    margin-top: 4px;
}

.form-note {
    font-size: 0.8rem;
    color: var(--mid);
    text-align: center;
    margin-top: 12px;
}

/* ============================================================
   LEGACY BUTTON ALIASES
   ============================================================ */
.btn-primary { background: var(--gold); color: var(--green-deep); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--green); }
.btn-emergency { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-emergency:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-large { padding: 17px 36px; font-size: 1rem; }

/* ============================================================
   RESPONSIVE — 1024px (tablet landscape)
   ============================================================ */
@media (max-width: 1024px) {
    :root { --section-py: 70px; }
    .hero__title { font-size: 3.2rem; }
    .about__grid { gap: 48px; }
    .services-home__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
}

/* ============================================================
   RESPONSIVE — 768px (mobile)
   ============================================================ */
@media (max-width: 768px) {
    :root { --section-py: 52px; }

    /* Alert bar */
    .alert-bar { font-size: 0.78rem; padding: 7px 0; }

    /* Nav */
    .nav__links,
    .nav__social { display: none; }
    .nav__toggle { display: flex; }
    .nav__inner { height: 68px; }
    .nav__logo img { height: 54px; }

    /* ---- HERO ---- */
    /* Compress vertical rhythm so all content fits in viewport */
    .hero__content { padding: 22px 0 14px; }
    .hero__tag { margin-bottom: 10px; }
    .hero__title { font-size: 2.2rem; margin-bottom: 12px; }
    /* Compact phone box */
    .hero__phone {
        max-width: 100%;
        margin-bottom: 14px;
        padding: 10px 16px;
        gap: 12px;
    }
    .hero__phone-icon { font-size: 1.1rem; }
    .hero__phone-num { font-size: 1.35rem; }
    /* Hide subtitle — saves ~80px, still has all key info */
    .hero__sub { display: none; }
    /* Buttons stacked, less bottom margin */
    .hero__btns {
        flex-direction: column;
        margin-bottom: 18px;
        gap: 10px;
    }
    .hero__btns .btn { justify-content: center; }
    /* Trust items — 2×2 grid instead of 4-in-a-row */
    .hero__trust {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .hero__trust-item { min-width: unset; padding: 10px 12px; }
    .hero__trust-num { font-size: 1.2rem; }
    .hero__trust-label { white-space: normal; font-size: 0.62rem; }
    /* Darken overlay so text stays readable with full overlay on small screens */
    .hero__overlay { background: rgba(10, 20, 5, 0.90); }

    /* Stats bar */
    .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
    .stats-bar__item {
        padding: 20px 12px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .stats-bar__item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.06); }
    .stats-bar__item:nth-child(3),
    .stats-bar__item:nth-child(4) { border-bottom: none; }
    .stats-bar__num { font-size: 1.9rem; }

    /* About */
    .about__grid { grid-template-columns: 1fr; gap: 36px; }
    .about__img { order: -1; }
    .about__img img { height: 260px; }
    .about__img-badge { bottom: -12px; left: -8px; padding: 14px 18px; }
    .about__img-badge-num { font-size: 1.7rem; }
    .about__title { font-size: 2rem; }
    /* Keep 2-col highlights on tablet, drop to 1-col at 480px */

    /* Services */
    .services-home__grid { grid-template-columns: 1fr; }
    .services-home .section-hd { margin-bottom: 32px; }

    /* Why us */
    .why-us__grid { grid-template-columns: 1fr; }

    /* Reviews */
    .reviews__grid { grid-template-columns: 1fr; }
    .reviews__stats { grid-template-columns: repeat(2, 1fr); }
    .reviews__header { flex-direction: column; align-items: flex-start; gap: 12px; }

    /* Emergency CTA */
    .emergency-cta { padding: 36px 0; }
    .emergency-cta h2 { font-size: 1.6rem; }
    .emergency-cta__sub { margin-bottom: 16px; }
    .emergency-cta__phone { padding: 11px 18px; gap: 12px; margin-bottom: 14px; }
    .emergency-cta__phone-num { font-size: 1.5rem; }
    .emergency-cta__btns { flex-direction: column; align-items: stretch; }
    .emergency-cta__btns .btn { justify-content: center; }

    /* Footer */
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .footer__brand { grid-column: auto; }

    /* Section headings */
    .section-hd h2 { font-size: 1.85rem; }

    /* Inner pages */
    .svc-detail-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .page-banner { padding: 48px 0 56px; }
    .page-banner__title { font-size: 2rem; }
    .page-banner__sub { font-size: 1rem; }
    .page-banner__badges { gap: 8px; }
    .page-banner__badge { font-size: 0.78rem; padding: 7px 12px; }
    .contact-card { padding: 28px 20px; }
    .svc-detail-card { padding: 24px 20px; }
}

/* ============================================================
   RESPONSIVE — 480px (small phones)
   ============================================================ */
@media (max-width: 480px) {
    :root { --section-py: 44px; }

    /* Hero */
    .hero__title { font-size: 1.95rem; }
    .hero__phone-num { font-size: 1.2rem; }
    .hero__phone { padding: 9px 14px; }
    .hero__btns .btn { font-size: 0.9rem; padding: 13px 18px; }

    /* Stats */
    .stats-bar__num { font-size: 1.7rem; }

    /* About */
    .about__title { font-size: 1.8rem; }
    .about__highlights { grid-template-columns: 1fr; }
    .about__img img { height: 220px; }

    /* Emergency CTA */
    .emergency-cta { padding: 28px 0; }
    .emergency-cta h2 { font-size: 1.4rem; }
    .emergency-cta__phone { padding: 10px 16px; }
    .emergency-cta__phone-num { font-size: 1.3rem; }
    .emergency-cta__phone i { font-size: 1.1rem; }

    /* Nav */
    .nav__logo img { height: 48px; }

    /* Inner pages */
    .contact-card { padding: 22px 16px; }
    .svc-detail-card { padding: 20px 16px; }
    .page-banner { padding: 40px 0 48px; }
}

/* ============================================================
   RESPONSIVE — 375px (very small / iPhone SE)
   ============================================================ */
@media (max-width: 375px) {
    .hero__title { font-size: 1.75rem; }
    .hero__tag { font-size: 0.68rem; }
    .hero__trust { gap: 6px; }
    .hero__trust-item { padding: 8px 10px; }
    .hero__trust-num { font-size: 1.05rem; }
    .hero__trust-label { font-size: 0.58rem; }
    .hero__btns .btn { font-size: 0.85rem; padding: 12px 16px; }
}
