/* ===== Custom Styles for Pines Peak Family Ski Area ===== */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Section Labels --- */
.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #c9a22e;
    position: relative;
    padding-left: 2rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1px;
    background: linear-gradient(90deg, #c9a22e, transparent);
}

/* --- Section Titles --- */
.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 300;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -0.01em;
}

/* --- Section Descriptions --- */
.section-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.55);
    max-width: 540px;
}

/* --- Navbar --- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 162, 46, 0.1);
}

#navbar.scrolled .font-serif {
    color: #ffffff;
}

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

#mobile-menu.open .mobile-link {
    animation: fadeInUp 0.4s ease forwards;
}

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

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

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

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

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

/* --- Hero Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    animation: fadeInUp 0.8s ease forwards;
}

h1 {
    animation: fadeInUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

h1 + p {
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

h1 + p + div {
    animation: fadeInUp 0.8s ease 0.45s forwards;
    opacity: 0;
}

/* --- Scroll Indicator --- */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* --- Lodging Cards --- */
.lodging-card {
    position: relative;
}

.lodging-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-radius: inherit;
    transition: border-color 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.lodging-card:hover::after {
    border-color: rgba(201, 162, 46, 0.3);
}

/* --- Experience Feature --- */
.experience-feature {
    opacity: 1;
}

/* --- Gallery Items --- */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-radius: inherit;
    transition: border-color 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-item:hover::before {
    border-color: rgba(201, 162, 46, 0.25);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion: ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }

    h1, h1 + p, h1 + p + div {
        opacity: 1;
        animation: none;
    }

    .animate-scroll-indicator {
        animation: none;
    }

    .lodging-card img,
    .gallery-item img {
        transition: none;
    }
}

/* --- Gold Metallic Gradient (for special accents) --- */
.gold-gradient {
    background: linear-gradient(135deg, #f5d78e 0%, #c9a22e 50%, #8a6a24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Button Focus States --- */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #c9a22e;
    outline-offset: 2px;
}

/* --- Input Autofill --- */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1a1a20 inset !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* --- Selection Color --- */
::selection {
    background: rgba(201, 162, 46, 0.3);
    color: #ffffff;
}

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

::-webkit-scrollbar-track {
    background: #0a0a0c;
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 162, 46, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 162, 46, 0.5);
}

/* --- Responsive Tweaks --- */
@media (max-width: 767px) {
    .section-label {
        padding-left: 0;
    }

    .section-label::before {
        display: none;
    }

    .section-desc {
        font-size: 0.95rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .lodging-card {
        aspect-ratio: 4/5;
    }
}

/* --- Print Styles --- */
@media print {
    #navbar,
    #menu-btn,
    .animate-scroll-indicator {
        display: none;
    }

    body {
        background: #ffffff;
        color: #1a1a20;
    }

    .section-title,
    .font-serif {
        color: #1a1a20 !important;
    }
}
