/* ============================================
   Oma's Haus Bed & Breakfast — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-black: #1C1917;
    --color-dark: #292524;
    --color-brown: #44403C;
    --color-terracotta: #C0573E;
    --color-terracotta-light: #D4735A;
    --color-sand: #E8D5C4;
    --color-sand-light: #F0E4D8;
    --color-cream: #F5EDE4;
    --color-gold: #C9A84C;
    --color-gold-light: #D4B86A;
    --color-gold-dark: #B8943F;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Raleway', system-ui, sans-serif;

    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-black);
    color: var(--color-sand);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-black);
}
::-webkit-scrollbar-thumb {
    background: var(--color-brown);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-dark);
}

/* --- Selection --- */
::selection {
    background: var(--color-gold);
    color: var(--color-black);
}

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: var(--transition-smooth);
}

#navbar.scrolled {
    background: rgba(28, 25, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .font-serif {
    color: var(--color-cream);
}

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

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* --- Scroll Reveal Animations --- */
.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);
}

/* Stagger children */
.reveal-grid > * {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-grid.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal-grid.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-grid.revealed > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-grid.revealed > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-grid.revealed > *:nth-child(4) { transition-delay: 0.35s; }

/* --- Gold Accent Animations --- */
@keyframes goldShimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

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

/* --- Button Focus States --- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* --- Date Input Styling --- */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(3) hue-rotate(10deg);
    cursor: pointer;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    #hero h1 {
        font-size: 2.8rem;
    }

    #hero h1 span {
        font-size: 3.2rem;
    }

    .reveal-grid > * {
        transition-delay: 0s !important;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal, .reveal-grid > * {
        opacity: 1;
        transform: none;
    }
}

/* --- Print Styles --- */
@media print {
    #navbar, #mobile-menu, .reveal {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
    }
}
