/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  color: oklch(15% 0 0);
  background: oklch(98% 0.004 75);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:hover { opacity: 0.7; }
img { display: block; max-width: 100%; }
input, button { font-family: inherit; }
button { cursor: pointer; }

/* ── Sticky Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 56px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: oklch(98% 0.004 75);
}
.site-header img { height: 42px; width: auto; }
.btn-rsvp,
.btn-submit {
  font: 500 12px 'Jost', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: oklch(15% 0 0);
  color: #fff;
  border: none;
  padding: 13px 26px;
  text-decoration: none;
  display: inline-block;
}
.btn-rsvp:hover, .btn-submit:hover { opacity: 0.85; }

/* ── Hero ── */
.hero {
  position: relative;
  aspect-ratio: 2832 / 886;
  width: 100%;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
  pointer-events: none;
}
.hero-text {
  position: absolute;
  left: 56px;
  bottom: 84px;
  color: #fff;
  pointer-events: none;
}
.hero-title { font: 400 76px/1.05 'Playfair Display', serif; }
.hero-sub {
  font: 500 18px 'Jost', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 14px;
  opacity: 0.9;
}

/* ── Section utilities ── */
.sec { padding: 96px 56px; }
.sec-gray { background: oklch(93% 0.002 75); }
.sec-dark { background: oklch(9% 0 0); color: #fff; }
.sec-offwhite { background: oklch(98% 0.004 75); }
.sec-center { text-align: center; }

.section-heading {
  font: 400 44px 'Playfair Display', serif;
  display: inline-block;
}
.section-heading-underline {
  border-bottom: 1px solid rgba(0,0,0,0.3);
  padding-bottom: 8px;
}
.section-heading-white { color: #fff; }
.heading-40 { font-size: 40px; }

.divider-img {
  width: 200px;
  height: auto;
  margin: 10px auto 0;
  display: block;
}

/* ── Tagline ── */
.sec-tagline { padding: 96px 120px; text-align: center; }
.tagline-text {
  font: italic 400 24px/1.6 'Playfair Display', serif;
  max-width: 780px;
  margin: 0 auto;
}

/* ── Save-the-date / Countdown ── */
.save-the-date {
  position: relative;
  height: 520px;
  width: 100%;
  overflow: hidden;
}
.save-the-date-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  filter: grayscale(1);
}
.save-the-date-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.35), transparent 55%);
  pointer-events: none;
}
.countdown-wrap {
  position: absolute;
  left: 56px;
  top: 70%;
  transform: translateY(-50%);
  color: #fff;
  pointer-events: none;
}
.cd-row { display: flex; gap: 36px; }
.cd-col { text-align: center; }
.cd-num { font: 400 44px 'Playfair Display', serif; }
.cd-label {
  font: 500 12px 'Jost', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 6px;
  opacity: 0.85;
}

/* ── Details ── */
.details-section { padding: 88px 56px 100px; }
.details-heading-wrap { margin-bottom: 56px; }
.details-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.detail-item { text-align: center; }
.detail-icon {
  height: 44px;
  width: 44px;
  object-fit: contain;
  margin: 0 auto 14px;
}
.detail-label {
  font: 500 12px 'Jost', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
}
.detail-value {
  font: 400 20px 'Playfair Display', serif;
  margin-top: 6px;
}
.details-crest { padding: 0 24px; }
.details-crest img {
  height: 200px;
  width: auto;
  margin: 0 auto;
}

/* ── Celebration / Carousel ── */
.celeb-text {
  font: 400 17px/1.7 'Jost', sans-serif;
  max-width: 760px;
  margin: 28px auto 4px;
}
.celeb-thanks {
  font: italic 400 18px 'Playfair Display', serif;
  margin: 20px 0 56px;
}
.celeb-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
.celeb-frame {
  position: relative;
  width: 280px;
  height: 420px;
  overflow: hidden;
  flex: none;
}
.celeb-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: opacity 0.9s ease;
  opacity: 0;
}
.celeb-frame img.active { opacity: 1; }
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { background: rgba(0,0,0,0.04); }

/* ── Order of Events ── */
.oe-row {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  height: 200px;
  display: flex;
}
.oe-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 100px;
  height: 1px;
  background: oklch(15% 0 0);
}
.oe-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.oe-top {
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-bottom: 10px;
}
.oe-tick {
  width: 1px;
  height: 20px;
  background: oklch(15% 0 0);
}
.oe-bottom {
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 14px;
  gap: 10px;
}
.oe-bottom-time {
  height: 90px;
  display: flex;
  align-items: flex-start;
  padding-top: 14px;
}
.oe-top-time {
  height: 90px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 10px;
}
.oe-icon { width: 38px; height: 38px; object-fit: contain; }
.oe-label {
  font: 500 11px 'Jost', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}
.oe-time {
  font: italic 400 17px 'Playfair Display', serif;
  white-space: nowrap;
}

/* ── Wedding Information ── */
.wi-row {
  display: flex;
  gap: 64px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}
.wi-col { flex: 1; min-width: 220px; }
.wi-label {
  font: 500 16px 'Playfair Display', serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.wi-text { font: 400 16px/1.7 'Jost', sans-serif; }

/* ── Menu ── */
.menu-section { padding: 96px 56px 100px; }
.menu-choose {
  font: 500 13px 'Jost', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 28px;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1000px;
  margin: 0 auto 32px;
}
.menu-col {
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.menu-col:first-child { border-left: none; }
.menu-dish {
  font: 500 21px/1.4 'Playfair Display', serif;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.menu-served {
  font: 500 10px 'Jost', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.25);
  margin-top: 16px;
  padding-top: 16px;
  margin-bottom: 12px;
}
.menu-sides {
  font: 400 14px/1.9 'Jost', sans-serif;
  color: rgba(255,255,255,0.7);
}
.menu-note {
  font: 400 13px 'Jost', sans-serif;
  opacity: 0.6;
  max-width: 520px;
  margin: 0 auto 56px;
}

/* ── Accommodation ── */
.accom-row {
  display: flex;
  gap: 72px;
  align-items: flex-start;
}
.accom-left { flex: 1; min-width: 0; }
.accom-right { flex: 1; min-width: 0; }
.accom-text {
  font: 400 17px/1.7 'Jost', sans-serif;
  max-width: 440px;
}
.accom-text-muted { color: oklch(15% 0 0 / 0.75); }
.btn-venue {
  display: inline-block;
  margin-top: 16px;
  font: 500 12px 'Jost', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: oklch(15% 0 0);
  color: #fff;
  padding: 14px 28px;
  text-decoration: none;
}
.btn-venue:hover { opacity: 0.85; }
.map-placeholder {
  position: relative;
  height: 340px;
  width: 100%;
  background: oklch(90% 0.03 155);
}
.map-embed {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
}
.map-label {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  font: 400 13px ui-monospace, monospace;
  color: oklch(30% 0 0 / 0.6);
  letter-spacing: 0.5px;
}
.map-card {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #fff;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-family: 'Jost', sans-serif;
}
.map-card-title { font-weight: 500; font-size: 14px; }
.map-card-sub { font-size: 12px; color: rgba(0,0,0,0.55); }

/* ── CTA ── */
.cta-block {
  padding: 44px 56px;
  text-align: center;
  background: oklch(98% 0.004 75);
}
.btn-cta {
  font: 600 14px 'Jost', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: oklch(15% 0 0);
  color: #fff;
  border: none;
  padding: 22px 56px;
  text-decoration: none;
  display: inline-block;
}
.btn-cta:hover { opacity: 0.85; }
.cta-date {
  font: 400 14px 'Jost', sans-serif;
  opacity: 0.7;
  margin-top: 16px;
}

/* ── Footer ── */
.site-footer {
  background: oklch(98% 0.004 75);
  padding: 12px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-footer img { height: 48px; width: auto; }
.footer-text { font: 400 13px 'Jost', sans-serif; opacity: 0.6; }

/* ── RSVP Page ── */
.rsvp-hero {
  position: relative;
  height: clamp(420px, 55vw, 900px);
  width: 100%;
  overflow: hidden;
}
.rsvp-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.rsvp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.4));
  pointer-events: none;
}
.rsvp-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  pointer-events: none;
}
.rsvp-hero-title { font: 400 64px 'Playfair Display', serif; }
.rsvp-hero-sub { font: 400 16px 'Jost', sans-serif; margin-top: 12px; }

.rsvp-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}
.rsvp-form-title {
  font: 400 48px 'Playfair Display', serif;
  text-align: center;
  margin-bottom: 48px;
}
.rsvp-label {
  font: 500 15px 'Jost', sans-serif;
  margin-bottom: 12px;
}
.rsvp-sublabel {
  font: 400 13px 'Jost', sans-serif;
  color: rgba(0,0,0,0.6);
  margin-bottom: 6px;
}
.name-row { display: flex; gap: 16px; margin-bottom: 32px; }
.name-row > div { flex: 1; }
.rsvp-input {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.3);
  background: oklch(97% 0 0);
  font: 400 15px 'Jost', sans-serif;
  outline: none;
  box-sizing: border-box;
}
.rsvp-input:focus { border-color: oklch(15% 0 0); }
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 15px 'Jost', sans-serif;
  cursor: pointer;
}
.radio-group input[type="radio"] { accent-color: oklch(15% 0 0); flex-shrink: 0; }
.rsvp-error {
  font: 400 14px 'Jost', sans-serif;
  color: #b3261e;
  margin-bottom: 20px;
  text-align: center;
  display: none;
}
.rsvp-error.show { display: block; }
.btn-submit-wrap { text-align: center; }
.btn-submit { padding: 16px 56px; font-size: 13px; }
.rsvp-success {
  max-width: 520px;
  margin: 0 auto;
  padding: 120px 24px 160px;
  text-align: center;
  display: none;
}
.rsvp-success.show { display: block; }
.rsvp-success h2 {
  font: 400 40px 'Playfair Display', serif;
  margin-bottom: 16px;
}
.rsvp-success p {
  font: 400 17px/1.6 'Jost', sans-serif;
  color: rgba(0,0,0,0.7);
}
.btn-back-home {
  display: inline-block;
  margin-top: 32px;
  font: 500 12px 'Jost', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: oklch(15% 0 0);
  color: #fff;
  padding: 14px 32px;
  text-decoration: none;
}

.rsvp-footer {
  padding: 12px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rsvp-footer img { height: 36px; width: auto; }

.back-link {
  font: 500 12px 'Jost', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
}

/* ── Responsive (max-width: 768px) ── */
@media (max-width: 768px) {
  .site-header { padding: 16px 20px; }
  .hero { aspect-ratio: auto; height: 400px; }
  .hero-img { object-position: 60% 50%; }
  .save-the-date { aspect-ratio: auto; height: 360px; }
  .save-the-date-img { object-position: 68% 50%; }
  .hero-title { font-size: 36px !important; }
  .hero-sub { font-size: 11px !important; }
  .hero-text { left: 24px; bottom: 40px; }
  .sec-tagline { padding: 56px 24px; }
  .sec { padding: 56px 24px; }
  .details-section { padding: 56px 24px; }
  .menu-section { padding: 56px 24px; }
  .cd-row { gap: 18px; flex-wrap: wrap; justify-content: center; }
  .cd-num { font-size: 26px !important; }
  .countdown-wrap {
    left: 0;
    right: 0;
    top: auto;
    bottom: 24px;
    transform: none;
    text-align: center;
  }
  .details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }
  .details-crest {
    grid-column: 1 / -1;
    padding: 0;
    order: -1;
    margin-top: 15px;
  }
  .details-heading-wrap { margin-bottom: -40px; position: relative; z-index: 1; }
  .details-crest img { height: 140px; }
  .detail-icon { height: 32px; width: 32px; margin-bottom: 10px; }
  .detail-value { font-size: 15px; }
  .detail-item:not(.details-crest) { margin-top: -25px; }
  .details-grid .detail-item:nth-child(4),
  .details-grid .detail-item:nth-child(5) { margin-top: -10px; }
  .celeb-row { justify-content: center; }
  .celeb-frame { width: 280px !important; height: 380px !important; }
  .celeb-frame[data-frame="1"],
  .celeb-frame[data-frame="2"] { display: none; }
  .oe-row {
    flex-direction: column;
    height: auto;
    gap: 0;
    max-width: 340px;
    margin: 0 auto;
  }
  .oe-line {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
  }
  .oe-col {
    flex-direction: row;
    height: 200px;
    width: 100%;
    align-items: center;
  }
  .oe-top {
    flex: 1;
    flex-direction: column;
    height: auto;
    justify-content: center;
    align-items: flex-end;
    padding: 0 12px 0 0;
    gap: 4px;
    text-align: right;
  }
  .oe-top-time {
    flex: 1;
    height: auto;
    justify-content: flex-end;
    align-items: center;
    padding: 0 12px 0 0;
  }
  .oe-tick {
    width: 20px;
    height: 1px;
    flex-shrink: 0;
  }
  .oe-bottom {
    flex: 1;
    flex-direction: column;
    height: auto;
    justify-content: center;
    align-items: flex-start;
    padding: 0 0 0 12px;
    gap: 4px;
    text-align: left;
  }
  .oe-bottom-time {
    flex: 1;
    height: auto;
    justify-content: flex-start;
    align-items: center;
    padding: 0 0 0 12px;
  }
  .wi-row { flex-direction: column; gap: 36px; }
  .menu-grid { grid-template-columns: 1fr; gap: 32px; }
  .menu-col { border-left: none; border-top: 1px solid rgba(255,255,255,0.15); padding: 24px 0 0; }
  .menu-col:first-child { border-top: none; padding-top: 0; }
  .accom-row { gap: 24px; }
  .cta-block { padding: 44px 24px; }
  .site-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    height: auto;
    padding: 16px 20px;
  }
}

/* ── Tablet hero height (min-width: 600px, max-width: 768px) ── */
@media (min-width: 600px) and (max-width: 768px) {
  .hero { height: 520px; }
}

/* ── Small phone overrides (max-width: 480px) ── */
@media (max-width: 480px) {
  .accom-row { flex-direction: column; gap: 36px; }
}

/* ── RSVP Responsive (max-width: 600px) ── */
@media (max-width: 600px) {
  .site-header { padding: 16px 20px; }
  .rsvp-hero { height: 280px; }
  .rsvp-hero-title { font-size: 44px !important; }
  .rsvp-form-title { font-size: 32px !important; }
  .name-row { flex-direction: column; gap: 20px; }
  .rsvp-footer {
    padding: 12px 20px;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}
