/* Base & Typography */
html {
    scroll-behavior: smooth;
}

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

::selection {
    background-color: rgba(192, 34, 70, 0.15);
    color: #72162f;
}

/* Scroll reveal base state — visible by default for progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero entrance animations */
@media (prefers-reduced-motion: no-preference) {
    .hero-eyebrow {
        animation: fadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
    }
    .hero-headline {
        animation: fadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
    }
    .hero-sub {
        animation: fadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
    }
    .hero-cta {
        animation: fadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
    }
}

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

/* Navbar */
#navbar {
    background-color: transparent;
}

#navbar.scrolled {
    background-color: rgba(254, 252, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(114, 22, 47, 0.08);
}

#navbar.scrolled .nav-logo {
    color: #72162f;
}

#navbar.scrolled .nav-subtitle {
    color: #c02246;
}

#navbar.scrolled .mobile-link {
    color: #72162f;
}

/* Mobile menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.menu-line:last-child {
    width: 1.1rem;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.25rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fefcf5;
}

::-webkit-scrollbar-thumb {
    background: #f9cfd8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f4a3b8;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a11736' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    appearance: none;
    -webkit-appearance: none;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
