/**
 * ROASchool — Custom Styles
 * Supplements Tailwind CSS with custom animations and overrides.
 */

/* ── Base Resets ── */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Selection Color ── */
::selection {
    background: #0099A8;
    color: #ffffff;
}

/* ── Scroll Reveal Animation ── */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ── WhatsApp FAB Pulse ── */
#whatsapp-fab {
    animation: pulse-shadow 2s infinite;
}

@keyframes pulse-shadow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
}

/* ── FAQ Accordion Transition ── */
.faq-content {
    transition: max-height 0.3s ease-out;
}

.faq-icon {
    transition: transform 0.3s ease;
}

/* ── Form Focus Glow ── */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(0, 153, 168, 0.1);
}

/* ── Card Hover Shadow ── */
.group:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* ── Smooth Link Underlines ── */
a.hover\:underline:hover {
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* ── Active Nav Item ── */
.current-menu-item > a,
.current-page-ancestor > a {
    color: #0099A8 !important;
    font-weight: 700;
}
