/* Reverendo Medical — Custom Styles */

/* Base typography */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

p, a, button, input, textarea, label, span {
    font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
}

/* Smooth focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e05233;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #fce4de;
    color: #72241a;
}

/* Hero eyebrow animation */
#hero-eyebrow {
    animation: fadeUp 0.8s ease forwards 0.2s;
}

#hero-headline {
    animation: fadeUp 0.8s ease forwards 0.5s;
}

#hero-sub {
    animation: fadeUp 0.8s ease forwards 0.8s;
}

#hero-ctas {
    animation: fadeUp 0.8s ease forwards 1.1s;
}

#hero-scroll {
    animation: fadeUp 0.8s ease forwards 1.4s;
}

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

/* Scroll reveal base — hidden by default for progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
}

.reveal.animated {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Staggered reveal delays */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 249, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(180, 160, 140, 0.2);
}

.nav-scrolled .font-serif-display {
    color: #4a3f37 !important;
}

.nav-scrolled a:not(.px-8):not(.px-6) {
    color: #716050 !important;
}

.nav-scrolled a:not(.px-8):not(.px-6):hover {
    color: #e05233 !important;
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Menu toggle animation */
#menu-toggle.active #bar1 {
    transform: translateY(4px) rotate(45deg);
}

#menu-toggle.active #bar2 {
    opacity: 0;
}

#menu-toggle.active #bar3 {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}

/* Form input focus */
input:focus,
textarea:focus {
    background: #fff !important;
}

/* Image hover zoom */
img {
    transition: transform 0.6s ease;
}
