/* ========== Root tokens ========== */
:root {
    --primary-color: #1A1A1A;
    --accent-color: #FF6B6B;
    --bg-light: #FFFFFF;
    --bg-dark: #F8F8F8;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --spacing-xl: 8rem;
    --spacing-lg: 6rem;
    --spacing-md: 4rem;
    --spacing-sm: 2rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Language Switcher Styles */
.lang-en {
    display: none;
}

.lang-pl {
    display: inline;
}

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

body[data-lang="en"] .lang-en {
    display: inline;
}

/* Language Switcher Styles - Editorial Update */
.language-switcher {
    position: fixed;
    top: 3rem;
    right: 3rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.lang-btn {
    padding: 5px 0;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s ease;
    color: rgba(26, 26, 26, 0.4);
    /* Faded accent */
    text-transform: uppercase;
    position: relative;
}

.lang-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.lang-btn.active {
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
}

.lang-btn.active::after {
    width: 100%;
}

.lang-btn:hover {
    color: var(--primary-color);
}

/* Scroll Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent-color);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Navigation */
nav {
    position: fixed;
    top: 50%;
    right: 3rem;
    transform: translateY(-50%);
    z-index: 999;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

nav a {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-light);
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover,
nav a.active {
    background: var(--accent-color);
    transform: scale(1.4);
}

nav a::after {
    content: attr(data-section);
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav a:hover::after {
    opacity: 1;
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.section {
    min-height: 100vh;
    padding: var(--spacing-lg) var(--spacing-sm);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    opacity: 1;
    transform: none;
    background: var(--bg-dark);
}

.hero-image {
    background-image: url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1200');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 0%, rgba(248, 248, 248, 0.3) 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-lg);
    background: var(--bg-dark);
}

.hero-content .label {
    font-size: 0.875rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-content h1 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.hero-content .accent {
    color: var(--accent-color);
}

.hero-date {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-cta {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
    align-self: flex-start;
}

.hero-cta:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Quick Facts */
.quick-facts {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-md) var(--spacing-sm);
    min-height: auto;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.fact-item {
    padding: 2rem;
}

.fact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.fact-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.fact-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

/* Story Timeline */
.story-timeline {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 2;
    grid-row: 1;
}

.timeline-item:nth-child(even) .timeline-image {
    grid-column: 1;
    grid-row: 1;
}

.timeline-year {
    position: absolute;
    left: 50%;
    top: 2rem;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    z-index: 1;
}

.timeline-content {
    padding: 2rem;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.timeline-image {
    position: relative;
    overflow: hidden;
    height: 400px;
}

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

.timeline-image:hover img {
    transform: scale(1.05);
}

/* Gallery */
.gallery-section {
    background: var(--bg-dark);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 2rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

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

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

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 107, 107, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Schedule */
.schedule-section {
    background: var(--bg-light);
}

.schedule-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.schedule-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #E0E0E0;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.schedule-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    flex-shrink: 0;
    width: 120px;
}

.schedule-time-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: 'Playfair Display', serif;
}

.schedule-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.schedule-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Menu */
.menu-section {
    background: var(--bg-dark);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.menu-category {
    background: white;
    padding: 3rem;
    border-left: 4px solid var(--accent-color);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.menu-category.visible {
    opacity: 1;
    transform: translateY(0);
}

.menu-category h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.menu-item {
    margin-bottom: 1.5rem;
}

.menu-item-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.menu-item-description {
    color: var(--text-light);
    font-size: 0.875rem;
    font-style: italic;
}

/* Map & Location */
.location-section {
    background: var(--bg-light);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.location-details {
    padding: 3rem;
}

.location-details h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.location-info {
    margin-bottom: 2rem;
}

.location-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.location-info .icon {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.map-container {
    height: 500px;
    background: #E0E0E0;
    position: relative;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Registry */
.registry-section {
    background: var(--bg-dark);
}

.registry-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.8;
}

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

.registry-card {
    background: white;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent-color);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.registry-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.registry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.registry-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.registry-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.registry-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.registry-link {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.registry-link:hover {
    background: var(--accent-color);
}

/* Travel Guide */
.travel-section {
    background: var(--bg-light);
}

.travel-grid {
    display: grid;
    gap: 2rem;
}

.travel-item {
    border: 2px solid #E0E0E0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.travel-item-header {
    padding: 1.5rem 2rem;
    background: var(--bg-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.travel-item-header:hover {
    background: var(--accent-color);
    color: white;
}

.travel-item-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.travel-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.travel-item.active .travel-toggle {
    transform: rotate(180deg);
}

.travel-item-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 2rem;
}

.travel-item.active .travel-item-content {
    max-height: 1000px;
    padding: 2rem;
}

.travel-item-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.travel-item-content ul {
    list-style: none;
    padding: 0;
}

.travel-item-content li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #E0E0E0;
    color: var(--text-light);
}

.travel-item-content li:last-child {
    border-bottom: none;
}

/* FAQ */
.faq-section {
    background: var(--bg-dark);
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background: white;
    border-left: 4px solid var(--accent-color);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-dark);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

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

/* RSVP */
.rsvp-section {
    background: var(--primary-color);
    color: white;
}

.rsvp-section h2 {
    color: white;
}

.rsvp-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E0E0E0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1.25rem;
    background: var(--accent-color);
    color: white;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 968px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
        --spacing-md: 2rem;
    }

    nav {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        height: auto;
    }

    .hero-image {
        height: 50vh;
        order: 1;
    }

    .hero-content {
        order: 2;
        padding: var(--spacing-md);
    }

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

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-item:nth-child(even) .timeline-content {
        grid-column: 1;
    }

    .timeline-item:nth-child(even) .timeline-image {
        grid-column: 1;
        grid-row: 2;
    }

    .timeline-year {
        left: 30px;
        transform: translateX(0);
    }

    .timeline-content {
        padding-left: 100px;
    }

    .location-content {
        grid-template-columns: 1fr;
    }

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

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

    .language-switcher {
        top: 1rem;
        right: 1rem;
    }
}