/* ============================================
   Sara's Nursery — Custom Styles
   ============================================ */

:root {
    --charcoal-700: #3D405B;
    --charcoal-900: #1e202e;
    --charcoal-950: #14151e;
    --coral-400: #E07A5F;
    --coral-500: #d4603f;
}

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

/* Custom selection color */
::selection {
    background-color: var(--coral-400);
    color: white;
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement — only applied via JS
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(20, 21, 30, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

#navbar.scrolled .nav-link,
#navbar.scrolled a.nav-link {
    color: rgba(255, 255, 255, 0.8);
}

#navbar.scrolled .nav-link:hover,
#navbar.scrolled a.nav-link:hover {
    color: var(--coral-400);
}

/* ============================================
   Hero
   ============================================ */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(20, 21, 30, 0.4) 0%,
        rgba(20, 21, 30, 0.1) 40%,
        rgba(20, 21, 30, 0.3) 100%
    );
    z-index: 1;
}

#hero > .relative {
    z-index: 2;
}

/* ============================================
   Decorative Line Accents
   ============================================ */
section > div > div:first-child > p {
    position: relative;
}

/* ============================================
   Menu List Items
   ============================================ */
#menu ul li {
    border-bottom: 1px solid rgba(61, 64, 91, 0.08);
    padding-bottom: 6px;
}

#menu ul li:last-child {
    border-bottom: none;
}

/* ============================================
   Gallery Hover
   ============================================ */
#gallery .aspect-square {
    position: relative;
    overflow: hidden;
}

#gallery .aspect-square::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(20, 21, 30, 0);
    transition: background 0.4s ease;
    pointer-events: none;
}

#gallery .aspect-square:hover::after {
    background: rgba(20, 21, 30, 0.1);
}

/* ============================================
   Mobile Menu Transitions
   ============================================ */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Button & Link Focus States
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--coral-400);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ============================================
   Subtle Print / Texture Overlay
   ============================================ */
body {
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233D405B' fill-opacity='0.02'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    #hero .absolute.bottom-10 {
        display: none;
    }
}
