/* ============================================
   Heart Healed Henna — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #C8553D;
    color: #FAF8F5;
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement: content is visible
   by default; JS adds the animated state.
   ============================================ */
.reveal-up,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(32px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }
    .reveal-up.is-visible,
    .reveal-right.is-visible {
        opacity: 1;
        transform: none;
    }
}

/* Stagger children */
.reveal-up:nth-child(2) { transition-delay: 0.1s; }
.reveal-up:nth-child(3) { transition-delay: 0.2s; }
.reveal-up:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   Marquee
   ============================================ */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 25s linear infinite;
}

/* ============================================
   Mobile Nav Links
   ============================================ */
.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #EDE5DC;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* ============================================
   Header Scroll State
   ============================================ */
#site-header.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* ============================================
   Focus Styles
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C8553D;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F0EB;
}
::-webkit-scrollbar-thumb {
    background: #C8553D;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B04A38;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.1;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .lg\:col-span-5 {
        position: sticky;
        top: 6rem;
        align-self: start;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #site-header,
    .animate-marquee,
    .reveal-up,
    .reveal-right {
        display: none;
    }
    body {
        background: white;
        color: #1A1A1A;
    }
    a {
        color: #1A1A1A;
    }
}
