/* ========================================
   GreenVille - Main Stylesheet
   Tema ungu tua / gelap + responsif
   ======================================== */

:root {
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #6d28d9;
    --accent: #c084fc;
    --bg-dark: #0a0612;
    --bg-base: #110a1f;
    --bg-light: #1a0f2e;
    --bg-lighter: #241538;
    --bg-card: #1e1233;
    --bg-white: #2a1a45;
    --text-dark: #f3eeff;
    --text-muted: #b8a4d9;
    --text-light: #8b7aa8;
    --border-color: #3d2963;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(109, 40, 217, 0.2);
    --shadow-lg: 0 16px 48px rgba(109, 40, 217, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
    --font-family: 'Poppins', sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(-45deg, #06040c, #0f081a, #1a0b2e, #12081f, #1e1035);
    background-size: 400% 400%;
    animation: gradientShift 18s ease infinite;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

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

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(109, 40, 217, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ========== Section Title ========== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

/* ========== Navbar ========== */
.navbar {
    background: rgba(17, 10, 31, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.logo-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
}

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

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background-color: rgba(139, 92, 246, 0.15);
}

.nav-link.btn-outline,
.nav-link.btn-primary {
    margin-left: 8px;
}

.nav-link.btn-outline {
    border: 2px solid var(--primary);
    color: var(--accent);
}

.nav-link.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

.nav-link.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border: none;
}

.nav-link.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 3px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ========== Footer ========== */
.footer {
    background: rgba(6, 4, 12, 0.95);
    border-top: 1px solid var(--border-color);
    color: var(--text-dark);
    margin-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem 20px;
}

.footer-brand .logo {
    color: var(--accent);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.85rem;
}

.contact-card p a,
.wa-link {
    color: var(--accent);
    cursor: pointer;
    transition: color var(--transition);
}

.contact-card p a:hover,
.wa-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* WhatsApp seller popup */
.wa-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: waFadeIn 0.2s ease;
}

@keyframes waFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wa-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: waSlideUp 0.25s ease;
}

@keyframes waSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.wa-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
    transition: color var(--transition);
}

.wa-modal-close:hover {
    color: var(--text-dark);
}

.wa-modal h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    padding-right: 2rem;
}

.wa-modal-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.wa-seller-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wa-seller-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-family);
    transition: all var(--transition);
}

.wa-seller-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary);
    transform: translateX(4px);
}

.wa-seller-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.wa-seller-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.wa-seller-info strong {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
}

.wa-seller-info span {
    font-size: 0.85rem;
    color: var(--accent);
}

.wa-seller-arrow {
    color: var(--text-muted);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.wa-seller-btn:hover .wa-seller-arrow {
    color: var(--accent);
}

/* Clickable contact & location cards */
.contact-card-clickable {
    cursor: pointer;
}

a.contact-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.location-link .location-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

.location-link:hover .location-hint {
    color: var(--primary-light);
}

/* Location popup */
.location-modal {
    max-width: 480px;
}

.location-address {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.location-directions {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.location-directions h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.location-directions ol {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.location-directions li {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.location-map-btn {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
@media (max-width: 992px) {
    .section-title {
        font-size: 1.75rem;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

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

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(17, 10, 31, 0.97);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0;
        transform: translateY(-150%);
        opacity: 0;
        transition: all var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link {
        padding: 12px 16px;
    }

    .nav-link.btn-outline,
    .nav-link.btn-primary {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
    }

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

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
