/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Navigation Links ── */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #C4725A;
    border-radius: 1px;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after { width: 60%; }

/* ── Mobile Menu ── */
.mobile-link { transition: all 0.15s ease; }
.mobile-cta { transition: all 0.15s ease; }

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

/* ── Hero Entrance ── */
.hero-elem {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeIn 0.7s ease forwards;
}
.hero-elem:nth-child(1) { animation-delay: 0.1s; }
.hero-elem:nth-child(2) { animation-delay: 0.25s; }
.hero-elem:nth-child(3) { animation-delay: 0.4s; }
.hero-elem:nth-child(4) { animation-delay: 0.55s; }
.hero-elem:nth-child(5) { animation-delay: 0.7s; }

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Card Elevation ── */
.card-elevated {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.card-elevated:hover {
    transform: translateY(-4px);
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .hero-elem {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .scroll-reveal:not(.revealed) {
        opacity: 1;
        transform: none;
    }
}

/* ── Select Styling ── */
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='%237d5e30' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

/* ── Selection ── */
::selection {
    background: rgba(196, 114, 90, 0.15);
    color: #5e2e27;
}
