/* ===== CUSTOM STYLES FOR THE HOLIDAY ===== */

/* Base reset & typography */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background-color: #F5F0EB;
    color: #1C1C1E;
}

/* Selection color */
::selection {
    background: #FF6B4A;
    color: #1C1C1E;
}

/* ===== HERO SECTION ===== */
#hero {
    position: relative;
    overflow: hidden;
}

/* Coral panel gradient */
.coral-panel {
    background: linear-gradient(135deg, #FF6B4A 0%, #FF8A70 50%, #FF6B4A 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== BUTTONS ===== */
.btn-coral {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FF6B4A;
    color: #1C1C1E;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-coral::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-coral:hover::before {
    left: 100%;
}

.btn-coral:hover {
    background: #FF8A70;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 74, 0.4);
}

.btn-charcoal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1C1C1E;
    color: #F5F0EB;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-charcoal:hover {
    background: #111113;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ===== STAY CARDS ===== */
.stay-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stay-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* ===== IMAGE ZOOM ===== */
.img-zoom {
    overflow: hidden;
    position: relative;
}

.img-zoom img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

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

/* ===== NAVBAR ===== */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
    background: rgba(28, 28, 30, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* ===== MOBILE MENU ===== */
#mobileMenu {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: #111113;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenu.open {
    transform: translateX(0);
}

.mobile-link {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(245, 240, 235, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #FF6B4A;
}

/* Menu lines animation */
.menu-line {
    display: block;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MARQUEE ===== */
.marquee-track {
    display: flex;
    animation: marquee 25s linear infinite;
    white-space: nowrap;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== GEOMETRIC SHAPES ===== */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-rect {
    position: absolute;
    border-radius: 0.75rem;
    pointer-events: none;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* ===== SCROLL REVEAL ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-left {
        opacity: 0;
        transform: translateX(-32px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-left.visible {
        opacity: 1;
        transform: translateX(0);
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(32px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-right.visible {
        opacity: 1;
        transform: translateX(0);
    }

    .reveal-scale {
        opacity: 0;
        transform: scale(0.92);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-scale.visible {
        opacity: 1;
        transform: scale(1);
    }
}

/* Default state — always visible for accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

/* ===== AMENITY CARDS ===== */
.amenity-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.amenity-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 107, 74, 0.3);
    transform: translateY(-4px);
}

/* ===== COUNTER ANIMATION ===== */
.counter {
    font-variant-numeric: tabular-nums;
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #FF6B4A;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .coral-panel {
        min-height: 60vh;
        padding: 4rem 2rem;
    }

    .hero-grid > div:first-child h1 {
        font-size: 3.5rem;
    }

    .geo-circle, .geo-rect, .geo-triangle {
        display: none;
    }
}

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

    .coral-panel {
        min-height: 50vh;
        padding: 3rem 1.5rem;
    }

    .hero-grid > div:first-child h1 {
        font-size: 2.75rem;
    }

    .stay-card {
        border-radius: 1rem;
    }

    .stay-card > div:first-child {
        border-radius: 1rem 1rem 0 0;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    #navbar, #mobileMenu, .marquee-track {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .stay-card, .amenity-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
