/* ========================================
   Autumn Wedding — Redesigned
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Outfit:wght@300;400;500;600&display=swap');

:root {
    /* Refined Autumn Palette — less brown, more depth */
    --color-ivory: #faf8f4;
    --color-linen: #f3efe8;
    --color-wine: #8b4049;
    --color-burgundy: #6b2d3e;
    --color-amber: #c9975d;
    --color-gold: #d4a84a;
    --color-forest: #3d5a3e;
    --color-sage: #8fa77e;
    --color-charcoal: #2c2c2c;
    --color-warm-gray: #4a4545;
    --color-text: #3a3a3a;
    --color-text-light: #6b6565;
    --color-rust: #b45a3c;

    /* Typography */
    --font-heading: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Outfit', 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 6rem 8%;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-ivory);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, .nav-brand {
    font-family: var(--font-heading);
    color: var(--color-charcoal);
    font-weight: 500;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--color-amber);
    margin: 0.8rem auto 0;
}

/* ---- Decorative Divider ---- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0;
    opacity: 0.5;
}

.section-divider::before,
.section-divider::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-amber), transparent);
}

.divider-leaf {
    width: 20px;
    height: 24px;
    background-image: url('/static/images/maple-leaf-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

/* ---- Navbar ---- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 5%;
    background: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: padding 0.4s ease, background 0.4s ease, box-shadow 0.4s ease, border-bottom-color 0.4s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 0.8rem 5%;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border-bottom-color: rgba(201, 151, 93, 0.15);
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: #fff;
    transition: color 0.4s ease;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .nav-brand {
    color: var(--color-charcoal);
    text-shadow: none;
}

.brand-full {
    display: none;
}

@media (min-width: 769px) {
    .brand-short {
        display: none;
    }
    .brand-full {
        display: inline;
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-option {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.2rem 0.3rem;
    transition: color 0.3s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.lang-option.active {
    font-weight: 700;
    color: #fff;
}

.lang-option:hover:not(.active) {
    color: rgba(255, 255, 255, 0.85);
}

.navbar.scrolled .lang-option {
    color: rgba(58, 58, 58, 0.4);
    text-shadow: none;
}

.navbar.scrolled .lang-option.active {
    color: var(--color-charcoal);
}

.navbar.scrolled .lang-option:hover:not(.active) {
    color: var(--color-charcoal);
}

.lang-divider {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
    transition: color 0.3s ease;
}

.navbar.scrolled .lang-divider {
    color: rgba(58, 58, 58, 0.2);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.navbar.scrolled .nav-links a {
    color: var(--color-text);
    text-shadow: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-amber);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.navbar.scrolled .nav-links a:hover {
    color: var(--color-wine);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ---- Hero Section — Full-Bleed Couple Photo ---- */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding: 0 20px 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/images/kamil-ola-wide.jpg');
    background-size: cover;
    background-position: center 20%;
    z-index: 0;
    animation: heroZoom 30s ease-in-out infinite alternate;
}

/* Subtle bottom scrim — keeps text readable without washing out the photo */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.08) 40%,
        rgba(0, 0, 0, 0.35) 80%,
        rgba(0, 0, 0, 0.55) 100%
    );
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 500;
    letter-spacing: 6px;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4), 0 0 60px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1.2s ease-out both;
}

.hero-ampersand {
    display: inline;
    font-size: 3.5rem;
    font-style: italic;
    color: var(--color-amber);
    margin: 0 0.3rem;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 1.2s ease-out 0.3s both;
}

.date-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #fff;
    padding: 0.6rem 2.2rem;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
    animation: fadeInUp 1.2s ease-out 0.9s both;
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 3rem;
    background: transparent;
    color: #fff;
    text-decoration: none;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1.2s ease-out 1.2s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover::before {
    left: 100%;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: bounce 2s infinite;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-12px); }
    60% { transform: translateX(-50%) translateY(-6px); }
}

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

/* ---- Falling Leaves Animation ---- */
.falling-leaves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.leaf {
    position: absolute;
    top: -60px;
    opacity: 0;
    animation: leafFall linear infinite;
}

.leaf:nth-child(1) {
    left: 5%;
    width: 26px;
    height: 32px;
    animation-duration: 10s;
    animation-delay: 0s;
}

.leaf:nth-child(2) {
    left: 22%;
    width: 20px;
    height: 36px;
    animation-duration: 13s;
    animation-delay: 2s;
}

.leaf:nth-child(3) {
    left: 42%;
    width: 18px;
    height: 27px;
    animation-duration: 9s;
    animation-delay: 4s;
}

.leaf:nth-child(4) {
    left: 60%;
    width: 22px;
    height: 28px;
    animation-duration: 12s;
    animation-delay: 1s;
}

.leaf:nth-child(5) {
    left: 78%;
    width: 16px;
    height: 24px;
    animation-duration: 11s;
    animation-delay: 3s;
}

.leaf:nth-child(6) {
    left: 92%;
    width: 24px;
    height: 42px;
    animation-duration: 14s;
    animation-delay: 6s;
}

/* Leaf colour variants via CSS filter (base SVG is amber #c9975d) */
.leaf-burgundy {
    filter: hue-rotate(-30deg) saturate(1.6) brightness(0.7);
}

.leaf-orange {
    filter: hue-rotate(-15deg) saturate(1.8) brightness(1.1);
}

.leaf-red {
    filter: hue-rotate(-40deg) saturate(2) brightness(0.8);
}

.leaf-gold {
    filter: hue-rotate(10deg) saturate(1.4) brightness(1.15);
}

.leaf-rust {
    filter: hue-rotate(-20deg) saturate(1.3) brightness(0.75);
}

@keyframes leafFall {
    0% {
        opacity: 0;
        transform: translateY(-20px) rotate(0deg) translateX(0);
    }
    8% {
        opacity: 0.6;
    }
    25% {
        transform: translateY(25vh) rotate(95deg) translateX(30px);
    }
    50% {
        transform: translateY(50vh) rotate(200deg) translateX(-25px);
        opacity: 0.5;
    }
    75% {
        transform: translateY(75vh) rotate(310deg) translateX(35px);
    }
    90% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(108vh) rotate(400deg) translateX(-15px);
    }
}

/* ---- Quote Section ---- */
.quote-section {
    padding: 5rem 8%;
    text-align: center;
    background: var(--color-linen);
    position: relative;
}

.quote-section blockquote {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-style: italic;
    color: var(--color-warm-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.9;
    font-weight: 400;
    position: relative;
    padding: 0 2rem;
}

.quote-section blockquote::before {
    content: '\201C';
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--color-amber);
    opacity: 0.3;
    position: absolute;
    top: -1.5rem;
    left: -0.5rem;
    line-height: 1;
}

.quote-section cite {
    display: block;
    margin-top: 1rem;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.85rem;
    color: var(--color-text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ---- Details Section ---- */
.details-section {
    padding: var(--section-padding);
    text-align: center;
}

.details-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    font-weight: 300;
    margin-bottom: 3rem;
}

.details-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.detail-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    width: 320px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(201, 151, 93, 0.12);
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-wine), var(--color-amber), var(--color-forest));
}

.detail-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.detail-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--color-amber);
    transition: color 0.4s ease;
}

.detail-card:hover .card-icon {
    color: var(--color-wine);
}

.detail-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--color-charcoal);
    font-weight: 600;
}

.detail-card p {
    color: var(--color-text-light);
    line-height: 1.8;
}

.detail-card .detail-highlight {
    font-weight: 500;
    color: var(--color-wine);
    font-size: 1.05rem;
}

/* Location link inside the Gdzie card */
.location-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.3s ease;
}

.location-link:hover {
    opacity: 0.75;
}

/* ---- Timeline Section ---- */
.timeline-section {
    padding: var(--section-padding);
    text-align: center;
    background: var(--color-linen);
}

.timeline {
    max-width: 600px;
    margin: 3rem auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-wine), var(--color-amber), var(--color-forest));
    opacity: 0.25;
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 2.5rem;
    display: flex;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-end;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: left;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}

.timeline-content {
    width: 50%;
    padding: 0 2rem;
    position: relative;
}

.timeline-content-inner {
    padding: 1.5rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-amber);
    border: 3px solid var(--color-linen);
    box-shadow: 0 0 0 2px var(--color-amber);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.timeline-time {
    font-size: 0.85rem;
    color: var(--color-wine);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.timeline-label {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-charcoal);
}

/* ---- Map / Location Section ---- */
.location-section {
    padding: var(--section-padding);
    text-align: center;
}

.location-section .map-container {
    max-width: 800px;
    margin: 2rem auto 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(201, 151, 93, 0.12);
}

.location-section .map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* ---- Countdown Section ---- */
.countdown-section {
    padding: 5rem 8%;
    text-align: center;
    background: var(--color-charcoal);
    color: var(--color-ivory);
    position: relative;
    overflow: hidden;
}

/* Subtle ambient glow */
.countdown-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 64, 73, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -150px;
    pointer-events: none;
}

.countdown-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 90, 62, 0.12) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    pointer-events: none;
}

.countdown-section h2 {
    color: var(--color-ivory);
    position: relative;
    z-index: 1;
}

.countdown-section h2::after {
    background: var(--color-gold);
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--color-gold);
    display: block;
    line-height: 1;
}

.countdown-label {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(250, 248, 244, 0.5);
    margin-top: 0.5rem;
}

/* ---- Footer ---- */
footer {
    text-align: center;
    padding: 2.5rem;
    background: var(--color-charcoal);
    color: rgba(250, 248, 244, 0.5);
    font-size: 0.9rem;
    border-top: 1px solid rgba(201, 151, 93, 0.12);
}

footer .footer-names {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

/* ---- Scroll Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-ampersand {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .navbar {
        padding: 1rem 4%;
    }

    .nav-links {
        gap: 1.2rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .details-grid {
        gap: 1.5rem;
    }

    .detail-card {
        width: 100%;
        max-width: 400px;
    }

    .countdown-grid {
        gap: 1.5rem;
    }

    .countdown-number {
        font-size: 2.5rem;
    }

    .timeline-item,
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        justify-content: center;
        text-align: center;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: center;
    }

    .timeline-content {
        width: 100%;
        padding: 0;
    }

    .timeline-dot {
        display: none;
    }

    .timeline::before {
        display: none;
    }

    :root {
        --section-padding: 4rem 5%;
    }

    .hero-bg {
        background-position: center center;
    }
}

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

    .nav-brand {
        font-size: 1.4rem;
    }

    .nav-links {
        gap: 0.8rem;
    }
}
