/* ==========================================
   Hero Section Carousel Track
   ========================================== */
.hero-section {
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    background-color: #0b1a13;
    touch-action: pan-y; /* Allows vertical scrolling while enabling horizontal swipes */
}

.hero-slides-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.hero-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.45, 0, 0.25, 1);
    will-change: transform;
}

.hero-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding-top: 60px;
}

/* Background image overlay */
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-bg-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 26, 19, 0.92) 0%, rgba(11, 26, 19, 0.45) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10%;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}

.hero-text-content {
    max-width: 820px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.sub-heading {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 3px;
    color: #d4af37;
    margin-bottom: 16px;
    display: block;
    font-weight: 500;
}

.hero-text-content h1 {
    font-size: 56px;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.hero-text-content p {
    font-size: 16.5px;
    font-weight: 300;
    line-height: 1.65;
    margin-bottom: 35px;
    color: #f0f5f3;
    max-width: 740px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
}

.btn-primary {
    display: inline-block;
    background-color: #d4af37;
    color: #1b4d3e;
    padding: 14px 34px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: #e5be42;
}

.btn-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 3px;
    transition: opacity 0.2s;
}

.btn-link:hover {
    opacity: 0.8;
}

/* Navigation Controls */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 31, 20, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
}

.hero-arrow:hover {
    background: #d4af37;
    color: #0F1F14;
    border-color: #d4af37;
    transform: translateY(-50%) scale(1.08);
}

.hero-prev { left: 30px; }
.hero-next { right: 30px; }

.hero-dots-container {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 90%;
    gap: 8px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: #d4af37;
    width: 24px;
    border-radius: 12px;
}

@media (max-width: 992px) {
    .hero-text-content h1 { font-size: 40px; }
    .hero-text-content p { font-size: 15px; }
    .hero-prev, .hero-next { display: none; }
}

@media (max-width: 576px) {
    .hero-container { padding: 0 6%; }
    .hero-text-content h1 { font-size: 30px; }
    .hero-cta-group { flex-direction: column; align-items: flex-start; gap: 15px; }
    .hero-dots-container { bottom: 20px; }
}

/* About Section */
.about-section {
    background-color: #ffffff;
    padding: 50px 5% 60px 5%;
    position: relative;
    z-index: 2;
}

.about-header {
    text-align: center;
    margin-bottom: 35px;
}

.about-header h2 {
    font-size: 36px;
    color: #0F1F14;
    font-weight: 600;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.about-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-content-item {
    text-align: left;
}

.about-content-item.separator {
    border-top: 1px solid #e1e8e5;
    padding-top: 25px;
}

.about-content-item h3 {
    font-size: 19px;
    color: #0F1F14;
    margin-bottom: 8px;
    font-weight: 600;
}

.about-content-item p {
    font-size: 14px;
    color: #0F1F14;
    line-height: 1.6;
    opacity: 0.85;
}

.center-col {
    flex: 1.1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Image Wrapper with Taller Aspect Ratio */
.about-image-wrapper {
    width: 100%;
    /* Max width allows the height to expand up to ~625px on desktop */
    max-width: 500px; 
    /* 4/5 tall vertical ratio gives more height without distortion */
    aspect-ratio: 4 / 5; 
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(15, 31, 20, 0.12);
}

/* Image behavior inside wrapper */
.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps image full and clear */
    display: block;
}


/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */

/* Medium Screens (Tablets / Laptops ≤ 1024px) */
@media screen and (max-width: 1024px) {
    .hero-container {
        padding: 0 6%;
    }

    .hero-text-content h1 {
        font-size: 48px;
    }
.about-container {
        flex-direction: column;
        gap: 50px;
    }

    .center-col {
        order: -1;
        width: 100%;
    }

    .about-image-wrapper {
        max-width: 100%;
        /* Adjusted max-height so it doesn't take over the whole screen on tablet */
        max-height: 480px; 
    }
}

/* Small Screens (Mobile Devices ≤ 768px) */
@media screen and (max-width: 768px) {
    .hero-container {
        padding: 0 5%;
    }

    .sub-heading {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .hero-text-content h1 {
        font-size: 36px;
        line-height: 1.2;
    }

    .hero-text-content p {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    .btn-link {
        align-self: center;
    }

    .scroll-content {
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
        padding: 50px 3% 0 3%;
    }

    .about-header h2 {
        font-size: 28px;
    }

    .about-column {
        gap: 20px;
    }

   .about-image-wrapper {
        /* Square or portrait ratio for mobile to keep plenty of height */
        aspect-ratio: 1 / 1; 
        max-height: 380px;
        border-radius: 16px;
    }
}

/* Extra Small Screens (Compact Phones ≤ 480px) */
@media screen and (max-width: 480px) {
    .hero-text-content h1 {
        font-size: 30px;
    }

    .hero-text-content p {
        font-size: 14px;
    }

    .about-header h2 {
        font-size: 24px;
    }

    .about-content-item h3 {
        font-size: 17px;
    }

    .about-content-item p {
        font-size: 13px;
    }
}
/* ==========================================
   Services Section (Equal Height Fix)
   ========================================== */

.services-section {
    background-color: #f9fbfb;
    padding: 70px 5%;
    position: relative;
    z-index: 2;
}

.services-header {
    text-align: center;
    margin-bottom: 50px;
}

.services-header h2 {
    font-size: 36px;
    color: #0F1F14;
    font-weight: 600;
}

.services-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Base Card Setup */
.service-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 31, 20, 0.05);
    display: flex;
    flex-direction: row; /* Horizontal layout on desktop */
    align-items: stretch; /* Forces image and content to match height */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Equal stretch in grid cells */
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(15, 31, 20, 0.1);
}

/* Featured Pest Control Hero Card */
.featured-pest-card {
    border: 2px solid #d4af37;
    background: linear-gradient(135deg, #ffffff 0%, #f4f8f6 100%);
    min-height: 280px;
}

/* Grid Layout for 2 Cards per Row */
.services-grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: stretch; /* Forces both cards in a row to match height */
}

.services-grid-two .service-card {
    display: flex;
    flex-direction: row;
    height: 100%;
    min-height: 260px; /* Baseline uniform card height */
}

/* Card Content Area */
.service-card-content {
    flex: 1.3;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Keeps button aligned at the bottom */
    text-align: left;
}

.service-icon-box {
    width: 48px;
    height: 48px;
    background-color: #0F1F14;
    color: #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.service-card-content h3 {
    font-size: 19px;
    color: #0F1F14;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.service-card-content p {
    font-size: 13.5px;
    color: #0F1F14;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 20px;
    /* Keeps description height consistent */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}




.learn-more-btn {
    text-decoration: none;
    color: #0F1F14;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto; /* Pushes button to bottom boundary */
    transition: color 0.2s;
}

.learn-more-btn:hover {
    color: #d4af37;
}

/* Card Image Area */
.service-card-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 100%;
}

.service-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents image stretching */
    display: block;
}


/* ==========================================
   Responsive Breakpoints
   ========================================== */

/* Medium Screens & Tablets (≤ 1024px) */
@media screen and (max-width: 1024px) {
    .services-grid-two {
        grid-template-columns: 1fr; /* Stack into 1 column on tablets */
        gap: 25px;
    }

    .service-card,
    .services-grid-two .service-card {
        flex-direction: column; /* Stack image under text on mobile/tablet */
        min-height: auto;
    }

    .service-card-image {
        position: relative;
        width: 100%;
        height: 240px;
        min-height: 240px;
    }

    .service-card-image img {
        position: static;
        height: 240px;
    }

    .service-card-content {
        padding: 25px;
    }
}

/* Small Mobile Screens (≤ 768px) */
@media screen and (max-width: 768px) {
    .services-section {
        padding: 50px 4%;
    }

    .services-header h2 {
        font-size: 26px;
    }

    .service-card-image {
        height: 200px;
        min-height: 200px;
    }

    .service-card-image img {
        height: 200px;
    }
}

/* Why Choose Us & Process Section */
.why-choose-section {
    background-color: #f9fbfb;
    padding: 70px 5%;
    position: relative;
    z-index: 2;
}

.why-choose-header {
    text-align: center;
    margin-bottom: 45px;
}

.why-choose-header h2 {
    font-size: 36px;
    color: #0F1F14;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-subdesc {
    font-size: 15px;
    color: #0F1F14;
    opacity: 0.75;
}

.why-choose-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.why-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.why-feature-card {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 31, 20, 0.04);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.why-icon {
    font-size: 22px;
    color: #d4af37;
}

.why-text h3 {
    font-size: 17px;
    color: #0F1F14;
    font-weight: 600;
    margin-bottom: 6px;
}

.why-text p {
    font-size: 13px;
    color: #0F1F14;
    line-height: 1.5;
    opacity: 0.75;
}

.how-we-work-box {
    background: linear-gradient(135deg, #1b4d3e 0%, #0f2c23 100%);
    border-radius: 24px;
    padding: 45px;
    text-align: center;
}

.how-we-work-box h3 {
    font-size: 24px;
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 35px;
}

.process-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.process-card-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.process-num {
    background: #d4af37;
    color: #0F1F14;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
}

.process-card-item h4 {
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
}

.process-card-item p {
    font-size: 13px;
    color: #ffffff;
    opacity: 0.75;
    line-height: 1.5;
}

/* Valued Clients Marquee Section */
.clients-section {
    background-color: #ffffff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    z-index: 2;
}

.clients-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.clients-header h2 {
    font-size: 36px;
    color: #0F1F14;
    font-weight: 600;
    margin-bottom: 15px;
}

.clients-header p {
    font-size: 15px;
    color: #0F1F14;
    opacity: 0.8;
    line-height: 1.6;
}

.marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    margin-bottom: 25px;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 10;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
}

.marquee-track {
    display: flex;
    gap: 50px;
    width: max-content;
    will-change: transform;
}

.marquee-left {
    animation: scrollLeft 35s linear infinite;
}

.marquee-right {
    animation: scrollRight 35s linear infinite;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}


.client-card{
    margin-right: 5px;
}

.client-card img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.client-card:hover {
    border-color: #d4af37;
    box-shadow: 0 6px 20px rgba(15, 31, 20, 0.06);
    transform: translateY(-2px);
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}


/* ==========================================
   RESPONSIVE DESIGN (Why Us, Process, Marquee)
   ========================================== */

/* Large Tablets / Small Laptops (≤ 1024px) */
@media screen and (max-width: 1024px) {
    .why-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Devices & Tablets (≤ 768px) */
@media screen and (max-width: 768px) {
    .why-choose-section {
        padding: 50px 4%;
    }

    .why-choose-header h2,
    .clients-header h2 {
        font-size: 28px;
    }

    .why-cards-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .how-we-work-box {
        padding: 30px 20px;
        border-radius: 18px;
    }

    .how-we-work-box h3 {
        font-size: 21px;
        margin-bottom: 25px;
    }

    .process-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .clients-section {
        padding: 60px 0;
    }

    .marquee-container::before,
    .marquee-container::after {
        width: 40px;
    }
/* 
    .client-card {
        min-width: 160px;
        height: 65px;
        padding: 15px 20px;
    } */

    .client-card img {
        max-height: 60px;
    }
}

/* Extra Small Mobile Devices (≤ 480px) */
@media screen and (max-width: 480px) {
    .why-choose-header h2,
    .clients-header h2 {
        font-size: 24px;
    }

    .section-subdesc,
    .clients-header p {
        font-size: 14px;
    }

    .why-feature-card {
        padding: 24px 20px;
    }
}