/* ================================================
   PT Logam Gold Mulia Tbk — Corporate Website
   Custom Styles (Tailwind handled via CDN script)
   ================================================ */

/* ================================================
   Animations
   ================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeInDelay 1s ease-out 0.3s forwards;
    opacity: 0;
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   Header
   ================================================ */
#site-header {
    transition: all 0.3s ease;
}

#site-header.scrolled {
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ================================================
   Navigation
   ================================================ */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #d97706, #ca8a04);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

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

/* ================================================
   Buttons
   ================================================ */
button, [type="submit"] {
    cursor: pointer;
}

/* ================================================
   FAQ
   ================================================ */
.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-content {
    max-height: 500px;
}

/* ================================================
   Forms
   ================================================ */
input:focus, textarea:focus, select:focus {
    outline: none;
}

input::placeholder, textarea::placeholder {
    color: #9ca3af;
}

/* ================================================
   Line Clamp
   ================================================ */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================================
   Scrollbar
   ================================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f9fafb;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ================================================
   Selection
   ================================================ */
::selection {
    background: rgba(217, 119, 6, 0.15);
    color: #78350f;
}

/* ================================================
   Print
   ================================================ */
@media print {
    #site-header, #mobile-menu, footer, .scroll-reveal {
        display: none !important;
    }
    body {
        color: #000;
    }
}

/* ================================================
   Reduced Motion
   ================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
