/* ==========================================================================
   Virág & Viktor – esküvői weboldal
   Design tokenek: a színek és betűk a canvas designból jönnek.
   ========================================================================== */

:root {
  /* Színek */
  --cream: #F4F0E6;        /* fő háttér */
  --sand: #EBE4D3;         /* váltakozó szekció háttér */
  --field: #F7F4EC;        /* űrlapmezők */
  --olive: #3F4A2E;        /* gombok, ikonok, kiemelés */
  --forest: #3A4429;       /* sötétzöld sávok (virágos sáv, lábléc) */
  --ink: #262B1E;          /* címek */
  --text: #3A3F2E;         /* törzsszöveg */
  --body: #2B3022;         /* alap szövegszín */
  --muted: #55613F;        /* címkék, másodlagos szöveg */
  --brown: #7A5539;        /* időpontok, figyelmeztetés */
  --brown-dark: #6B4A31;
  --error: #9A3B2A;
  --on-dark: #F4F0E6;
  --on-dark-soft: #DCD6C3;
  --line: rgba(63, 74, 46, 0.18);
  --line-soft: rgba(63, 74, 46, 0.14);
  --line-input: rgba(63, 74, 46, 0.45);

  /* Betűk */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Méretek */
  --container: 480px;
  --gutter: 24px;
  --header-h: 56px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2 { margin: 0; font-family: var(--font-serif); font-weight: 500; color: var(--ink); }
p { margin: 0; }
a { color: var(--olive); }
a:hover { color: var(--body); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
::placeholder { color: #7C8067; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Ikonok (sprite) ---------- */
.icon {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.icon--14 { width: 14px; height: 14px; stroke-width: 1.8; }
.icon--18 { width: 18px; height: 18px; stroke-width: 1.6; }
.icon--20 { width: 20px; height: 20px; stroke-width: 1.6; }
.icon--24 { width: 24px; height: 24px; }
.icon--26 { width: 26px; height: 26px; stroke-width: 1.3; }
.icon--34 { width: 34px; height: 34px; stroke-width: 1.3; }

/* ---------- Elrendezés ---------- */
.section { background: var(--cream); }
.section--sand { background: var(--sand); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 68px var(--gutter) 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.container--center { text-align: center; }

.section-icon { width: 30px; height: 30px; color: var(--olive); stroke-width: 1.3; margin-bottom: 16px; }

.eyebrow {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

h2 {
  margin-top: 12px;
  font-size: 38px; line-height: 1.08;
  text-align: center; text-wrap: balance;
}
.h2--xl { font-size: 44px; line-height: 1.05; }

.subtitle { margin-top: 8px; font-family: var(--font-serif); font-style: italic; font-size: 24px; color: var(--muted); text-align: center; }
.subtitle--lg { font-size: 26px; }

.container > p { align-self: stretch; margin-top: 14px; font-size: 16px; line-height: 1.75; color: var(--text); text-wrap: pretty; }
.container > p.lead { margin-top: 22px; }
.container--center > p { text-align: center; }
.container > p strong { font-weight: 500; color: var(--ink); }

.note { font-size: 15px !important; }
.note--center { text-align: center; color: var(--muted) !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.5; }

.label {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.label--center { text-align: center; }

.text-link {
  color: var(--olive); font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}

/* ---------- Gombok ---------- */
.btn {
  margin-top: 26px;
  min-height: 48px; padding: 0 34px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 12px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
}
.btn--primary { background: var(--olive); color: var(--cream); }
.btn--primary:hover { background: var(--ink); color: var(--cream); }
.btn--outline { background: transparent; border-color: var(--olive); color: var(--olive); }
.btn--outline:hover { background: rgba(63, 74, 46, 0.06); color: var(--olive); }
.btn--block { width: 100%; min-height: 52px; margin-top: 6px; }
.btn--locked { background: transparent; border: 1px dashed rgba(63, 74, 46, 0.5); color: var(--muted); cursor: not-allowed; }

.icon-btn {
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--olive);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn--ghost { border: 1px solid rgba(244, 240, 230, 0.4); color: var(--on-dark); }
.icon-btn--solid { background: var(--on-dark); color: var(--ink); }

/* Választógombok (igen / nem, útvonal) */
.choice-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice {
  min-height: 52px; padding: 8px 10px;
  border-radius: var(--radius); border: 1px solid var(--olive);
  background: transparent; color: var(--olive);
  font-size: 15px; line-height: 1.25;
  transition: background 0.15s ease, color 0.15s ease;
}
.choice--tall { min-height: 56px; }
.choice[aria-pressed="true"] { background: var(--olive); color: var(--cream); }
.choice-group--pill .choice { border-radius: 999px; }

/* ---------- Kártyák ---------- */
.card {
  width: 100%; margin-top: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  text-align: left;
}
.card--sand { background: var(--sand); border: 0; }
.card--cream { background: var(--cream); border: 0; }
.card p { font-size: 15px; line-height: 1.65; color: var(--text); }
.card .label + p { margin-top: 8px; }

/* ---------- Fejléc ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--cream);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__bar {
  max-width: var(--container); margin: 0 auto;
  height: var(--header-h); padding: 0 8px 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.site-header__logo {
  min-height: 44px; display: flex; align-items: center;
  font-family: var(--font-serif); font-size: 24px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--olive); text-decoration: none;
}
.site-header__toggle { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--olive); display: flex; align-items: center; justify-content: center; }

.site-menu {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  background: var(--cream);
  border-bottom: 1px solid var(--line-soft);
  padding: 8px var(--gutter) 20px;
}
.site-menu a {
  display: flex; align-items: center;
  max-width: calc(var(--container) - 2 * var(--gutter)); margin: 0 auto;
  min-height: 52px;
  font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--olive); text-decoration: none;
  border-bottom: 1px solid rgba(63, 74, 46, 0.1);
}
.site-menu a:last-child { border-bottom: 0; }

/* ---------- Köszöntő ---------- */
.hero .container { padding: 44px var(--gutter) 56px; }
.hero__title { margin-top: 18px; font-style: italic; font-size: 54px; line-height: 1.02; }
.amp { color: var(--muted); }
.hero__date { margin-top: 24px; font-size: 14px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--body); }
.hero__venue { margin-top: 14px; font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1.3; color: var(--olive); }
.hero__place { margin-top: 2px; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.hero__countdown { margin-top: 22px; font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeUp 0.9s ease both; }
.fade-in--1 { animation-delay: 0.1s; }
.fade-in--2 { animation-delay: 0.2s; }
.fade-in--3 { animation-delay: 0.25s; }
.fade-in--4 { animation-delay: 0.3s; }

/* ---------- Odajutás ---------- */
.route-picker { width: 100%; margin-top: 30px; display: flex; flex-direction: column; gap: 10px; }
.route-card { padding-bottom: 8px; }
.route-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.route-card__title { font-family: var(--font-serif); font-size: 26px; font-weight: 500; color: var(--ink); }
.route {
  padding: 14px 0; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.route-card__head + .route { margin-top: 12px; }
.route__name { min-width: 0; font-size: 14px; }
.route__label { font-size: 16px; font-weight: 500; color: var(--ink); }
.route__meta { flex-shrink: 0; text-align: right; }
.route__time { font-family: var(--font-serif); font-size: 26px; line-height: 1.1; color: var(--ink); }
.tag {
  display: inline-block; padding: 2px 8px; margin-left: 4px;
  border-radius: 999px; background: var(--olive); color: var(--cream);
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  vertical-align: 2px;
}
.tip__warning { margin-top: 14px; display: flex; align-items: flex-start; gap: 10px; color: var(--brown); }
.tip__warning .icon { margin-top: 2px; }
.tip__warning p { color: var(--brown-dark); line-height: 1.6; }
.tip__warning strong { font-weight: 500; }

/* ---------- Helyszín ---------- */
.map-thumb {
  position: relative; display: block;
  width: 100%; margin-top: 24px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: transparent; cursor: zoom-in;
}
.map-thumb img { display: block; width: 100%; height: auto; }
.map-thumb__badge {
  position: absolute; right: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
  border-radius: 999px; background: rgba(38, 43, 30, 0.85); color: var(--cream);
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
#helyszin .btn { margin-top: 22px; padding: 0 30px; letter-spacing: 0.24em; }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(24, 28, 18, 0.96); color: var(--on-dark);
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(24, 28, 18, 0.6); }
.lightbox__bar { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 20px; }
.lightbox__title { font-size: 12px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; }
.lightbox__actions { display: flex; gap: 6px; }
.lightbox__stage { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y pinch-zoom; display: flex; flex-direction: column; justify-content: safe center; }
.lightbox__stage img { display: block; flex-shrink: 0; width: 100%; max-width: none; height: auto; }
.lightbox__hint { flex-shrink: 0; padding: 10px 20px 18px; text-align: center; font-size: 13px; color: rgba(244, 240, 230, 0.75); }

/* ---------- Szállás ---------- */
.checkin {
  width: 100%; margin-top: 24px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.checkin__cell { padding: 18px 16px; text-align: center; font-size: 14px; }
.checkin__cell + .checkin__cell { border-left: 1px solid var(--line); }
.checkin__time { margin-top: 8px; font-family: var(--font-serif); font-size: 30px; line-height: 1.1; color: var(--ink); }
.checkin + .note { margin-top: 12px; text-align: center; color: var(--muted); font-size: 14px !important; }

.cost { margin-top: 22px; }
.price-list { margin-top: 12px; }
.price-row {
  padding: 10px 0; border-top: 1px solid var(--line-soft);
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 15px; color: var(--ink);
}
.price { font-weight: 500; white-space: nowrap; }
.cost__pay { margin-top: 10px !important; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 14px !important; }
.cost__pay strong { font-weight: 500; }
.cost .small { margin-top: 8px; }

/* ---------- Program (idővonal) ---------- */
.timeline { width: 100%; margin: 36px 0 0; padding: 0; list-style: none; }
.timeline__item { position: relative; display: grid; grid-template-columns: 104px 28px minmax(0, 1fr); padding-bottom: 8px; }
.timeline__time { padding-top: 8px; padding-right: 8px; text-align: right; font-size: 14px; font-style: italic; color: var(--brown); }
.timeline__item::before {
  content: ''; grid-column: 2; grid-row: 1;
  justify-self: center; margin-top: 15px;
  width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid var(--olive); background: var(--sand);
  position: relative; z-index: 1;
}
.timeline__item::after {
  content: ''; position: absolute; left: calc(104px + 14px); top: 24px; bottom: -15px;
  width: 1px; background: rgba(63, 74, 46, 0.35);
}
.timeline__item:last-child::after { display: none; }
.timeline__body { grid-column: 3; grid-row: 1; padding-left: 8px; }
.timeline__title { font-family: var(--font-serif); font-size: 28px; line-height: 1.2; color: var(--ink); }
.timeline__note { margin-top: 2px; padding-bottom: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- Virágos sáv ---------- */
.flower-band { background: var(--forest); padding: 56px var(--gutter); display: flex; justify-content: center; }
.flower-band__art { display: block; max-width: 100%; height: auto; }

/* ---------- Dress code ---------- */
.reminder-card { margin-top: 26px; display: flex; align-items: flex-start; gap: 16px; }
.reminder-card__icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--olive); color: var(--cream); display: flex; align-items: center; justify-content: center; }
.reminder-card__title { margin-top: 4px; font-family: var(--font-serif); font-size: 24px; line-height: 1.2; color: var(--ink); }
.reminder-card p { margin-top: 6px; line-height: 1.6; }

/* ---------- Ajándék ---------- */
.poem { margin-top: 26px; padding: 26px 22px; }
.poem p { font-family: var(--font-serif); font-style: italic; font-size: 20px; line-height: 1.6; color: var(--ink); text-align: center; }

/* ---------- GYIK ---------- */
.faq { width: 100%; margin-top: 28px; }
.faq__item { border-bottom: 1px solid rgba(63, 74, 46, 0.16); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 56px; padding: 14px 2px;
  font-family: var(--font-serif); font-size: 19px; line-height: 1.3; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { flex-shrink: 0; width: 22px; text-align: center; font-family: var(--font-sans); font-size: 20px; line-height: 1; color: var(--muted); transition: transform 0.15s ease; }
.faq__item[open] .faq__plus { transform: rotate(45deg); }
.faq__answer { padding: 0 24px 18px 2px; font-size: 15px; line-height: 1.65; color: var(--text); }

.pay { display: flex; flex-direction: column; gap: 12px; }
.pay strong { font-weight: 500; color: var(--ink); }
.pay__card { padding: 14px 16px; background: var(--sand); border-radius: var(--radius); }
.pay__link { min-height: 44px; display: inline-flex; align-items: center; word-break: break-all; }
.pay__holder { margin-top: 6px; color: var(--ink); }
.pay__account { margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.pay__number { min-width: 0; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.pay__copied { min-height: 18px; }

/* ---------- Visszajelzés ---------- */
.per-person {
  margin-top: 20px; padding: 10px 18px;
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(63, 74, 46, 0.4); border-radius: 999px;
  color: var(--ink); font-size: 15px; font-weight: 500;
}
.per-person .icon { color: var(--olive); }
.per-person__note { margin-top: 8px; }

.rsvp { width: 100%; margin-top: 32px; display: flex; flex-direction: column; gap: 22px; text-align: left; }
.rsvp__group, .rsvp__sub { display: flex; flex-direction: column; gap: 22px; }
.rsvp__sub { gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field .label { letter-spacing: 0.26em; }
.req { color: var(--error); }

.input {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid var(--line-input); border-radius: var(--radius);
  background: var(--field); color: var(--body); font-size: 16px;
}
.input--area { height: auto; padding: 14px 16px; line-height: 1.5; resize: vertical; }

.hint { font-size: 13px; line-height: 1.6; color: var(--muted); }
.hint--body { font-size: 14px; color: var(--text); }
.wink { font-family: var(--font-serif); font-style: italic; font-size: 18px; line-height: 1.4; color: var(--muted); }

.error { display: none; font-size: 13px; line-height: 1.5; color: var(--error); }
.error--center { text-align: center; margin-top: -10px; }
.field.is-invalid .error, .error.is-visible { display: block; }
.field.is-invalid > .input { border-color: var(--error); }
.field.is-invalid > .choice-group .choice { border-color: var(--error); }

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

.thanks { margin-top: 32px; padding: 36px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.thanks .icon { color: var(--olive); }
.thanks__title { margin-top: 12px; font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 36px; line-height: 1.1; color: var(--ink); }
.thanks p { margin-top: 12px; font-size: 16px; line-height: 1.7; text-align: center; }
.thanks .btn { margin-top: 22px; padding: 0 26px; letter-spacing: 0.22em; }

.thanks__another { margin-top: 14px; min-height: 44px; padding: 0 12px; background: none; border: 0; font-size: 14px; }
.rsvp-notice { margin: 28px 0 -8px; padding: 16px 18px; font-size: 15px; line-height: 1.6; color: var(--text); text-align: left; }
.rsvp__privacy { margin-top: -6px; text-align: center; }
.calendar-alt { margin-top: 16px; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* ---------- Képek & videók ---------- */
.upload-btn { margin-top: 28px; padding: 0 30px; letter-spacing: 0.24em; }

/* ---------- Lábléc ---------- */
.site-footer { background: var(--forest); color: #EFEADB; }
.site-footer .container { padding: 56px var(--gutter) 48px; }
.site-footer__names { font-family: var(--font-serif); font-style: italic; font-size: 34px; color: var(--cream); }
.site-footer__names .amp { color: #B9C3A2; }
.site-footer__date { margin-top: 10px; font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--on-dark-soft); }
.site-footer__rule { width: 40px; height: 1px; margin: 22px 0; background: rgba(239, 234, 219, 0.5); }
.site-footer__motto { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--on-dark-soft); }
