/* ============================================================
   Affordable Junk Hauling — style.css
   Color palette:  #1C1C1C (charcoal)  |  #F5F2EE (warm white)
                   #E8722A (orange accent)  |  #3A3A3A (dark text)
                   #F0EDE8 (light section bg)
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Barlow', sans-serif;
    color: #3A3A3A;
    background: #F5F2EE;
    line-height: 1.65;
}

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

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

/* --- Typography -------------------------------------------- */
h1,
h2,
h3,
h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: #1C1C1C;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

p {
    max-width: 68ch;
    text-wrap: pretty;
}

/* --- Utilities --------------------------------------------- */
.container {
    width: min(90%, 1100px);
    margin-inline: auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    border: none;
}

.btn-primary {
    background: #E8722A;
    color: #fff;
}

.btn-primary:hover {
    background: #d05e1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 114, 42, 0.35);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* Fade-in animation (triggered by JS Intersection Observer) */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header / Nav ------------------------------------------ */
#site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #1C1C1C;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

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

.logo-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    line-height: 1.2;
}

.logo-text span {
    color: #E8722A;
}

/* Desert navigation */
.primary-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: #ccc;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #E8722A;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #E8722A;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.header-phone svg {
    flex-shrink: 0;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-nav {
    display: none;
    background: #242424;
    padding: 1rem 0;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.mobile-nav a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #ccc;
    font-size: 1.05rem;
    border-bottom: 1px solid #333;
    transition: color 0.2s, background 0.2s;
}

.mobile-nav a:hover {
    color: #E8722A;
    background: #2e2e2e;
}

.mobile-cta {
    padding: 1rem 1.5rem;
}

/* --- Hero -------------------------------------------------- */
#hero {
    background:
        linear-gradient(to bottom, rgba(28, 28, 28, 0.72) 0%, rgba(28, 28, 28, 0.52) 100%),
        url('../images/hero-bg.jpg') center top / cover no-repeat;
    background-color: #2c2c2c;
    /* fallback if no hero image */
    min-height: 88vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 5rem 0 4rem;
}

.hero-content {
    max-width: 760px;
    margin-inline: auto;
}

.hero-eyebrow {
    display: inline-block;
    background: #E8722A;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 3px;
    margin-bottom: 1.2rem;
    text-wrap: balance;
}

#hero h1 {
    color: #fff;
    margin-bottom: 1.1rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-sub {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 52ch;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 600px;
    margin-inline: auto;
}

.hero-actions .btn {
    flex: 1;
    min-width: 160px;
    text-align: center;
}

.hero-area {
    margin-top: 2.5rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* --- Section shared ---------------------------------------- */
section {
    padding: 5rem 0;
}

.section-label {
    display: inline-block;
    color: #E8722A;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-wrap: balance;
}

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

.section-header p {
    color: #666;
    margin-top: 0.6rem;
    font-size: 1.05rem;
    max-width: none;
}

/* --- Services ---------------------------------------------- */
#services {
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: #F5F2EE;
    border-radius: 8px;
    padding: 2rem 1.8rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    border-top: 3px solid transparent;
}

.service-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-top-color: #E8722A;
}

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

.service-card h3 {
    margin-bottom: 0.5rem;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    max-width: none;
}

.vehicle-list {
    list-style: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.vehicle-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.4rem;
}

.vehicle-list li::before {
    content: '→';
    color: #E8722A;
    font-weight: 700;
}

/* --- Jobsites Slideshow ------------------------------------ */
#jobsites {
    background: #F9F7F4;
}

.jobsites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.slideshow-slot {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    background: #F5F2EE;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.slideshow-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.8s ease-in-out;
}

@media (max-width: 900px) {
    .jobsites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 480px) {
    .jobsites-grid {
        grid-template-columns: 1fr;
    }

    .slideshow-slot {
        aspect-ratio: 3/2;
    }
}

/* --- Why Us ------------------------------------------------ */
#why-us {
    background: #F0EDE8;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.reason {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}

.reason-icon {
    width: 52px;
    height: 52px;
    background: #E8722A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.reason h3 {
    font-size: 1.15rem;
}

.reason p {
    color: #666;
    font-size: 0.95rem;
}

/* --- Service Area ------------------------------------------ */
#service-area {
    background: #fff;
}

.area-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.county-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1.5rem;
    margin-top: 1rem;
}

.city-list {
    grid-template-columns: repeat(3, 1fr);
}

.area-subheader {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.25rem;
    color: #1C1C1C;
    margin-top: 2.5rem;
    border-left: 4px solid #E8722A;
    padding-left: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


.county-list li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: #444;
}

.county-list li::before {
    content: '✓';
    color: #E8722A;
    font-weight: 700;
    flex-shrink: 0;
}

.area-note {
    margin-top: 1.2rem;
    font-size: 0.9rem;
    color: #888;
}

.map-placeholder {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
    background: #e0ddd8;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* --- Testimonials ------------------------------------------ */
#testimonials {
    background: #1C1C1C;
}

#testimonials .section-label {
    color: #E8722A;
}

#testimonials h2 {
    color: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.testimonial-card {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 2rem 1.8rem;
    border-left: 4px solid #E8722A;
}

.stars {
    color: #E8722A;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0.1em;
}

.testimonial-card blockquote {
    color: #ccc;
    font-size: 0.97rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.2rem;
}

.reviewer {
    color: #888;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.review-cta-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-left: none;
    border: 2px dashed rgba(232, 114, 42, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

.review-cta-card h3 {
    color: #fff;
    margin-bottom: 0.8rem;
}

.review-cta-card p {
    color: #aaa;
    margin-bottom: 1.5rem;
    max-width: none;
    font-size: 0.95rem;
}

/* --- Contact / Footer -------------------------------------- */
#contact {
    background: #E8722A;
    padding: 5rem 0;
    text-align: center;
}

#contact h2 {
    color: #fff;
}

#contact .section-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
}

.contact-tagline {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    margin: 0.8rem auto 2.5rem;
    text-wrap: balance;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 600px;
    margin-inline: auto;
}

.contact-actions .btn {
    flex: 1;
    min-width: 160px;
    text-align: center;
}

.btn-white {
    background: #fff;
    color: #E8722A;
}

.btn-white:hover {
    background: #f0ede8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    transform: translateY(-2px);
}

footer {
    background: #111;
    color: #888;
    padding: 2.5rem 0;
    font-size: 0.88rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: opacity 0.2s ease;
}

.footer-logo:hover {
    opacity: 0.75;
}

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

.footer-logo span {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    color: #ccc;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: #888;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #E8722A;
}

.footer-copy {
    color: #555;
    text-align: center;
}

.footer-credit {
    display: inline-block;
    margin-top: 0.2rem;
}

.footer-credit a {
    color: #E8722A;
    transition: color 0.2s ease;
}

.footer-credit a:hover {
    color: #fff;
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 986px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .reasons-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .header-phone,
    .header-cta,
    .desktop-only {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .area-layout {
        grid-template-columns: 1fr;
    }

    .map-placeholder {
        display: none;
    }

    .county-list {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

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

    .reasons-grid {
        justify-items: center;
    }

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

    .testimonials-grid,
    .jobsites-grid {
        grid-template-columns: 1fr;
    }

    /* Showing only 4 items on mobile/tablet to avoid excessive scrolling */
    .slideshow-slot:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3.5rem 0;
    }

    .hero-actions,
    .contact-actions {
        flex-direction: column;
        align-items: center;
        max-width: 350px;
        margin-inline: auto;
    }

    .hero-actions .btn,
    .contact-actions .btn {
        width: 100%;
        flex: none;
    }
}

/* Hero area line — always centered regardless of p max-width */
.hero-area {
    max-width: 100%;
    width: 100%;
    text-align: center;
    margin-inline: auto;
}

/* --- Modal ------------------------------------------------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
}

.modal-content {
    position: relative;
    background: #111;
    width: 90%;
    max-width: 900px;
    height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.modal.is-open .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #E8722A;
}


/* --- Custom Booking Form Styling --------------------------- */
#booking-form {
    padding: 2.5rem 2rem;
    overflow-y: auto;
    width: 100%;
    max-height: 100%;
}

#booking-form h2 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

#booking-form p {
    color: #ccc;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: #1C1C1C;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #E8722A;
    box-shadow: 0 0 0 3px rgba(232, 114, 42, 0.15);
}

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

.submit-btn {
    margin-top: 1rem;
    width: 100%;
}

@media (max-width: 600px) {
    #booking-form {
        padding: 2rem 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1.2rem;
        margin-bottom: 0;
    }
}