/* ========================================
   Our Wild Crumb — Custom Styles
   Premium Dark Luxury Design System
======================================= */

/* Base Reset & Foundations */
*, *::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: rgba(201, 169, 110, 0.3);
    color: #f5f5f0;
}

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

::-webkit-scrollbar-track {
    background: #0c0a08;
}

::-webkit-scrollbar-thumb {
    background: #2a2520;
    border-radius: 4px;
}

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

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

#navbar.scrolled {
    background: rgba(8, 6, 5, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 169, 110, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C9A96E;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #C9A96E !important;
}

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

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #C9A96E;
    transition: width 0.3s ease;
}

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

/* Menu Toggle Animation */
#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

#menu-toggle.active .menu-line:nth-child(3) {
    width: 6rem;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ========================================
   Hero Section
======================================= */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(123, 45, 59, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* ========================================
   Menu Tabs
======================================= */
.menu-tab {
    background: transparent;
    border: 1px solid transparent;
    color: #78716c;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-tab.active {
    background: rgba(201, 169, 110, 0.15);
    border-color: rgba(201, 169, 110, 0.4);
    color: #C9A96E;
}

.menu-tab:hover:not(.active) {
    color: #C9A96E;
    border-color: rgba(201, 169, 110, 0.2);
}

.menu-content {
    animation: fadeIn 0.4s ease forwards;
}

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

/* ========================================
   Reveal Animations (Progressive Enhancement)
======================================= */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ========================================
   Gold Accent Lines
======================================= */
div[class*="w-12 h-px bg-gold"] {
    background: linear-gradient(90deg, transparent, #C9A96E, transparent);
}

/* ========================================
   Image Hover Effects
======================================= */
.rounded-sm img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rounded-sm:hover img {
    transform: scale(1.03);
}

/* ========================================
   Button Hover Glow
======================================= */
a[href^="tel:"],
a[href^="mailto:"] {
    text-decoration: none;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

/* ========================================
   Responsive Adjustments
======================================= */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.15;
    }
    
    #hero h1 {
        font-size: 2.75rem;
    }
    
    section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 4rem;
    }
}

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

/* ========================================
   Print Styles
======================================= */
@media print {
    #navbar,
    #menu-toggle,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-dark-950,
    .bg-dark-900,
    .bg-dark-850 {
        background: white !important;
    }
    
    .text-stone-100,
    .text-stone-200,
    .text-stone-300,
    .text-stone-400 {
        color: black !important;
    }
}
