/* ============================================
   Barndo at Lake Sam Rayburn — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* ============================================
   Geometric Hero Shapes
   ============================================ */
.geometric-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(22, 165, 74, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(22, 165, 74, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(22, 165, 74, 0.06);
    border-radius: 24px;
    top: 25%;
    left: 45%;
    transform: rotate(45deg);
    animation: float-medium 12s ease-in-out infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(22, 165, 74, 0.05);
    top: 40%;
    right: 15%;
    animation: float-medium 18s ease-in-out infinite reverse;
}

.shape-dot-grid {
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(22, 165, 74, 0.15) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    top: 60%;
    left: 10%;
    animation: float-slow 22s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -30px) rotate(5deg); }
    66% { transform: translate(-15px, 20px) rotate(-3deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    50% { transform: translate(25px, -25px) rotate(50deg); }
}

/* ============================================
   Scroll Indicator
   ============================================ */
.scroll-line {
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #16a34a, transparent);
    animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 253, 247, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(20, 83, 45, 0.08);
}

/* ============================================
   Lodging Cards
   ============================================ */
.lodging-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.lodging-card:hover {
    transform: translateY(-4px);
}

/* ============================================
   Amenity Cards
   ============================================ */
.amenity-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-4px);
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content is visible by default)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    /* JS adds .is-hidden initially, then removes it */
    .reveal.is-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Fallback: always visible if JS disabled */
@supports not selector(:has(*)) {
    .reveal.is-hidden {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }

    .shape-circle-2 {
        width: 150px;
        height: 150px;
    }

    .shape-rect-1 {
        width: 60px;
        height: 60px;
    }

    .shape-triangle {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 52px solid rgba(22, 165, 74, 0.05);
    }
}

/* ============================================
   Focus styles for accessibility
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    .geometric-shape,
    .scroll-indicator,
    #navbar {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
