:root {
  --blue-pale: #eef5fb;
  --blue-light: #cfe3f2;
  --blue-mid: #a9c9e2;
  --blue-deep: #5f89ac;
  --blue-ink: #2e4a63;
  --ink: #33475a;
  --white: #ffffff;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Jost', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--blue-pale);
  color: var(--ink);
  font-family: var(--sans);
}

/* ---------- Stage / slides ---------- */

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1.1s ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.slide-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.content {
  position: relative;
  z-index: 2;
  transform: translateY(14px);
  opacity: 0;
  transition: opacity 1s ease .25s, transform 1s ease .25s;
  max-width: 900px;
  width: 100%;
  padding: 0 8vw;
  text-align: center;
}

.slide.active .content {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  font-family: var(--sans);
  letter-spacing: .35em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--blue-deep);
  margin: 0 0 .6em;
}

/* ---------- Page 1: Welcome ---------- */

.welcome {
  background: linear-gradient(180deg, var(--blue-pale), var(--blue-light));
}

.bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  opacity: .55;
}

.bg-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(238,245,251,.35) 0%, rgba(238,245,251,.55) 55%, rgba(238,245,251,.92) 100%);
}

.names {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 11vw, 7.5rem);
  color: var(--blue-ink);
  margin: 0;
  line-height: 1.05;
  letter-spacing: .01em;
}

.names .amp {
  display: inline-block;
  font-style: italic;
  font-weight: 400;
  color: var(--blue-deep);
  margin: 0 .18em;
  font-size: .7em;
}

.date-line {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: .12em;
  color: var(--ink);
  margin: .6em 0 0;
}

.scroll-hint {
  margin-top: 3.5em;
  font-size: .78rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--blue-deep);
  opacity: .8;
}

.hint-arrow {
  display: inline-block;
  animation: nudge 1.8s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* ---------- Page 2: About ---------- */

.about {
  background: var(--white);
}

.sub-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.sub-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 8vw;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}

.sub-view.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sub-view .content {
  opacity: 1;
  transform: none;
  transition: none;
  padding: 0;
}

.sub-tabs-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2.6rem;
}

.crumb-back {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--blue-deep);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.crumb-back:hover {
  color: var(--blue-ink);
}

.crumb-sep {
  margin: 0 .3em;
  color: var(--blue-deep);
}

.two-col {
  display: flex;
  align-items: center;
  gap: 6vw;
  text-align: left;
  max-width: 1100px;
}

.text-col { flex: 1.1; }
.image-col {
  flex: .9;
  position: relative;
  height: 60vh;
  min-height: 320px;
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--blue-ink);
  margin: 0 0 .5em;
}

.story-text {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 1em;
}

.spoiler-word {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-style: italic;
  color: inherit;
  cursor: pointer;
  filter: blur(6px);
  transition: filter .4s ease;
}

.spoiler-word.revealed {
  filter: none;
  cursor: default;
}

.spoiler-toast {
  position: fixed;
  left: 50%;
  bottom: 2.4rem;
  transform: translate(-50%, 16px);
  z-index: 50;
  width: min(90vw, 380px);
  background: var(--white);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 18px 40px -14px rgba(46, 74, 99, .35);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
}

.spoiler-toast.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.spoiler-toast-text {
  font-family: var(--sans);
  font-size: .92rem;
  color: var(--ink);
  margin: 0 0 .9em;
}

.spoiler-toast-actions {
  display: flex;
  justify-content: center;
  gap: .8rem;
}

.spoiler-toast-btn {
  border: none;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .55em 1.1em;
  border-radius: 999px;
  cursor: pointer;
  transition: background .3s ease, color .3s ease;
}

.spoiler-toast-confirm {
  background: var(--blue-deep);
  color: var(--white);
}

.spoiler-toast-confirm:hover {
  background: var(--blue-ink);
}

.spoiler-toast-cancel {
  background: rgba(169, 201, 226, .25);
  color: var(--blue-deep);
}

.spoiler-toast-cancel:hover {
  background: rgba(169, 201, 226, .4);
}

.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 2.2rem;
  margin: .2em 0 .2em;
  width: 100%;
}

.sub-tab-btn {
  border: none;
  background: radial-gradient(ellipse at center, rgba(169, 201, 226, .35) 0%, rgba(169, 201, 226, .12) 55%, rgba(169, 201, 226, 0) 78%);
  color: var(--blue-deep);
  font-family: var(--sans);
  font-size: 1.05rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .7em 1.8em;
  cursor: pointer;
  transition: color .3s ease, background .3s ease;
}

.sub-tab-btn:hover {
  color: var(--blue-ink);
  background: radial-gradient(ellipse at center, rgba(169, 201, 226, .5) 0%, rgba(169, 201, 226, .18) 55%, rgba(169, 201, 226, 0) 78%);
}

.sub-tab-btn.active {
  color: var(--blue-ink);
  font-weight: 500;
  background: radial-gradient(ellipse at center, rgba(169, 201, 226, .5) 0%, rgba(169, 201, 226, .18) 55%, rgba(169, 201, 226, 0) 78%);
}

.back-btn {
  border: none;
  background: radial-gradient(ellipse at center, rgba(169, 201, 226, .35) 0%, rgba(169, 201, 226, .12) 55%, rgba(169, 201, 226, 0) 78%);
  color: var(--blue-deep);
  font-family: var(--sans);
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .7em 1.8em;
  cursor: pointer;
  transition: color .3s ease, background .3s ease;
}

.back-btn:hover {
  color: var(--blue-ink);
  background: radial-gradient(ellipse at center, rgba(169, 201, 226, .5) 0%, rgba(169, 201, 226, .18) 55%, rgba(169, 201, 226, 0) 78%);
}

.polaroid {
  position: absolute;
  margin: 0;
  background: var(--white);
  padding: .6rem .6rem 1.1rem;
  border-radius: 4px;
  box-shadow: 0 18px 40px -14px rgba(46, 74, 99, .35);
}

.polaroid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.polaroid-1 {
  width: 62%;
  top: 2%;
  left: 4%;
  transform: rotate(-6deg);
}

.polaroid-2 {
  width: 48%;
  bottom: 0;
  right: 0;
  transform: rotate(5deg);
}

.image-col-single .polaroid-1 {
  width: 78%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-4deg);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2.4em auto 2em;
  max-width: 640px;
  text-align: center;
}

.detail-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.detail-card {
  background: var(--white);
  border: 1px solid var(--blue-light);
  border-radius: 14px;
  padding: 1.8rem 1.2rem;
  box-shadow: 0 12px 28px -18px rgba(46, 74, 99, .3);
}

.detail-icon {
  display: flex;
  justify-content: center;
  margin-bottom: .5em;
  color: var(--blue-deep);
}

.detail-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.detail-card h3 {
  font-family: var(--sans);
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 .6em;
}

.detail-card p {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0;
  color: var(--ink);
}

.detail-sub {
  font-size: .95rem;
  color: var(--blue-deep);
  margin-top: .3em !important;
}

.map-wrap {
  max-width: 640px;
  margin: 0 auto 2em;
}

.map-embed {
  width: 100%;
  max-width: 640px;
  height: 260px;
  border: 1px solid var(--blue-light);
  border-radius: 14px;
  box-shadow: 0 12px 28px -18px rgba(46, 74, 99, .3);
  filter: saturate(.85) contrast(1.02);
}

.map-link {
  display: inline-block;
  margin-top: .7em;
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}

.map-link:hover {
  border-color: var(--blue-deep);
}

.rsvp-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  opacity: .85;
}

.rsvp-button {
  display: inline-block;
  margin-top: 1.4em;
  padding: .85em 2.2em;
  font-family: var(--sans);
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue-deep);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 14px 28px -14px rgba(46, 74, 99, .5);
  transition: background .3s ease, transform .3s ease;
}

.rsvp-button:hover {
  background: var(--blue-ink);
  transform: translateY(-2px);
}

.corner-photo {
  position: absolute;
  bottom: -4%;
  right: -3%;
  width: 22vw;
  min-width: 180px;
  max-width: 320px;
  opacity: .5;
  z-index: 1;
  pointer-events: none;
}

/* ---------- Page 3: Podrobnosti ---------- */

.podrobnosti {
  background: var(--white);
}

.podrobnosti .content {
  max-width: 920px;
}

.timeline {
  list-style: none;
  margin: 2em 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  text-align: left;
  border-left: 2px solid var(--blue-light);
  padding-left: 1.6rem;
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -1.85rem;
  top: .4em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-deep);
}

.timeline-time {
  display: inline-block;
  min-width: 3.4em;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--blue-ink);
  margin-right: .8em;
}

.timeline-text {
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
}

.timeline-heading {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-deep);
  text-align: left;
  margin: 1.4em 0 0;
}

.transport-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem 1.4rem;
  margin: 1.6em 0 1.4em;
}

.transport-tab-btn {
  border: none;
  background: rgba(169, 201, 226, .25);
  color: var(--blue-deep);
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .55em 1.3em;
  border-radius: 999px;
  cursor: pointer;
  transition: background .3s ease, color .3s ease;
}

.transport-tab-btn:hover {
  background: rgba(169, 201, 226, .4);
}

.transport-tab-btn.active {
  background: var(--blue-deep);
  color: var(--white);
}

.transport-panel {
  display: none;
}

.transport-panel.active {
  display: block;
}

.transport-photo {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 1.4em auto 0;
  border: 1px solid var(--blue-light);
  border-radius: 14px;
  box-shadow: 0 12px 28px -18px rgba(46, 74, 99, .3);
}

/* ---------- Page 4: FAQ ---------- */

.faq {
  background: var(--white);
}

.faq .content {
  max-width: 760px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 2em;
  text-align: left;
}

.faq-item {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--blue-light);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--blue-ink);
  margin: 0 0 .35em;
}

.faq-item p {
  font-family: var(--sans);
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

/* ---------- Navigation dots ---------- */

.dots {
  position: fixed;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .8rem;
  z-index: 10;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--blue-deep);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background .35s ease, transform .35s ease;
}

.dot.active {
  background: var(--blue-deep);
  transform: scale(1.2);
}

/* ---------- Arrows ---------- */

.arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .7);
  color: var(--blue-deep);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease, opacity .3s ease;
  backdrop-filter: blur(4px);
}

.arrow:hover { background: var(--white); }
.arrow-prev { left: 1.6rem; }
.arrow-next { right: 1.6rem; }
.arrow:disabled { opacity: 0; pointer-events: none; }

/* ---------- Progress track ---------- */

.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(95, 137, 172, .15);
  z-index: 20;
}

.progress-fill {
  height: 100%;
  width: 33.33%;
  background: var(--blue-deep);
  transition: width .8s ease;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .two-col {
    flex-direction: column;
    text-align: center;
    gap: 2.4rem;
  }
  .image-col {
    width: 100%;
    height: 34vh;
  }
  .sub-tabs-wrap {
    margin-top: 1.4rem;
  }
  .sub-view {
    padding: 4vh 6vw;
  }
  .detail-grid,
  .detail-grid.three {
    grid-template-columns: 1fr;
  }
  .timeline {
    padding-left: 1.3rem;
  }
  .map-embed {
    height: 200px;
  }
  .arrow { width: 2.2rem; height: 2.2rem; font-size: 1.2rem; }
  .arrow-prev { left: .6rem; }
  .arrow-next { right: .6rem; }
  .corner-photo { display: none; }
}
