/* =====================================================
   🎨 DESIGN TOKENS (Letní pastelová paleta)
===================================================== */

:root {
  /* Pastelové barvy */
  --color-apricot: #FFDAB9; 
  --color-purple: #E6E6FA;
  --color-yellow: #FFFACD;
  
  /* Základní pozadí a text */
  --bg-main: #fdfcfb;
  --bg-light: #ffffff;

  --text-main: #2b2b2b; /* Tmavší šedá pro lepší čitelnost */
  --text-muted: #666666;

  /* Akcent pro tlačítka, nadpisy formulářů, ikony (tmavší pastelová fialová, aby byl bílý text čitelný) */
  --accent: #B598CB; 
  --accent-hover: #A082B8;

  --radius: 6px;
  --border-soft: rgba(0,0,0,0.06);
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
}

/* =====================================================
   🔧 RESET & BASE
===================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);

  /* Nové vzdušné pastelové pozadí */
  background:
    radial-gradient(circle at top left, rgba(237, 234, 232, 0.45), transparent 45%), /* Meruňkový dotek */
    radial-gradient(circle at bottom right, rgba(230, 230, 250, 0.5), transparent 45%), /* Fialový dotek */
    linear-gradient(rgba(255, 250, 205, 0.2), rgba(253, 252, 251, 0.4)), /* Žlutavý nádech */
    url("/leaves-bg.png"),
    var(--bg-main);

  background-repeat: no-repeat, no-repeat, no-repeat, repeat, no-repeat;
  background-size: auto, auto, auto, 900px auto, auto;
  background-position: center, center, center, center top, center;
  background-attachment: scroll, scroll, scroll, scroll, scroll;
}

/* =====================================================
   🧠 TYPOGRAPHY
===================================================== */

h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin: 0 0 2rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 720px;
}

.amp {
  font-size: 3.5rem;
  font-weight: 200;
  opacity: 0.6;
}

/* =====================================================
   🌄 HERO
===================================================== */
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  color: var(--text-main); /* Tmavý text pro světlý obrázek */
  /* Světlý stín, aby text na květech "neplaval" a byl čitelný */
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.8);
}

.hero {
  padding: 6rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  margin: 0 auto;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-photo {
  background:
    linear-gradient(
      to top,
      rgba(255, 255, 255, 0.85),
      rgba(255, 255, 255, 0.1)
    ),
    url("/hero.png");

  background-size: cover;
  background-position: 30% center;
  background-repeat: no-repeat;
}

.date::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: rgba(0, 0, 0, 0.35);
  margin: 1.2rem auto 0;
  opacity: 0.5;
}

.date {
  display: block;
  margin-bottom: 2rem;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.7);
  font-weight: 600; /* Lehce tučnější pro lepší čitelnost */
  text-shadow: 0 1px 5px rgba(255,255,255,0.9);
}

.location {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 420px;
}

  .below-hero {
  /* Lineární fade (vertikální) */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,       
    rgba(255, 255, 255, 0.95) 25%,   
    rgba(255, 255, 255, 0.95) 75%,   
    rgba(255, 255, 255, 0) 100%      
  );
  
  /* Trochu zvětšíme výšku (padding), aby měl fade dostatek prostoru na plynulost */
  padding: 6rem 1.5rem; 
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  /* 👇 KLÍČOVÁ ZMĚNA: Překrytí přes fotku 👇 */
  margin-top: -6rem;   /* Vytáhne celou sekci o kus nahoru přes úvodní fotku */
  position: relative;  /* Nutné pro aktivaci z-indexu */
  z-index: 10;         /* Zajistí, že tento fade bude ležet NAD hranou fotky */
}

  .below-hero .personal-greeting {
  font-size: clamp(3rem, 4.5vw, 3.2rem);
  letter-spacing: 0.06em; /* méně technické */
  text-transform: uppercase;
  margin: 0;
  color: rgba(0, 0, 0, 0.88);
  line-height: 1.15;
  font-weight: 200;
}

/* =====================================================
   📦 SECTIONS
===================================================== */

.section {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: -1rem;
  padding: 4rem 1.5rem;
  padding-top: 2rem;
  animation: fadeIn 0.8s ease-out both;
}

.section + .section {
  border-top: 1px solid var(--border-soft);
}

.section-light {
  background: var(--bg-light);
}

.divider {
  width: 1500px;
  height: 3px; /* Změnil jsem výšku na 3px pro o něco jemnější a elegantnější vzhled */
  margin: 4rem auto;
  /* Metalický zlatý gradient pro dělicí linky */
  background: linear-gradient(
    to right,
    transparent,
    #F9D976, /* Světlejší zlatý odlesk */
    #D4AF37, /* Klasická sytá svatební zlatá */
    #F9D976, /* Světlejší zlatý odlesk */
    transparent
  );
  opacity: 0.9;
}
/* =====================================================
   ⏱ TIMELINE
===================================================== */

.program-section {
  display: flex;
  justify-content: center;
}

.program-card {
  max-width: 700px;
  width: 100%;
  padding: 3.5rem 3rem;
  text-align: center;
}

.program-card h2 {
  font-size: 2.4rem;
  margin-bottom: 2.8rem;
}

.program-list {
  list-style: none;
  padding: 0;
  padding-top: 2rem;
  margin: 0 auto;
  width: fit-content;
  position: relative;
}

/* souvislá vertikální linka uprostřed */
.program-list::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  bottom: 0.2rem;
  left: 90px;
  transform: translateX(12px);
  width: 2px; /* Linka je lehce tlustší a pastelovější */
  background: var(--color-purple);
  opacity: 0.6;
}

.program-list li {
  display: grid;
  grid-template-columns: 90px 24px auto;
  align-items: center;
  column-gap: 0.5rem;
  margin-bottom: 1.6rem;
  font-size: 1.2rem;
}

.program-list span {
  grid-column: 1;
  text-align: right;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.program-list strong {
  grid-column: 3;
  text-align: left;
  font-weight: 500;
  color: rgba(0,0,0,0.85);
}

/* =====================================================
   ✉️ RSVP FORM
===================================================== */
.rsvp-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rsvp-section > p {
  max-width: 520px;
  margin: 0 auto 2rem;
}

.rsvp-form,
.rsvp-section form {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
  color: var(--accent);
  text-align: left;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: inherit;
  background: #fff;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.rsvp-section button {
  margin-top: 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.rsvp-section button:hover {
  background: var(--accent-hover);
}

.rsvp-section button:active {
  transform: translateY(1px);
}

.rsvp-section button:focus-visible,
.rsvp-section input:focus-visible,
.rsvp-section select:focus-visible,
.rsvp-section textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =====================================================
   ✅ RSVP SUCCESS
===================================================== */

.rsvp-success {
  margin-top: 2rem;
  padding: 2rem;
  background: #fff;
  border-left: 4px solid var(--accent);
  animation: fadeIn 0.6s ease-out;
}

.rsvp-success h3 {
  margin-top: 0;
  font-size: 1.6rem;
}

.success-no {
  color: #666;
  font-style: italic;
}

/* =====================================================
   ❓ FAQ
===================================================== */

.faq {
  max-width: 1200px;
  margin: 6rem auto;
  padding: 1.75rem 1rem;
}

.faq h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
  transition: background-color var(--transition-fast);
}

/* Lehké zvýraznění aktivní otázky do žluté/meruňkové */
.faq-item.active {
  background-color: rgba(255, 250, 205, 0.4);
  border-radius: var(--radius) var(--radius) 0 0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1rem;
  text-align: left;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  color: #2b2b2b;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1rem;
  font-size: 1.4rem;
  color: var(--accent);
}

.faq-item.active .faq-question::after {
  content: "–";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium);
  padding: 0 1rem;
}

.faq-answer p {
  padding-bottom: 1.25rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* =====================================================
   🔒 INVITE GATE
===================================================== */

html.locked,
body.locked {
  overflow: hidden;
  height: 100%;
}

.invite-gate {
  position: fixed;
  inset: 0;
  background: rgba(253, 252, 251, 0.98);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.invite-box {
  text-align: center;
  max-width: 360px;
  width: 100%;
}

.invite-box input,
.invite-box button {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.invite-box button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
}

.invite-box button:hover {
  background: var(--accent-hover);
}

#invite-error {
  color: #b00020;
  margin-top: 0.75rem;
}

/* =====================================================
   ✨ ANIMATIONS
===================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* =====================================================
   🗺️ MAPA A KONTAKTY
===================================================== */
.map {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #e6e1da; 
}

.map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

@media (max-width: 600px) {
  .map iframe {
    height: 300px;
  }
}

.contact-after-faq {
  margin: 5rem auto 0;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
  max-width: 1200px;
}

.contact-intro {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: rgba(0,0,0,0.7);
  text-align: center;
}

.contact-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 1.8rem 2.2rem;
  min-width: 240px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03); /* Jemný stín pro odlišení od pozadí */
}

.contact-role {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.contact-card strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.contact-card a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* =====================================================
   📸 FOTOGRAFIE & GRIDY
===================================================== */
.place-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: stretch;
}

.place-info {
  text-align: left;
}

.place-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

@media (max-width: 900px) {
  .place-grid {
    grid-template-columns: 1fr;
  }
  .place-photo img {
    max-height: 420px;
  }
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.15);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.lang-btn[aria-pressed="true"] {
  background: var(--color-purple);
  border-color: var(--accent);
  color: var(--text-main);
}

.place-grid-inverse {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .place-grid-inverse {
    grid-template-columns: 1fr;
  }
}

.about-section .place-photo img {
  max-width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06); /* Dodá fotce hezkou hloubku */
}

/* =====================================================
   🍃 FADE SECTIONS OVER LEAVES
===================================================== */
.fade-section {
  position: relative;
  isolation: isolate;
}

.fade-section::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Pozadí bloků teď svítí čistě bíle, aby text perfektně vynikal proti pastelovému zbytku */
  background: rgba(255, 255, 255, 0.95);
  opacity: 0;
  transition: opacity 1200ms ease;
  z-index: 0;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.02); /* Extra jemný stín */
}

.fade-section > * {
  position: relative;
  z-index: 1;
}

.fade-section.is-inview::before {
  opacity: 1;
}
/* =====================================================
   📱 ÚPRAVY PRO MOBILNÍ TELEFONY
===================================================== */
@media (max-width: 600px) {
  /* Zmenšení obřích okrajů u karty programu na mobilu */
  .program-card {
    padding: 2rem 0.5rem; 
  }
  
  /* Zúžení sloupce pro čas a nepatrné zmenšení písma */
  .program-list li {
    font-size: 1.05rem;
    grid-template-columns: 70px 20px auto; 
  }
  
  /* Posunutí fialové svislé linky tak, aby lícovala s novým užším gridem */
  .program-list::before {
    left: 70px; 
    transform: translateX(10px); /* Polovina z těch 20px mezer */
  }
}