/*
 * SlightOra Modern Theme
 * Green-forward redesign layer applied atop legacy structure.
 */

:root {
    --primary-color: #2f9d62;
    --primary-light: #56c58c;
    --primary-dark: #1e6f45;
    --accent-color: #f3b142;
    --neutral-900: #16a34a;
    --neutral-700: #334155;
    --neutral-500: #64748b;
    
#preloader {
    transition: opacity 0.32s ease;
}

#preloader[data-hidden="true"] {
    display: none !important;
}
    --neutral-300: #cbd5f5;
    --neutral-200: #e2e8f0;
    --neutral-100: #f8fafc;
    --surface-base: #ffffff;
    --surface-alt: #f1f5f9;
    --border-soft: rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 22px 56px rgba(15, 23, 42, 0.16);
    --gradient-primary: linear-gradient(135deg, #2f9d62 0%, #1e6f45 100%);
    --gradient-secondary: linear-gradient(120deg, #1e6f45 0%, #020b04 100%);
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: var(--neutral-100);
    color: var(--neutral-900);
    line-height: 1.7;
    letter-spacing: 0.01em;
   
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    color: var(--neutral-900);
}

p {
    color: #333436;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

a:hover,
a:focus {
    color: var(--primary-color);
}

/* Buttons */
.btn,
.button {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.7rem 1.8rem;
    letter-spacing: 0.02em;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary,
.button--primary {
    background: var(--gradient-primary);
    border: none;
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus,
.button--primary:hover,
.button--primary:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #ffffff;
}

.btn-outline-primary {
    border: 2px solid var(--primary-light);
    color: var(--primary-dark);
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--primary-light);
    color: #0f172a;
    border-color: transparent;
}

/* Elevation helpers */
.surface-card {
    background: var(--surface-base);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.surface-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

/* Top bar */
.site-topbar {
    background: var(--gradient-secondary);
    color: #e2f5eb;
    font-size: 0.9rem;
    padding: 0.65rem 0;
}

.site-topbar__link {
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.4rem;
}

.site-topbar__link:hover {
    color: var(--primary-light);
}

.site-topbar__social {
    display: inline-flex;
    gap: 0.4rem;
}

.site-topbar__social a {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transition: background 0.3s ease, transform 0.3s ease;
}

.site-topbar__social a:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

/* Header & navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1090;
    backdrop-filter: blur(12px);
    background: rgba(248, 250, 252, 0.92);
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
        margin: 0; /* Ensure body has zero margin to avoid unexpected gaps with the new layout */
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

.navbar-modern {
    padding: 0.85rem 0;
}

.navbar-modern .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: var(--neutral-900);
}

.navbar-modern .navbar-brand img {
    height: 46px;
    width: auto;
}

.navbar-modern .navbar-nav {
    gap: 0.4rem;
}

.navbar-modern .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--neutral-700);
    padding: 0.55rem 1rem;
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease;
}

.navbar-modern .nav-link:hover,
.navbar-modern .nav-link:focus {
    color: var(--primary-dark);
    background: rgba(47, 157, 98, 0.12);
}

.navbar-modern .nav-link.active {
    background: rgba(47, 157, 98, 0.16);
    color: var(--primary-dark);
    font-weight: 600;
}

.navbar-modern__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-modern__icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(47, 157, 98, 0.18);
    color: var(--primary-dark);
    background: rgba(47, 157, 98, 0.08);
    position: relative;
    transition: background 0.25s ease, transform 0.25s ease;
}

.navbar-modern__icon-btn:hover {
    background: rgba(47, 157, 98, 0.16);
    transform: translateY(-2px);
}

.navbar-modern__badge {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 22px;
    padding: 0.1rem 0.4rem;
    font-size: 0.72rem;
    border-radius: 999px;
    background: var(--accent-color);
    color: #0f172a;
    font-weight: 600;
}

.auth-cta-group .btn {
    padding: 0.45rem 1.2rem;
    font-size: 0.9rem;
}

/* Hero section */
.hero-section {
    background: radial-gradient(circle at 0% 0%, rgba(86, 197, 140, 0.18), transparent 60%),
                radial-gradient(circle at 100% 0%, rgba(30, 111, 69, 0.22), transparent 50%),
                var(--surface-base);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(47, 157, 98, 0.12);
    position: relative;
}

.hero-card__title {
    font-size: clamp(2.4rem, 3vw + 1rem, 3.4rem);
    margin-bottom: 1.5rem;
    color: var(--neutral-900);
}

.hero-card__subtitle {
    font-size: 1.1rem;
    color: var(--neutral-700);
    max-width: 600px;
}

.hero-card__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Section utilities */
.section-shell {
    padding: 4.5rem 0;
}

.section-shell__header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-shell__subtitle {
    color: var(--neutral-500);
    max-width: 640px;
    margin: 0.75rem auto 0;
}

/* Product cards */
.product-card {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: var(--surface-base);
    box-shadow: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-sm);
}

.product-img {
    border-radius: 18px 18px 0 0;
    overflow: hidden;
}

.product-img img {
    transition: transform 0.35s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-price {
    font-weight: 700;
    color: var(--primary-dark);
}

/* Footer */
.footer-modern {
    background: linear-gradient(160deg, #06130a 0%, #0f1f11 100%);
    color: rgba(236, 253, 245, 0.86);
    padding: 4rem 0 2rem;
}

.footer-modern a {
    color: inherit;
}

.footer-modern__title {
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
    color: #67f3a5;
}

.footer-modern__link {
    display: block;
    padding: 0.35rem 0;
    color: rgba(236, 253, 245, 0.75);
}

.footer-modern__link:hover {
    color: #ffffff;
}

.footer-modern__bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(236, 253, 245, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-modern__social {
    display: inline-flex;
    gap: 0.5rem;
}

.footer-modern__social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(236, 253, 245, 0.08);
}

.footer-modern__social a:hover {
    background: rgba(236, 253, 245, 0.18);
}

.footer-modern__follow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

/* Floating support */
.floating-support {
    gap: 0.85rem;
}

.floating-btn {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
}

.ai-launcher {
    position: fixed;
    bottom: 14px;
    right: 24px;
    z-index: 1100;
    border-radius: 999px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.ai-panel {
    position: fixed;
    bottom: 16px;
    right: 24px;
    top: 120px;
    width: 380px;
    max-height: calc(100vh - 88px);
    background: var(--surface-base);
    border-radius: 26px 26px 0 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1099;
}

.ai-panel[hidden] {
    display: none !important;
}

.ai-panel__header {
    background: var(--gradient-primary);
    color: #ffffff;
    padding: 0.9rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.ai-panel__close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.ai-panel__body {
    flex: 1;
    position: relative;
}

.ai-panel__body iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Mobile bottom nav */
.mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.mobile-bottom-nav .mb-item {
    color: var(--neutral-500);
}

.mobile-bottom-nav .mb-item.active {
    color: var(--primary-dark);
}

.mobile-bottom-nav .mb-item.active i {
    color: var(--primary-dark);
}

/* Back to top */
.back-to-top {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-sm);
}

.back-to-top:hover {
    background: var(--gradient-secondary);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-modern {
        padding: 0.65rem 0;
    }

    .navbar-modern .navbar-collapse {
        padding: 1.2rem 1rem;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-sm);
        margin-top: 0.75rem;
    }

    .navbar-modern .nav-link {
        padding: 0.6rem 0.85rem;
        border-radius: 12px;
    }

    .navbar-modern__actions {
        flex-direction: column;
        align-items: stretch;
        padding-top: 1rem;
    }

    .hero-card {
        padding: 2.2rem;
    }

    .hero-card__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-modern {
        text-align: center;
    }

    .footer-modern__bottom {
        justify-content: center;
        gap: 1.25rem;
    }

    .footer-modern__follow {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 15px;
    }

    .site-topbar {
        font-size: 0.82rem;
        text-align: center;
    }

    .navbar-modern .navbar-brand img {
        height: 40px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
    }

    .ai-launcher {
        bottom: 82px;
        right: 16px;
        padding: 0.55rem 1.2rem;
    }

    .ai-panel {
        left: 5vw;
        right: 5vw;
        top: 70px;
        width: auto;
        max-height: calc(100vh - 80px);
        border-radius: 24px;
    }
}
