/* ===== CUSTOM STYLES ===== */

/* Smooth focus outlines */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #8c2424;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Selection color */
::selection {
    background-color: #a82f2f;
    color: #fdf8f6;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9f3;
}
::-webkit-scrollbar-thumb {
    background: #d4a0a0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a82f2f;
}

/* Navbar active state */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(140, 36, 36, 0.08);
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hamburger animation */
.menu-btn-active .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
.menu-btn-active .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-btn-active .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* Subtle pattern overlay on cream sections */
.bg-cream-50::before,
.bg-cream-100::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(140, 36, 36, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

/* Print styles */
@media print {
    nav, #contact, footer { display: none; }
    body { color: #1a1a1a; background: white; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
