/* =====================================================================
   Paleta dobrana do zdjęcia głównego: kość słoniowa, szampańskie złoto,
   ciepłe espresso. Zieleń z poprzedniej wersji gryzła się z bursztynem.
   ===================================================================== */
:root {
  --bg: #F7F2EA;
  --bg-alt: #EFE6D9;
  --card: #FFFCF7;
  --ink: #2A1E15;
  --ink-soft: #4A3B2E;
  --muted: #7A6A5A;
  --espresso: #3B2A1E;
  --espresso-dark: #22170F;
  --gold: #B8893E;
  --gold-light: #E6CD98;
  --line: rgba(42, 30, 21, 0.12);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(42, 30, 21, 0.04), 0 14px 40px rgba(42, 30, 21, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Work Sans", -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  margin: 0;
  color: var(--espresso-dark);
  letter-spacing: -0.01em;
}

.hidden { display: none !important; }

/* ---------- Signature seal ---------- */
.seal {
  width: 92px;
  height: 92px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--espresso-dark);
  margin: 0 auto 1.75rem;
  background: var(--card);
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px rgba(184, 137, 62, 0.35);
}
.seal span {
  font-family: "Work Sans", sans-serif;
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-top: 2px;
}
.seal.small { width: 64px; height: 64px; font-size: 0.95rem; }

/* ---------- Language toggle ---------- */
.lang-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(230, 205, 152, 0.7);
  border-radius: 999px;
  background: rgba(34, 23, 15, 0.62);
  color: #FFF8EC;
  font-family: "Work Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease;
}
.lang-toggle:hover { background: rgba(34, 23, 15, 0.7); }

/* ---------- Password gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: var(--espresso-dark);
  background-image:
    linear-gradient(rgba(24, 16, 9, 0.72), rgba(24, 16, 9, 0.82)),
    url("images/image-23815-fabc1258ab934a4b918e2cbdd7d7376f.webp");
  background-size: cover;
  background-position: center;
}
.gate-card {
  background: var(--card);
  border-radius: 18px;
  padding: 3rem 2.25rem 2.5rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  outline: 1px solid rgba(184, 137, 62, 0.35);
  outline-offset: -10px;
}
.gate-title {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}
.gate-text {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
}
#gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
#gate-password {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1rem;
  font-family: inherit;
  text-align: center;
  background: #fff;
}
#gate-password:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 137, 62, 0.2);
}
.gate-card button {
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 999px;
  background: var(--espresso);
  color: #FFF8EC;
  font-size: 1rem;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease;
}
.gate-card button:hover { background: var(--espresso-dark); }
.gate-error {
  color: #A3402F;
  font-size: 0.85rem;
  margin: 0.9rem 0 0;
  display: none;
}
.gate-error.show { display: block; }

/* ---------- Hero ---------- */
/* Tekst idzie w górną, pustą część zdjęcia (bokeh), żeby obrączki na dole
   zostały odsłonięte jako główny motyw. */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(20, 13, 6, 0.70) 0%,
    rgba(20, 13, 6, 0.35) 32%,
    rgba(20, 13, 6, 0.00) 55%,
    rgba(20, 13, 6, 0.00) 80%,
    rgba(20, 13, 6, 0.30) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(5.5rem, 13vh, 9rem) 1.5rem 0;
  width: 100%;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
  animation: heroIn 1.4s ease both;
}
.hero-eyebrow {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 0 0 0.9rem;
  color: var(--gold-light);
}
.hero-names {
  font-size: clamp(3rem, 9vw, 6.5rem);
  color: #FFF8EC;
  line-height: 1;
  font-weight: 400;
}
.hero-names .amp {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-light);
  padding: 0 0.12em;
}
.hero-ornament {
  display: block;
  width: 120px;
  height: 9px;
  margin: 1.6rem auto 1.3rem;
  background:
    linear-gradient(var(--gold-light), var(--gold-light)) left center / 48px 1px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) right center / 48px 1px no-repeat;
  position: relative;
  opacity: 0.85;
}
.hero-ornament::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--gold-light);
  transform: translate(-50%, -50%) rotate(45deg);
}
.hero-date {
  margin: 0;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  letter-spacing: 0.08em;
  color: #F3E8D3;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */
.section {
  max-width: 720px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}
.section h2 {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  text-align: center;
  margin-bottom: 2.75rem;
}
.section h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  background: var(--gold);
  margin: 1.1rem auto 0;
}

/* Pełnej szerokości pasy tła bez zmian w HTML */
.band {
  box-shadow: 0 0 0 100vmax var(--bg-alt);
  clip-path: inset(0 -100vmax);
  background: var(--bg-alt);
}

.welcome { text-align: center; padding-bottom: 2.5rem; }
.welcome-text {
  font-family: "Fraunces", serif;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto;
}

/* ---------- Timeline ---------- */
.timeline { padding-top: 2.5rem; }
.timeline-track {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 8vw, 5rem);
  position: relative;
  padding-top: 1rem;
}
.timeline-track::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}
.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1rem;
}
.timeline-item::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px rgba(184, 137, 62, 0.4);
  order: -1;
  margin-bottom: 0.4rem;
}
.timeline-time {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1;
  color: var(--espresso-dark);
}
.timeline-label {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Places ---------- */
.places {
  max-width: 1040px;
  display: flex;
  flex-direction: column;
  gap: 5rem;
  box-shadow: 0 0 0 100vmax var(--bg-alt);
  clip-path: inset(0 -100vmax);
  background: var(--bg-alt);
}
.place {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.place-reverse { grid-template-columns: 1fr 1.05fr; }
.place-reverse .place-media { order: 2; }
.place-reverse .place-info { order: 1; }
.place-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow);
}
.place-media img.landscape {
  aspect-ratio: 16 / 10;
  object-position: 30% center;
}
.place-kicker {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
  margin: 0 0 0.35rem;
}
.place-info h3 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}
.place-address {
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.place-link {
  color: var(--espresso);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}
.place-link:hover { color: var(--gold); }
.place-map {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  filter: sepia(0.15) saturate(0.9);
}

/* ---------- RSVP ---------- */
.rsvp {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  width: calc(100% - 2rem);
  max-width: 700px;
  margin: 5.5rem auto;
  padding: 4rem clamp(1.25rem, 5vw, 3rem) 3rem;
}
.rsvp-intro {
  text-align: center;
  color: var(--muted);
  margin-top: -1.5rem;
  margin-bottom: 2.75rem;
}
.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.field > span, .field legend {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--espresso-dark);
  padding: 0;
  margin-bottom: 0.55rem;
}
.field > span { margin-bottom: 0; }
.field em { color: var(--muted); font-weight: 400; font-size: 0.85rem; font-style: normal; }

input[type="text"], select, textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  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' fill='none' stroke='%23B8893E' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}
input[type="text"]:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 137, 62, 0.18);
}
textarea { resize: vertical; }

/* Odpowiedzi jako „pigułki" zamiast małych kółek */
.radio-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.radio {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.radio input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.radio span {
  display: inline-block;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.radio:hover span { border-color: var(--gold); }
.radio input:checked + span {
  background: var(--espresso);
  border-color: var(--espresso);
  color: #FFF8EC;
}
.radio input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(184, 137, 62, 0.25);
}

.guest-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.main-guest { border-color: transparent; padding: 0; }
.extra-guest { background: #FBF7F1; }
.guest-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.guest-block-label {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  color: var(--espresso-dark);
  margin: 0;
}
.guest-remove-btn {
  background: none;
  border: none;
  color: #9A5A44;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.guest-remove-btn:hover { color: #7A3E2B; }
.add-guest-btn {
  background: none;
  border: 1px dashed var(--gold);
  border-radius: 14px;
  color: var(--espresso);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.95rem 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
}
.add-guest-btn:hover { background: rgba(184, 137, 62, 0.08); }
.submit-btn {
  margin-top: 0.75rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--espresso);
  color: #FFF8EC;
  font-family: inherit;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.submit-btn:hover {
  background: var(--espresso-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(42, 30, 21, 0.18);
}
.submit-btn:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.rsvp-status {
  text-align: center;
  font-size: 0.92rem;
  min-height: 1.2em;
  margin: 0.25rem 0 0;
}
.rsvp-status.ok { color: var(--espresso); }
.rsvp-status.err { color: #A3402F; }

/* ---------- Gifts ---------- */
.gifts {
  text-align: center;
  max-width: none;
  background: var(--bg-alt);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.gifts-icon {
  width: 52px;
  height: 52px;
  color: var(--gold);
  display: block;
  margin: 0 auto 1.25rem;
}
.gifts h2 { margin-bottom: 1.75rem; }
.gifts-text {
  font-family: "Fraunces", serif;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--espresso-dark);
  color: #E9DCC4;
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
}
.footer-inner { max-width: 400px; margin: 0 auto; }
.footer .seal {
  border-color: var(--gold);
  background: transparent;
  color: #FFF8EC;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 0 5px var(--espresso-dark), 0 0 0 6px rgba(184, 137, 62, 0.35);
}
.footer .seal span { color: var(--gold-light); }
.footer-signature {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: #BFAF95;
  margin: 0;
}
.footer-names {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.5rem;
  color: #FFF8EC;
  margin: 0.4rem 0 0;
}

/* ---------- Confirmation modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(24, 16, 9, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalFadeIn 0.3s ease;
}
.modal-overlay.hidden { display: none; }
.modal-card {
  background: var(--card);
  border-radius: 20px;
  padding: 3rem 2.25rem 2.25rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.4s ease;
}
.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 1.7rem;
  line-height: 64px;
  margin: 0 auto 1.4rem;
  box-shadow: 0 0 0 6px var(--card), 0 0 0 7px rgba(184, 137, 62, 0.35);
}
.modal-card h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}
.modal-card p {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 1.9rem;
  line-height: 1.6;
}
.modal-btn {
  padding: 0.8rem 2.25rem;
  border: none;
  border-radius: 999px;
  background: var(--espresso);
  color: #FFF8EC;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.modal-btn:hover { background: var(--espresso-dark); }

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Scroll reveal (klasy dodaje script.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .place, .place-reverse { grid-template-columns: 1fr; }
  .place-reverse .place-media, .place-reverse .place-info { order: initial; }
  .place-media img { aspect-ratio: 4 / 3; }
  .places { gap: 3.5rem; }
  .section { padding: 4rem 1.25rem; }
  .rsvp { margin: 3.5rem auto; padding-top: 3rem; }
  .hero-content { padding-top: clamp(5rem, 16vh, 8rem); }
}

@media (max-width: 560px) {
  .hero-names { font-size: clamp(3rem, 15vw, 4rem); line-height: 1.05; }
  .hero-names .amp { display: block; font-size: 0.6em; padding: 0.1em 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content, .modal-overlay, .modal-card { animation: none; }
}
