/* Sugar Plum Hideaway East — Custom Styles */

/* Base typography refinements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure all links are readable */
a {
    text-decoration: none;
}

/* Gold accent line utility */
.gold-line {
    background: linear-gradient(90deg, transparent, #c9a227, transparent);
    height: 1px;
}

/* Image lazy load initial state handled in HTML via .img-lazy class */
.img-lazy {
    opacity: 0;
    transition: opacity 0.6s ease;
}
.img-lazy.loaded {
    opacity: 1;
}

/* Scroll reveal handled via JS + prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c9a227;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Smooth image loading */
img {
    max-width: 100%;
    height: auto;
}

/* Selection color */
::selection {
    background: rgba(6, 95, 70, 0.4);
    color: #faf8f5;
}

/* Navbar background transition */
.navbar {
    transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}
.navbar.scrolled {
    background: rgba(10, 15, 13, 0.95) !important;
    backdrop-filter: blur(20px);
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* Mobile menu transitions */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-menu.open {
    transform: translateX(0);
}

/* Room card hover effects */
.room-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}
.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}
.room-card img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.room-card:hover img {
    transform: scale(1.05);
}

/* Button gold shimmer effect */
.btn-gold {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}
.btn-gold:hover::before {
    left: 100%;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(201, 162, 39, 0.3);
}

/* Gold shimmer text animation */
.gold-shimmer {
    background: linear-gradient(135deg, #c9a227 0%, #f0d68a 25%, #c9a227 50%, #f0d68a 75%, #c9a227 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Parallax section divider */
.section-divider {
    height: 300px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
@media (max-width: 767px) {
    .section-divider {
        background-attachment: scroll;
    }
}

/* Emerald gradient border */
.emerald-border {
    position: relative;
}
.emerald-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #065f46, #c9a227);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0f0d;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Mobile menu link hover */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c9a227;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

/* Contact form success message */
.form-success {
    animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
