/* ============================================================
   Legendary Dirt Diggers - Main Stylesheet
   ============================================================ */
:root {
    --gold:       #C8960C;
    --gold-light: #E8B020;
    --gold-dark:  #A07808;
    --forest:     #1A3A1A;
    --forest-mid: #2D5A27;
    --earth:      #5C3D11;
    --earth-light:#F5EDD8;
    --dark:       #111111;
    --gray:       #6C757D;
    --light-bg:   #F8F5F0;
    --white:      #FFFFFF;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Roboto', sans-serif;
    color: #2a2a2a;
    background: var(--white);
    overflow-x: hidden;
}
h1,h2,h3,h4,h5 {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dark); }

/* ── Navbar ─────────────────────────────────────────────── */
#mainNav {
    background: rgba(17,17,17,0.97);
    backdrop-filter: blur(6px);
    border-bottom: 3px solid var(--gold);
    transition: all 0.3s ease;
    padding: 8px 0;
}
#mainNav .navbar-brand img { height: 62px; }
.text-logo { display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; }
.text-logo-main {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.text-logo-sub {
    font-family: 'Oswald', sans-serif;
    font-size: 0.68rem;
    font-weight: 300;
    color: #ccc;
    letter-spacing: 2px;
    text-transform: uppercase;
}
#mainNav .nav-link {
    color: #ddd !important;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px !important;
    transition: color 0.2s;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active { color: var(--gold) !important; }
#mainNav .btn-quote {
    background: var(--gold);
    color: #000 !important;
    font-weight: 700;
    border-radius: 3px;
    padding: 6px 18px !important;
}
#mainNav .btn-quote:hover { background: var(--gold-dark); }
.navbar-toggler { border-color: var(--gold); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23C8960C' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Hero ────────────────────────────────────────────────── */
#hero {
    min-height: 100vh;
    background: linear-gradient(160deg, rgba(17,17,17,0.82) 0%, rgba(26,58,26,0.75) 100%),
                url('../images/hero-bg.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}
#hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--white));
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-block;
    background: rgba(200,150,12,0.2);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 2px;
    margin-bottom: 20px;
}
.hero-headline {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 8px;
}
.hero-headline span { color: var(--gold); }
.hero-subheadline {
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: #ccc;
    margin-bottom: 36px;
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    letter-spacing: 1px;
}
.btn-gold {
    background: var(--gold);
    color: #000;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 14px 34px;
    border: 2px solid var(--gold);
    border-radius: 3px;
    transition: all 0.25s;
    display: inline-block;
}
.btn-gold:hover { background: transparent; color: var(--gold); }
.btn-outline-gold {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 14px 34px;
    border-radius: 3px;
    transition: all 0.25s;
    display: inline-block;
}
.btn-outline-gold:hover { border-color: var(--gold); color: var(--gold); }
.hero-stats { margin-top: 60px; }
.hero-stat-num {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Section common ──────────────────────────────────────── */
section { padding: 90px 0; }
.section-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
    display: block;
}
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto 30px;
}
.section-divider.left { margin-left: 0; }

/* ── Services ────────────────────────────────────────────── */
#services { background: var(--light-bg); }
.service-card {
    background: var(--white);
    border: 1px solid #e8e0d0;
    border-top: 4px solid var(--gold);
    border-radius: 4px;
    padding: 32px 28px;
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.service-icon {
    width: 58px;
    height: 58px;
    background: var(--gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}
.service-card h4 {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* ── About ───────────────────────────────────────────────── */
#about { background: var(--white); }
.about-img-wrap {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}
.about-img-wrap img { width: 100%; height: 460px; object-fit: cover; border-radius: 4px; }
.about-badge-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gold);
    color: #000;
    font-family: 'Oswald', sans-serif;
    padding: 20px 24px;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.about-badge-box .big-num { font-size: 2.4rem; font-weight: 700; line-height: 1; }
.about-badge-box .big-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.stat-pill {
    background: var(--light-bg);
    border-left: 4px solid var(--gold);
    padding: 14px 20px;
    border-radius: 3px;
}
.stat-pill .num { font-family: 'Oswald', sans-serif; font-size: 2rem; color: var(--gold); font-weight: 700; }
.stat-pill .lbl { font-size: 0.8rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }

/* ── Why Choose Us ───────────────────────────────────────── */
#why { background: var(--forest); }
#why .section-title { color: var(--white); }
#why .section-label { color: var(--gold-light); }
.why-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(200,150,12,0.3);
    border-radius: 4px;
    padding: 28px 24px;
    height: 100%;
    transition: background 0.25s;
}
.why-card:hover { background: rgba(200,150,12,0.12); }
.why-icon { color: var(--gold); font-size: 2rem; margin-bottom: 14px; }
.why-card h4 { color: var(--white); font-size: 1.1rem; text-transform: uppercase; margin-bottom: 10px; }
.why-card p { color: #bbb; font-size: 0.92rem; margin: 0; }

/* ── Gallery ─────────────────────────────────────────────── */
#gallery { background: var(--dark); }
#gallery .section-title { color: var(--white); }
#gallery .section-label { color: var(--gold-light); }
#gallery .section-divider { background: var(--gold); }
.gallery-filter { margin-bottom: 28px; }
.gallery-filter .btn-filter {
    background: transparent;
    border: 1px solid rgba(200,150,12,0.4);
    color: #bbb;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 2px;
    margin: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.gallery-filter .btn-filter:hover,
.gallery-filter .btn-filter.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-family: 'Oswald', sans-serif; font-size: 0.95rem; }
#gallery-grid { min-height: 200px; }
.gallery-htmx-indicator { color: var(--gold); text-align: center; padding: 30px; }

/* ── Testimonials ────────────────────────────────────────── */
#testimonials { background: var(--light-bg); }
.testimonial-card {
    background: var(--white);
    border-radius: 4px;
    padding: 32px 28px;
    border-bottom: 4px solid var(--gold);
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    height: 100%;
}
.testimonial-stars { color: var(--gold); font-size: 1rem; margin-bottom: 14px; }
.testimonial-text { font-size: 0.95rem; color: #444; font-style: italic; margin-bottom: 20px; }
.testimonial-author { font-family: 'Oswald', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.testimonial-location { font-size: 0.8rem; color: var(--gray); }

/* ── Contact ─────────────────────────────────────────────── */
#contact { background: var(--white); }
.contact-info-box {
    background: var(--forest);
    border-radius: 4px;
    padding: 40px 36px;
    height: 100%;
    color: var(--white);
}
.contact-info-box h3 { color: var(--gold); text-transform: uppercase; margin-bottom: 28px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-item-icon {
    width: 42px; height: 42px;
    background: rgba(200,150,12,0.15);
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 0.95rem;
    flex-shrink: 0;
}
.contact-item-text .label { font-size: 0.75rem; color: #999; text-transform: uppercase; letter-spacing: 1px; }
.contact-item-text .value { font-family: 'Oswald', sans-serif; font-size: 1.05rem; }
.contact-item-text a { color: var(--gold-light); }
.contact-form-wrap {
    background: var(--light-bg);
    border-radius: 4px;
    padding: 40px 36px;
}
.form-control, .form-select {
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 12px 14px;
    font-size: 0.93rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,150,12,0.15);
}
.form-label { font-family: 'Oswald', sans-serif; font-size: 0.88rem; letter-spacing: 0.5px; text-transform: uppercase; color: #555; }
#contact-response .alert { margin-top: 16px; border-radius: 3px; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
    background: var(--dark);
    border-top: 3px solid var(--gold);
    padding: 52px 0 28px;
    color: #aaa;
}
footer img.logo { height: 64px; margin-bottom: 14px; }
footer h5 { font-family: 'Oswald', sans-serif; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; margin-bottom: 14px; }
footer a { color: #999; font-size: 0.9rem; }
footer a:hover { color: var(--gold); }
footer .footer-links li { margin-bottom: 8px; }
.social-icons a {
    display: inline-flex;
    width: 38px; height: 38px;
    border: 1px solid rgba(200,150,12,0.4);
    border-radius: 50%;
    align-items: center; justify-content: center;
    color: #aaa;
    font-size: 0.95rem;
    transition: all 0.2s;
    margin-right: 6px;
}
.social-icons a:hover { background: var(--gold); border-color: var(--gold); color: #000; }
.footer-bottom {
    border-top: 1px solid #222;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.82rem;
    color: #666;
}

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.94);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 88vh; border-radius: 3px; }
.lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    background: none; border: none;
    opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; color: var(--gold); }
.lightbox-caption {
    position: absolute;
    bottom: 24px; left: 0; right: 0;
    text-align: center;
    color: #ccc;
    font-size: 0.9rem;
}

/* ── CTA Band ────────────────────────────────────────────── */
#cta-band {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    padding: 56px 0;
}
#cta-band h2 { font-family: 'Oswald', sans-serif; text-transform: uppercase; color: #000; font-size: 2.2rem; margin-bottom: 8px; }
#cta-band p { color: rgba(0,0,0,0.7); font-size: 1.05rem; margin-bottom: 0; }
.btn-dark-cta {
    background: var(--dark);
    color: var(--white);
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 14px 34px;
    border-radius: 3px;
    border: 2px solid var(--dark);
    transition: all 0.25s;
    display: inline-block;
}
.btn-dark-cta:hover { background: transparent; color: var(--dark); }

/* ── Utilities ───────────────────────────────────────────── */
.scroll-top-btn {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 44px; height: 44px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    display: none;
    align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 500;
    transition: background 0.2s;
}
.scroll-top-btn.show { display: flex; }
.scroll-top-btn:hover { background: var(--gold-dark); }

/* ── HTMX transitions ────────────────────────────────────── */
.htmx-request .htmx-indicator { opacity: 1 !important; }
.htmx-indicator { opacity: 0; transition: opacity 0.2s; }

/* ── Responsive tweaks ───────────────────────────────────── */
@media (max-width: 768px) {
    section { padding: 64px 0; }
    .about-badge-box { right: 0; bottom: -10px; }
    .contact-form-wrap, .contact-info-box { padding: 28px 20px; }
}
