:root {
    --ink: #634a20;
    --ink-soft: #7a612a;
    --muted: #8c8266;
    --rule: #e0c481;
    --gold: #cea030;
    --gold-pale: #f7edd0;
    --bg: #fbf8f0;
    --card: #ffffff;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Jost', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--ink-soft);
}

/* ── Ornamental rule ── */
.rule {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--gold);
    opacity: 0.6;
    margin: 0 auto;
    width: fit-content;
}

.rule::before,
.rule::after {
    content: '';
    display: block;
    width: 48px;
    height: 0.5px;
    background: var(--gold);
}

.rule-diamond {
    font-size: 7px;
    letter-spacing: 3px;
}

/* ── HERO ── */
.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 24px;
    background: radial-gradient(ellipse at center, var(--ink-soft) 0%, var(--ink) 100%);
    color: #ffffff;
    background-size: 200% 200%;
    animation: gradient-wave 6s ease alternate infinite;
    overflow: hidden;
}



@keyframes gradient-wave {
    0% {
        background-position: 0% 50%;
        filter: brightness(100%) saturate(100%);
    }

    25% {
        background-position: 50% 0%;
        filter: brightness(110%) saturate(120%);
    }

    50% {
        background-position: 100% 50%;
        filter: brightness(120%) saturate(140%);
    }

    75% {
        background-position: 50% 100%;
        filter: brightness(110%) saturate(120%);
    }

    100% {
        background-position: 0% 50%;
        filter: brightness(100%) saturate(100%);
    }

}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    max-width: 650px;
    margin: auto 0;
}

.hero-eyebrow {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-pale);
    opacity: 0.85;
}

.hero-names {
    font-family: var(--serif);
    font-size: clamp(56px, 11vw, 104px);
    font-weight: 300;
    font-style: italic;
    color: #ffffff;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.hero-ampersand {
    font-family: var(--serif);
    font-size: 0.7em;
    font-style: italic;
    color: var(--gold-pale);
    font-weight: 300;
    margin: 0 4px;
    display: inline-block;
}

.hero-date {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 200;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

/* Scroll indikator — čista, suptilna linija */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--sans);
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.hero-scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, rgba(232, 217, 192, 0.4), transparent);
}

/* ── SECTIONS ── */
section {
    padding: 80px 24px;
    max-width: 680px;
    margin: 0 auto;
}

.section-label {
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    display: block;
}

/* ── INTRO ── */
.intro {
    text-align: center;
    padding-top: 5px;
}

.intro-text {
    font-family: var(--serif);
    font-size: clamp(20px, 4vw, 30px);
    font-weight: 300;
    font-style: italic;
    color: var(--ink-soft);
    line-height: 1.6;
    margin: 24px 0 32px;
}

/* --- FOTKE --- */


.fotke {
    padding: 60px 24px 80px;
    overflow: hidden;
}

.fotke article {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    height: 380px;
    /* fiksna visina da se polaroidi preklapaju */
}

.fotke figure:has(figcaption) {
    background: #f0ede8;
    display: inline-block;
    padding: 14px 14px 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.1);
    position: absolute;
    /* ključno — svi u isti "stack" */
    width: 220px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fotke figure:has(figcaption):hover {
    transform: rotate(0deg) scale(1.06) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    z-index: 10;
    background-color: white;
}

.fotke figure img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.fotke figure:has(figcaption):hover img {
    opacity: 1;
}


.fotke figcaption {
    font-size: 0.82rem;
    color: #333;
    text-align: center;
    margin-top: 14px;
    line-height: 1.4;
}

/* Pozicije i rotacije za svaki polaroid */
.fotke .image-one {
    transform: rotate(-12deg);
    top: 20px;
    left: 5%;
    z-index: 2;
}

.fotke .image-two {
    transform: rotate(6deg);
    top: 0px;
    left: 35%;
    transform: rotate(6deg);
    z-index: 3;
}

.fotke .image-three {
    transform: rotate(-4deg);
    top: 30px;
    right: 5%;
    z-index: 2;
}

/* Mobile — složi jedan ispod drugog */
@media (max-width: 600px) {
    .fotke article {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .fotke figure:has(figcaption) {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 200px;
    }

    .fotke .image-one {
        transform: rotate(-8deg);
    }

    .fotke .image-two {
        transform: rotate(5deg);
    }

    .fotke .image-three {
        transform: rotate(-3deg);
    }
}

/* ── PROGRAM ── */

.program-list {
    list-style: none;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.program-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0 24px;
    padding: 22px 0;
    border-bottom: 0.5px dotted var(--rule);
    align-items: start;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.program-item:first-child {
    border-top: 0.5px dotted var(--rule);
}

.program-time {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--gold);
    padding-top: 3px;
}

.program-event {
    font-family: var(--serif);
    font-size: 19px;
    font-style: italic;
    color: var(--ink);
    font-weight: 400;
}

.program-location {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 300;
    color: var(--muted);
    margin-top: 3px;
    line-height: 1.5;
}

.program-location a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── RSVP FORM ── */
.rsvp-section {
    border-top: 0.5px solid var(--rule);
    text-align: center;
}

.rsvp-heading {
    font-family: var(--serif);
    font-size: clamp(30px, 6vw, 44px);
    font-weight: 300;
    font-style: italic;
    color: var(--ink);
    margin: 20px 0 8px;
}

.rsvp-sub {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 300;
    color: var(--muted);
    margin-bottom: 40px;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field-label {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.field-input,
.field-select,
.field-textarea {
    width: 100%;
    background: var(--card);
    border: 0.5px solid var(--rule);
    border-radius: 0;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 300;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

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

.field-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.field-select-wrap {
    position: relative;
}

.field-select-wrap::after {
    content: '↓';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 12px;
    pointer-events: none;
}

/* Dolazak toggle */
.rsvp-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 0.5px solid var(--rule);
}

.rsvp-toggle-btn {
    padding: 14px;
    border: none;
    background: var(--card);
    color: var(--muted);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.rsvp-toggle-btn:first-child {
    border-right: 0.5px solid var(--rule);
}

.rsvp-toggle-btn.selected-yes {
    background: var(--gold);
    color: #fff;
}

.rsvp-toggle-btn.selected-no {
    background: var(--ink);
    color: #fff;
}

#extra-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}

#extra-fields.visible {
    max-height: 500px;
}

.submit-btn {
    margin-top: 8px;
    padding: 18px 32px;
    background: var(--ink);
    color: #fff;
    border: none;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

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

/* ── FOOTER ── */
footer {
    text-align: center;
    padding: 48px 24px 64px;
    border-top: 0.5px solid var(--rule);
}

.footer-names {
    font-family: var(--serif);
    font-size: 28px;
    font-style: italic;
    font-weight: 300;
    color: var(--ink-soft);
    margin: 16px 0 8px;
}

.footer-note {
    font-size: 12px;
    font-weight: 300;
    color: var(--muted);
    letter-spacing: 0.04em;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease, background-color 0.3s ease;
}

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

/* ── Success state ── */
.rsvp-success {
    display: none;
    text-align: center;
    padding: 48px 0;
}

.rsvp-success.show {
    display: block;
    background: var(--card);
    border: 1px solid var(--rule);
}

.rsvp-form.hidden {
    display: none;
}

.rsvp-success-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.rsvp-success-heading {
    font-family: var(--serif);
    font-size: 28px;
    font-style: italic;
    font-weight: 300;
    color: var(--ink);
    margin-bottom: 8px;
}

.rsvp-success-text {
    font-size: 17px;
    font-weight: 500;
    color: var(--muted);
    padding: 0px 10px;
}

span#countdown {
    font-size: 0.8rem;
    text-align: center;
    letter-spacing: 0px;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    section {
        padding: 60px 20px;
    }

    .hero-content {
        padding: 72px 20px 80px;
    }
}

.trial-banner {
    background: var(--gold-pale);
    color: var(--ink);
    text-align: center;
    padding: 10px 16px;
    font-family: var(--sans);
    font-size: 0.9em;
    position: fixed;
    top: 0;
    z-index: 9999;
    width: 100%;
}