/* ========================================
   New England Winter Ski Trip Website
   Color Palette:
   - Deep forest green: #1a3a2f
   - Warm cream: #f8f5f0
   - Cranberry red: #8b3a3a
   - Soft sage: #87a096
   - Warm brown: #5c4033
   - Snow white: #ffffff
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --forest-green: #1a3a2f;
    --deep-green: #0f2620;
    --warm-cream: #f8f5f0;
    --cranberry: #8b3a3a;
    --cranberry-dark: #6d2e2e;
    --soft-sage: #87a096;
    --warm-brown: #5c4033;
    --snow-white: #ffffff;
    --text-dark: #2c2c2c;
    --text-light: #f8f5f0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--warm-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   Snowfall Animation
   ======================================== */

.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    animation: fall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.snowflake:nth-child(1) { left: 5%; animation-duration: 15s; animation-delay: 0s; font-size: 0.8rem; }
.snowflake:nth-child(2) { left: 15%; animation-duration: 12s; animation-delay: 2s; font-size: 1.2rem; }
.snowflake:nth-child(3) { left: 25%; animation-duration: 18s; animation-delay: 4s; font-size: 0.6rem; }
.snowflake:nth-child(4) { left: 35%; animation-duration: 14s; animation-delay: 1s; font-size: 1rem; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 16s; animation-delay: 3s; font-size: 0.9rem; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 13s; animation-delay: 5s; font-size: 1.1rem; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 17s; animation-delay: 2.5s; font-size: 0.7rem; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 11s; animation-delay: 1.5s; font-size: 1rem; }
.snowflake:nth-child(9) { left: 88%; animation-duration: 19s; animation-delay: 4.5s; font-size: 0.8rem; }
.snowflake:nth-child(10) { left: 95%; animation-duration: 14s; animation-delay: 0.5s; font-size: 1.3rem; }

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0.3;
    }
}

/* ========================================
   Side Navigation
   ======================================== */

.side-nav {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1100;
}

.nav-trigger {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 120px;
    background: var(--forest-green);
    color: var(--snow-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, width 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.nav-trigger:hover {
    background: var(--cranberry);
}

.nav-menu {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
    background: var(--snow-white);
    padding: 2rem 1.5rem;
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    border-left: 4px solid var(--cranberry);
}

.side-nav.active .nav-menu {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    visibility: visible;
}

/* Hover support for desktop devices */
@media (hover: hover) and (pointer: fine) {
    .side-nav:hover .nav-menu {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
        visibility: visible;
    }
}

.nav-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    color: var(--forest-green);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--soft-sage);
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin-bottom: 0.5rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    background: var(--forest-green);
    color: var(--snow-white);
    transform: translateX(-4px);
}

.nav-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .nav-trigger {
        width: 45px;
        height: 100px;
        font-size: 1.3rem;
    }

    .nav-menu {
        min-width: 200px;
        padding: 1.5rem 1rem;
    }

    .nav-title {
        font-size: 1.1rem;
    }

    .nav-links a {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(
            135deg,
            var(--forest-green) 0%,
            var(--deep-green) 50%,
            #0a1915 100%
        );
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--warm-cream), transparent);
    z-index: 2;
}

/* Mountain silhouette */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: 
        linear-gradient(135deg, transparent 40%, var(--deep-green) 40%, var(--deep-green) 42%, transparent 42%),
        linear-gradient(225deg, transparent 35%, var(--forest-green) 35%, var(--forest-green) 38%, transparent 38%),
        linear-gradient(160deg, transparent 45%, #0f2018 45%, #0f2018 48%, transparent 48%);
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-subtitle {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    color: var(--soft-sage);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--snow-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.pine-tree {
    font-size: 1.5rem;
    opacity: 0.8;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--soft-sage), transparent);
}

.snowflake-icon {
    font-size: 1.8rem;
    color: var(--snow-white);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.hero-dates {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 600;
    color: var(--snow-white);
    margin-bottom: 0.5rem;
}

.hero-location {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--snow-white);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
    color: var(--soft-sage);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.scroll-arrow {
    margin-top: 0.5rem;
    animation: bounce 2s ease-in-out infinite;
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ========================================
   Welcome Section
   ======================================== */

.welcome {
    padding: 6rem 0;
    background: var(--warm-cream);
}

.welcome-card {
    background: var(--snow-white);
    padding: 3rem 4rem;
    border-radius: 8px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 40px rgba(26, 58, 47, 0.1);
    text-align: center;
    border: 1px solid rgba(26, 58, 47, 0.08);
    position: relative;
}

.welcome-card::before,
.welcome-card::after {
    content: '~';
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--soft-sage);
    opacity: 0.5;
}

.welcome-card::before {
    top: 1.5rem;
    left: 2rem;
}

.welcome-card::after {
    bottom: 1.5rem;
    right: 2rem;
}

.welcome h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--forest-green);
    margin-bottom: 1.5rem;
}

.welcome p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--warm-brown);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   Section Titles
   ======================================== */

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--forest-green);
    text-align: center;
    margin-bottom: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title-decoration {
    color: var(--cranberry);
    font-size: 1.5rem;
}

/* ========================================
   Lodge Info Section
   ======================================== */

.lodge-info {
    padding: 5rem 0;
    background: var(--forest-green);
}

.lodge-info .section-title {
    color: var(--snow-white);
}

.lodge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.lodge-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.lodge-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
}

.lodge-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.lodge-icon {
    font-size: 1.8rem;
}

.lodge-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--snow-white);
}

.lodge-address {
    color: var(--soft-sage);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    padding-left: 2.55rem;
}

.lodge-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.lodge-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--warm-cream);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: background 0.2s ease;
}

.lodge-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.link-icon {
    font-size: 1rem;
}

.lodge-amenities h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--snow-white);
    margin-bottom: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lodge-amenities ul {
    list-style: none;
}

.lodge-amenities li {
    color: var(--warm-cream);
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.9rem;
}

.lodge-amenities li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--soft-sage);
}

@media (max-width: 768px) {
    .lodge-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Itinerary Section
   ======================================== */

.itinerary {
    padding: 5rem 0 6rem;
    background: 
        linear-gradient(180deg, var(--warm-cream) 0%, #f0ebe3 100%);
}

.itinerary-note {
    text-align: center;
    color: var(--warm-brown);
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 3rem;
    margin-top: -2rem;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Day Section */
.day-section {
    margin-bottom: 3rem;
}

.day-section:last-child {
    margin-bottom: 0;
}

.day-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.day-marker {
    width: 50px;
    height: 50px;
    background: var(--forest-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26, 58, 47, 0.3);
}

.day-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--snow-white);
}

.day-info {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
}

.day-info .weekday {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cranberry);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.day-info .date {
    font-size: 0.9rem;
    color: var(--soft-sage);
    font-weight: 500;
}

.day-info h3 {
    width: 100%;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--forest-green);
    margin: 0;
}

/* Two-column cards */
.day-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-left: 62px;
}

.day-card {
    background: var(--snow-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(26, 58, 47, 0.08);
    border: 1px solid rgba(26, 58, 47, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.day-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.06),
        0 12px 32px rgba(26, 58, 47, 0.12);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(135, 160, 150, 0.2);
}

.card-icon {
    font-size: 1.3rem;
}

.card-header h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--forest-green);
    margin: 0;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-list li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(135, 160, 150, 0.15);
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.card-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.card-list li strong {
    color: var(--warm-brown);
}

/* Activities card accent */
.activities-card {
    border-top: 3px solid var(--forest-green);
}

/* Meals card accent */
.meals-card {
    border-top: 3px solid var(--cranberry);
}

/* Responsive */
@media (max-width: 768px) {
    .day-cards {
        grid-template-columns: 1fr;
        margin-left: 0;
    }

    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .day-info h3 {
        font-size: 1.4rem;
    }
}

/* ========================================
   Packing Section
   ======================================== */

.packing {
    padding: 5rem 0 6rem;
    background: var(--forest-green);
    position: relative;
}

.packing .section-title {
    color: var(--snow-white);
}

.packing .title-decoration {
    color: var(--soft-sage);
}

.packing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.packing-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.packing-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
}

.packing-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.packing-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--snow-white);
    margin-bottom: 1.25rem;
}

.packing-card ul {
    list-style: none;
    text-align: left;
}

.packing-card li {
    color: var(--warm-cream);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.packing-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--soft-sage);
}

/* ========================================
   Recipe Links & Modals
   ======================================== */

.recipe-link {
    color: var(--cranberry);
    text-decoration: underline;
    text-decoration-style: dotted;
    cursor: pointer;
    transition: color 0.2s ease;
}

.recipe-link:hover {
    color: var(--cranberry-dark);
}

/* Modal styles using :target */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
}

.modal:target {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.modal-content {
    background: var(--warm-cream);
    max-width: 600px;
    width: calc(100% - 4rem);
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal:target .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 2rem;
    color: var(--soft-sage);
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--cranberry);
}

.modal-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--forest-green);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--soft-sage);
}

.modal-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cranberry);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.modal-content ul,
.modal-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-content li {
    padding: 0.3rem 0;
    color: var(--text-dark);
    line-height: 1.5;
}

.modal-content li ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.modal-content li strong {
    color: var(--warm-brown);
}

@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }

    .modal-content {
        padding: 1.5rem;
        max-height: 85vh;
    }

    .modal-content h2 {
        font-size: 1.5rem;
        padding-right: 2rem;
    }
}

/* ========================================
   Photo Album Section
   ======================================== */

.photo-album {
    padding: 5rem 0 6rem;
    background: 
        linear-gradient(180deg, #f0ebe3 0%, #ede8dd 100%);
    position: relative;
}

.photo-album .section-title {
    color: var(--forest-green);
    margin-bottom: 4rem;
}

.scrapbook {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.photo-frame {
    position: relative;
    background: var(--snow-white);
    padding: 1.25rem;
    padding-bottom: 3.5rem;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.12),
        0 16px 32px rgba(0, 0, 0, 0.08);
    transform: rotate(var(--rotation, 0deg));
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 2px;
    cursor: pointer;
}

.photo-frame:hover {
    transform: rotate(0deg) translateY(-8px) scale(1.02);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.12),
        0 16px 32px rgba(0, 0, 0, 0.16),
        0 24px 48px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.photo-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    border: 3px solid #f5f5f5;
}

.photo-caption {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 500;
    color: var(--warm-brown);
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
}

/* Tape effect */
.tape {
    position: absolute;
    width: 80px;
    height: 28px;
    background: rgba(255, 250, 205, 0.85);
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 2;
    border-left: 1px solid rgba(0, 0, 0, 0.03);
    border-right: 1px solid rgba(0, 0, 0, 0.03);
}

.tape::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 1px;
    background: rgba(0, 0, 0, 0.04);
}

.tape-top-left {
    top: -14px;
    left: 10%;
    transform: rotate(-8deg);
}

.tape-top-right {
    top: -14px;
    right: 10%;
    transform: rotate(8deg);
}

@media (max-width: 900px) {
    .scrapbook {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 3rem 2rem;
    }
}

@media (max-width: 600px) {
    .scrapbook {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 1rem;
    }

    .photo-frame {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ========================================
   Photo Lightbox
   ======================================== */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--snow-white);
    text-align: center;
    margin-top: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--snow-white);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--cranberry);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--snow-white);
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .lightbox-content img {
        max-height: 70vh;
    }

    .lightbox-caption {
        font-size: 1.1rem;
        margin-top: 1rem;
    }

    .lightbox-close {
        top: -40px;
        font-size: 2.5rem;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
        padding: 0.75rem 1rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--deep-green);
    padding: 4rem 0;
    text-align: center;
}

.footer-content {
    max-width: 500px;
    margin: 0 auto;
}

.footer-trees {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5rem;
    opacity: 0.7;
}

.footer-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--snow-white);
    margin-bottom: 0.5rem;
}

.footer-subtext {
    font-size: 0.95rem;
    color: var(--soft-sage);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.footer-snowflakes {
    font-size: 1.5rem;
    color: var(--snow-white);
    opacity: 0.5;
    letter-spacing: 1rem;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 0.2em;
    }

    .welcome-card {
        padding: 2rem 1.5rem;
    }

    .welcome-card::before,
    .welcome-card::after {
        display: none;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-marker {
        left: 0;
        width: 40px;
        height: 40px;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.3rem;
    }

    .activity-list li {
        flex-direction: column;
        gap: 0.25rem;
    }

    .time {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .packing-grid {
        grid-template-columns: 1fr;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-dates {
        font-size: 1.3rem;
    }

    .welcome h2 {
        font-size: 1.6rem;
    }

    .footer-text {
        font-size: 1.4rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .snowflakes,
    .scroll-indicator {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 3rem 2rem;
        background: var(--forest-green) !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .timeline-content {
        break-inside: avoid;
    }
}
