/* =============================================
   Riehl Stop LLC — Custom Styles
   ============================================= */

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    overflow-x: hidden;
}

/* --- Navigation --- */
.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffbe00;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Scrolled state */
nav.scrolled {
    background: rgba(250, 245, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(86, 40, 61, 0.08);
}

nav.scrolled .nav-logo-text {
    color: #56283d;
}

nav.scrolled .nav-link {
    color: #7a3354;
}

nav.scrolled .nav-link:hover {
    color: #e6a100;
}

/* --- Mobile Menu --- */
.mobile-menu-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(217, 163, 183, 0.2);
}

.mobile-menu-link:last-of-type {
    border-bottom: none;
}

/* --- Scroll Reveal --- */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group:hover img,
    .group:focus-within img {
        transform: none;
    }
}

/* --- Feature Items --- */
.feature-item {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
}

/* --- Card Hover Effects --- */
.feature-item:hover .w-12 {
    background: rgba(255, 190, 0, 0.2);
}

/* --- Button Focus States --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #ffbe00;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* --- Selection --- */
::selection {
    background: #eacdd7;
    color: #2e1220;
}

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

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

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

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

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

/* --- Mobile responsive --- */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}
