/* ═══════════════════════════════════════════
   RCTC SMART Garden — Custom Styles
   ═══════════════════════════════════════════ */

/* ── Smooth scrolling ── */
html {
    scroll-behavior: smooth;
}

/* ── Selection color ── */
::selection {
    background-color: #f9dace;
    color: #862a1c;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9f0;
}
::-webkit-scrollbar-thumb {
    background: #e0b87e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c99a5c;
}

/* ── Navbar transition ── */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* ── Fade-in on scroll (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ── Mobile menu animation ── */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Nav link hover underline ── */
nav a:not(.inline-flex) {
    position: relative;
}
nav a:not(.inline-flex)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c9462e;
    transition: width 0.3s ease;
    border-radius: 1px;
}
nav a:not(.inline-flex):hover::after {
    width: 100%;
}

/* ── Program card image zoom wrapper ── */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ── Input autofill styling ── */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fdf9f0 inset !important;
    -webkit-text-fill-color: #292524 !important;
}

/* ── Focus visible for accessibility ── */
:focus-visible {
    outline: 2px solid #c9462e;
    outline-offset: 2px;
}

/* ── Print styles ── */
@media print {
    #navbar, #mobileMenu, .reveal { display: none !important; }
    body { background: white !important; color: black !important; }
    section { page-break-inside: avoid; }
}
