/* ============================================================
   Katarína & Maroš — svadobný onepage
   ============================================================ */

:root {
  --accent:        #7C7365;   /* jednotná farba textov všade (kontrast ~4,6:1 na --bg) */
  --accent-dark:   #7C7365;   /* dôraz / dátum – rovnaká farba, len tučné */
  --accent-light:  #ddd6cc;   /* svetlejší tieň – iba dekoratívne čiary/„&“ */
  --text:          #7C7365;   /* bežný text */
  --ink:           #7C7365;   /* tučný dôraz */
  --bg:            #fdfcf9;   /* teplá biela */
  --bg-soft:       #f6f3ee;
  --line:          #e6e1d8;

  --font-script: "Luxurious Script", cursive;
  --font-sans:   "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

strong { font-weight: 600; color: var(--ink); }

/* ---------- Pager / voľný scroll ---------- */
.pager {
  scrollbar-width: none;
}
.pager::-webkit-scrollbar { display: none; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.slide {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  overflow: hidden;
}

/* jednotné pozadie na všetkých slidoch */
.slide { background: var(--bg); }

/* Info sekcia má veľa obsahu – prirodzená výška, nech sa na nižších
   notebookoch nič neodseká (žiadna fixná 100vh, zarovnanie k vrchu) */
.slide--info {
  min-height: auto;
  align-items: flex-start;
  overflow: visible;
  padding-top: clamp(3rem, 7vh, 6rem);
  padding-bottom: clamp(3rem, 7vh, 6rem);
}

/* vrstevnicový vodoznak – farba písma, nízka opacity – iba úvod a formulár */
.slide--monogram::before,
.slide--navratka::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/vrstevnice-tint.svg") center/cover no-repeat;
  opacity: .10;
  z-index: 0;
  pointer-events: none;
}
.slide--monogram > *,
.slide--navratka > * { position: relative; z-index: 1; }

/* skriptové nadpisy */
.script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin: 0;
}
.kicker {
  font-size: 15px;                             /* rovnako veľké ako priezviská */
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin: .5rem 0 0;
  padding-left: .3em;
}

/* ============================================================
   1 — MONOGRAM
   ============================================================ */
.monogram {
  position: relative;
  display: grid;
  place-items: center;
}
.monogram::before {                 /* čistý kruh, do ktorého nezasahujú vrstevnice */
  content: "";
  position: absolute;
  width: 500px;
  max-width: 90vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg);
  z-index: 0;
}
.monogram img {
  position: relative;
  z-index: 1;
  width: clamp(220px, 30vw, 440px);
  height: auto;
  opacity: .95;
}

/* ============================================================
   2 — POZVÁNKA
   ============================================================ */
.invite {
  text-align: center;
  max-width: 820px;
  color: var(--accent);
}

/* Mená – 2 stĺpce s medzerou, „&“ cez celý riadok vycentrované a ZA menami */
.names {
  position: relative;
  display: inline-grid;
  grid-template-columns: auto auto;
  justify-items: center;
  align-items: center;
  column-gap: clamp(1.4rem, 4vw, 3rem);    /* mená blízko, „&“ ich prekrýva ako v PDF */
  row-gap: 0;
  margin: 0 0 clamp(2.4rem, 5vh, 4rem);
  font-weight: 400;
}
.name {
  grid-row: 1;
  position: relative;
  z-index: 1;                              /* mená pred „&“ */
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 9.5vw, 8rem);
  line-height: 1;
  color: var(--accent);
}
.name--l { grid-column: 1; }
.name--r { grid-column: 2; }
.amp {
  position: absolute;                      /* mimo gridu – veľký flourish za menami */
  left: 58%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 0;                              /* za menami */
  font-family: var(--font-script);
  font-size: clamp(9rem, 23vw, 18rem);     /* veľký ako v PDF – siaha nad mená aj pod priezviská */
  line-height: 1;
  color: #F7F1EE;                          /* veľmi bledý vodoznak ako v PDF */
  pointer-events: none;
}
.sub {
  grid-row: 2;
  position: relative;
  z-index: 1;
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-top: clamp(-.3rem, -.6vw, 0rem);
}
.sub--l { grid-column: 1; }
.sub--r { grid-column: 2; }

.quote {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 9.5vw, 8rem);   /* rovnako veľké ako krstné mená */
  line-height: .82;                        /* tesné riadkovanie ako v PDF */
  color: var(--accent);
  margin: 0 0 clamp(2.4rem, 5vh, 4rem);
}

.when {
  font-size: clamp(1.1rem, 2.4vw, 1.75rem);
  letter-spacing: .04em;
  color: var(--accent-dark);
  margin: 0 0 .8rem;
}
.when strong { font-weight: 700; color: var(--accent-dark); }
.when__label {
  font-size: .58em;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.where {
  font-size: clamp(.85rem, 1.5vw, 1.12rem);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  line-height: 1.8;
}

/* ============================================================
   3 — INFORMÁCIE
   ============================================================ */
.slide--info { align-items: safe center; }
.info {
  width: 100%;
  max-width: 1080px;
  margin: auto;
}
.info__head { text-align: center; margin-bottom: clamp(.6rem, 1.6vw, 1.2rem); }
.info__head .script,
.rsvp__head .script { font-size: clamp(2.8rem, 7vw, 4.8rem); }

.script--sm { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .7rem; }

.info__rows { display: flex; flex-direction: column; }
.info__row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;      /* pravý stĺpec širší */
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(.7rem, 1.6vw, 1.3rem) 0;
}
.info__col--map { display: flex; justify-content: center; align-items: center; }
.map { width: clamp(140px, 14vw, 200px); height: auto; }
.card__text { margin: 0 0 .55rem; font-size: 18px; line-height: 1.5; }
.card__note,
.card__meta {
  font-size: clamp(.9rem, 1vw, 1.02rem);
  font-style: italic;
  color: var(--accent-dark);
  margin: 0;
}

/* Timeline – zvislá čiara so značkami ako v dizajne */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {                 /* súvislá zvislá čiara */
  content: "";
  position: absolute;
  left: 5.7rem;
  top: .8rem;
  bottom: .8rem;
  width: 1px;
  background: var(--accent-light);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 2.4rem 2.4rem 1fr;  /* čas | medzera s čiarou | ikona | popis */
  align-items: center;
  column-gap: 1rem;
  padding: .32rem 0;                       /* vertikálne kompaktné, nech sa zmestí */
}
.timeline li::before {              /* vodorovná značka KRÍŽIACA zvislú čiaru */
  content: "";
  position: absolute;
  left: 5.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1px;
  background: var(--accent-light);
}
.timeline .t {
  grid-column: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: .14em;
  font-weight: 400;
  color: var(--ink);
  font-size: 18px;
}
.timeline img { grid-column: 3; width: 2.3rem; height: 2.3rem; object-fit: contain; justify-self: center; }
.timeline .e { grid-column: 4; font-size: 18px; line-height: 1.35; color: var(--text); }

/* Bullets */
.bullets { margin: 0; padding-left: 1.1rem; }
.bullets li { margin-bottom: .5rem; font-size: 18px; line-height: 1.5; }
.bullets li::marker { color: var(--accent); }

/* ============================================================
   4 — NÁVRATKA
   ============================================================ */
.rsvp {
  width: 100%;
  max-width: 520px;
  text-align: center;
}
.rsvp__head { margin-bottom: 1.6rem; }
.rsvp__intro {
  font-size: 18px;
  line-height: 1.5;
  max-width: 34rem;
  margin: 0 auto 2.2rem;
}

.form { text-align: left; }
.field { margin-bottom: 1.5rem; }
.field label:not(.radio),
.field legend {
  display: block;
  font-size: 15px;                             /* rovnako ako kicker / priezviská */
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .55rem;
  font-weight: 400;                            /* rovnaká hrúbka ako kicker */
}
.field .opt { display: block; margin-top: .15rem; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .9em; }

input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 18px;
  color: var(--ink);
  background: transparent;                 /* priehľadné pozadie */
  border: 0;
  border-bottom: 1.5px solid var(--accent-light);
  border-radius: 0;
  padding: .7rem .25rem;
  transition: border-color .2s;
}
input[type="text"]::placeholder,
textarea::placeholder { color: var(--accent-light); }
input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
textarea { resize: vertical; }

/* Účasť + počet hostí vedľa seba 50/50 */
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: start;
}
.field-grid > .field { margin-bottom: 1.5rem; }
.field--count input[type="number"] { width: 100%; max-width: 10rem; }
@media (max-width: 480px) { .field-grid { grid-template-columns: 1fr; gap: 0; } }

/* Dynamickí hostia – meno + strava per osoba */
.mena-rows { display: flex; flex-direction: column; }
.guest {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  animation: menaIn .25s ease both;
}
/* oddeľovač medzi hosťami */
.guest + .guest {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
/* stravovacie voľby v jednom riadku (zalomia sa podľa potreby) */
.guest__diet {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: .5rem 1.4rem;
}
.guest__diet-label {
  flex: 0 0 100%;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.guest__diet .opt { text-transform: none; letter-spacing: 0; font-size: .9em; }
.guest__diet .radio { font-size: 16px; margin: 0; }
@keyframes menaIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .guest { animation: none; } }

/* Výber jedál – 4 chody pod menom hosťa (strava.html) */
.rsvp--strava { max-width: 640px; }
.guest__courses {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.course { display: block; }
.course__label {
  display: block;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .3rem;
}
.course__select {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--accent-light);
  border-radius: 0;
  padding: .6rem 1.6rem .6rem .25rem;
  cursor: pointer;
  transition: border-color .2s;
  /* vlastná šípka – neutralizuje natívny vzhľad */
  -webkit-appearance: none;
  -moz-appearance: none;
  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 fill='none' stroke='%237C7365' stroke-width='1.5' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .25rem center;
}
.course__select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.course__select:invalid { color: var(--accent-light); }   /* placeholder „— vyberte —" bledšie */
.course__select option { color: var(--ink); }
.course__select optgroup { color: var(--accent-dark); font-style: normal; }

.field--choice { border: 0; margin: 0 0 1.5rem; padding: 0; }
.field--choice legend { padding: 0; }
.radio {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 .65rem;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
}
/* pekný vlastný radio button */
.radio input {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color .2s;
}
.radio input::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform .15s ease;
}
.radio input:checked::before { transform: scale(1); }
.radio input:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }

/* štvorcový checkbox (stravovacie požiadavky) */
.radio--check input { border-radius: 6px; }
.radio--check input::before { border-radius: 3px; }

/* textové pole pri alergii – celá šírka pod možnosťami */
.alergia-text { flex: 0 0 100%; margin-top: .2rem; width: 100%; }
.alergia-text[hidden] { display: none; }

/* honeypot */
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-block;
  width: 100%;
  font-family: inherit;
  font-size: clamp(.85rem, 1.1vw, .98rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 4px;
  padding: 1.05rem 1.2rem;
  margin-top: .8rem;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }

/* Tlačidlo „Pridať do kalendára“ – jemné, outline, auto šírka */
.btn--cal {
  width: auto;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  padding: .8rem 1.5rem;
  margin-top: 1.6rem;
  text-decoration: none;
  border-radius: 999px;
  letter-spacing: .18em;
  font-size: .78rem;
}
.btn--cal:hover { background: var(--accent); color: #fff; }

.form__status {
  margin: .9rem 0 0;
  font-size: .9rem;
  text-align: center;
  min-height: 1.2em;
}
.form__status.ok  { color: #5a7d52; }
.form__status.err { color: #b15b52; }

/* Vrelé poďakovanie po úspešnom odoslaní (nahradí formulár) */
.rsvp__thanks {
  text-align: center;
  max-width: 30rem;
  margin: 1rem auto 0;
  animation: thanksIn .6s ease both;
}
.rsvp__thanks .script--sm { color: var(--accent); margin-bottom: .6rem; }
.rsvp__thanks p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  text-wrap: balance;
}
@keyframes thanksIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rsvp__thanks { animation: none; }
}

.rsvp__contact {
  margin: 1.8rem 0 0;
  font-size: .8rem;
  color: var(--accent-dark);
}
.rsvp__contact a { color: var(--accent-dark); text-decoration: none; border-bottom: 1px solid var(--line); }
.rsvp__contact a:hover { color: var(--accent); }

/* Klikateľné miesta → Google Maps */
.maplink {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color .2s ease, opacity .2s ease;
}
.maplink:hover { border-bottom-color: currentColor; opacity: .8; }
.where .maplink { border-bottom: none; }
.where .maplink:hover { opacity: .7; }

/* ============================================================
   Bodková navigácia
   ============================================================ */
.dots {
  position: fixed;
  right: clamp(.9rem, 2.5vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dots a {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
}
.dots a span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: transparent;
  transition: all .25s ease;
}
.dots a.active span {
  background: var(--accent);
  width: 11px; height: 11px;
}
.dots a::after {
  content: attr(data-label);
  position: absolute;
  right: 150%;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--bg);
  padding: .15rem .5rem;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.dots a:hover::after { opacity: 1; }

/* ============================================================
   Responzivita
   ============================================================ */
@media (max-width: 760px) {
  /* mobil: normálny scroll, žiadny page-snap, žiadne bodky */
  .pager {
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
  }
  .slide {
    min-height: auto;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }
  /* prvé dve sekcie na celú výšku obrazovky, ostatné plynú normálne ďalej */
  .slide--monogram,
  .slide--pozvanka {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .dots { display: none; }

  .names { column-gap: clamp(.4rem, 1.5vw, 1rem); }
  .name  { font-size: clamp(2rem, 10.5vw, 3.2rem); }
  .amp   { font-size: clamp(6rem, 32vw, 9rem); top: 42%; }
  .sub   { font-size: 13px; letter-spacing: .2em; }
  .quote { font-size: 3.6rem; line-height: .82; }
  .info__head .script,
  .rsvp__head .script { font-size: 3.2rem; }
  .where { letter-spacing: .14em; font-size: .8rem; }

  .info__row { grid-template-columns: 1fr; gap: 1.2rem; }
  .info__col--map { order: 2; }
  .map { width: min(78vw, 340px); }
  .timeline::before { left: 4.6rem; }
  .timeline li { grid-template-columns: 2.9rem 2rem 2rem 1fr; column-gap: .7rem; }
  .timeline li::before { left: 4rem; width: 1.2rem; }
  .slide--info .info { padding-top: 2rem; padding-bottom: 2rem; }

  /* mobil: väčšie podnadpisy, odstavcové aj harmonogram texty 16px */
  .script--sm { font-size: 2.4rem; }
  .kicker { font-size: 14px; }
  .field label:not(.radio),
  .field legend { font-size: 14px; }
  .field .opt { display: block; margin-top: .15rem; font-size: 14px; }
  .rsvp__intro { text-wrap: balance; max-width: 22rem; }
  .card__text,
  .bullets li,
  .rsvp__intro,
  .timeline .t,
  .timeline .e,
  input[type="text"],
  textarea,
  .radio { font-size: 16px; }
}

/* desktop s nízkym oknom – zarovnanie info k vrchu, nech sa nič neodreže */
@media (min-width: 761px) and (max-height: 720px) {
  .slide--info { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
