/* ============================================
   The Pineapple Place — Custom Styles
   ============================================ */

/* Base */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background-color: rgba(20, 184, 166, 0.2);
    color: #134e4a;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background-color: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

#navbar.scrolled {
    box-shadow: 0 1px 0 rgba(226, 232, 240, 0.8);
}

/* ============================================
   Hero Animations
   ============================================ */
.hero-eyebrow {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
    transform: translateY(20px);
}

.hero-headline {
    animation: slideUp 1s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    animation: slideUp 1s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta {
    animation: slideUp 1s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
    transform: translateY(30px);
}

.hero-image-wrapper {
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Scroll line animation */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   Reveal on Scroll (Progressive Enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal-section {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-section.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Default state — visible even without JS */
.reveal-section {
    opacity: 1;
    transform: none;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.mobile-menu-open .mobile-link:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }

.menu-open .menu-line-1 {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-open .menu-line-2 {
    transform: rotate(-45deg) translate(2px, -2px);
}

/* ============================================
   Focus Styles
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 4px;
}

/* ============================================
   Utility
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

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

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

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