/* === Custom Styles for Seagull Cottages === */

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

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

/* === Hero Animations (above the fold — always visible) === */
.hero-headline {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.hero-body {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

/* === Scroll Reveal Animations (below the fold only) === */
.scroll-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);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* === Navbar Transition === */
.nav-scrolled {
    background: rgba(250, 250, 247, 0.97) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-scrolled .nav-logo-text {
    color: #0f172a !important;
}

.nav-scrolled .nav-link {
    color: #475569 !important;
}

/* === Room Card Hover === */
.room-card {
    transform: translateY(0);
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* === Button Focus === */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}

/* === Form Inputs === */
input:focus,
textarea:focus {
    background-color: #fff;
}

/* === Mobile Menu Transitions === */
.mobile-menu-link {
    opacity: 1;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* === Selection === */
::selection {
    background-color: #0f766e;
    color: #fff;
}

/* === Image Loading === */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* === Print Styles === */
@media print {
    header,
    footer,
    #mobile-menu-btn,
    #mobile-menu {
        display: none !important;
    }

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

    .bg-slate-900,
    .bg-teal-700 {
        background: #1e293b !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
