/* =================================================================
   BOSHOFF TROUE — Section Styles
   Applied on top of Blocksy via the child theme.
   ================================================================= */

/* ── Hero Section ─────────────────────────────────────────────────── */
.wedding-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 30px solid var(--wedding-maroon);
  border-radius: 55px;
}

.custom-hero-frame {
  border-radius: 35px;
  overflow: hidden;
  /* Shrinks the hero to make room for the 25px side borders */
  width: calc(100% - 50px) !important;
  margin: 25px auto 0 auto !important;
}

.wedding-hero img.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wedding-hero .hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.wedding-hero .hero-overlay img {
  width: 65%;
  max-width: none;
  height: auto;
}

.wedding-hero .hero-venue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--wedding-cream);
  opacity: 0.85;
}

/* ── Countdown ────────────────────────────────────────────────────── */
.wedding-countdown {
  background-color: var(--wedding-maroon);
  padding: 100px 20px;
}

.wedding-countdown .countdown-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.wedding-countdown .countdown-block {
  flex: 1;
  text-align: center;
  position: relative;
}

.wedding-countdown .countdown-block:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: rgba(255, 248, 231, 0.3);
}

.wedding-countdown .countdown-number {
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  font-weight: 400;
  color: var(--wedding-cream);
  line-height: 1;
  display: block;
}

.wedding-countdown .countdown-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--wedding-cream);
  opacity: 0.8;
  margin-top: 12px;
  display: block;
}

/* ── Our Story ────────────────────────────────────────────────────── */
.wedding-story {
  background-color: var(--wedding-maroon);
  padding: 100px 80px 140px;
}

.wedding-story .story-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.wedding-story .story-text {
  flex: 1;
}

.wedding-story .story-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--wedding-cream);
  opacity: 0.6;
  margin-bottom: 16px;
}

.wedding-story .story-title {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 400;
  color: var(--wedding-cream);
  margin-bottom: 28px;
  line-height: 1.2;
}

.wedding-story .story-body {
  font-size: 15px;
  color: var(--wedding-cream);
  opacity: 0.85;
  line-height: 1.8;
}

.wedding-story .story-image {
  flex: 0 0 390px;
}

.wedding-story .story-image img {
  width: 390px;
  height: 585px;
  border-radius: 12px;
  object-fit: cover;
}

/* ── Schedule ─────────────────────────────────────────────────────── */
.wedding-schedule {
  background-color: var(--wedding-maroon);
  padding: 10px 40px 200px;
}

.wedding-schedule .schedule-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: var(--wedding-cream);
  margin-bottom: 60px;
}

.wedding-schedule .schedule-events {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.wedding-schedule .schedule-event {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  flex: 1;
}

.wedding-schedule .schedule-event-icon {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wedding-schedule .schedule-event-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wedding-schedule .schedule-event-time {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--wedding-cream);
}

.wedding-schedule .schedule-event-name {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #FFFFFF;
  opacity: 0.9;
}

/* ── RSVP ─────────────────────────────────────────────────────────── */
.wedding-rsvp {
  position: relative;
  width: calc(100vw - var(--scrollbar-width)) !important;
  max-width: calc(100vw - var(--scrollbar-width)) !important;
  min-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: calc(-50vw + 50% + var(--scrollbar-width) / 2) !important;
  margin-right: calc(-50vw + 50% + var(--scrollbar-width) / 2) !important;
}

.wedding-rsvp .rsvp-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.wedding-rsvp .rsvp-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wedding-rsvp .rsvp-frame {
  position: relative;
  width: 410px;
  max-width: 90vw;
}

.wedding-rsvp .rsvp-frame img {
  width: 100%;
  height: auto;
}

.wedding-rsvp .rsvp-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 40px 140px;
  text-align: center;
}

.wedding-rsvp .rsvp-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--wedding-maroon);
  margin: 0 0 40px;
  position: relative;
  top: 25px;
}

.wedding-rsvp .rsvp-deadline {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 13px;
  line-height: 1.6;
  color: var(--wedding-maroon);
  margin: 0 0 24px;
}

.wedding-rsvp .rsvp-button {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--wedding-cream);
  background-color: var(--wedding-maroon);
  padding: 14px 40px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.3s;
}

.wedding-rsvp .rsvp-button:hover {
  opacity: 0.85;
}

/* ── Footer / Bottom Border ───────────────────────────────────────── */
.wedding-footer-lace {
  width: calc(100vw - var(--scrollbar-width)) !important;
  max-width: calc(100vw - var(--scrollbar-width)) !important;
  display: block;
  padding: 0;
  line-height: 0;
  vertical-align: bottom;
  margin-left: calc(-50vw + 50% + var(--scrollbar-width) / 2) !important;
  margin-right: calc(-50vw + 50% + var(--scrollbar-width) / 2) !important;
}

.wedding-footer {
  background-color: var(--wedding-cream);
  text-align: center;
  padding: 40px 20px 50px;
  color: var(--wedding-maroon);
  width: calc(100vw - var(--scrollbar-width)) !important;
  max-width: calc(100vw - var(--scrollbar-width)) !important;
  margin-left: calc(-50vw + 50% + var(--scrollbar-width) / 2) !important;
  margin-right: calc(-50vw + 50% + var(--scrollbar-width) / 2) !important;
}

.wedding-footer .footer-logo {
  height: 45px;
  width: auto;
  margin: 0 auto 20px;
}

.wedding-footer .footer-info {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--wedding-maroon);
  margin-bottom: 8px;
}

.wedding-footer .footer-love {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--wedding-maroon);
  opacity: 0.7;
  font-style: italic;
}

/* ── WordPress-specific overrides ─────────────────────────────────── */
/* Remove default Blocksy content padding on the home page */
.page-template-default .entry-content,
.home .entry-content {
  padding: 0 !important;
  max-width: 100% !important;
}

.home .site-main {
  padding: 0;
}

/* Remove ALL gaps between blocks — WordPress/Blocksy uses margin-block-start/end
   via --theme-content-spacing on .is-layout-constrained children */
.home .entry-content > *,
.home .entry-content > *:first-child,
.home .entry-content > *:last-child {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* Space below the RSVP section (overrides the reset above).
   No .entry-content ancestor so this works both on the default
   page template (block pattern flow) and on template-tuisblad.php. */
.home .entry-content > .wedding-rsvp,
.wedding-rsvp {
  margin-bottom: 100px !important;
  margin-block-end: 100px !important;
}

/* Also override the max-width constraint that is-layout-constrained applies */
.home .entry-content.is-layout-constrained > * {
  max-width: 100% !important;
}

/* Make cover blocks span full width (corrected for scrollbar) */
.wedding-hero,
.wedding-countdown,
.wedding-story,
.wedding-schedule,
.wedding-rsvp,
.wedding-footer-lace,
.wedding-footer {
  margin-left: calc(-50vw + 50% + var(--scrollbar-width) / 2);
  margin-right: calc(-50vw + 50% + var(--scrollbar-width) / 2);
  width: calc(100vw - var(--scrollbar-width));
}

/* Hide default Blocksy/WordPress footer copyright */
.site-footer,
footer#colophon,
.ct-footer {
  display: none !important;
}

/* Ensure lace border and footer have no gaps */
.wedding-footer-lace {
  display: block;
  margin: 0 !important;
  padding: 0;
  line-height: 0;
}

/* Remove any Blocksy/theme spacing around the content area */
.home .ct-container,
.home .ct-container-full {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.home article.post,
.home article.page {
  margin: 0;
  padding: 0;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .wedding-story {
    padding: 60px 30px;
  }
  .wedding-story .story-inner {
    flex-direction: column;
    text-align: center;
  }
  .wedding-story .story-image {
    flex: none;
    width: 100%;
    max-width: 360px;
  }
  .wedding-story .story-title {
    font-size: 36px;
  }
  .wedding-countdown .countdown-number {
    font-size: 48px;
  }
}

@media (max-width: 600px) {

  /* ── Hero ────────────────────────────────────────────────────────── */
  .custom-hero-frame {
    width: 100% !important;
    margin: 0 !important;
  }
  .wedding-hero {
    aspect-ratio: 3 / 4;
    border-width: 10px;
    border-radius: 26px;
  }
  .wedding-hero .hero-overlay {
    padding: 24px;
  }
  .wedding-hero .hero-overlay img {
    width: 80%;
  }
  .wedding-hero .hero-venue {
    bottom: 16px;
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .wedding-hero img.hero-bg {
    object-position: 30% center;
  }

  /* ── Section Spacing ─────────────────────────────────────────────── */
  .wedding-countdown {
    padding-top: 90px;
    padding-bottom: 60px;
  }
  .wedding-story {
    padding-top: 60px;
  }

  /* ── Countdown ───────────────────────────────────────────────────── */
  .wedding-countdown .countdown-number {
    font-size: 36px;
  }
  .wedding-countdown .countdown-label {
    font-size: 10px;
    letter-spacing: 2px;
  }

  /* ── Ons Storie image ────────────────────────────────────────────── */
  .wedding-story .story-image {
    width: auto !important;
    max-width: 133% !important;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .wedding-story .story-image img {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 10px solid var(--wedding-maroon);
    border-radius: 26px;
  }

  /* ── Schedule ────────────────────────────────────────────────────── */
  .wedding-schedule .schedule-events {
    gap: 24px;
  }
  .wedding-schedule .schedule-event {
    width: 120px;
  }

  /* ── RSVP ────────────────────────────────────────────────────────── */
  .wedding-rsvp .rsvp-bg {
    display: none !important;
  }
  .wedding-rsvp {
    background-image: url('../assets/images/rsvp-mobile-v2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .wedding-rsvp .rsvp-overlay {
    transform: translateY(60px);
  }
  .wedding-rsvp .rsvp-content {
    justify-content: flex-end;
    padding: 0 28px 32px;
    transform: none;
  }
  .wedding-rsvp .rsvp-subtitle {
    font-size: 13px;
    margin: 0 0 55px;
  }
  .wedding-rsvp .rsvp-deadline {
    font-size: 12px;
    margin: 0 0 8px;
  }
  .wedding-rsvp .rsvp-button {
    padding: 12px 30px;
    font-size: 12px;
    margin: 0 0 80px;
  }
  .wedding-rsvp .rsvp-heading {
    font-size: 24px;
  }
}
