/* ============================================
   Airport Manor — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement — content is visible
   by default; JS adds the animation class.
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 1;
        transform: none;
    }
    
    .reveal-left {
        opacity: 1;
        transform: none;
    }
    
    .reveal-right {
        opacity: 1;
        transform: none;
    }
    
    /* These are enhanced by JS — default state is visible */
    .reveal-up.animated {
        animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    
    .reveal-left.animated {
        animation: revealLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    
    .reveal-right.animated {
        animation: revealRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    
    @keyframes revealUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes revealLeft {
        from {
            opacity: 0;
            transform: translateX(-30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    @keyframes revealRight {
        from {
            opacity: 0;
            transform: translateX(30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* ============================================
   Hero Animations (above the fold — always visible)
   ============================================ */
.hero-eyebrow {
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-headline {
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-sub {
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero-ctas {
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

.hero-pills {
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1s both;
}

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

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

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(134, 46, 81, 0.08);
}

.nav-logo {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo {
    color: #862e51;
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.close {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 1;
}

/* ============================================
   Scroll Indicator
   ============================================ */
.scroll-indicator {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both;
}

/* ============================================
   Image Hover Effects
   ============================================ */
.group img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   Form Focus States
   ============================================ */
input:focus,
textarea:focus {
    outline: none;
}

/* ============================================
   Utility — Thin Lines
   ============================================ */
.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(134, 46, 81, 0.1), transparent);
}

/* ============================================
   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;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar,
    .scroll-indicator,
    #mobileMenu {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
