/* ============================================
   Tacos El Patron — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection Color */
::selection {
    background: #E8A838;
    color: #064E3B;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 252, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

#navbar.scrolled .font-display {
    color: #064E3B !important;
}

#navbar.scrolled a:not([class*="bg-"]) {
    color: rgba(6, 78, 59, 0.7) !important;
}

#navbar.scrolled a:not([class*="bg-"]):hover {
    color: #047857 !important;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #E8A838;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* ============================================
   Reveal Animations (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    /* Stagger children */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* For reduced-motion users, content is always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   Smooth Scroll Offset for Anchored Links
   ============================================ */
[id] {
    scroll-margin-top: 80px;
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FAF8F0;
}

::-webkit-scrollbar-thumb {
    background: #065F46;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* ============================================
   Image Loading Placeholder
   ============================================ */
img {
    background-color: #EDE5CC;
}

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

/* ============================================
   Utility: Gradient Text (if needed)
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, #065F46, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Card Hover Subtle Glow
   ============================================ */
.bg-white.rounded-3xl:hover {
    box-shadow: 0 20px 60px -15px rgba(6, 78, 59, 0.12);
}

/* ============================================
   Map Container Responsive
   ============================================ */
iframe {
    border-radius: 0 0 1.5rem 1.5rem;
}
