/* ========================================
   Monte Square RV Park — Custom Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Geometric Shapes (Hero)
   ======================================== */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.15;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B4A, #FF8A6A);
    top: -100px;
    right: -100px;
    animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFB396, #FFD0BE);
    bottom: 15%;
    left: 5%;
    animation: float-medium 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #FF6B4A;
    top: 40%;
    right: 10%;
    animation: float-slow 7s ease-in-out infinite;
}

.shape-square-1 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255,107,74,0.6), rgba(255,138,106,0.4));
    top: 20%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-square-2 {
    width: 60px;
    height: 60px;
    background: rgba(255,179,150,0.5);
    bottom: 25%;
    right: 20%;
    transform: rotate(30deg);
    animation: spin-slow 15s linear infinite reverse;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(255,107,74,0.3);
    top: 60%;
    left: 15%;
    animation: float-medium 9s ease-in-out infinite;
}

.shape-dots {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255,107,74,0.3) 1px, transparent 1px);
    background-size: 40px 40px;
    top: 0;
    left: 0;
    opacity: 0.4;
}

/* ========================================
   Animations
   ======================================== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================
   Scroll Reveal (progressive enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 1;
        transform: none;
    }
    
    .reveal-left {
        opacity: 1;
        transform: none;
    }
    
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* Hidden state applied by JS for progressive enhancement */
.reveal-up.hidden,
.reveal-left.hidden,
.reveal-right.hidden {
    opacity: 0;
}

.reveal-up.hidden {
    transform: translateY(30px);
}

.reveal-left.hidden {
    transform: translateX(-30px);
}

.reveal-right.hidden {
    transform: translateX(30px);
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-blur: 20px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.nav-link {
    position: relative;
}

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

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

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #FF6B4A;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 80%;
}

/* Hamburger animation */
.menu-line {
    transition: all 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* ========================================
   Buttons & Links
   ======================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #FF6B4A;
    outline-offset: 2px;
}

/* ========================================
   Selection
   ======================================== */
::selection {
    background: rgba(255, 107, 74, 0.2);
    color: #1f2533;
}

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

::-webkit-scrollbar-track {
    background: #1f2533;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #FF8A6A;
}
