/* Custom Styles for Sheraton Desert Oasis */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

/* Typography */
.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-sans {
    font-family: 'Montserrat', system-ui, sans-serif;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation-name: fadeIn;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

/* Scroll Reveal Animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-up {
    transform: translateY(30px);
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* 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-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* Navigation */
#navbar.scrolled {
    background-color: rgba(245, 240, 235, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

#navbar.scrolled .font-serif {
    color: #2A2A2A;
}

/* Mobile Menu */
#mobile-menu {
    background-color: rgba(245, 240, 235, 0.98);
    backdrop-filter: blur(20px);
}

/* Button Hover Effects */
button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Selection Color */
::selection {
    background-color: #f9d0d9;
    color: #6f162e;
}

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

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

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

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

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #a01734;
    outline-offset: 2px;
}

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

    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    html {
        font-size: 16px;
    }
}

@media (min-width: 1025px) {
    html {
        font-size: 17px;
    }
}

/* Print Styles */
@media print {
    #navbar,
    #mobile-menu-btn,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
