/*
 * PAGES.CSS
 * Styles for sub-pages like Winter and Summer
 */

/* ============================================= */
/* --- 1. Static Header for Sub-Pages --- */
/* ============================================= */
/*
 * This class overrides the transparent header
 * and makes it the "scrolled" (white) state by default.
*/
.main-header.main-header-static {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.main-header.main-header-static .nav-logo a {
    color: var(--primary-color); /* Dark logo text */
}

.main-header.main-header-static .nav-menu a {
    color: var(--text-color); /* Dark nav text */
}

/* This is the new rule for the 'static' header */
.main-header.main-header-static .nav-cta {
    background-color: var(--accent-color); /* Gold button */
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.main-header.main-header-static .nav-cta:hover {
    background-color: transparent;
    color: var(--accent-color);
}


/* ============================================= */
/* --- 2. Page Hero --- */
/* ============================================= */
.page-hero {
    height: 45vh; /* Shorter hero for sub-pages */
    min-height: 400px;
    background-size: cover;
    background-position: center 70%; /* Position background better */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Dark overlay for readability */
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(14, 29, 42, 0.6), rgba(14, 29, 42, 0.6));
    z-index: 2; /* Sits above particles */
}

.page-hero .hero-content {
    position: relative;
    z-index: 3; /* Sits above overlay */
    animation: fadeIn 1s ease-out 0.5s forwards;
    opacity: 0;
}

/* Page-specific hero backgrounds (REPLACE THESE) */
#winter-hero-bg {
    background-image: url('assets/bg10.jpeg');
}

#summer-hero-bg {
    background-image: url('assets/summer-hero.jpg');
}


/* ============================================= */
/* --- 3. Page Content Layout --- */
/* ============================================= */
.page-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 column for content, 1/3 for sidebar */
    gap: 3rem;
}

.page-main-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.page-main-content h3 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Custom list style for "What to Expect" */
.page-main-content ul {
    list-style: none;
    padding-left: 0;
}

.page-main-content ul li {
    position: relative;
    padding-left: 30px;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.page-main-content ul li::before {
    content: '✔'; /* Checkmark */
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}


/* --- Sidebar Details Card --- */
.details-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(74, 82, 90, 0.08);
    position: sticky; /* Makes card "stick" on scroll */
    top: 120px; /* (Header height + 40px margin) */
}

.details-card h4 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.details-card p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.details-card p strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}


/* ============================================= */
/* --- 4. Particle Animations (Snow & Leaves) --- */
/* ============================================= */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent particles from showing outside */
    z-index: 1; /* Behind hero content and overlay */
    pointer-events: none; /* Non-interactive */
}

.snowflake,
.leaf {
    position: absolute;
    top: -20px; /* Start above the screen */
    opacity: 0; /* Start invisible */
    pointer-events: none;
    /* 'fall' is the vertical animation.
      'spin' is only for leaves.
    */
    animation: fall linear infinite;
}

.snowflake {
    background: var(--white);
    border-radius: 50%;
    opacity: 0.8;
}

.leaf {
    /* Using a simple, premium shape for a dry leaf */
    width: 10px;
    height: 15px;
    background: #a86431; /* Dry leaf color (Himalayan Sand dark) */
    border-radius: 0 50% 0 50%; /* Leaf shape */
    animation-name: fall, spin; /* Add a spin animation */
}

/* Vertical falling animation */
@keyframes fall {
    0% {
        transform: translateY(0vh);
        opacity: 1;
    }
    100% {
        transform: translateY(105vh); /* Fall to bottom of viewport */
        opacity: 0;
    }
}

/* Leaf spinning animation */
@keyframes spin {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(720deg);
    }
}


/* ============================================= */
/* --- 5. Responsive --- */
/* ============================================= */
@media (max-width: 900px) {
    .page-content-grid {
        grid-template-columns: 1fr; /* Stack columns */
    }

    .details-card {
        position: static; /* Un-stick the card */
        margin-top: 2rem;
    }
}