/* Custom styles for Oak Leaf Herbal */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll reveal base - content visible by default, JS enhances with animation */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Scroll reveal hidden state (applied by JS) */
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Navbar styles */
.navbar-scrolled {
    background: rgba(250, 248, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(91, 44, 111, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #5B2C6F !important;
}

.navbar-scrolled .nav-link {
    color: #5B2C6F !important;
}

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

.mobile-nav-link {
    font-size: 1.875rem;
}

/* Body scroll lock */
body.menu-open {
    overflow: hidden;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #5B2C6F;
    color: #faf5f7;
}

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

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

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

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

/* Hero decorative animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(2deg); }
}

.hero-float-1 {
    animation: float 6s ease-in-out infinite;
}

.hero-float-2 {
    animation: float-slow 8s ease-in-out infinite;
}

/* Subtle gradient shift on hero overlay */
@keyframes gradient-shift {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.75; }
}

.hero-overlay {
    animation: gradient-shift 8s ease-in-out infinite;
}

/* Service card hover - subtle lift */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-0.25rem);
}

/* Amber accent underline animation */
.amber-underline {
    position: relative;
}

.amber-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transition: width 0.3s ease;
}

.amber-underline:hover::after {
    width: 100%;
}
