/* 1. Root & Global Styles
----------------------------------- */
:root {
    --primary-color: #87CEEB;
    --secondary-color: #f4f4f4;
    --dark-color: #1a237e;
    --light-color: #fff;
    --accent-color: #FFC107;
    --font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
}

/* 2. General Elements & Utilities
----------------------------------- */
.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; color: var(--primary-color); text-align: center; }
p { margin-bottom: 1rem; }

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.2s ease-in, background-color 0.2s ease-in, color 0.2s ease-in;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-accent {
    background: var(--accent-color);
    color: var(--dark-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--light-color);
    color: var(--light-color);
}

.btn-outline:hover {
    background: var(--light-color);
    color: var(--dark-color);
}

/* 3. Header & Navigation
----------------------------------- */
.main-header {
    background: var(--light-color);
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    z-index: 10;
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.main-nav ul li a {
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 600;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.main-nav ul li a.btn-accent:hover {
     color: var(--dark-color);
}

.social-link-header a {
    padding: 0.5rem 0.5rem;
}

.social-link-header svg {
    width: 24px;
    height: 24px;
    fill: var(--dark-color);
    transition: fill 0.2s ease-in-out;
    vertical-align: middle;
}

.social-link-header a:hover svg {
    fill: var(--primary-color);
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--dark-color);
    transition: all 0.25s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--dark-color);
    transition: all 0.25s ease-in-out;
}

.hamburger::before { transform: translateY(-8px); }
.hamburger::after { transform: translateY(8px); }

.nav-open .hamburger { background: transparent; }
.nav-open .hamburger::before { transform: rotate(45deg); }
.nav-open .hamburger::after { transform: rotate(-45deg); }


/* 4. Hero Section
----------------------------------- */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/hero1.png') no-repeat center center/cover;
    color: var(--light-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.hero h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* 5. Content Sections
----------------------------------- */
.section {
    padding: 4rem 0;
}

.section-light { background: var(--light-color); }
.section-grey { background: var(--secondary-color); }

/* 6. About Section
----------------------------------- */
.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.personal-touch {
    font-style: italic;
    color: #555;
    max-width: 600px;
    margin: 1.5rem auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.about-grid div {
    padding: 1rem;
}

.about-grid .icon svg {
    width: 48px;
    height: 48px;
    fill: var(--primary-color);
}

/* 7. Services Section
----------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #eee;
}

.service-card-content {
    padding: 1.5rem;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-content p,
.service-card-content .digger-services-list {
    flex-grow: 1;
}

.service-card-content .service-btn {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

.digger-services-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
    font-size: 0.95rem;
    fill: var(--primary-color);
}

.digger-services-list li {
    margin-bottom: 0.5rem;
}

.detailed-services-list {
    list-style-type: none;
    padding: 0;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.detailed-services-list li {
    background: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 5px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.detailed-services-list li .icon {
   margin-right: 0.75rem;
   flex-shrink: 0;
}

.detailed-services-list li .icon svg {
     width: 20px;
     height: 20px;
     fill: var(--primary-color);
}

/* 8. Gallery Section
----------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.gallery-item-caption {
    font-weight: 600;
    padding: 1rem;
    text-align: center;
}

/* 9. Areas We Serve Section
----------------------------------- */
.areas-list {
    text-align: center;
    max-width: 800px;
    margin: auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* 10. Testimonials
----------------------------------- */
.testimonial-slider {
    max-width: 800px;
    margin: auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 3rem 4rem;
    background: var(--light-color);
    text-align: center;
}

.testimonial-slide p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 700;
    font-style: normal !important;
    color: var(--primary-color);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
}

.arrow-prev { left: 15px; }
.arrow-next { right: 15px; }

.stars {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* 11. Footer & Mobile Sticky Bar
----------------------------------- */
.main-footer {
    background: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 70px; /* Space for sticky footer on mobile */
}

.main-footer a {
    color: var(--light-color);
    text-decoration: none;
}

.footer-socials {
    margin: 1.5rem 0;
}

.footer-socials svg {
    width: 32px;
    height: 32px;
    fill: var(--light-color);
    transition: opacity 0.2s ease-in-out;
}

.footer-socials a:hover svg {
    opacity: 0.8;
}

/* NEW CSS for Waste Carrier Info */
.waste-carrier-info {
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 300px;
}

.waste-carrier-info img {
    height: 55px;
    width: auto;
    flex-shrink: 0;
}

.waste-carrier-info div {
    text-align: left;
}

.waste-carrier-info p {
    margin: 0;
    line-height: 1.4;
    font-size: 0.9rem;
}

.mobile-sticky-footer {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--light-color);
    border-top: 1px solid #ddd;
    z-index: 99;
    padding: 0.75rem;
}

.mobile-sticky-footer .btn-group {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.mobile-sticky-footer .btn {
    width: 100%;
    font-size: 1rem;
    padding: 0.9rem;
}

/* 12. Media Queries
----------------------------------- */
@media (min-width: 576px) {
    .detailed-services-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    .section { padding: 3rem 0; }

    .main-nav ul {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--light-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .main-nav.nav-open ul {
        transform: translateX(0);
    }

    .main-nav ul li {
        margin: 1.5rem 0;
    }
    
    .main-nav ul li a {
        font-size: 1.5rem;
    }

    .nav-toggle {
        display: block;
    }
    
    .btn-mobile-hide {
        display: none;
    }
    
    .social-link-header {
        display: block;
    }
    
    .mobile-sticky-footer {
        display: block;
    }
    
    .main-footer {
        margin-bottom: 70px; /* Space for sticky footer */
    }

    .about-grid, .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-slide {
        padding: 2rem;
    }
}

@media (min-width: 769px) {
    .main-footer {
        margin-bottom: 0; /* No sticky footer on desktop */
    }
}

@media (max-width: 600px) {
     .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* 13. Modal Form
----------------------------------- */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-container.show {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: var(--light-color);
    padding: 2rem 2.5rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal-container.show .modal {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.2rem;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
}

.modal h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.modal p {
    font-size: 0.9rem;
    color: #666;
}

body.modal-open {
    overflow: hidden;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
}

#form-status {
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0;
}
:focus-visible {
  outline: 3px solid #005A9C; /* A strong, visible blue color */
  outline-offset: 2px;
  border-radius: 2px;
}
@media (max-width: 600px) {
    .modal {
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.accreditations-section {
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid #eee; /* Adds a subtle separator line */
}

/* This was renamed from .footer-logos */
.accreditations-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem; /* Space between the logos */
  flex-wrap: wrap; /* Allows them to stack on small screens */
  margin-top: 2rem;
}

/* This styles each individual logo and its text */
.waste-carrier-info {
  display: flex;
  align-items: center;
  gap: 1rem; /* Space between the image and its text */
  text-align: left;
}

/* This ensures the logos aren't too big */
.waste-carrier-info img {
  max-height: 60px;
  width: auto;
}