/* ============================================
   HALLOWED GROUNDS COFFEE CO. — CUSTOM STYLES
   ============================================ */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #F5F0E8;
}
::-webkit-scrollbar-thumb {
    background: #C1666B;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A85257;
}

/* Scroll animation line */
@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}
.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* Reveal animations — progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

/* Default state for reduced motion — already visible */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 247, 242, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(232, 224, 212, 1);
}

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

/* Icon hamburger animation */
.menu-active #bar-top {
    transform: translateY(6px) rotate(45deg);
}
.menu-active #bar-mid {
    opacity: 0;
    transform: scaleX(0);
}
.menu-active #bar-bot {
    transform: translateY(-6px) rotate(-45deg);
}

/* Smooth focus outlines for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C1666B;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #C1666B;
    color: #FAF7F2;
}

/* Image lazy-load fade */
img[loading="lazy"] {
    transition: opacity 0.6s ease;
}
img[loading="lazy"].loaded {
    opacity: 1;
}
img[loading="lazy"] {
    opacity: 0;
}

/* Form transition */
#form-success {
    animation: fadeIn 0.4s ease forwards;
}

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

/* Print styles */
@media print {
    .reveal, header, #mobile-menu { display: none; }
    body { background: white; color: black; }
}
