/* Dark Botanical / Vintage Greenhouse Theme */
:root {
    --bg-dark: #122118;
    /* Deep Forest Green */
    --bg-card: #1A2F23;
    /* Lighter Forest Green */
    --text-main: #F0EAD6;
    /* Eggshell / Cream */
    --text-muted: #A8B5AD;
    /* Muted Sage */
    --gold: #D4AF37;
    /* Antique Gold */
    --border: rgba(212, 175, 55, 0.3);
    /* Low opacity gold */

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --spacing: 80px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.8;
    font-weight: 300;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-weight: 400;
}

h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    letter-spacing: -1px;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

h2::after {
    content: "❦";
    display: block;
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-top: 10px;
}

h3 {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #fff;
}

/* Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding-top: var(--spacing);
    padding-bottom: 20px;
    /* Reduced bottom padding */
    margin-bottom: var(--spacing);
    /* Added margin to separate sections */
}

/* Specific fix for text containers */
.text-center {
    margin-bottom: 40px;
    /* Space between header and content cards */
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

/* Buttons */
.btn-gold {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-gold:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

/* Nav */
nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.brand {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 1.5rem;
}

.lang-toggle button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 600;
    margin-left: 15px;
    cursor: pointer;
}

.lang-toggle button.active {
    color: var(--gold);
    text-decoration: underline;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(18, 33, 24, 0.7) 0%, rgba(18, 33, 24, 1) 100%),
        url('https://images.unsplash.com/photo-1596501046187-5d070b43527a?w=1600&auto=format&fit=crop') center/cover;
}

.hero-border {
    border: 1px solid var(--border);
    padding: 60px;
    max-width: 800px;
    position: relative;
}

/* Decoration Corners */
.hero-border::before,
.hero-border::after,
.hero-border> :first-child::before,
.hero-border> :first-child::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--gold);
    border-style: solid;
    transition: all 0.3s;
}

.hero-border::before {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
}

.hero-border::after {
    top: 0;
    right: 0;
    border-width: 2px 2px 0 0;
}

.hero-border> :first-child::before {
    bottom: 0;
    left: 0;
    border-width: 0 0 2px 2px;
}

.hero-border> :first-child::after {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 20px;
}

/* Story */
.story-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 200px 200px 0 0;
    /* Arch */
    border: 1px solid var(--border);
    padding: 10px;
}

/* Details */
.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.detail-item {
    background: var(--bg-card);
    padding: 40px 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.detail-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.detail-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 15px;
    display: block;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 10px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(20%) contrast(110%);
    transition: filter 0.3s;
}

.gallery-img:hover {
    filter: sepia(0%) contrast(100%);
}

/* Map */
.map-wrapper {
    margin-top: 40px;
    border: 1px solid var(--border);
    padding: 10px;
    background: var(--bg-card);
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    filter: invert(90%) hue-rotate(180deg) contrast(90%);
    /* Dark mode map filter */
    border: 0;
    display: block;
}

/* RSVP */
.rsvp-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
}

.input-block {
    margin-bottom: 20px;
}

.input-block label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--gold);
}

.input-block input,
.input-block select,
.input-block textarea {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 15px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.input-block input:focus,
.input-block select:focus,
.input-block textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* Footer */
footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid var(--bg-card);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Mobile */
@media (max-width: 768px) {

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

    .hero-border {
        padding: 30px 20px;
        margin: 0 20px;
    }

    h1 {
        font-size: 3rem;
    }

    nav {
        padding: 20px;
    }
}

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

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