/* ==========================================================================
   Ewastecycle (Pvt) Ltd - Production Stylesheet
   ========================================================================== */

:root {
    --primary-green: #16a34a;
    --primary-dark: #15803d;
    --forest-bg: #072a18;
    --forest-dark: #041c10;
    --forest-light: #0d3d24;
    --lime-cta: #4ade80;
    --mint-bg: #f2f9f4;
    --mint-light: #f7fbf8;
    --text-dark: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border-light: #e5e7eb;
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-script: 'Caveat', cursive, sans-serif;
}

/* Base Resets & Global */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography Utilities */
.fs-11 { font-size: 0.6875rem !important; }
.fs-12 { font-size: 0.75rem !important; }
.fs-13 { font-size: 0.8125rem !important; }
.fs-14 { font-size: 0.875rem !important; }
.fs-16 { font-size: 1rem !important; }
.fs-18 { font-size: 1.125rem !important; }
.fs-22 { font-size: 1.375rem !important; }

.text-green-highlight {
    color: #4ade80 !important;
}

.text-green-light {
    color: #86efac !important;
}

.text-light-emerald {
    color: #a7f3d0 !important;
}

.bg-mint {
    background-color: var(--mint-bg) !important;
}

/* Section Common */
.section-badge {
    letter-spacing: 1px;
    font-size: 12px;
}

.section-title {
    font-size: 1.75rem;
    line-height: 1.25;
}

@media (min-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-navbar {
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    z-index: 1030;
}

.nav-menu .nav-link {
    font-weight: 500;
    color: #334155;
    padding: 0.5rem 1rem;
    font-size: 14.5px;
    transition: color 0.2s ease;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
    color: var(--primary-green) !important;
    font-weight: 600;
}

.btn-whatsapp {
    background-color: #16a34a;
    color: #ffffff;
    border: none;
    transition: all 0.25s ease;
}

.btn-whatsapp:hover {
    background-color: #15803d;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.lang-dropdown .dropdown-toggle::after {
    margin-left: 0.35rem;
    vertical-align: middle;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    background: #062f3e url('../images/hero-banner-bg.png') right center / cover no-repeat;
    min-height: 430px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(6, 47, 62, 0.88) 0%, rgba(6, 47, 62, 0.45) 55%, rgba(6, 47, 62, 0.15) 100%);
    z-index: 1;
}

.hero-badge {
    color: #4ade80;
    font-size: 11px;
    letter-spacing: 1.5px;
}

.hero-title {
    font-size: 2.15rem;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 2.65rem;
    }
}

.hero-desc {
    font-size: 13.5px;
    line-height: 1.5;
    max-width: 440px;
    color: rgba(255, 255, 255, 0.85);
}

.btn-quote {
    background-color: #3cd070;
    color: #ffffff;
    font-weight: 700;
    border: none;
    transition: all 0.25s ease;
}

.btn-quote:hover {
    background-color: #2eb85c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(60, 208, 112, 0.4);
}

.btn-pickup {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    transition: all 0.25s ease;
}

.btn-pickup:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   STATS METRICS BAR
   ========================================================================== */
.stats-section {
    margin-top: -38px;
    position: relative;
    z-index: 10;
}

.stats-card {
    background-color: #ffffff;
    border-color: #edf2f7 !important;
}

.stat-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid #edf2f7;
    }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.btn-forest {
    background-color: #0c5832;
    color: #ffffff;
    border: none;
    transition: all 0.25s ease;
}

.btn-forest:hover {
    background-color: #094727;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 88, 50, 0.25);
}

.service-card {
    background: #ffffff;
    border: 1px solid #edf2f7 !important;
    border-radius: 12px !important;
    transition: all 0.25s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border-color: #bbf7d0 !important;
}

.service-img-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #ffffff;
}

.service-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */
.why-card {
    background: transparent;
    padding: 0.25rem 0;
}

.why-icon i {
    color: #16a34a;
}

/* ==========================================================================
   PROCESS SECTION
   ========================================================================== */
.process-step-item {
    text-align: left;
}

.process-img-box {
    height: 100px;
    background-color: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.process-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #064e3b;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.process-arrow {
    align-self: flex-start;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   MATERIALS WE PROCESS
   ========================================================================== */
.material-item {
    transition: transform 0.2s ease;
}

.material-item:hover {
    transform: translateX(3px);
}

.mat-icon {
    width: 24px;
    text-align: center;
}

/* ==========================================================================
   COMPLIANCE SECTION
   ========================================================================== */
.compliance-section {
    background: linear-gradient(135deg, #021e10 0%, #05331a 45%, #084323 100%);
    position: relative;
    overflow: hidden;
}

.btn-lime {
    background-color: #4ade80;
    color: #052e16;
    font-weight: 700;
    border: none;
    transition: all 0.25s ease;
}

.btn-lime:hover {
    background-color: #22c55e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(74, 222, 128, 0.4);
}

.cert-frame {
    width: 120px;
    background: #ffffff;
    border-radius: 6px;
    padding: 3px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease;
}

.cert-frame:hover {
    transform: scale(1.03);
}

.cert-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.eco-globe-bg {
    pointer-events: none;
    z-index: 1;
}

.eco-globe-img {
    height: 100%;
    max-height: 290px;
    width: auto;
    display: block;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 100%);
}

/* ==========================================================================
   ABOUT US
   ========================================================================== */
.about-factory-box {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}

.factory-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   OUR VALUES
   ========================================================================== */
@media (min-width: 768px) {
    .border-end-md {
        border-right: 1px solid #dce7df !important;
    }
}

/* ==========================================================================
   PARTNERS
   ========================================================================== */
.partner-logo-item {
    opacity: 0.85;
    transition: all 0.2s ease;
}

.partner-logo-item:hover {
    opacity: 1;
}

/* ==========================================================================
   PRE-FOOTER CTA
   ========================================================================== */
.page-banner {
    background: linear-gradient(135deg, #021a0e 0%, #0d3d24 55%, #0b5730 100%);
    min-height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.banner-title {
    font-size: 2rem;
    letter-spacing: -0.5px;
}

@media (min-width: 992px) {
    .banner-title {
        font-size: 2.4rem;
    }
}

.prefooter-section {
    background: linear-gradient(135deg, #021a0e 0%, #042916 45%, #06381e 100%);
    position: relative;
}

.btn-contact {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.25s ease;
}

.btn-contact:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: #ffffff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    border-color: #f1f5f9 !important;
}

.footer-links .nav-link {
    color: #475569;
    font-size: 13.5px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-title {
    letter-spacing: 0.3px;
}

.footer-about {
    line-height: 1.6;
}

.footer-links .nav-link:hover {
    color: var(--primary-green);
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #0f5132;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.social-icon:hover {
    background-color: #16a34a;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Modals */
.btn-quote-modal,
.btn-pickup-modal {
    background-color: #16a34a;
    color: #ffffff;
    border: none;
}

.btn-quote-modal:hover,
.btn-pickup-modal:hover {
    background-color: #15803d;
    color: #ffffff;
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.preloader-logo {
    width: 150px;
    height: auto;
    animation: preloaderFloat 1.6s ease-in-out infinite;
}

.preloader-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: preloaderSpin 0.8s linear infinite;
}

@keyframes preloaderSpin {
    to { transform: rotate(360deg); }
}

@keyframes preloaderFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ==========================================================================
   DYNAMIC UI INTERACTIONS
   ========================================================================== */
.site-navbar.scrolled {
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

#heroRotating {
    transition: opacity 0.25s ease;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-green);
    color: #ffffff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s ease;
    z-index: 1050;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.material-filter {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}

.filter-btn {
    border: 1px solid var(--border-light);
    background-color: #ffffff;
    color: var(--text-secondary);
    border-radius: 50rem;
    padding: 0.35rem 1rem;
    font-size: 12.5px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.filter-btn.active {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: #ffffff;
}

.material-item {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.material-item.filter-hidden {
    display: none;
}

.partners-logo-row {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.partners-logo-row::-webkit-scrollbar {
    display: none;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonial-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #edf2f7 !important;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07) !important;
}

.testimonial-text {
    line-height: 1.6;
}

.testimonial-avatar {
    width: 38px;
    height: 38px;
    font-size: 14px;
    flex-shrink: 0;
}

.testimonial-control {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.testimonial-control:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: #ffffff;
}

.testimonial-indicator {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #d1d5db;
    transition: all 0.25s ease;
}

.testimonial-indicator.active {
    background-color: var(--primary-green);
    width: 22px;
    border-radius: 50rem;
}

.testimonials-section .carousel-item {
    padding: 6px 0;
}

.testimonials-section .carousel,
.testimonials-section .carousel-inner {
    overflow: visible;
}

/* ==========================================================================
   RESPONSIVE ENHANCEMENTS
   ========================================================================== */

/* Logo scales down on small screens */
.site-logo {
    height: 64px;
    width: auto;
}

@media (min-width: 992px) {
    .site-logo {
        height: 100px;
    }
}

/* Navbar tighter on mobile */
@media (max-width: 991.98px) {
    .site-navbar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .site-navbar.scrolled {
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
    }

    .nav-actions {
        margin-top: 0.75rem;
        width: 100%;
        justify-content: space-between;
    }
}

/* Hero on phones */
@media (max-width: 575.98px) {
    .hero-section {
        min-height: 400px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(6, 47, 62, 0.82) 0%, rgba(6, 47, 62, 0.72) 55%, rgba(6, 47, 62, 0.65) 100%);
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-desc {
        font-size: 13px;
    }

    .hero-content {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }

    .hero-cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 359.98px) {
    .hero-title {
        font-size: 1.3rem;
    }
}

/* Stats card on phones */
@media (max-width: 575.98px) {
    .stats-section {
        margin-top: -18px;
    }

    .stats-card {
        padding: 0.75rem !important;
    }

    .stat-icon-wrap {
        width: 36px;
        height: 36px;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 11px !important;
    }
}

/* Generic typography on phones */
@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.45rem;
    }

    .page-banner {
        min-height: 150px;
        padding: 1.5rem 0;
    }

    .banner-title {
        font-size: 1.5rem;
    }
}

/* Process steps on small screens */
@media (max-width: 575.98px) {
    .process-img-box {
        height: 120px;
    }

    .process-step-title {
        font-size: 12.5px !important;
    }
}

/* Certificates on small screens */
@media (max-width: 575.98px) {
    .cert-frame {
        width: 96px;
    }

    .compliance-section .row .col-md-5,
    .compliance-section .row .col-md-6 {
        justify-content: center !important;
    }
}

/* Footer on small screens */
@media (max-width: 575.98px) {
    .footer-links {
        justify-content: flex-start !important;
        flex-wrap: wrap;
        gap: 0.25rem 0.75rem;
    }

    .social-icons {
        margin-top: 0.5rem;
    }
}

/* Contact prefooter on phones */
@media (max-width: 767.98px) {
    .prefooter-cta-buttons {
        max-width: 100% !important;
    }

    .contact-text {
        font-size: 12.5px !important;
    }
}

/* Scroll padding so anchored sections sit below sticky navbar */
html {
    scroll-padding-top: 90px;
}

@media (min-width: 992px) {
    html {
        scroll-padding-top: 110px;
    }
}

/* Keep images & media from overflowing their containers */
video,
img,
svg {
    max-width: 100%;
}

/* Tables scroll horizontally on small screens (if paginated lists appear) */
.table-responsive {
    overflow-x: auto;
}
