/* ============================================
   HOMERHOME — Custom Styles
   ============================================ */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #7B2D3B;
    color: #FDF8F5;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav-link {
    position: relative;
}

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

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

/* Transparent nav (hero) */
.nav-transparent .nav-link {
    color: rgba(253, 248, 245, 0.85);
}

.nav-transparent .nav-logo-fill {
    fill: #FDF8F5;
}

.nav-transparent .nav-icon {
    color: #FDF8F5;
}

.nav-transparent .btn-reservation {
    background-color: rgba(253, 248, 245, 0.15);
    border: 1px solid rgba(253, 248, 245, 0.3);
    backdrop-filter: blur(8px);
}

.nav-transparent .btn-reservation:hover {
    background-color: rgba(253, 248, 245, 0.25);
}

/* Scrolled nav */
.nav-scrolled {
    background-color: rgba(253, 248, 245, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

.nav-scrolled .nav-link {
    color: #2C2426;
}

.nav-scrolled .nav-link::after {
    background-color: #7B2D3B;
}

.nav-scrolled .nav-logo-fill {
    fill: #7B2D3B;
}

.nav-scrolled .nav-icon {
    color: #2C2426;
}

.nav-scrolled .btn-reservation {
    background-color: #7B2D3B;
    border: none;
}

.nav-scrolled .btn-reservation:hover {
    background-color: #5c1f2b;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* ============================================
   HERO
   ============================================ */

.scroll-indicator {
    animation: fadeInUp 1s ease 1.5s both;
}

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

/* ============================================
   SECTION LABELS
   ============================================ */

.section-label {
    letter-spacing: 0.25em;
}

/* ============================================
   ROOM CARDS
   ============================================ */

.room-card {
    cursor: pointer;
}

.room-card .room-image {
    transform: scale(1);
}

.room-card:hover .room-image {
    transform: scale(1.05);
}

.room-card-content {
    position: relative;
}

.room-card-content::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7B2D3B, #ff7e8e);
    transition: width 0.4s ease;
}

.room-card:hover .room-card-content::before {
    width: 100%;
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */

.experience-feature {
    opacity: 1;
}

.experience-img-main {
    box-shadow: 0 25px 60px rgba(44, 36, 38, 0.15);
}

.experience-img-accent {
    box-shadow: 0 15px 40px rgba(44, 36, 38, 0.2);
}

/* ============================================
   GALLERY
   ============================================ */

.gallery-item {
    overflow: hidden;
    cursor: pointer;
}

.gallery-img {
    transform: scale(1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

/* ============================================
   LOCATION
   ============================================ */

.attraction-tag {
    transition: all 0.3s ease;
}

.attraction-tag:hover {
    background-color: #7B2D3B;
    color: #FDF8F5 !important;
}

/* ============================================
   FORM STYLES
   ============================================ */

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: rgba(255, 126, 142, 0.5);
    background-color: rgba(255, 255, 255, 0.08);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(253, 248, 245, 0.3);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   (Progressive Enhancement — content visible without JS)
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .experience-img-accent {
        display: none;
    }
    
    .experience-img-main img {
        height: 350px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@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;
    }
}

:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    nav, #contact, .scroll-indicator {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
