/* ===== CSS Variables (index2 green theme) ===== */
    :root {
        --primary-green: #1b7d4e;
        --primary-dark: #155f3a;
        --yellow-accent: #fbbf24;
        --dark-bg: #1a1a1a;
        --light-bg: #f8fafc;
        --text-dark: #2d3748;
        --text-light: #718096;
        --white: #ffffff;
        --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

        /* index1 extras for glass cards on white */
        --card-bg: rgba(0, 0, 0, 0.02);
        --glass-border: rgba(0, 0, 0, 0.06);
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Vazirmatn', sans-serif;
    }

    body {
        background-color: var(--white);
        color: var(--text-dark);
        line-height: 1.6;
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1.5rem;
    }

    /* ===== Header — Modern Glass ===== */
    header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        transition: all 0.3s ease;
    }

    header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--primary-green), var(--yellow-accent), transparent);
        opacity: 0.5;
    }

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1.5rem;
        padding: 0.75rem 1.5rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Brand / Logo */
    .brand-wrap {
        display: flex;
        align-items: center;
        gap: 0.7rem;
        flex-shrink: 0;
        text-decoration: none;
    }

    .brand-icon {
        width: 42px;
        height: 42px;
        background: linear-gradient(135deg, var(--primary-green), var(--primary-dark));
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 1.3rem;
        box-shadow: 0 4px 12px rgba(27, 125, 78, 0.25);
        transition: transform 0.3s;
    }

    .brand-wrap:hover .brand-icon {
        transform: rotate(-10deg) scale(1.05);
    }

    .brand-text {
        display: flex;
        flex-direction: column;
    }

    .brand-text h1 {
        color: var(--primary-dark);
        font-size: 1.25rem;
        font-weight: 800;
        line-height: 1.2;
        letter-spacing: -0.3px;
    }

    .brand-text span {
        font-size: 0.65rem;
        color: var(--text-light);
        letter-spacing: 1.5px;
        text-transform: uppercase;
        font-weight: 500;
    }

    /* Navigation */
    nav {
        display: flex;
        align-items: center;
    }

    nav ul {
        display: flex;
        list-style: none;
        gap: 0.25rem;
    }

    nav a.nav-link {
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 500;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        transition: all 0.25s ease;
        position: relative;
    }

    nav a.nav-link:hover {
        color: var(--primary-green);
        background: rgba(27, 125, 78, 0.06);
    }

    nav a.nav-link::after {
        content: '';
        position: absolute;
        bottom: 2px;
        right: 50%;
        width: 0;
        height: 2px;
        background: var(--primary-green);
        transition: all 0.3s ease;
        transform: translateX(50%);
        border-radius: 2px;
    }

    nav a.nav-link:hover::after {
        width: 60%;
    }

    /* Search Bar */
    .header-search {
        display: flex;
        align-items: center;
        background: rgba(0, 0, 0, 0.04);
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 50px;
        padding: 0.35rem 0.35rem 0.35rem 1rem;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .header-search:focus-within {
        border-color: var(--primary-green);
        background: rgba(27, 125, 78, 0.04);
        box-shadow: 0 0 0 3px rgba(27, 125, 78, 0.08);
    }

    .header-search input {
        border: none;
        background: transparent;
        outline: none;
        font-family: 'Vazirmatn', sans-serif;
        font-size: 0.85rem;
        color: var(--text-dark);
        width: 140px;
        transition: width 0.3s;
    }

    .header-search input::placeholder {
        color: #aaa;
    }

    .header-search input:focus {
        width: 180px;
    }

    .header-search button {
        background: var(--primary-green);
        border: none;
        color: #fff;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
        font-size: 0.85rem;
    }

    .header-search button:hover {
        background: var(--primary-dark);
        transform: scale(1.05);
    }

    /* Header CTA */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex-shrink: 0;
    }

    .whatsapp-btn {
        background: linear-gradient(135deg, #25D366, #128C7E);
        color: #fff !important;
        padding: 0.5rem 1.2rem;
        border-radius: 50px;
        font-weight: 700;
        font-size: 0.85rem;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    }

    .whatsapp-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
    }

    /* Mobile Toggle */
        .header-icon-link { color: var(--text-dark); font-size: 1.2rem; text-decoration: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s; position: relative; flex-shrink: 0; }
        .header-icon-link:hover { background: rgba(27,125,78,0.08); color: var(--primary-green); }
        .cart-badge { position: absolute; top: -2px; right: -2px; background: #ef4444; color: #fff; font-size: 0.6rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
    .mobile-toggle {
        display: none;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-dark);
        cursor: pointer;
        padding: 0.25rem;
        transition: color 0.3s;
    }

    .mobile-toggle:hover {
        color: var(--primary-green);
    }

    /* ===== Footer (from index3) ===== */
    footer {
        background: #020617;
        color: #cbd5e1;
        border-top: 2px solid var(--primary-green);
    }

    .footer-main {
        padding: 2.5rem 0 1.5rem;
    }

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

    @media (min-width: 768px) {
        .footer-grid {
            grid-template-columns: 2fr 1fr 1fr 2fr;
        }
    }

    .footer-brand .logo-wrap {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .footer-brand .logo-wrap .icon-circle {
        width: 44px;
        height: 44px;
        background: var(--yellow-accent);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #1a1a1a;
        font-size: 1.3rem;
    }

    .footer-brand .logo-wrap h2 {
        font-size: 1.3rem;
        font-weight: 700;
        color: #fff;
    }

    .footer-brand p {
        font-size: 0.9rem;
        color: #94a3b8;
        line-height: 1.8;
        margin-bottom: 1.25rem;
    }

    .social-links {
        display: flex;
        gap: 0.75rem;
    }

    .social-links a {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #1e293b;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
        text-decoration: none;
        transition: all 0.3s;
    }

    .social-links a:hover {
        background: var(--yellow-accent);
        color: #1a1a1a;
    }

    .footer-col h4 {
        color: #fff;
        font-size: 1.05rem;
        font-weight: 700;
        margin-bottom: 1.25rem;
        position: relative;
        padding-bottom: 0.6rem;
    }

    .footer-col h4::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 28px;
        height: 2px;
        background: var(--yellow-accent);
    }

    .footer-col ul {
        list-style: none;
    }

    .footer-col ul li {
        margin-bottom: 0.75rem;
        display: flex;
        align-items: flex-start;
        gap: 0.6rem;
        font-size: 0.9rem;
    }

    .footer-col ul li i {
        color: var(--yellow-accent);
        margin-top: 0.2rem;
        width: 16px;
        text-align: center;
    }

    .footer-col a {
        color: #94a3b8;
        text-decoration: none;
        transition: color 0.3s;
        font-size: 0.9rem;
    }

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

    .footer-col .phones {
        display: flex;
        flex-wrap: wrap;
        gap: 0.3rem 0.8rem;
    }

    .footer-col .phones span {
        color: #94a3b8;
        font-size: 0.9rem;
    }

    .copyright-bar {
        border-top: 1px solid #1e293b;
        padding: 1.25rem 0;
        background: rgba(0, 0, 0, 0.3);
    }

    .copyright-bar .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.8rem;
        color: #64748b;
    }

    @media (min-width: 768px) {
        .copyright-bar .container {
            flex-direction: row;
            justify-content: space-between;
        }
    }

    .copyright-bar .container span b {
        color: #cbd5e1;
        font-weight: 600;
    }

    /* ===== Responsive ===== */
    @media (max-width: 900px) {
        .globe-container {
            flex-direction: column;
        }
        .services-around {
            width: 100%;
            margin-top: 2rem;
        }
        .hero-stats {
            flex: 1;
            min-width: 280px;
        }
        .hero-text h2 {
            font-size: 2.2rem;
        }
        .stat-card .stat-number {
            font-size: 1.8rem;
        }
        .globe-center {
            width: 180px;
            height: 180px;
        }
        .globe-center i {
            font-size: 5rem;
        }
        .why-content h3 {
            font-size: 1.5rem;
        }
    }

    @media (max-width: 768px) {
        .header-content {
            flex-wrap: wrap;
            padding: 0.65rem 1rem;
        }

        .brand-text span {
            display: none;
        }

        nav {
            order: 10;
            width: 100%;
            display: none;
        }

        nav.active {
            display: block;
        }

        nav ul {
            flex-direction: column;
            width: 100%;
            gap: 0.25rem;
            padding: 0.75rem 0;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            margin-top: 0.5rem;
        }

        nav a.nav-link {
            display: block;
            padding: 0.6rem 0.75rem;
            border-radius: 8px;
        }

        nav a.nav-link::after {
            display: none;
        }

        .header-search input {
            width: 100px;
        }

        .header-search input:focus {
            width: 120px;
        }

        .whatsapp-text {
            display: none;
        }

        .whatsapp-btn {
            padding: 0.5rem;
            width: 38px;
            height: 38px;
            justify-content: center;
        }

        .mobile-toggle {
            display: block;
        }
        .hero {
            padding: 3rem 0;
            min-height: 50vh;
            background-attachment: scroll;
        }
        .hero-stats {
            flex: 1;
            min-width: 100%;
        }
        .hero-text h2 {
            font-size: 1.7rem;
        }
        .stat-card {
            padding: 1rem 0.8rem;
        }
        .stat-card .stat-number {
            font-size: 1.5rem;
        }
        .services-around {
            grid-template-columns: repeat(2, 1fr);
        }
        .globe-section h3 {
            font-size: 1.5rem;
        }
        .why-visual .img-card-main {
            height: 200px;
        }
        .why-visual .img-card-side {
            height: 130px;
        }
        .footer-grid {
            gap: 2rem;
        }
    }

/* ===== PWA Install Prompt ===== */
.pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 140%);
    width: min(480px, calc(100% - 2rem));
    z-index: 9999;
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    direction: rtl;
}

.pwa-install-banner[aria-hidden="false"] {
    transform: translate(-50%, 0);
    opacity: 1;
}

.pwa-install-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.pwa-install-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.pwa-install-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(27, 125, 78, 0.25);
}

.pwa-install-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.pwa-install-info strong {
    display: block;
    font-size: 1rem;
    color: var(--text-dark);
}

.pwa-install-info p {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

#pwaInstallButton {
    border: none;
    cursor: pointer;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    background: var(--primary-green);
    color: var(--white);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

#pwaInstallButton:hover {
    background: var(--primary-dark);
}

#pwaInstallButton[disabled] {
    opacity: 0.6;
    cursor: default;
}

#pwaInstallDismiss {
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1;
}

#pwaInstallDismiss:hover {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
    .pwa-install-card {
        flex-direction: column;
        align-items: stretch;
    }
    .pwa-install-actions {
        justify-content: space-between;
    }
}
