/* =============================================
   The New Oasis — Custom Styles
   Premium dark luxury · Forest green + gold
   ============================================= */

/* --- Custom properties --- */
:root {
    --gold: #c9a84c;
    --gold-light: #e2b532;
    --forest-dark: #0a1a11;
    --forest-mid: #1a3a2a;
    --cream: #faf8f4;
    --cream-dim: rgba(250, 248, 244, 0.6);
}

/* --- Base --- */
*, *::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, 168, 76, 0.3);
    color: #faf8f4;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1a11;
}
::-webkit-scrollbar-thumb {
    background: #1f4529;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2a5c36;
}

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

#navbar.scrolled {
    background: rgba(10, 26, 17, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: var(--gold-light) !important;
}

/* --- Mobile menu --- */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

#mobile-menu.open {
    transform: translateX(0);
}

.mobile-nav-link {
    position: relative;
}

/* --- Menu tabs --- */
.menu-tab {
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.2);
    color: rgba(250, 248, 244, 0.5);
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
}

.menu-tab:hover {
    border-color: rgba(201, 168, 76, 0.5);
    color: rgba(250, 248, 244, 0.8);
}

.menu-tab.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #0a1a11;
}

/* --- Reveal animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* Default visible state for reduced-motion / no-JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Gold shimmer on buttons --- */
button, .group-hover\:scale-105 {
    will-change: transform;
}

/* --- Image hover effects --- */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* --- Focus styles --- */
input:focus, textarea:focus, button:focus {
    outline: none;
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Subtle pattern overlay --- */
section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* --- Map filter override for light mode in iframe --- */
iframe[src*="google.com/maps"] {
    /* The invert filter is applied inline */
}

/* --- Responsive tweaks --- */
@media (max-width: 767px) {
    .font-display {
        word-break: break-word;
    }
}
