/*
 * main.css — Custom styles untuk PT. Zima Mitra Jaya
 * Semua class yang tidak tersedia di Tailwind CDN didefinisikan di sini.
 */

/* ══════════════════════════════════════════════
 * FONTS
 * ══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Space+Mono:wght@400;700&display=swap');

/* ══════════════════════════════════════════════
 * ROOT / CSS VARIABLES
 * ══════════════════════════════════════════════ */
:root {
    --zima-50: #f0fdf4;
    --zima-100: #dcfce7;
    --zima-200: #bbf7d0;
    --zima-300: #86efac;
    --zima-400: #4ade80;
    --zima-500: #22c55e;
    --zima-600: #16a34a;
    --zima-700: #15803d;
    --zima-800: #14532d;
    --zima-900: #0a2e14;

    --surface: #ffffff;
    --surface-soft: #f7faf8;
    --surface-muted: #eef4f0;

    --txt-primary: #111a14;
    --txt-secondary: #3d4f42;
    --txt-muted: #6b7e70;
    --txt-faint: #94a89a;

    --edge: #d8e4dc;
    --edge-light: #e8f0eb;

    --shadow-sm: 0 1px 3px rgba(10, 46, 20, .06);
    --shadow-md: 0 4px 20px rgba(10, 46, 20, .08);
    --shadow-lg: 0 12px 40px rgba(10, 46, 20, .1);
}

/* ══════════════════════════════════════════════
 * SCROLLBAR
 * ══════════════════════════════════════════════ */
html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--surface-soft);
}

::-webkit-scrollbar-thumb {
    background: var(--zima-300);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--zima-500);
}

/* ══════════════════════════════════════════════
 * NAVIGATION LINKS
 * ══════════════════════════════════════════════ */
.nav-link-lite {
    position: relative;
    color: var(--txt-muted);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link-lite::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--zima-500);
    transition: width 0.25s ease;
}

.nav-link-lite:hover,
.nav-link-lite.active {
    color: var(--zima-600);
}

.nav-link-lite:hover::after,
.nav-link-lite.active::after {
    width: 100%;
}

.nav-mobile-link-lite {
    display: block;
    padding: 10px 4px;
    color: var(--txt-secondary);
    font-size: 0.9rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.nav-mobile-link-lite:hover {
    color: var(--zima-600);
    padding-left: 12px;
}

/* ══════════════════════════════════════════════
 * SECTION LABEL
 * ══════════════════════════════════════════════ */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--zima-600);
}

.section-label::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--zima-500);
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════
 * FADE-UP ANIMATION
 * ══════════════════════════════════════════════ */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up-delay-1 {
    transition-delay: 0.10s;
}

.fade-up-delay-2 {
    transition-delay: 0.20s;
}

.fade-up-delay-3 {
    transition-delay: 0.30s;
}

.fade-up-delay-4 {
    transition-delay: 0.40s;
}

/* ══════════════════════════════════════════════
 * HERO BACKGROUND
 * ══════════════════════════════════════════════ */
.hero-bg {
    background: linear-gradient(135deg, var(--zima-900) 0%, var(--zima-800) 50%, var(--zima-700) 100%);
}

.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
    background-size: 32px 32px;
}

/* ══════════════════════════════════════════════
 * STATS CARD (Hero)
 * ══════════════════════════════════════════════ */
.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    text-align: center;
}

/* ══════════════════════════════════════════════
 * PRODUCT VISUAL (placeholder area)
 * ══════════════════════════════════════════════ */
.product-visual {
    background: linear-gradient(135deg, var(--zima-50), var(--zima-100));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ══════════════════════════════════════════════
 * BUTTON GLOW
 * ══════════════════════════════════════════════ */
.btn-glow {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    transition: box-shadow 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.15);
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════════
 * PRODUCT CARD
 * ══════════════════════════════════════════════ */
.product-card {
    background: #ffffff;
    border: 1px solid var(--edge-light);
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--zima-300);
    transform: translateY(-4px);
}

.product-card-header {
    background: var(--zima-800);
    padding: 0.6rem 1rem;
    text-align: center;
}

.product-card-header h4 {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.product-card-body {
    padding: 1rem;
    text-align: center;
    background-color: var(--surface-soft);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.material-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--zima-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

/* ══════════════════════════════════════════════
 * TICKER / MARQUEE
 * ══════════════════════════════════════════════ */
.ticker-wrapper {
    overflow: hidden;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-inner {
    display: flex;
    white-space: nowrap;
    animation: ticker 28s linear infinite;
}

.ticker-inner:hover {
    animation-play-state: paused;
}


/* ══════════════════════════════════════════════
 * TOAST NOTIFICATION
 * ══════════════════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: var(--zima-800);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transform: translateY(80px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
    pointer-events: none;
    max-width: 280px;
    line-height: 1.4;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.warn {
    background: #92400e;
}

.toast.success {
    background: var(--zima-800);
}

/* ══════════════════════════════════════════════
 * CONTACT FORM
 * ══════════════════════════════════════════════ */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--edge-light);
    border-radius: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    color: var(--txt-primary);
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    border-color: var(--zima-400);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-input::placeholder {
    color: var(--txt-faint);
}

/* ══════════════════════════════════════════════
 * FOOTER
 * ══════════════════════════════════════════════ */
.footer-link {
    color: var(--txt-muted);
    font-size: 0.875rem;
    transition: color 0.2s ease;
    display: block;
    margin-bottom: 4px;
}

.footer-link:hover {
    color: var(--zima-600);
}

/* ══════════════════════════════════════════════
 * VALUE CARDS
 * ══════════════════════════════════════════════ */
.value-card {
    background: #ffffff;
    border: 1px solid var(--edge-light);
    border-radius: 1rem;
    padding: 2rem;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.value-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--zima-300);
    transform: translateY(-4px);
}

.value-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--zima-50);
    border: 1px solid var(--zima-100);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* ══════════════════════════════════════════════
 * RESPONSIVE ADJUSTMENTS
 * ══════════════════════════════════════════════ */
@media (max-width: 640px) {
    .wa-fab {
        bottom: 20px;
        left: 20px;
        width: 46px;
        height: 46px;
    }

    .toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }

    .hero-bg h1 {
        font-size: 2.25rem;
    }

    .stat-card {
        padding: 1rem 0.75rem;
    }
}

/* ══════════════════════════════════════════════
 * PRINT
 * ══════════════════════════════════════════════ */
@media print {

    .wa-fab,
    #toast,
    #nav-toggle {
        display: none !important;
    }

    .fade-up {
        opacity: 1 !important;
        transform: none !important;
    }
}