/* ===== Willard Public Schools — Custom Styles ===== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #ff5c2e;
    color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #525252;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff5c2e;
}

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Default state: visible for progressive enhancement */
.reveal[data-reveal] {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal[data-reveal="left"] {
        transform: translateX(-30px);
    }

    .reveal[data-reveal="right"] {
        transform: translateX(30px);
    }

    .reveal[data-reveal="scale"] {
        transform: scale(0.95);
    }
}

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

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-serif {
    color: #1a1a1a !important;
}

#navbar.scrolled .text-charcoal-500 {
    color: #727272 !important;
}

#navbar.scrolled .menu-line {
    background: #1a1a1a !important;
}

#navbar.scrolled a:not(.bg-charcoal-900):not(.bg-coral-500) {
    color: #525252 !important;
}

#navbar.scrolled a:not(.bg-charcoal-900):not(.bg-coral-500):hover {
    color: #ff5c2e !important;
}

/* ===== Hero ===== */
.hero-section {
    background: #0a0a0a;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #262626 100%);
}

/* ===== Button Hover Effects ===== */
a[href="#contact"],
button[type="submit"] {
    position: relative;
    overflow: hidden;
}

a[href="#contact"]::before,
button[type="submit"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

a[href="#contact"]:hover::before,
button[type="submit"]:hover::before {
    opacity: 1;
}

/* ===== Card Hover ===== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ===== Input Focus ===== */
input:focus,
textarea:focus {
    outline: none;
}

/* ===== Image Hover ===== */
img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Mobile Menu ===== */
#mobileMenu {
    backdrop-filter: blur(20px);
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff5c2e;
    transition: width 0.3s ease, left 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
    left: 0;
}

/* ===== Divider Lines ===== */
.w-12.h-0\.5.bg-coral-500 {
    flex-shrink: 0;
}

/* ===== Floating Card ===== */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* ===== Focus Visible ===== */
*:focus-visible {
    outline: 2px solid #ff5c2e;
    outline-offset: 2px;
}

/* ===== Smooth Scroll Offset ===== */
section[id] {
    scroll-margin-top: 80px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .font-serif.text-5xl,
    .font-serif.text-6xl,
    .font-serif.text-7xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .font-serif.text-4xl {
        font-size: 2rem;
    }
}

/* ===== Print ===== */
@media print {
    #navbar,
    #mobileMenu {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
