/* ========================================
   Rustic Autumn Wedding Theme
   ======================================== */

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

:root {
    /* Autumn Palette */
    --color-cream: #faf3e8;
    --color-parchment: #f5ead6;
    --color-burnt-orange: #c87941;
    --color-copper: #b87333;
    --color-burgundy: #722f37;
    --color-forest: #4a5d3a;
    --color-dark-wood: #3b2a1a;
    --color-warm-brown: #6b4226;
    --color-golden: #d4a843;
    --color-sage: #9caf88;
    --color-rust: #a0522d;
    --color-text: #4a3728;
    --color-text-light: #7a6558;

    /* Typography */
    --font-heading: 'Cormorant Garamond', 'Playfair Display', serif;
    --font-body: 'Outfit', 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-cream);
    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-dark-wood);
    font-weight: 400;
}

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-copper);
    margin: 0.8rem auto 0;
}

/* ---- Leaf Divider ---- */
.leaf-divider {
    text-align: center;
    font-size: 1.8rem;
    padding: 1rem 0;
    opacity: 0.4;
    letter-spacing: 1rem;
    color: var(--color-burnt-orange);
}

/* ---- Navbar ---- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(250, 243, 232, 0.92);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 115, 51, 0.15);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    padding: 0.8rem 5%;
    box-shadow: 0 4px 20px rgba(59, 42, 26, 0.1);
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--color-dark-wood);
}

.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(59, 42, 26, 0.4);
    padding: 0.2rem 0.3rem;
    transition: color 0.2s ease;
}

.lang-option.active {
    font-weight: 700;
    color: var(--color-dark-wood);
}

.lang-option:hover:not(.active) {
    color: var(--color-dark-wood);
}

.lang-divider {
    font-size: 0.85rem;
    color: rgba(59, 42, 26, 0.25);
    font-weight: 300;
}

.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: var(--color-warm-brown);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s;
}

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

.nav-links a:hover {
    color: var(--color-burnt-orange);
}

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

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

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

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(250, 243, 232, 0.85) 0%,
        rgba(250, 243, 232, 0.7) 40%,
        rgba(250, 243, 232, 0.9) 80%,
        rgba(250, 243, 232, 1) 100%
    );
}

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

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

.hero-content h1 {
    font-size: 5.5rem;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    color: var(--color-dark-wood);
    text-shadow: 0 0 20px rgba(250, 243, 232, 1), 0 0 40px rgba(250, 243, 232, 0.9);
    animation: fadeInUp 1.2s ease-out both;
}

.hero-ampersand {
    display: block;
    font-size: 3rem;
    font-style: italic;
    color: var(--color-dark-wood);
    margin: -0.5rem 0;
    font-weight: 400;
    text-shadow: 0 0 15px rgba(250, 243, 232, 0.9);
    animation: fadeInUp 1.2s ease-out 0.3s both;
}

.date-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-dark-wood);
    padding: 0.5rem 2rem;
    border: 1.5px solid var(--color-dark-wood);
    margin: 1.5rem 0;
    background: rgba(250, 243, 232, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-dark-wood);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(250, 243, 232, 0.9);
    animation: fadeInUp 1.2s ease-out 0.9s both;
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 3rem;
    background: var(--color-burnt-orange);
    color: var(--color-cream);
    text-decoration: none;
    border-radius: 2px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 2px;
    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.15), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover {
    background: var(--color-warm-brown);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 121, 65, 0.3);
}

.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: var(--color-copper);
    font-size: 1.5rem;
    opacity: 0.6;
}

@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);
    }
}

/* ---- Quote Section ---- */
.couple-photo-container {
    margin-bottom: 3rem;
    padding: 0 20px;
}

.couple-photo {
    width: 100%;
    max-width: 900px;
    max-height: 600px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(59, 42, 26, 0.12);
    border: 8px solid var(--color-cream);
}

.quote-section {
    padding: 4rem 8%;
    text-align: center;
    background: var(--color-parchment);
    position: relative;
}

.quote-section blockquote {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-style: italic;
    color: var(--color-warm-brown);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 300;
}

.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: 4px;
    box-shadow: 0 4px 20px rgba(59, 42, 26, 0.06);
    width: 320px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(184, 115, 51, 0.1);
    position: relative;
    overflow: hidden;
}

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

.detail-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(59, 42, 26, 0.1);
}

.detail-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.detail-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--color-dark-wood);
    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-burnt-orange);
    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-parchment);
}

.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-copper), var(--color-sage));
    opacity: 0.3;
}

.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: 4px;
    box-shadow: 0 2px 12px rgba(59, 42, 26, 0.06);
}

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

.timeline-time {
    font-size: 0.85rem;
    color: var(--color-copper);
    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-dark-wood);
}

/* ---- 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: 4px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(59, 42, 26, 0.1);
    border: 1px solid rgba(184, 115, 51, 0.1);
}

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

/* ---- Countdown Section ---- */
.countdown-section {
    padding: 4rem 8%;
    text-align: center;
    background: var(--color-dark-wood);
    color: var(--color-cream);
}

.countdown-section h2 {
    color: var(--color-cream);
}

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

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

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

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

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

/* ---- Footer ---- */
footer {
    text-align: center;
    padding: 2.5rem;
    background: var(--color-dark-wood);
    color: rgba(250, 243, 232, 0.6);
    font-size: 0.9rem;
    border-top: 1px solid rgba(184, 115, 51, 0.2);
}

footer .footer-names {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-golden);
    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: 3.2rem;
    }

    .hero-ampersand {
        font-size: 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%;
    }
}

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

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

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