/* ==================== Design tokens ==================== */
:root {
  --ivory:    #faf8f1;   /* ozadje strani */
  --ivory-2:  #f2eee3;   /* izmenične sekcije */
  --paper:    #fffdf8;   /* kartice */
  --blue:     #002147;   /* glavna barva (pisava + poudarki) */
  --blue-70:  rgba(0, 33, 71, .72);
  --blue-45:  rgba(0, 33, 71, .5);
  --blue-hover:#013a70;
  --line:     #e4dece;

  --font-serif:  "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-script: "Parisienne", "Cormorant Garamond", cursive;

  --maxw: 1040px;
  --radius: 14px;
  --shadow: 0 18px 45px -28px rgba(0, 33, 71, .35);
}

/* ==================== Reset / base ==================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ivory); }
body {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--blue);
  background: var(--ivory);
  line-height: 1.72;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; margin: 0; }
p { margin: 0 0 1rem; }
a { color: var(--blue); }
img { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 680px; }
.center { text-align: center; }
.muted { color: var(--blue-70); }
.small { font-size: .92rem; }
.lead { font-size: 1.22rem; color: var(--blue-70); }

/* Serif italic "headline" slog */
.script { font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.1rem); color: var(--blue); margin-bottom: 1rem; }

/* Kaligrafija (Great Vibes) — imena in podpisi */
.calligraphy, .signoff { font-family: var(--font-script); font-weight: 400; }

.leaf { display: block; }

/* ==================== Fineline ikone ==================== */
.ic { display: block; width: 40px; height: 40px; margin: 0 auto .7rem; color: var(--blue); }
.ic use, .ic { color: var(--blue); }

/* ==================== Buttons ==================== */
.btn {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: .84rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: 999px;
  border: 1.5px solid var(--blue);
  cursor: pointer;
  text-decoration: none;
  transition: all .25s ease;
  text-align: center;
}
/* polni (modra podlaga, ivory črke) */
.btn--solid { background: var(--blue); color: var(--ivory); }
.btn--solid:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
/* obris (ivory podlaga, modre črke) — negativ */
.btn--outline { background: transparent; color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--ivory); }
.btn--full { width: 100%; margin-top: .5rem; }
.btn[disabled] { opacity: .55; cursor: default; }

/* ==================== Hero ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  color: var(--blue);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(0,33,71,.05), transparent 60%),
    linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%);
  overflow: hidden;
}
.hero__inner { max-width: 680px; animation: rise .9s ease both; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: .32em; font-size: .8rem; font-weight: 600;
  color: var(--blue-70); margin-bottom: 1.2rem;
}
.hero__names {
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(4rem, 15vw, 8rem); line-height: .95; color: var(--blue);
}
.hero__names .amp { font-style: normal; display: inline-block; margin: 0 .06em; }
.hero__date {
  font-family: var(--font-serif); font-size: 1.35rem; letter-spacing: .05em;
  color: var(--blue-70); margin: 1rem 0 2rem;
}
.hero__scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  text-decoration: none; color: var(--blue-70);
}
.hero__scroll-text { text-transform: uppercase; letter-spacing: .24em; font-size: .7rem; font-weight: 600; }
.hero__scroll-arrow { font-size: 1.3rem; animation: bob 1.8s ease-in-out infinite; }

/* ==================== Sections ==================== */
.section { padding: 88px 0; }
.section--alt { background: var(--ivory-2); }
.section--intro { padding-top: 96px; }
.section--closing { background: var(--blue); color: var(--ivory); }
.section--closing .script { color: var(--ivory); }
.section--closing .lead { color: rgba(250,248,241,.9); }
.section--closing .signoff { color: var(--ivory); }
.section__title { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: .4rem; }
.section__sub { margin-bottom: 2.2rem; }
.signoff { font-size: clamp(2.4rem, 6vw, 3.4rem); margin-top: 1rem; line-height: 1; }

/* ==================== Cards ==================== */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

/* ==================== RSVP form ==================== */
.rsvp { margin-top: 1rem; }
.field { margin-bottom: 1.6rem; border: 0; padding: 0; }
.field label,
.field legend { display: block; font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; color: var(--blue); }
.field input[type="text"],
.field textarea,
.field select {
  width: 100%; padding: 13px 15px;
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 500; color: var(--blue);
  background: var(--ivory); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .2s;
}
.field textarea { resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23002147' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 40px; cursor: pointer;
}
.field input::placeholder, .field textarea::placeholder { color: var(--blue-45); }
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,33,71,.12); }
.field__hint { margin: .5rem 0 0; font-size: .92rem; color: var(--blue-70); }

.choice { display: flex; gap: 14px; flex-wrap: wrap; }
.choice__opt {
  flex: 1 1 180px; display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--ivory); cursor: pointer; transition: all .2s; margin: 0;
  font-size: 1.02rem;
}
.choice__opt:hover { border-color: var(--blue); }
.choice__opt input { accent-color: var(--blue); width: 18px; height: 18px; }
.choice__opt:has(input:checked) { border-color: var(--blue); background: rgba(0,33,71,.06); }

.guest-details { animation: rise .4s ease both; }
.field--note { margin-bottom: 0; }

.form-status { margin: 1rem 0 0; text-align: center; font-size: 1rem; min-height: 1.2em; }
.form-status.is-error { color: #a5322b; }
.form-status.is-ok { color: var(--blue); }

.rsvp.is-success > *:not(.rsvp__thanks) { display: none; }
.rsvp__thanks { text-align: center; padding: 10px 0; animation: rise .5s ease both; }
.rsvp__thanks h3 { font-size: 2rem; color: var(--blue); margin-bottom: .5rem; }
.rsvp__thanks .heart { width: 30px; height: 30px; margin: 0 auto .4rem; color: var(--blue); }

/* ==================== 2-col cards ==================== */
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.place { text-align: center; }
.place h3 { font-size: 1.8rem; margin-bottom: .6rem; }
.place p { margin-bottom: 1.4rem; }

/* ==================== Timeline ==================== */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 70px; top: 8px; bottom: 8px;
  width: 1px; background: var(--line);
}
.timeline__item { display: flex; gap: 28px; padding: 0 0 34px; position: relative; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__time {
  flex: 0 0 56px; text-align: right; font-family: var(--font-serif);
  font-size: 1.5rem; color: var(--blue); padding-top: 0; font-variant-numeric: tabular-nums;
}
.timeline__body { position: relative; padding-left: 30px; }
.timeline__body::before {
  content: ""; position: absolute; left: -6px; top: 9px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--blue); z-index: 1;
}
.timeline__body h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.timeline__body p { margin-bottom: 0; color: var(--blue-70); }
.timeline__item--soon .timeline__time { color: var(--blue-45); }
.timeline__item--soon .timeline__body h3 { color: var(--blue-70); }
.timeline__item--soon .timeline__body::before { border-color: var(--blue-45); }
/* neurne točke (brez fiksne ure) — modra pika namesto ure */
.timeline__item--free .timeline__time { color: var(--blue-45); font-size: 2.2rem; line-height: 1; }

/* ==================== Galerija (fineline) ==================== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 1rem; }
.frame { margin: 0; text-align: center; }
.frame__media {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.illus { display: block; width: 100%; height: 100%; }
.frame figcaption {
  font-family: var(--font-serif); font-style: italic; font-size: 1.2rem;
  color: var(--blue-70); margin-top: .7rem;
}

/* ==================== Kampiranje ==================== */
.camp {
  display: flex; align-items: flex-start; gap: 18px; margin-top: 20px;
  background: var(--paper); text-align: left;
}
.camp .ic { margin: 4px 0 0; flex: 0 0 auto; width: 38px; height: 38px; }
.camp h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.camp p { margin-bottom: 0; color: var(--blue-70); }
.lodging { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 16px; }
.lodging__item {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px 26px;
}
.lodging__item h3 { font-size: 1.4rem; margin-bottom: .2rem; }
.lodging__item p { margin-bottom: .5rem; }
.lodging__item--primary { border-color: var(--blue); box-shadow: 0 12px 32px -24px rgba(0,33,71,.55); }
.link { font-size: 1rem; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link:hover { color: var(--blue-70); }

/* ==================== Footer ==================== */
.footer {
  background: var(--blue); color: rgba(250,248,241,.75);
  text-align: center; padding: 34px 24px; font-size: 1rem; letter-spacing: .05em;
}
.footer p { margin: 0; }

/* ==================== Modal ==================== */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,33,71,.45); backdrop-filter: blur(2px); animation: fade .3s ease; }
.modal__box {
  position: relative; background: var(--paper); border-radius: var(--radius);
  max-width: 420px; width: 100%; padding: 42px 34px; text-align: center;
  box-shadow: var(--shadow); animation: pop .35s cubic-bezier(.2,.8,.3,1.2) both;
}
.modal__box .heart { width: 34px; height: 34px; margin: 0 auto .4rem; color: var(--blue); }
.modal__box h3 { font-size: 2rem; color: var(--blue); margin-bottom: .6rem; }
.modal__box p { margin-bottom: 1.6rem; color: var(--blue-70); }
.modal__x {
  position: absolute; top: 12px; right: 16px; background: none; border: 0;
  font-size: 1.7rem; color: var(--blue-70); cursor: pointer; line-height: 1;
}

/* ==================== Botanično okrasje (fineline) ==================== */
.divider { display: block; color: var(--blue); margin: 0 auto 1rem; }
.divider--gold { color: var(--blue); margin: 1rem auto 1.4rem; }
.divider--light { color: rgba(250,248,241,.85); }
.center-block { margin: -.4rem auto 2rem; }

.hero__corner {
  position: absolute; width: 150px; height: 150px; opacity: .7; pointer-events: none;
  background-repeat: no-repeat; background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23002147' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 94 C42 86 66 62 78 28 C81 19 82 12 82 6'/%3E%3Cpath d='M71 40 q9 -6 19 -4 q-6 7 -16 8 z'/%3E%3Cpath d='M59 55 q9 -6 19 -4 q-6 7 -16 8 z'/%3E%3Cpath d='M46 69 q9 -5 18 -3 q-6 6 -15 7 z'/%3E%3Cpath d='M31 79 q8 -4 16 -2 q-5 6 -14 6 z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero__corner--tl { top: 26px; left: 26px; }
.hero__corner--br { bottom: 26px; right: 26px; transform: rotate(180deg); }

/* ==================== Sekcija: RSVP CTA ==================== */
.section--cta { background: var(--ivory); }
.section--cta .btn--solid { margin-top: .5rem; }

/* ==================== Animations ==================== */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop  { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes bob  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ==================== Scroll reveal ==================== */
.reveal-on .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ==================== Responsive ==================== */
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 18px; }
  .frame:last-child { grid-column: 1 / -1; }
  .frame:last-child .frame__media { aspect-ratio: 16 / 9; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .section { padding: 60px 0; }
  .wrap { padding: 0 20px; }
  .cards2 { grid-template-columns: 1fr; }
  .card { padding: 26px 22px; }
  .timeline::before { left: 58px; }
  .timeline__time { flex-basis: 46px; font-size: 1.3rem; }
  .timeline__item { gap: 18px; }
  .hero__corner { width: 86px; height: 86px; opacity: .55; }
  .hero__corner--tl { top: 16px; left: 12px; }
  .hero__corner--br { bottom: 16px; right: 12px; }
}

@media (max-width: 520px) {
  .section { padding: 52px 0; }
  .hero { padding: 32px 20px; min-height: 92vh; }
  .hero__eyebrow { font-size: .72rem; letter-spacing: .26em; }
  .hero__date { font-size: 1.2rem; }
  .section__title { font-size: 1.9rem; }
  .lead { font-size: 1.12rem; }
  .gallery { grid-template-columns: 1fr; }
  .frame__media { aspect-ratio: 3 / 2; }
  .frame:last-child .frame__media { aspect-ratio: 3 / 2; }
  .choice { gap: 10px; }
  .choice__opt { flex: 1 1 100%; }
  .camp { flex-direction: column; gap: 10px; text-align: center; align-items: center; }
  .btn { padding: 14px 28px; }
  .hero__cta { width: 100%; max-width: 320px; }
}
