/* ============================================
   Angel's Cabin at Panguitch Lake
   Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* --- Section Eyebrow --- */
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #16a34a;
}

/* --- Section Title --- */
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    color: #1a3c2a;
}

/* --- Body Text --- */
.body-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #1a3c2a;
}

/* --- CTA Buttons --- */
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #16a34a;
    color: #fdfcf8;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.cta-primary:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #fdfcf8;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0.5rem;
    border: 1px solid rgba(253, 252, 248, 0.3);
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: rgba(253, 252, 248, 0.1);
    border-color: rgba(253, 252, 248, 0.6);
    transform: translateY(-2px);
}

/* --- Hero Animations (above fold — always visible) --- */
.hero-eyebrow {
    animation: slideDown 0.8s ease forwards;
}

.hero-title {
    animation: slideUp 0.8s ease 0.15s both;
}

.hero-subtitle {
    animation: slideUp 0.8s ease 0.3s both;
}

.hero-ctas {
    animation: slideUp 0.8s ease 0.45s both;
}

.hero-stats {
    animation: slideUp 0.8s ease 0.6s both;
}

.hero-image {
    animation: scaleIn 1s ease 0.2s both;
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Scroll Reveal (below fold only) --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

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

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

/* Card stagger delays */
.card-delay-1 { transition-delay: 0.1s; }
.card-delay-2 { transition-delay: 0.2s; }
.gallery-delay-1 { transition-delay: 0.1s; }
.gallery-delay-2 { transition-delay: 0.2s; }

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

#navbar.scrolled {
    background: rgba(26, 60, 42, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

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

/* --- Activity Items --- */
.activity-item {
    border-bottom: 1px solid rgba(26, 60, 42, 0.08);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* --- Gallery Hover --- */
.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Selection --- */
::selection {
    background: #16a34a;
    color: #fdfcf8;
}
