/* ===== CUSTOM STYLES ===== */

/* Reveal animation (progressive enhancement — content visible without JS) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
}

/* JS-applied hidden state for reveal elements (progressive enhancement) */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .js-enabled .reveal {
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
}

/* Mobile menu animation */
.menu-line {
    transition: all 0.3s ease;
}

#menuToggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuToggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuToggle.active .menu-line:nth-child(3) {
    width: 100%;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Subtle hover underline for links */
a {
    text-decoration: none;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #971e38;
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    display: block;
    max-width: 100%;
}

/* Selection color */
::selection {
    background: #971e38;
    color: #faf7f5;
}

/* Print styles */
@media print {
    #navbar, #menuToggle, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
