/* ============================================
   Iona Trailer Park — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* --- Navigation --- */
.nav-text-color {
    color: #1e293b;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #134e4a;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Scrolled state */
.nav-scrolled .nav-text-color {
    color: #1e293b;
}

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

/* --- Stat Cards Animation --- */
.stat-card {
    opacity: 0;
    transform: translateY(30px);
    animation: floatIn 0.7s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.3s; }
.stat-card:nth-child(2) { animation-delay: 0.5s; }
.stat-card:nth-child(3) { animation-delay: 0.7s; }

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

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .stat-card {
        opacity: 1;
        transform: none;
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    img, .hover\\:scale-105:hover {
        transition: none;
    }
}

/* --- Mobile Menu --- */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobile-menu.open {
    max-height: 400px;
    padding-top: 0;
}

.mobile-link {
    position: relative;
}

/* --- Utility --- */
.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* --- Image hover transitions --- */
.rounded-2xl.overflow-hidden {
    will-change: transform;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* --- Selection --- */
::selection {
    background: #ccfbf1;
    color: #134e4a;
}
