/* ============================================================
   Wedding Web — Renata & Václav
   Palette: watercolor botanical (sage green, pastels, white)
   ============================================================ */

:root {
  --green-dark:  #4a6741;
  --green-mid:   #6b8c5f;
  --green-light: #c2d9b4;
  --cream:       #fdfcf8;
  --white:       #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lato', system-ui, sans-serif;

  --text:        #3a3a3a;
  --text-muted:  #7a7a7a;

  --shadow: 0 2px 16px rgba(74, 103, 65, 0.08);
  --radius: 10px;
  --max-w:  820px;
  --max-w-n: 600px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ─────────────────────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253,252,248,.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74,103,65,.1);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(74,103,65,.12); }

.nav__inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 1.5rem; height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 400;
  color: var(--green-dark); text-decoration: none;
  letter-spacing: .04em; white-space: nowrap;
}

.nav__links { display: flex; gap: 1.6rem; list-style: none; }
.nav__links a {
  font-size: .8rem; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-dark); text-decoration: none;
  opacity: .75; transition: opacity .2s;
}
.nav__links a:hover { opacity: 1; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--green-dark);
  transition: transform .3s, opacity .3s;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 700px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; top: 62px; left: 0; right: 0;
    background: rgba(253,252,248,.97);
    backdrop-filter: blur(10px);
    flex-direction: column; gap: 0; padding: .5rem 0;
    border-bottom: 1px solid rgba(74,103,65,.1);
    box-shadow: 0 8px 24px rgba(74,103,65,.1);
    transform: translateY(-110%); opacity: 0;
    transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s;
    pointer-events: none;
  }
  .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { display: block; padding: .85rem 2rem; font-size: .85rem; }
}

/* ── HERO ────────────────────────────────────────────────── */

.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 7rem 2rem 5rem;
  background: var(--white);
  overflow: hidden;
  text-align: center;
}

.hero__deco {
  position: absolute; pointer-events: none; overflow: hidden;
  width: clamp(180px, 38vw, 340px);
  height: clamp(180px, 38vw, 340px);
}
.hero__deco--tl { top: 0; left: 0; }
.hero__deco--br { bottom: 0; right: 0; transform: scaleX(-1) scaleY(-1); }

.hero__content { position: relative; z-index: 1; max-width: 560px; }

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(.85rem, 1.5vw, 1rem);
  font-style: italic; font-weight: 300;
  color: var(--green-mid);
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero__names {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  font-weight: 300;
  color: var(--green-dark);
  letter-spacing: .1em; line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero__names__line { display: block; }
.hero__names__line--amp {
  font-size: .38em;
  letter-spacing: .25em;
  opacity: .65;
  margin: -.15em 0;
}

.hero__rule {
  color: var(--green-mid);
  display: flex; justify-content: center;
  margin-bottom: 1.5rem;
}

.hero__date {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 400; color: var(--green-dark);
  letter-spacing: .1em; margin-bottom: .4rem;
}

.hero__venue {
  font-size: .8rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--green-mid);
  margin-bottom: 2.5rem;
}

/* Countdown */
.hero__countdown { display: flex; align-items: center; justify-content: center; gap: .75rem; }
.countdown__item { display: flex; flex-direction: column; align-items: center; min-width: 3.5rem; }
.countdown__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 300; color: var(--green-dark);
  line-height: 1;
}
.countdown__label {
  font-family: var(--font-body);
  font-size: .65rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green-mid);
  margin-top: .2rem;
}
.countdown__sep {
  font-family: var(--font-display);
  font-size: 1.8rem; color: var(--green-light);
  line-height: 1; margin-bottom: 1rem;
}

/* Scroll arrow */
.hero__scroll {
  position: absolute; bottom: 1.75rem; left: 50%; transform: translateX(-50%);
  color: var(--green-mid); opacity: .55; text-decoration: none;
  animation: bounce 2.2s ease-in-out infinite;
  transition: opacity .2s;
}
.hero__scroll:hover { opacity: 1; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ── SECTIONS ────────────────────────────────────────────── */

.section { padding: 5.5rem 1.5rem; background: var(--cream); }
.section--alt { background: var(--white); }

.container { max-width: var(--max-w); margin: 0 auto; }
.container--narrow { max-width: var(--max-w-n); margin: 0 auto; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 300; color: var(--green-dark);
  letter-spacing: .07em; text-align: center;
  margin-bottom: 2.5rem;
}
.section-title::after {
  content: '';
  display: block; width: 36px; height: 1px;
  background: var(--green-light);
  margin: .9rem auto 0;
}

.section-intro {
  text-align: center; color: var(--text-muted);
  font-size: .95rem; line-height: 1.9;
  max-width: 520px; margin: -1rem auto 2.5rem;
}

/* ── DETAILS GRID ────────────────────────────────────────── */

.details-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
@media (max-width: 520px) { .details-grid { grid-template-columns: 1fr; } }

.detail-card {
  background: var(--white); border: 1px solid var(--green-light);
  border-radius: var(--radius); padding: 2rem 1.5rem;
  text-align: center; box-shadow: var(--shadow);
  transition: transform .2s;
}
.detail-card:hover { transform: translateY(-2px); }
.detail-card__icon { color: var(--green-mid); margin-bottom: .9rem; display: flex; justify-content: center; }
.detail-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 400;
  color: var(--green-dark); margin-bottom: .3rem;
}
.detail-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }
.detail-card__note { margin-top: .4rem; font-style: italic; }
.detail-card__link { margin-top: 1rem; font-size: .75rem; padding: .5rem 1.2rem; }

/* ── TIMELINE ────────────────────────────────────────────── */

.timeline { list-style: none; max-width: 480px; margin: 0 auto; position: relative; }
.timeline::before {
  content: ''; position: absolute;
  left: 74px; top: 8px; bottom: 8px;
  width: 1px; background: var(--green-light);
}

.timeline__item {
  display: grid; grid-template-columns: 74px 18px 1fr;
  align-items: center; gap: 0 1rem;
  margin-bottom: 1.6rem; position: relative;
}
.timeline__item:last-child { margin-bottom: 0; }

.timeline__time {
  font-family: var(--font-display);
  font-size: 1rem; color: var(--green-mid);
  text-align: right; letter-spacing: .04em;
}
.timeline__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green-mid);
  border: 2px solid var(--white);
  outline: 1px solid var(--green-light);
  justify-self: center;
}
.timeline__text { font-size: .93rem; color: var(--text); }

@media (max-width: 440px) {
  .timeline::before { left: 56px; }
  .timeline__item { grid-template-columns: 56px 18px 1fr; }
  .timeline__time { font-size: .9rem; }
}

/* ── ACCOMMODATION ───────────────────────────────────────── */

.acc-list { display: flex; flex-direction: column; gap: 1rem; }
.acc-card {
  background: var(--cream); border: 1px solid var(--green-light);
  border-radius: var(--radius); padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}
.acc-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 500;
  color: var(--green-dark); margin-bottom: .25rem;
}
.acc-card__addr { font-size: .88rem; color: var(--text-muted); }
.acc-card__note { font-size: .9rem; font-style: italic; color: var(--text); margin-top: .3rem; }
.acc-card .btn { margin-top: .75rem; }

/* ── MAP ─────────────────────────────────────────────────── */

.map-wrap {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--green-light);
  box-shadow: var(--shadow); margin-bottom: 1.5rem;
}
.map-frame { width: 100%; height: 360px; border: none; display: block; }

.map-wrap--placeholder .map-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; height: 200px;
  background: var(--white); color: var(--green-mid);
}
.map-placeholder p { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-muted); }
.map-actions { text-align: center; }

/* ── FAQ ─────────────────────────────────────────────────── */

.faq-list { display: flex; flex-direction: column; gap: .7rem; }

.faq-item {
  background: var(--cream); border: 1px solid var(--green-light);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.faq-item__q {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 400; color: var(--green-dark);
  padding: 1rem 1.5rem; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: background .2s; user-select: none;
}
.faq-item__q::-webkit-details-marker, .faq-item__q::marker { display: none; }
.faq-item__q::after {
  content: '+'; font-size: 1.5rem; font-weight: 300;
  color: var(--green-mid); flex-shrink: 0; line-height: 1;
  transition: transform .25s;
}
details[open] .faq-item__q::after { transform: rotate(45deg); }
.faq-item__q:hover { background: rgba(194,217,180,.15); }
.faq-item__a {
  padding: 0 1.5rem 1.2rem;
  font-size: .93rem; color: var(--text-muted); line-height: 1.85;
}

/* ── GIFTS ───────────────────────────────────────────────── */

.gifts-body {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-style: italic; font-weight: 300;
  color: var(--green-mid); line-height: 2;
}
.gifts-body p + p { margin-top: .9rem; }

/* ── BUTTONS ─────────────────────────────────────────────── */

.btn {
  display: inline-block; padding: .7rem 1.9rem;
  border-radius: 40px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-size: .8rem;
  font-weight: 400; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: all .22s;
}
.btn--primary {
  background: var(--green-dark); color: var(--white); border-color: var(--green-dark);
}
.btn--primary:hover {
  background: var(--green-mid); border-color: var(--green-mid);
  transform: translateY(-1px); box-shadow: 0 4px 14px rgba(74,103,65,.25);
}
.btn--outline { background: transparent; color: var(--green-dark); border-color: var(--green-dark); }
.btn--outline:hover {
  background: var(--green-dark); color: var(--white);
  transform: translateY(-1px);
}

/* ── PHOTO GRID ──────────────────────────────────────────── */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .75rem;
}
.photo-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--green-light);
}
.photo-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .45s ease;
}
.photo-item:hover img { transform: scale(1.06); }
.photo-item__caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: .6rem .9rem;
  background: linear-gradient(transparent, rgba(40,55,35,.55));
  color: var(--white); font-size: .8rem;
  letter-spacing: .05em;
  opacity: 0; transition: opacity .3s;
}
.photo-item:hover .photo-item__caption { opacity: 1; }

/* ── RSVP ────────────────────────────────────────────────── */

.rsvp-form { max-width: 480px; margin: 0 auto; }
.rsvp-form__row { margin-bottom: 1.1rem; }
.rsvp-form__row--radios { margin-bottom: 1.1rem; }
.rsvp-form__submit {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  margin-top: 1.5rem;
}

.rsvp-field { display: flex; flex-direction: column; }
.rsvp-field label, .rsvp-label-plain {
  font-size: .78rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .07em; margin-bottom: .4rem; display: block;
}
.rsvp-field input[type="text"],
.rsvp-field input[type="number"],
.rsvp-field textarea {
  padding: .65rem .9rem;
  border: 1.5px solid var(--green-light); border-radius: 8px;
  font-family: var(--font-body); font-size: .95rem; color: var(--text);
  background: var(--white); resize: vertical;
  transition: border-color .2s;
}
.rsvp-field input:focus, .rsvp-field textarea:focus {
  outline: none; border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(107,140,95,.12);
}
.rsvp-field input[type="number"] { max-width: 90px; }

.radio-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.radio-opt {
  display: flex; align-items: center; gap: .5rem;
  cursor: pointer; padding: .6rem 1.1rem;
  border: 1.5px solid var(--green-light); border-radius: 40px;
  font-size: .9rem; color: var(--text);
  transition: all .2s; user-select: none;
}
.radio-opt:has(input:checked) {
  border-color: var(--green-dark);
  background: rgba(74,103,65,.07);
  color: var(--green-dark);
}
.radio-opt input { position: absolute; opacity: 0; width: 0; height: 0; }

.req { color: #b85c5c; }
.opt { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .75rem; }

.rsvp-deadline {
  font-size: .82rem; color: var(--text-muted);
  font-style: italic;
}

.rsvp-form__row--inline {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.rsvp-form__row--inline .rsvp-field { flex: 1; min-width: 100px; }

.rsvp-food-note {
  display: flex; align-items: flex-start; gap: .5rem;
  background: rgba(194,217,180,.2); border: 1px solid var(--green-light);
  border-radius: 8px; padding: .75rem 1rem;
  font-size: .85rem; color: var(--text-muted);
  line-height: 1.55; margin-bottom: 1.1rem;
  color: var(--green-mid);
}

.rsvp-flash {
  border-radius: var(--radius); padding: 1.2rem 1.5rem;
  text-align: center; font-size: 1rem; line-height: 1.6;
}
.rsvp-flash--yes {
  background: rgba(107,140,95,.12);
  color: var(--green-dark); border: 1px solid var(--green-light);
}
.rsvp-flash--no {
  background: rgba(168,140,180,.1);
  color: #6a5a7a; border: 1px solid #d8cce8;
}

/* ── FOOTER ──────────────────────────────────────────────── */

.footer {
  background: var(--green-dark); color: var(--white);
  padding: 3rem 2rem; text-align: center;
}
.footer .container { max-width: var(--max-w); margin: 0 auto; }
.footer__names {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 300;
  letter-spacing: .1em; margin-bottom: .4rem; opacity: .95;
}
.footer__info { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .55; }
