/* ============================================
   Fort Kirwin RV Hookups — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(107, 29, 42, 0.15);
    color: #4a1219;
}

/* ---------- Navbar ---------- */
#navbar {
    background: rgba(253, 248, 246, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(107, 29, 42, 0.06);
}

#navbar.scrolled {
    background: rgba(253, 248, 246, 0.95);
    box-shadow: 0 1px 30px rgba(107, 29, 42, 0.08);
}

.nav-logo-text {
    color: #4a1219;
}

.nav-link {
    position: relative;
}

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

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

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.menu-line {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.35s ease;
}

#mobile-menu.open .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-menu-link:nth-child(5) { transition-delay: 0.25s; }

/* ---------- Hero ---------- */
.hero-decor {
    opacity: 0.4;
}

.hero-circle-1 {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(107, 29, 42, 0.06) 0%, transparent 70%);
}

.hero-circle-2 {
    position: absolute;
    bottom: -80px;
    left: 10%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 110, 82, 0.06) 0%, transparent 70%);
}

.hero-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 200px;
    background: linear-gradient(to bottom, transparent, rgba(107, 29, 42, 0.1), transparent);
    transform: translate(-50%, -50%);
}

/* Hero animations */
.hero-subtitle {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-headline {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    opacity: 0;
    transform: translateY(40px);
}

.hero-desc {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-stats {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-image-wrapper {
    animation: fadeSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
    transform: translateX(40px);
}

.hero-floating-card {
    animation: floatUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Hero image accent */
.hero-image-accent {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(107, 29, 42, 0.12);
    border-radius: 1rem;
    z-index: -1;
}

/* Scroll indicator */
.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(107, 29, 42, 0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ---------- Section labels & titles ---------- */
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6B1D2A;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
}

/* ---------- Hookup Cards ---------- */
.hookup-card {
    position: relative;
    overflow: hidden;
}

.hookup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #6B1D2A, #D46E52);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hookup-card:hover::before {
    transform: scaleX(1);
}

/* ---------- About section ---------- */
.about-image-wrapper {
    position: relative;
}

.about-image-frame {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.about-image {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 60%;
    height: 60%;
    border: 2px solid rgba(212, 110, 82, 0.3);
    border-radius: 1rem;
    z-index: -1;
}

/* ---------- Reveal animations (below fold only) ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }
.reveal[data-reveal-delay="5"] { transition-delay: 0.5s; }
.reveal[data-reveal-delay="6"] { transition-delay: 0.6s; }

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* ---------- Button hover effects ---------- */
a {
    text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero-image {
        height: 400px !important;
    }
    
    .hero-floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        max-width: 100%;
    }
    
    .hero-image-accent {
        display: none;
    }
    
    .about-image-accent {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .hero-image {
        height: 500px !important;
    }
}

/* ---------- Focus styles ---------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #6B1D2A;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Print ---------- */
@media print {
    #navbar,
    .scroll-line,
    .hero-decor {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
