/* ============================================
   ALEPPEY SERENE - Kerala Houseboat Resort
   Design System & Shared Styles
   ============================================ */

/* --- Material Symbols --- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* --- Base Typography Overrides --- */
body {
    font-family: 'Manrope', sans-serif;
    background-color: #fbf9f4;
    color: #1b1c19;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-serif, .font-headline {
    font-family: 'Noto Serif', serif;
}

/* --- Custom Utility Classes --- */
.editorial-shadow {
    box-shadow: 0 12px 40px rgba(27, 28, 25, 0.04);
}

.hero-gradient {
    background: linear-gradient(to bottom, rgba(22, 52, 41, 0.45) 0%, rgba(22, 52, 41, 0.15) 40%, rgba(22, 52, 41, 0.5) 100%);
}

/* --- Hero text legibility --- */
.hero-text-shadow {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6), 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* --- Sharp hero image --- */
.hero-sharp {
    image-rendering: -webkit-optimize-contrast;
    filter: contrast(1.05) saturate(1.1);
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger delays for child elements */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 120ms; }
.stagger > *:nth-child(3) { transition-delay: 240ms; }
.stagger > *:nth-child(4) { transition-delay: 360ms; }

/* --- Navigation --- */
.nav-scrolled {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    box-shadow: 0 1px 20px rgba(22, 52, 41, 0.06);
}

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(22, 52, 41, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-family: 'Noto Serif', serif;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: #fdc34d;
}

.mobile-menu .close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    cursor: pointer;
    font-size: 2rem;
}

/* Hamburger button */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #163429;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
}

/* --- Smooth Page Load --- */
.page-enter {
    animation: pageEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* --- Horizontal Scroll Strip --- */
.visual-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.visual-strip::-webkit-scrollbar {
    display: none;
}

.visual-strip > div {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* --- Custom Selection --- */
::selection {
    background: rgba(253, 195, 77, 0.3);
    color: #1b1c19;
}

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

/* --- Image loading placeholder --- */
img {
    background-color: #f0eee9;
}

/* --- Cookie notice --- */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 95;
    background: rgba(48, 49, 46, 0.95);
    backdrop-filter: blur(10px);
    color: #f2f1ec;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-notice button {
    background: #163429;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
}

.cookie-notice button:hover {
    background: #2d4b3f;
}
