/* ============================================
   PREMIUM HOMEPAGE SECTIONS 2026
   Why Choose Us, Stats, Testimonials
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */

.why-choose-section {
    padding: 100px 0;
    background: #ffffff;
    /* Default base background */
    position: relative;
    overflow: hidden;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(64, 145, 108, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateY(-50%);
}

.why-choose-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(27, 67, 50, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.why-choose-grid.five-cols {
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

@media (max-width: 1200px) {
    .why-choose-grid.five-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .why-choose-grid.five-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .goodness-content {
        padding: 30px 20px;
    }

    .goodness-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .promise-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .goodness-content h2 {
        font-size: 24px;
    }

    .main-desc {
        font-size: 14px;
    }
}

@media (max-width: 600px) {

    .why-choose-grid,
    .why-choose-grid.five-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-choose-section {
        padding: 60px 0 20px;
        background: #ffffff;
        /* Seamless transition */
        overflow: hidden;
    }

    #mobile-trust-section {
        padding-bottom: 0 !important;
    }

    .why-choose-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        padding: 20px 20px 40px !important;
        gap: 20px;
        width: 100% !important;
        margin: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Hide scrollbar */
    }

    .why-choose-grid::-webkit-scrollbar {
        display: none;
    }

    .why-choose-card {
        flex: 0 0 80%;
        /* Show 80% of card width */
        scroll-snap-align: center;
        opacity: 1 !important;
        transform: none !important;
        margin: 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.03);
        background: #ffffff;
        animation: none !important;
    }

    .why-choose-card.active {
        transform: none !important;
        animation: none !important;
    }

    #mobile-reviews-section {
        padding-top: 20px !important;
        /* Background moved to mobile-overflow-fix.css */
    }

    #mobile-reviews-section .section-header {
        margin-bottom: 30px !important;
    }
}

.why-choose-card {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.why-choose-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1B4332, #40916C, #52B788);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.why-choose-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.why-choose-card:hover::before {
    opacity: 1;
}

.why-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    overflow: hidden;
}

.why-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
}

.why-choose-card:hover .why-icon {
    transform: scale(1.1);
}

.why-choose-card:hover .why-icon img {
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .why-choose-card {
        padding: 25px 20px;
    }

    .why-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .why-choose-card h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .why-choose-card p {
        font-size: 13px;
    }
}

/* ============================================
   STATS COUNTER SECTION
   ============================================ */

.stats-section {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
}

.stats-section::before {
    display: none;
    /* Pattern moved to Testimonials */
}

.stats-section::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

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

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stats-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 20px !important;
    }
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
}

.stat-item:last-child::after {
    display: none;
}

@media (max-width: 900px) {

    .stat-item:nth-child(2)::after,
    .stat-item:last-child::after {
        display: none;
    }
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: #1B4332;
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .stat-number {
        font-size: 36px;
    }
}

.stat-label {
    font-size: 16px;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 600px) {
    .stat-label {
        font-size: 13px;
    }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1B4332 0%, #2B543A 50%, #1B4332 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm-24 24v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

.testimonials-section .section-title {
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 40px 0 60px;
    }

    .testimonials-section::before {
        display: none;
        /* Cleaner mobile look */
    }
}

.testimonials-slider {
    display: flex !important;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100% !important;
    gap: 0;
    margin: 0;
}

.review-card {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 6px;
    /* Reduced outer spacing */
    box-sizing: border-box;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card-inner {
    background: white;
    padding: 28px;
    /* More padding for better readability */
    border-radius: 20px;
    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 100%;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 22px;
    color: #444;
    font-weight: 500;
}

.testimonial-stars {
    color: #fbc531;
    font-size: 15px;
    margin-bottom: 15px;
    /* More gap after stars */
    display: block;
}

.testimonials-section .container {
    max-width: 1120px;
}

/* Slider Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-green);
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: var(--primary-green);
    color: #fff;
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}

.prev-btn {
    left: -60px;
}

.next-btn {
    right: -60px;
}

@media (min-width: 992px) {
    .review-card {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .review-dots {
        display: none !important;
    }
}

@media (max-width: 1350px) and (min-width: 769px) {
    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .testimonials-section .container {
        padding: 0 70px;
    }
}

@media (max-width: 991px) and (min-width: 600px) {
    .review-card {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .slider-nav {
        display: none;
    }

    .testimonials-section .container {
        padding: 0 20px;
    }

    .review-dots {
        display: flex !important;
    }

    .review-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@keyframes premiumZoom {

    0%,
    100% {
        transform: scale(1.05);
    }

    50% {
        transform: scale(1.07);
        /* Reduced from 1.1 for subtler effect */
    }
}

/* Consolidated review-card definition above */

.review-image-container {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 350px;
    /* Signficantly increased to show full transformation results */
    background: #f8f9fa;
}

.review-image {
    width: 100%;
    height: 100%;
    /* Changed from auto */
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.review-card:hover .review-image {
    transform: scale(1.05);
}

/* Hover effect on Inner Card */
.review-card:hover .review-card-inner {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
    border-color: var(--primary-green);
}

.review-card:hover .review-image {
    transform: scale(1.05);
}

/* Dots Styling */
.review-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .review-dots {
        display: flex;
        /* Show dots for navigation */
        margin-top: 25px;
    }
}

.review-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-dot.active {
    background: #1B4332;
    transform: scale(1.3);
}

@media (max-width: 600px) {
    .review-card {
        padding: 20px;
    }

    .testimonial-text {
        font-size: 12px;
        margin-bottom: 12px;
        line-height: 1.6;
    }

    .author-avatar {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }

    .author-info strong {
        font-size: 13px;
    }

    .author-info span {
        font-size: 11px;
    }

    .testimonial-stars {
        font-size: 12px;
        margin-bottom: 8px;
    }
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Reduced from 15px */
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    /* Added slight separator */
}

.author-avatar {
    width: 35px;
    /* Reduced from 50px */
    height: 35px;
    /* Reduced from 50px */
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    /* Reduced */
    font-weight: 700;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0px;
    /* Tighter gap */
}

.author-info strong {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    display: block;
}

.author-info span {
    font-size: 11px;
    color: #2D6A4F;
    font-weight: 600;
    display: block;
}

/* ============================================
   SCROLL-TO-TOP BUTTON
   ============================================ */

.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(27, 67, 50, 0.4);
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(27, 67, 50, 0.5);
}

.scroll-to-top-btn svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   TRUST BADGES SECTION
   ============================================ */

.trust-badges-section {
    padding: 60px 0;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.trust-badges-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .trust-badges-grid {
        gap: 30px;
    }
}

.trust-badge {
    text-align: center;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-5px);
}

.trust-badge-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.1) 0%, rgba(64, 145, 108, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.trust-badge:hover .trust-badge-icon {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
}

.trust-badge-icon svg {
    width: 32px;
    height: 32px;
    stroke: #1B4332;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.trust-badge:hover .trust-badge-icon svg {
    stroke: white;
}

.trust-badge span {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   ANIMATION ENHANCEMENTS
   ============================================ */

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse-soft {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(64, 145, 108, 0.4);
    }

    50% {
        box-shadow: 0 0 30px 10px rgba(64, 145, 108, 0);
    }
}

.why-choose-card:nth-child(1) {
    animation-delay: 0s;
}

.why-choose-card:nth-child(2) {
    animation-delay: 0.1s;
}

.why-choose-card:nth-child(3) {
    animation-delay: 0.2s;
}

.why-choose-card:nth-child(4) {
    animation-delay: 0.3s;
}

.review-card:nth-child(1) {
    animation-delay: 0s;
}

.review-card:nth-child(2) {
    animation-delay: 0.1s;
}

.review-card:nth-child(3) {
    animation-delay: 0.2s;
}