/* Elegant Boho Theme */
:root {
    --bg-sand: #F7F5F2;
    /* Warm beige/sand */
    --bg-texture: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23dcd6ca' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");

    --terra-cotta: #BC6C57;
    /* Muted terracotta */
    --dried-sage: #93A698;
    /* Soft green */
    --warm-brown: #5D4037;
    /* Deep earth tone */
    --clay: #D9A08B;
    /* Lighter terracotta */
    --cream: #FFFDF9;

    --font-heading: 'Cinzel', serif;
    /* Elegant, slightly ancient feel */
    --font-script: 'Pinyon Script', cursive;
    /* Sophisticated script */
    --font-body: 'Cormorant Garamond', serif;

    --radius-arch: 200px 200px 0 0;
}

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

body {
    background-color: var(--bg-sand);
    background-image: var(--bg-texture);
    color: var(--warm-brown);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Animations */
@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-up {
    animation: floatUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    /* Init hidden */
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}



.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: var(--terra-cotta);
    text-transform: uppercase;
}

/* Language Toggle */
.lang-switch {
    display: flex;
    gap: 15px;
}

.lang-btn {
    border: none;
    background: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--dried-sage);
    transition: color 0.3s;
}

.lang-btn.active,
.lang-btn:hover {
    color: var(--warm-brown);
    text-decoration: underline;
    text-underline-offset: 4px;
}

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

/* Nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(247, 245, 242, 0.85);
    /* Slightly stronger bg */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(188, 108, 87, 0.1);
    transition: all 0.3s;
}

.hero-bg-shape {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: var(--clay);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-family: var(--font-heading);
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: var(--dried-sage);
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 10vw, 7rem);
    color: var(--warm-brown);
    line-height: 0.9;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-title span {
    font-family: var(--font-script);
    color: var(--terra-cotta);
    font-weight: 400;
    display: block;
    font-size: 0.6em;
    /* Relative to title */
    margin: 10px 0;
    text-transform: none;
}

.hero-date {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--warm-brown);
    position: relative;
    display: inline-block;
}

.hero-date::after {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background: var(--terra-cotta);
    margin: 15px auto 0;
}

/* Decorative Arch Image */
.hero-img-container {
    margin-top: 60px;
    width: 100%;
    max-width: 400px;
    height: 500px;
    margin: 60px auto 0;
    position: relative;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-arch);
    box-shadow: 0 20px 40px rgba(93, 64, 55, 0.15);
}

.hero-img-border {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--terra-cotta);
    border-radius: var(--radius-arch);
    z-index: -1;
}

/* Base Sections */
section {
    padding: 120px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 400;
}

.section-subtitle {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--terra-cotta);
    margin-top: -15px;
    display: block;
}

/* Story Section - Asymmetric */
.story-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-text p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    text-align: justify;
}

.story-text::first-letter {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 0.8;
    color: var(--terra-cotta);
    float: left;
    margin-right: 15px;
    margin-top: 5px;
}

/* Timeline / Details - Vertical Line */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--dried-sage);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
    width: 50%;
    padding-right: 50px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 50px;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    right: -6px;
    top: 20px;
    width: 13px;
    height: 13px;
    background: var(--bg-sand);
    border: 2px solid var(--terra-cotta);
    border-radius: 50%;
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -6px;
}

.timeline-time {
    font-family: var(--font-heading);
    color: var(--terra-cotta);
    font-size: 1.2rem;
    margin-bottom: 5px;
    display: block;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-desc {
    color: var(--warm-brown);
    font-size: 1rem;
    opacity: 0.8;
}

/* Map Section */
.wide-map-section {
    position: relative;
    height: 500px;
    width: 100%;
    margin: 60px 0;
}

.wide-map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.5) sepia(0.2);
    /* Soft vintage map look */
}

.map-card {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--terra-cotta);
}

/* Gallery - Mosaic */
.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

/* Big image */
.gallery-item:nth-child(2) {
    grid-column: span 1;
}

.gallery-item:nth-child(3) {
    grid-column: span 1;
}

/* RSVP Section */
.rsvp-section {
    background: var(--warm-brown);
    color: var(--bg-sand);
    text-align: center;
    position: relative;
}

.rsvp-border {
    border: 1px solid var(--clay);
    padding: 60px;
    max-width: 700px;
    margin: 0 auto;
}

.rsvp-title {
    color: var(--clay);
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
}

.rsvp-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dried-sage);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--clay);
    padding: 10px 0;
    color: var(--bg-sand);
    font-family: var(--font-body);
    font-size: 1.1rem;
}

.form-group input:focus {
    outline: none;
    border-bottom: 1px solid var(--dried-sage);
}

.full-width {
    grid-column: span 2;
}

.submit-btn {
    grid-column: span 2;
    margin-top: 30px;
    padding: 15px;
    background: var(--clay);
    border: none;
    color: var(--warm-brown);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: var(--bg-sand);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    font-size: 0.9rem;
    color: var(--warm-brown);
    opacity: 0.7;
}

/* Lang Visibility */
[data-lang="pl"] .lang-en {
    display: none;
}

[data-lang="en"] .lang-pl {
    display: none;
}

/* Mobile */
@media (max-width: 900px) {
    .story-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .gallery-mosaic {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .gallery-item {
        height: 300px;
    }

    .map-card {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        max-width: 100%;
        margin: -60px 20px 0;
        z-index: 2;
    }

    .rsvp-form {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }

    .submit-btn {
        grid-column: span 1;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        margin-left: 0;
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(even) {
        margin-left: 0;
    }

    .timeline-dot {
        left: 14px;
        right: auto;
    }

    /* 20px line - 6px half dot width */
    .timeline-item:nth-child(even) .timeline-dot {
        left: 14px;
    }
}