/* 
   ZINOWA TECH — PREMIUM DESIGN SYSTEM
   Agency-Grade Corporate UI
*/

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

:root {
    /* Color Palette */
    --primary: #0B6E4F;      /* Deep Green */
    --secondary: #1A1A1A;    /* Dark Charcoal */
    --accent: #A3E635;       /* Soft Lime */
    --bg-light: #F9FAFB;     /* Off White */
    --text-main: #333333;    /* Dark Grey */
    --text-muted: #6B7280;
    --pure-white: #FFFFFF;
    
    /* Glassmorphism & Effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 50px -10px rgba(11, 110, 79, 0.1);
    
    /* Typography */
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --radius-lg: 16px;
    --radius-md: 12px;
    --container-width: 1280px;
    --nav-height: 80px;
    
    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(11, 110, 79, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(11, 110, 79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(11, 110, 79, 0); }
}

@keyframes shine {
    from { left: -100%; }
    to { left: 100%; }
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Layout Helpers */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: clamp(60px, 10vh, 120px) 0;
}

/* Responsive Grid Helper */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

/* Fluid Grid Utility — Prevents fixed-width overflow on mobile */
.grid-fluid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 2rem;
}

/* Custom Grid Ratios with Responsive Overrides */
.grid-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-about {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

@media (max-width: 992px) {
    .grid-hero, .grid-about {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Aspect Ratio Utilities */
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-portrait { aspect-ratio: 3 / 4; }

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

@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Typography Utilities */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Global Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--pure-white);
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-premium);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--pure-white);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--secondary);
}

.btn-accent:hover {
    filter: brightness(1.1);
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary);
}

/* Premium Glassmorphism */
.glass-premium {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

/* Hover Shine Effect */
.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::after {
    content: '';
    position: absolute;
    top: 0; height: 100%; width: 50px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-25deg);
    left: -100%;
    transition: 0.75s;
}

.hover-shine:hover::after {
    left: 125%;
}

/* Interactive Elements */
.floating {
    animation: float 6s ease-in-out infinite;
}

.pulse-target {
    animation: pulse-glow 2s infinite;
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

/* Default state: Transparent background, white text (good for dark branded hero sections) */
.navbar:not(.scrolled) .logo,
.navbar:not(.scrolled) .nav-links a {
    color: var(--pure-white) !important;
}

/* State for pages with light backgrounds (Home, About, Services, Blog, Portfolio) */
.navbar.nav-dark-text:not(.scrolled) .logo,
.navbar.nav-dark-text:not(.scrolled) .nav-links a {
    color: var(--secondary) !important;
}

/* Scrolled state: White background, dark text (Global consistency) */
.navbar.scrolled {
    background: var(--pure-white);
    height: 70px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a {
    color: var(--secondary) !important;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
    color: inherit; /* Matches navbar state */
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: inherit; /* Matches navbar state */
}

.nav-links a:hover {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: 0.3s;
}

/* Color adaptation for toggle */
.navbar.scrolled .mobile-toggle span,
.navbar.nav-dark-text .mobile-toggle span {
    background: var(--secondary);
}

.navbar:not(.scrolled):not(.nav-dark-text) .mobile-toggle span {
    background: white;
}

@media (max-width: 768px) {
    .navbar {
        background: var(--pure-white) !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        height: 70px !important;
    }

    .navbar .logo, 
    .navbar .nav-links a {
        color: var(--secondary) !important;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle span {
        background: var(--secondary) !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--pure-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        transform: translateX(100%);
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.5rem;
        color: var(--secondary) !important;
    }

    .nav-content .btn {
        display: none; /* Hide in main nav */
    }

    /* Fixed logo size on mobile */
    .logo {
        font-size: 1.3rem;
    }
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: var(--pure-white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: #9CA3AF;
    margin-bottom: 2rem;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #9CA3AF;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #9CA3AF;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: #6B7280;
    font-size: 0.9rem;
}

/* Floating Elements */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    color: var(--pure-white);
    animation: loaderPulse 2.5s infinite;
}

.loader-logo span {
    color: var(--primary);
}

@keyframes loaderPulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

/* WhatsApp Pulse */
.whatsapp-float {
    animation: pulse-glow 2s infinite;
}

/* Lead Capture Popup */
.lead-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.lead-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--pure-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(50px);
    transition: var(--transition-smooth);
}

.lead-popup.active .popup-content {
    transform: translateY(0);
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    background: #f3f4f6;
    border-radius: 50%;
    z-index: 10;
    transition: var(--transition-fast);
}

.close-popup:hover {
    background: #e5e7eb;
    color: var(--secondary);
}

/* AI Chatbot */
.chat-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-premium);
    z-index: 1500;
    transition: var(--transition-smooth);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 350px;
    height: 500px;
    background: var(--pure-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: #f9fafb;
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    padding: 0.8rem;
    outline: none;
}

.message {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    max-width: 80%;
}

.msg-bot {
    background: #e5e7eb;
    color: var(--secondary);
    align-self: flex-start;
}

.msg-user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

/* Typing Indicator */
.typing {
    display: flex;
    gap: 5px;
    padding: 10px;
    background: #e5e7eb;
    border-radius: var(--radius-md);
    width: fit-content;
    margin-bottom: 1rem;
}

.typing span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

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

/* Success State */
.success-msg {
    color: var(--primary);
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    background: rgba(11, 110, 79, 0.1);
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

/* ═══════ STATS COUNTER BAR ═══════ */
.stats-counter-section {
    position: relative;
    z-index: 10;
    margin-top: -50px;
    padding: 0 0 60px;
}

.stats-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0;
    background: var(--pure-white);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(11, 110, 79, 0.08);
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.stat-item {
    text-align: center;
    padding: 0 1.5rem;
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(11, 110, 79, 0.1), rgba(163, 230, 53, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
    transition: var(--transition-smooth);
}

.stat-item:hover .stat-icon {
    transform: scale(1.15) rotate(5deg);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.stat-info {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(11, 110, 79, 0.2), transparent);
}

/* ═══════ PROCESS STEPS ═══════ */
.process-section {
    background: var(--pure-white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
    transition: var(--transition-smooth);
}

.process-step:hover {
    transform: translateY(-8px);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: rgba(11, 110, 79, 0.06);
    line-height: 1;
    margin-bottom: -1rem;
    position: relative;
    z-index: 0;
}

.step-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), #0d8a63);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    position: relative;
    z-index: 1;
    box-shadow: 0 12px 30px -8px rgba(11, 110, 79, 0.4);
    transition: var(--transition-smooth);
}

.process-step:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 16px 40px -8px rgba(11, 110, 79, 0.5);
}

.process-step h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--secondary);
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-connector {
    position: absolute;
    top: 50%;
    right: -20px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 5;
}

.step-connector::after {
    content: '';
    position: absolute;
    right: -3px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--accent);
    border-top: 2px solid var(--accent);
    transform: rotate(45deg);
}

/* ═══════ TESTIMONIAL CAROUSEL ═══════ */
.testimonial-section {
    overflow: hidden;
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: 100%;
    padding: 3rem;
    box-sizing: border-box;
}

.testimonial-card > div:first-child {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-stars {
    color: #F59E0B;
    font-size: 1.4rem;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -15px;
    font-size: 5rem;
    color: rgba(11, 110, 79, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-heading);
    flex-shrink: 0;
}

.testimonial-author h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 2px;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(11, 110, 79, 0.2);
    background: var(--pure-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary);
    transition: var(--transition-fast);
}

.testimonial-arrow:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(11, 110, 79, 0.2);
    cursor: pointer;
    transition: var(--transition-fast);
}

.testimonial-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 5px;
}


/* Most specific overrides moved here */

/* ═══════ RESPONSIVE: New Sections ═══════ */
@media (max-width: 1024px) {
    .stats-bar {
        grid-template-columns: 1fr auto 1fr;
        gap: 2rem;
        padding: 2.5rem 2rem;
    }

    .stat-divider:nth-child(4) {
        display: none;
    }

    .stat-item:nth-child(7) {
        grid-column: 1 / -1;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .step-connector {
        display: none;
    }
}

@media (max-width: 768px) {
    .stats-counter-section {
        margin-top: -30px;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .stat-divider {
        display: none;
    }

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

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-step {
        padding: 1.5rem;
        background: var(--bg-light);
        border-radius: var(--radius-lg);
    }

    .step-number {
        font-size: 3rem;
    }

    .step-icon {
        width: 60px;
        height: 60px;
    }

    .testimonial-card {
        padding: 2rem 1rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .testimonial-text::before {
        font-size: 3rem;
        top: -10px;
        left: -5px;
    }

    .brand-logo {
        padding: 0 2rem;
    }

    .brand-logo span {
        font-size: 1.1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ═══════ MOBILE: Final Overrides (Ensures precedence) ═══════ */
@media (max-width: 500px) {
    .chat-window {
        bottom: 0px;
        left: 0;
        right: 0;
        width: 100%;
        height: 85vh;
        border-radius: 20px 20px 0 0;
    }

    .chat-body {
        padding: 1rem;
    }

    .popup-content {
        padding: 2rem 1.5rem;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .close-popup {
        top: 1rem !important;
        right: 1rem !important;
        width: 44px !important;
        height: 44px !important;
    }

    .whatsapp-float, .chat-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
    }

    .chat-btn { left: 20px; }
    .whatsapp-float { right: 20px; }

    /* Fix stats bar overlap on mobile */
    .stats-counter-section {
        margin-top: -40px;
        padding-bottom: 40px;
    }

    .stats-bar {
        grid-template-columns: 1fr !important;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem 0;
        border-bottom: 1px solid rgba(11, 110, 79, 0.1) !important;
    }

    .stat-item:last-child {
        border-bottom: none !important;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-content .btn {
        display: none !important;
    }
}
