/* Floral / Rustic — Blush Nude / Dusty Rose, Cormorant Garamond-forward, photo-heavy
   hero with a decorative "Kisah Kami" timeline. client.yaml `theme` (Dua Hati+)
   overrides --color-bg/--color-text/--color-accent via
   templates/_shared/partials/brand_tokens.html.j2. */
:root {
  --color-bg: var(--color-blush);
  --color-text: var(--color-ink);
  --color-accent: var(--color-dusty-rose);
  --color-surface: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.65;
}

#main-content { max-width: 760px; margin: 0 auto; padding: 0 1.5rem 4rem; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 2.5rem 0 2rem; }
.hero__frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1.75rem;
  box-shadow: 0 18px 40px rgba(107, 39, 55, 0.18);
}
.hero__media { width: 100%; height: 62vh; min-height: 320px; max-height: 560px; object-fit: cover; display: block; }
.hero__monogram {
  width: 100%; height: 320px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--color-blush), var(--color-dusty-rose));
  font-family: var(--font-display); font-size: 4rem; color: var(--color-maroon);
}
.hero__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.5rem 1.75rem;
  background: linear-gradient(to top, rgba(46,33,31,0.72) 0%, rgba(46,33,31,0.28) 55%, transparent 100%);
  color: var(--color-ivory);
}
.hero__flourish { font-family: var(--font-flourish); font-size: 1.75rem; color: var(--color-blush); margin: 0; }
.hero__names { font-family: var(--font-display); font-weight: 600; font-size: 3rem; margin: 0.35rem 0 0.6rem; letter-spacing: 0.01em; }
.hero__amp { color: var(--color-blush); font-style: italic; }
.hero__greeting { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; margin: 0; }

/* ---------- Decorative divider ---------- */
.divider { display: flex; align-items: center; gap: 0.75rem; margin: 0.5rem 0; }
.divider__line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--color-accent), transparent); }
.divider__mark { color: var(--color-gold); font-size: 1.1rem; }

/* ---------- Countdown (shared markup, restyled) ---------- */
.countdown { display: flex; justify-content: center; gap: 1.5rem; margin: 0 auto; }
.countdown__unit {
  display: flex; flex-direction: column; align-items: center; min-width: 3.75rem;
  background: var(--color-surface); border-radius: 12px; padding: 0.75rem 0.5rem;
  box-shadow: 0 4px 14px rgba(107, 39, 55, 0.08);
}
.countdown__num { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--color-maroon); }
.countdown__label { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65; }

/* ---------- Sections ---------- */
.section { padding: 2.75rem 0; }
.section__heading {
  font-family: var(--font-display); font-weight: 600; font-size: 2rem; text-align: center;
  margin: 0 0 0.35rem; color: var(--color-maroon);
}
.section__subheading {
  text-align: center; font-family: var(--font-flourish); font-size: 1.3rem; color: var(--color-accent);
  margin: 0 0 2rem;
}

/* ---------- Our Story timeline — Floral signature section ---------- */
.story-timeline { position: relative; margin-top: 2.5rem; padding-left: 0; }
.story-timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--color-accent) 0 8px, transparent 8px 16px);
  transform: translateX(-50%);
}
.story-timeline__item { position: relative; width: 50%; padding: 0 2.25rem 2.5rem; }
.story-timeline__item--left { left: 0; text-align: right; }
.story-timeline__item--right { left: 50%; text-align: left; }
.story-timeline__marker {
  position: absolute; top: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--color-maroon); color: var(--color-ivory); font-family: var(--font-display);
  font-weight: 600; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 5px var(--color-bg);
}
.story-timeline__item--left .story-timeline__marker { right: -1.125rem; }
.story-timeline__item--right .story-timeline__marker { left: -1.125rem; }
.story-timeline__card {
  background: var(--color-surface); border-radius: 14px; padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(107, 39, 55, 0.1);
}
.story-timeline__date { font-size: 0.78rem; color: var(--color-accent); letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.35rem; }
.story-timeline__title { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 0.5rem; color: var(--color-maroon); }
.story-timeline__text { margin: 0; opacity: 0.85; }

/* ---------- Events / Maps & Waze ---------- */
.events-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.event-card { background: var(--color-surface); border-radius: 14px; padding: 1.75rem 1.5rem; text-align: center; box-shadow: 0 8px 24px rgba(107, 39, 55, 0.08); }
.event-card__label { font-family: var(--font-display); font-size: 1.3rem; color: var(--color-maroon); margin: 0 0 0.5rem; }
.event-card__date, .event-card__venue, .event-card__address { margin: 0.25rem 0; }
.event-card__links { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1rem; }

.btn {
  display: inline-block; padding: 0.65rem 1.5rem; border-radius: 999px; text-decoration: none;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em; cursor: pointer; border: none;
  font-family: var(--font-body);
}
.btn--outline { background: transparent; border: 1px solid var(--color-maroon); color: var(--color-maroon); }
.btn--accent { background: var(--color-maroon); color: var(--color-ivory); }

/* ---------- Schedule / dress code ---------- */
.schedule-list { list-style: none; padding: 0; max-width: 440px; margin: 0 auto; }
.schedule-list__item { display: flex; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px dashed rgba(107, 39, 55, 0.2); }
.schedule-list__time { font-weight: 600; min-width: 5rem; color: var(--color-maroon); }
.dress-code { text-align: center; margin-top: 2rem; }
.dress-code__swatches { display: flex; gap: 0.5rem; justify-content: center; margin-top: 0.5rem; }
.dress-code__swatch { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); display: inline-block; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.gallery-grid__item { border: none; padding: 0; background: none; cursor: pointer; aspect-ratio: 1; overflow: hidden; border-radius: 10px; }
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lightbox {
  position: fixed; inset: 0; background: rgba(46,33,31,0.92); display: flex; align-items: center;
  justify-content: center; z-index: 100;
}
.lightbox__img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer;
}
.lightbox__close { top: 1rem; right: 1.5rem; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* ---------- Gift ---------- */
.gift-section__message { text-align: center; opacity: 0.85; }
.gift-section__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.gift-card { background: var(--color-surface); border-radius: 14px; padding: 1.5rem; text-align: center; box-shadow: 0 8px 24px rgba(107, 39, 55, 0.08); }
.gift-card__bank { font-weight: 600; margin: 0; color: var(--color-maroon); }
.gift-card__name { opacity: 0.7; margin: 0.25rem 0; font-size: 0.9rem; }
.gift-card__copy { border: 1px dashed var(--color-accent); background: none; border-radius: 8px; padding: 0.5rem 1rem; cursor: pointer; font-family: var(--font-body); }
.gift-card__qr-img { width: 140px; height: 140px; object-fit: contain; }

/* ---------- RSVP ---------- */
.rsvp-form { display: flex; flex-direction: column; gap: 1rem; max-width: 440px; margin: 0 auto; }
.rsvp-form__field { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; }
.rsvp-form__field input, .rsvp-form__field select, .rsvp-form__field textarea {
  padding: 0.6rem 0.75rem; border: 1px solid rgba(107, 39, 55, 0.25); border-radius: 10px; font-family: var(--font-body); font-size: 0.95rem;
  background: var(--color-surface);
}
.rsvp-form__honeypot { position: absolute; left: -9999px; }
.rsvp-form__status { text-align: center; color: var(--color-maroon); font-weight: 600; }

/* ---------- Wishes wall ---------- */
.wishes-list__item { border-bottom: 1px solid rgba(107, 39, 55, 0.12); padding: 0.75rem 0; }
.wishes-list__name { font-weight: 600; margin: 0; color: var(--color-maroon); }
.wishes-list__message { margin: 0.25rem 0 0; opacity: 0.85; }

.calendar-cta { text-align: center; padding: 1.5rem 0; }

.site-footer { text-align: center; padding-top: 2rem; opacity: 0.65; }
.site-footer__logo { width: 32px; height: 32px; object-fit: contain; }
.site-footer__credit { font-size: 0.75rem; margin: 0.5rem 0 0; }

/* ---------- Toggles ---------- */
.music-toggle {
  position: fixed; bottom: 1.25rem; right: 1.25rem; width: 3rem; height: 3rem; border-radius: 50%;
  border: none; background: var(--color-maroon); color: var(--color-ivory); font-size: 1.3rem; cursor: pointer; z-index: 50;
  box-shadow: 0 6px 16px rgba(107, 39, 55, 0.3);
}

.lang-toggle {
  position: fixed; top: 1.25rem; right: 1.25rem; border: 1px solid var(--color-maroon); background: var(--color-bg);
  color: var(--color-maroon); border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.75rem; font-weight: 600; cursor: pointer; z-index: 50;
}

/* ---------- Full-screen overlays ---------- */
.teaser-overlay, .thank-you-overlay {
  position: fixed; inset: 0; background: var(--color-bg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 2rem; z-index: 60;
}
/* `hidden` and `display:flex` above are equal-specificity (class vs. UA attribute
   selector) — without this compound selector, source order lets `flex` win and
   the overlay stays visible even with the `hidden` attribute set. */
.lightbox[hidden], .teaser-overlay[hidden], .thank-you-overlay[hidden] { display: none; }
.teaser-overlay__flourish, .thank-you-overlay__flourish { font-family: var(--font-flourish); font-size: 2.1rem; color: var(--color-maroon); }
.teaser-overlay__names, .thank-you-overlay__names { font-family: var(--font-display); font-size: 2.5rem; margin: 0.5rem 0 1.5rem; color: var(--color-maroon); }
.thank-you-overlay__photo { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; margin-bottom: 1rem; }

@media (max-width: 640px) {
  .story-timeline::before { left: 1.1rem; }
  .story-timeline__item, .story-timeline__item--left, .story-timeline__item--right {
    width: 100%; left: 0; text-align: left; padding: 0 0 2.25rem 3rem;
  }
  .story-timeline__item--left .story-timeline__marker,
  .story-timeline__item--right .story-timeline__marker { left: 0; right: auto; }
}

@media (max-width: 480px) {
  .hero__names { font-size: 2.25rem; }
  .hero__media { height: 48vh; min-height: 260px; }
  .countdown { gap: 0.75rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
