/* ═══════════════════════════════════════════════════════════
   Trudo's Religious Store — Custom Styles
   ═══════════════════════════════════════════════════════════ */

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #FFFBF0;
    color: #111827;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Typography ─── */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; }

/* ─── Navbar scroll state ─── */
.nav-scrolled {
    background: rgba(255, 251, 240, 0.95) !important;
    box-shadow: 0 1px 20px rgba(4, 120, 87, 0.08);
}
.nav-scrolled .nav-link { color: #1F2937 !important; }
.nav-scrolled .nav-link:hover { color: #047857 !important; }
.nav-scrolled .font-serif { color: #065f46 !important; }
.nav-scrolled .block { color: #047857 !important; }

/* ─── Smooth section transitions ─── */
section {
    position: relative;
}

/* ─── Focus styles ─── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── Selection ─── */
::selection {
    background: #d1fae5;
    color: #064e3b;
}

/* ─── Image lazy load fallback ─── */
img {
    max-width: 100%;
    height: auto;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .float-slow, .float-medium, .float-fast {
        animation: none !important;
    }
}

/* ─── Print ─── */
@media print {
    header, footer, #contact-form, .reveal { display: none; }
    body { background: white; }
    a { color: #047857; }
}
