/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
    --primary: #2d5a3d; /* Deep Forest Green */
    --primary-light: #5a8f6e; /* Sage Green */
    --secondary: #4a7a9b; /* Dusty Blue */
    --secondary-light: #e8f0f5; /* Light Blue-Grey */
    --background: #faf7f2; /* Cream/Linen */
    --surface-dark: #1a3a3a; /* Dark Teal/Green */
    --text: #1a3a3a;
    --muted: #5c7575; /* Muted Teal */
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --font-serif: "Crimson Pro", "Georgia", "Times New Roman", serif;
    --font-sans: system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.info-card a {
    color: #2563eb;
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* ============================================================
   NAV
   ============================================================ */

/* Desktop: floating pill top-right */
#navbar {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    z-index: 200;
    padding: 0 1.5rem;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    border-radius: 16px;
}

#nav-menu {
    display: flex;
    gap: 2rem;
    height: 48px;
    align-items: center;
    list-style: none;
}

#navbar a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    transition: color 0.2s;
}

#navbar a:hover {
    color: var(--primary-light);
}

.nav-toggle {
    display: none;
}

/* Language switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
    padding: 2px 3px;
    border-radius: 4px;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.lang-btn:hover {
    opacity: 0.8;
}
.lang-btn.active {
    opacity: 1;
}

/* Mobile */
@media (max-width: 680px) {
    #navbar {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0;
        background: none;
        backdrop-filter: none;
        border-radius: 0;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 8px;
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(4px);
        border: none;
        border-radius: 10px;
        cursor: pointer;
        position: relative;
        z-index: 300;
    }

    .nav-toggle span {
        display: block;
        height: 2px;
        background: #fff;
        border-radius: 2px;
    }

    /* Dropdown menu */
    #nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        flex-direction: column;
        height: auto;
        gap: 0;
        background: rgba(20, 20, 20, 0.96);
        padding: 4rem 0 1.5rem;
        z-index: 199;
    }

    #nav-menu.open {
        display: flex;
    }

    #nav-menu li a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    #nav-menu li:last-child a {
        border-bottom: none;
    }

    .lang-switch {
        justify-content: center;
        margin-left: 0;
        padding: 1rem 2rem;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .lang-btn {
        font-size: 1.8rem;
        opacity: 0.45;
    }
}

/* Backdrop (mobile only) */
#nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 198;
}

#nav-backdrop.open {
    display: block;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end; /* anchor to bottom */
    justify-content: center;
    background-image: url("img/header-bg.jpg");
    background-size: cover;
    background-position: center 20%; /* shift image up */
    color: #fff;
}

/* Top-left names */
.hero-topleft-wrap {
    position: absolute;
    top: 4.5rem;
    left: 3.8rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
}

.hero-topleft {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 1rem 1.5rem;
}

.hero-eyebrow {
    font-size: clamp(0.6rem, min(1.1vw, 1.4vh), 1rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 0.6rem;
}

.hero-topleft h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, min(6vw, 7vh), 7rem);
    font-weight: normal;
    line-height: 1.05;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.hero-verse-box {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    max-width: 26rem;
}

.hero-verse {
    font-size: clamp(0.65rem, min(1.2vw, 1.6vh), 1.2rem);
    letter-spacing: 0.05em;
    opacity: 0.9;
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

.hero-verse-ref {
    font-style: normal;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: clamp(0.55rem, min(1vw, 1.3vh), 0.95rem);
    opacity: 0.75;
}

/* Mobile-only names inside hero-content – hidden on desktop */
.hero-mobile-names {
    display: none;
}
.hero-mobile-names h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: normal;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.amp {
    color: var(--primary-light);
    font-style: italic;
}

/* Bottom-center date + CTA */
.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 2rem 2rem 3rem;
    text-align: center;
}

.hero-date {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
    color: #fff;
}

.hero-place {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

/* dark pill behind the date/place/button block */
.hero-content {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    display: inline-block;
    padding: 1.5rem 2.5rem 2rem;
    width: auto;
    margin-bottom: 2rem;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition:
        transform 0.15s,
        box-shadow 0.15s,
        background 0.2s;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.6;
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 57, 75, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    margin-top: 1rem;
    display: inline-block;
    width: auto;
    align-self: flex-start;
}

.btn-outline:hover {
    background: var(--secondary);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--primary);
}

.btn-white:hover {
    background: var(--background);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   SHARED LAYOUT
   ============================================================ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 3rem 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4.2vw, 3rem);
    font-weight: normal;
    text-align: center;
    color: var(--primary);
    margin-bottom: 3rem;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-light);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.section-title--light {
    color: #fff;
}
.section-title--light::after {
    background: rgba(255, 255, 255, 0.6);
}

.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

/* ============================================================
   PROGRAM
   ============================================================ */
#program {
    background: var(--background);
}

.program-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.program-info,
.program-schedule {
    display: flex;
    flex-direction: column;
}

.program-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.program-info h3,
.program-schedule h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.big-datetime {
    margin-bottom: 1rem;
}

.big-date {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
}

.big-time {
    font-size: 1.3rem;
    color: var(--muted);
    margin-left: 0.5rem;
}

.program-venue {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.program-address {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Schedule list */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.schedule-list li {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.schedule-time {
    flex-shrink: 0;
    width: 3.5rem;
    font-weight: 700;
    color: var(--primary-light);
    font-size: 1rem;
    text-align: center;
}

.schedule-list strong {
    display: block;
    color: var(--surface-dark);
    font-weight: normal;
}
.schedule-list p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

/* ============================================================
   PRACTICAL INFO
   ============================================================ */
#info {
    background: var(--secondary-light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.info-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-icon {
    font-size: 1.75rem;
}

.info-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--primary);
}

.info-card p {
    font-size: 0.93rem;
    color: var(--text);
}

.info-card ul {
    list-style: disc;
    padding-left: 1.2rem;
    font-size: 0.93rem;
    color: var(--text);
}

.info-card ul li {
    margin-bottom: 0.25rem;
}

.small {
    font-size: 0.82rem !important;
    color: var(--muted) !important;
}

.fire-card {
    border-left: 4px solid var(--primary);
}

/* ============================================================
   GIFTS
   ============================================================ */
#dary {
    background: var(--background);
}

.gifts-wrap {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.gifts-text {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.8;
}
.gifts-text p + p {
    margin-top: 1rem;
}

.qr-placeholder {
    text-align: center;
    flex-shrink: 0;
}

.qr-box {
    width: 160px;
    height: 160px;
    border: 3px dashed var(--secondary-light);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.95rem;
    gap: 0.5rem;
    margin: 0 auto 0.75rem;
}

.qr-caption {
    font-size: 1rem;
    color: var(--text);
    margin-top: 0.75rem;
}

.iban-block {
    flex-shrink: 0;
    text-align: center;
}

.iban-label {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.iban-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.iban-number {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    color: var(--text);
    background: var(--secondary-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}

/* ============================================================
   RSVP
   ============================================================ */
#rsvp {
    background: var(--secondary);
    color: #fff;
    text-align: center;
}

.rsvp-container {
    max-width: 600px;
}

.rsvp-intro {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.rsvp-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.rsvp-note a {
    text-decoration: underline;
    opacity: 0.9;
}

/* ============================================================
   PHOTOS
   ============================================================ */
#fotky {
    background: var(--background);
}

.photos-wrap {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.photos-text {
    flex: 1;
}

.photos-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.photos-text .btn {
    margin-top: 0.5rem;
}

.section-title--left {
    text-align: left;
    color: var(--primary);
}

.section-title--left::after {
    margin: 0.75rem 0 0;
}

.photos-tease {
    flex: 0 0 440px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.photos-tease img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

@media (max-width: 780px) {
    .photos-wrap {
        flex-direction: column;
        gap: 2rem;
    }
    .photos-tease {
        flex: none;
        width: 100%;
    }
}

/* ============================================================
   VERSE
   ============================================================ */
#verse {
    display: none;
    background: var(--secondary-light);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

@media (max-width: 680px) {
    #verse {
        display: block;
    }
    #program {
        padding-top: 2.5rem;
    }
}

.verse-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text);
    max-width: 34rem;
    margin: 0 auto;
}

.verse-ref {
    display: block;
    font-style: normal;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.5rem;
}

/* ============================================================
   PHOTOS MODAL
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(26, 58, 58, 0.75);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.open {
    display: flex;
}

.modal-card {
    background: var(--background);
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    padding: 2.5rem 2rem 2rem;
    max-width: 420px;
    width: 100%;
    position: relative;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    transition: color 0.15s;
}

.modal-close:hover {
    color: var(--text);
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: normal;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.modal-hint {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.modal-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--secondary-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-sans);
    color: var(--text);
    background: #fff;
    margin-bottom: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.modal-input:focus {
    border-color: var(--secondary);
}

.modal-submit {
    width: 100%;
}

.modal-error {
    color: #b91c1c;
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.modal-contact {
    margin-top: 1.5rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.modal-contact a {
    color: var(--secondary);
    text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--secondary);
    color: rgba(255, 255, 255);
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1400px) {
    .hero-topleft-wrap {
        top: 1rem;
        left: 1.5rem;
    }
}

@media (max-width: 1200px) {
    /* Switch to mobile hero layout: hide top-left block, show names in bottom pill */
    .hero-topleft-wrap {
        display: none;
    }
    .hero-mobile-names {
        display: block;
        margin-bottom: 1rem;
    }
    .hero-mobile-names .hero-eyebrow {
        font-size: 0.85rem;
    }
    .hero-scroll-hint {
        display: none;
    }

    #hero {
        padding-bottom: 15px;
    }

    .hero-content {
        border-radius: 16px;
        margin: 0 1rem 0;
        padding: 1.5rem 1.5rem 2rem;
    }
}

@media (max-width: 680px) {
    #hero {
        padding-bottom: 15px;
    }
    .hero-content {
        border-radius: 16px;
        margin: 0 1rem 0;
        padding: 1.5rem 1.5rem 2rem;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .gifts-wrap {
        flex-direction: column;
        text-align: center;
    }
}
