/* =========================
   Variables
   ========================= */
:root {
  --cream: #FFF8DC;
  --cream-deep: #F2E9C0;
  --cream-soft: #FFFCEB;
  --cyan: #00F5FF;
  --cyan-soft: #C9FBFE;
  --cyan-deep: #007A85;
  --gold-warm: #C9A86A;
  --text: #2C3539;
  --text-soft: #6E7479;
  --line: rgba(44, 53, 57, 0.12);
  --white: #FFFFFF;

  --shadow-sm: 0 2px 12px rgba(44, 53, 57, 0.05);
  --shadow: 0 6px 28px rgba(44, 53, 57, 0.08);
  --shadow-hover: 0 10px 36px rgba(44, 53, 57, 0.12);

  --radius: 6px;
  --radius-lg: 10px;
  --max-width: 1100px;

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* =========================
   Reset & base
   ========================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: #F6F0E6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Floral decorations on a fixed pseudo-element — works on iOS where `background-attachment: fixed` doesn't. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    url('bg-top.png'),
    url('bg-bl.png'),
    url('bg-br.png');
  background-position:
    center 70px,
    bottom left,
    bottom right;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size:
    clamp(260px, 42vw, 560px) auto,
    clamp(180px, 28vw, 420px) auto,
    clamp(180px, 28vw, 420px) auto;
}

img, svg, iframe { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}

a {
  color: var(--cyan-deep);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--text); }

strong { font-weight: 600; }
em { font-style: italic; color: var(--cyan-deep); }

/* =========================
   Header / nav
   ========================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text);
}
.brand-amp {
  font-family: 'Tangerine', cursive;
  font-style: normal;
  font-weight: 700;
  font-size: 1.3em;
  color: var(--cyan-deep);
  margin: 0 0.05em;
  vertical-align: -0.05em;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.4rem;
}
.nav-menu a {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding: 0.3rem 0;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan-deep);
  transition: width 0.3s ease;
}
.nav-menu a:hover { color: var(--cyan-deep); }
.nav-menu a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  padding: 6px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* =========================
   Hero
   ========================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 7rem 2rem 5rem;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 1rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.6rem;
}

.hero-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(4rem, 11.5vw, 7.5rem);
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 1.2rem;
  line-height: 1.1;
}
.hero-names .amp {
  font-family: 'Tangerine', cursive;
  font-style: normal;
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: 0;
  color: var(--cyan-deep);
  margin: 0 0.05em;
  display: inline-block;
  vertical-align: -0.1em;
  line-height: 1;
}

.hero-date {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.hero-place {
  font-size: 0.92rem;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
}

/* =========================
   Buttons
   ========================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1rem 2.6rem;
  background: var(--text);
  color: var(--cream);
  border: 1px solid var(--text);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
}
.btn-primary:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--text);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-block { width: 100%; margin-top: 0.5rem; }

/* =========================
   Sections
   ========================= */
.section {
  padding: 7rem 2rem;
  position: relative;
  overflow: hidden;
  background: transparent;
}
.section-alt { background: transparent; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-narrow { max-width: 700px; }

.section-title {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 500;
}
#ubytovani .section-title { margin-top: 10px; margin-bottom: 5rem; }

.section-lead {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 3rem;
  line-height: 1.75;
}

.muted {
  color: var(--text-soft);
  text-align: center;
  font-size: 0.95rem;
}

/* =========================
   Místo / mapa
   ========================= */
.address {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
.section-lead + .address,
.section-lead + .program-list { margin-top: -1.5rem; }

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.map-wrapper + .muted { margin-top: 1.25rem; }

/* =========================
   Program
   ========================= */
.program-list {
  list-style: none;
  max-width: 620px;
  margin: 0 auto;
}

.program-item {
  display: flex;
  gap: 2.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.program-item:last-child { border-bottom: none; }

.program-item .time {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--cyan-deep);
  min-width: 90px;
  text-align: right;
  font-style: italic;
}

.program-text h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.program-text p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* =========================
   Plain-text sections (Ubytování & doprava, Dary)
   ========================= */
.subsection-title {
  font-size: 1.6rem;
  font-weight: 500;
  text-align: center;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}
.subsection-title:first-of-type { margin-top: 0; }

#ubytovani p,
#dary p:not(.section-lead):not(.muted) {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1rem;
  line-height: 1.75;
}
#ubytovani p.muted,
#dary p.muted {
  margin-top: 1rem;
}

/* =========================
   RSVP form
   ========================= */
.rsvp-form {
  background: var(--white);
  padding: 3rem 2.8rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-group {
  margin-bottom: 1.6rem;
  border: none;
}

.form-group > label,
.form-group > legend {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  color: var(--text);
}
.req { color: var(--cyan-deep); }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--cream-soft);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--text);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.18);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

.radio-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.radio-option,
.checkbox-option {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-soft);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text);
  flex: 1 1 auto;
  min-width: fit-content;
}
.checkbox-option {
  flex: 1 1 100%;
  margin-bottom: 0.6rem;
}
.checkbox-option:last-child { margin-bottom: 0; }

.radio-option:hover,
.checkbox-option:hover {
  border-color: var(--cyan);
  background: var(--cyan-soft);
}
.radio-option:has(input:checked),
.checkbox-option:has(input:checked) {
  border-color: var(--cyan-deep);
  background: var(--cyan-soft);
}

.radio-option input,
.checkbox-option input {
  accent-color: var(--cyan-deep);
  width: 1.05rem;
  height: 1.05rem;
}

.radio-option span,
.checkbox-option span {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

/* =========================
   Heart icon
   ========================= */
.heart-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.12em;
  fill: currentColor;
  color: var(--cyan-deep);
}
.heart-btn { color: inherit; opacity: 0.85; }

/* =========================
   RSVP thanks (after submit)
   ========================= */
.rsvp-thanks {
  background: var(--white);
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--cyan-soft);
  animation: fadeUp 0.6s ease both;
}
.rsvp-thanks-heart {
  width: 48px;
  height: 48px;
  color: var(--cyan-deep);
  margin: 0 auto 1rem;
}
.rsvp-thanks h3 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.rsvp-thanks p {
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* =========================
   Footer
   ========================= */
.site-footer {
  text-align: center;
  padding: 1.5rem 2rem 3rem;
  background: transparent;
}
.footer-names {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.footer-names + .footer-date {
  color: var(--text-soft);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.footer-contact {
  font-size: 0.95rem;
}

/* =========================
   Animations
   ========================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content > * { animation: fadeUp 1s ease both; }
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.45s; }
.hero-content > *:nth-child(4) { animation-delay: 0.65s; }
.hero-content > *:nth-child(5) { animation-delay: 0.8s; }
.hero-content > *:nth-child(6) { animation-delay: 0.95s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 800px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(85vw, 320px);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -4px 0 28px rgba(0, 0, 0, 0.08);
    padding: 2rem;
  }
  .nav-menu.is-open { transform: translateX(0); }

  .nav-menu a {
    font-size: 1rem;
    letter-spacing: 0.18em;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero { padding: 7rem 1.25rem 4rem; }

  .section { padding: 5rem 1.25rem; }
  .rsvp-form { padding: 2rem 1.5rem; }

  .program-item {
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.25rem 0;
  }
  .program-item .time { text-align: left; min-width: 0; font-size: 1.3rem; }
  .program-text h3 { font-size: 1.3rem; }

  .radio-row { flex-direction: column; }
  .radio-option { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .nav-container { padding: 0.9rem 1.25rem; }
  .rsvp-form { padding: 1.75rem 1.25rem; }
}
