/* ============================================
   Borunda's RV Spaces — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #064e3b;
}
::-webkit-scrollbar-thumb {
    background: #34d399;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6ee7b7;
}

/* --- Scroll Progress --- */
.scroll-progress {
    z-index: 50;
}

/* --- Header --- */
.site-header {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.scrolled {
    background: rgba(2, 44, 34, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* --- Navigation Links --- */
.nav-link {
    position: relative;
}

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

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

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

.mobile-nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #d9f99d;
    margin: 4px auto 0;
    transition: width 0.3s ease;
}

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

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

/* --- Hamburger Animation --- */
.menu-line {
    display: block;
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    position: relative;
    background: #064e3b;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(2, 44, 34, 0.88) 0%,
        rgba(6, 78, 59, 0.75) 50%,
        rgba(4, 120, 87, 0.65) 100%
    );
}

.hero-content {
    padding-top: 80px;
}

.hero-headline {
    animation: heroFadeIn 1s ease forwards;
}

.hero-subtitle {
    animation: heroFadeIn 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-badge {
    animation: heroFadeIn 1s ease 0.1s forwards;
    opacity: 0;
}

.hero-ctas {
    animation: heroFadeIn 1s ease 0.4s forwards;
    opacity: 0;
}

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

.hero-deco {
    animation: decoFloat 6s ease-in-out infinite;
}

.hero-deco-1 {
    animation-delay: 0s;
}

.hero-deco-2 {
    animation-delay: 2s;
}

.hero-deco-3 {
    animation-delay: 4s;
    animation-duration: 4s;
}

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

/* --- Buttons --- */
.cta-primary {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cta-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-secondary {
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

/* --- Label Blocks --- */
.label-block {
    letter-spacing: 0.15em;
}

/* --- Section Spacing --- */
.section-about,
.section-features,
.section-location,
.section-cta {
    position: relative;
}

/* --- Feature Cards --- */
.feature-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(217, 249, 157, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-card:hover .feature-icon-wrap {
    background: rgba(217, 249, 157, 0.15);
    transform: scale(1.05);
}

.feature-icon-wrap {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Gallery Images --- */
.gallery-img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

div:has(> .gallery-img):hover .gallery-img {
    transform: scale(1.05);
}

/* --- Location Items --- */
.location-item {
    transition: transform 0.2s ease;
}

.location-item:hover {
    transform: translateX(4px);
}

.location-icon {
    transition: transform 0.2s ease;
}

.location-item:hover .location-icon {
    transform: scale(1.05);
}

/* --- Scroll Reveal --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

.js .reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.js .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.js .reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.js .reveal-up.visible,
.js .reveal-left.visible,
.js .reveal-right.visible {
    opacity: 1;
    transform: none;
}

/* --- Divider --- */
.divider {
    opacity: 0.5;
}

/* --- Footer --- */
.footer a {
    position: relative;
}

.footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d9f99d;
    transition: width 0.3s ease;
}

.footer a:hover::after {
    width: 100%;
}

/* --- Reduced Motion --- */
@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;
    }

    .hero-img {
        animation: none;
    }

    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 2.75rem;
    }

    .hero-content {
        padding-top: 60px;
    }

    .section-about,
    .section-features,
    .section-location,
    .section-cta {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .font-serif.text-4xl {
        font-size: 2.25rem;
    }

    .font-serif.text-5xl {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-headline {
        font-size: 4rem;
    }
}
