:root {
  --color-background: #f3c8bb;
  --color-text: #27403d;
  --color-white: #ffffff;
  --font-family-base: "Poppins", sans-serif;
}

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

body {
  font-family: var(--font-family-base);
  background-color: var(--color-background);
  color: var(--color-text);
}

/* Hero section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
}

/* Circular floral wreath wrapper */
.hero__wreath {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(78vw, 540px);
  height: min(78vw, 540px);
  margin-inline: auto;
}

.hero__circle {
  position: absolute;
  inset: 8%;
  border: 6px solid var(--color-white);
  border-radius: 50%;
  z-index: 0;
}

.hero__floral {
  position: absolute;
  inset: -13%;
  width: 126%;
  height: 126%;
  pointer-events: none;
}

.hero__floral--back {
  z-index: 1;
}

.hero__floral--front {
  z-index: 3;
}

/* Couple names */
.hero__names {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text);
  font-weight: 800;
  font-size: clamp(3rem, 11vw, 6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.hero__ampersand {
  font-size: 0.85em;
}

/* Tagline */
.hero__subtitle {
  margin-top: 2.5rem;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.35em;
}

/* Wedding date */
.hero__date {
  margin-top: 0.5rem;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero__date-suffix {
  font-size: 0.6em;
  vertical-align: text-top;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  color: var(--color-text);
  animation: hero-scroll-bounce 2s ease-in-out infinite;
}

.hero__scroll svg {
  width: 100%;
  height: 100%;
}

@keyframes hero-scroll-bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

/* fullPage.js navigation dots */
#fp-nav ul li a span {
  background-color: var(--color-text);
}

/* Countdown section */
.countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

.countdown__label {
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.countdown__heading {
  margin-top: 0.75rem;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.countdown__date {
  margin-top: 0.5rem;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.countdown__timer {
  display: flex;
  gap: clamp(0.75rem, 2.5vw, 1.5rem);
  margin-top: clamp(1.5rem, 4vh, 3rem);
  flex-wrap: wrap;
  justify-content: center;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: clamp(70px, 18vw, 110px);
  padding: 1rem 0.5rem;
  border: 2px solid var(--color-white);
  border-radius: 12px;
}

.countdown__value {
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown__unit-label {
  margin-top: 0.5rem;
  font-size: clamp(0.6rem, 1.2vw, 0.8rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Events section */
.events {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vh, 2rem) 1.5rem;
}

.events__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  width: 100%;
  margin-inline: auto;
}

.events__label {
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.events__heading {
  margin-top: 0.75rem;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.events__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin-top: clamp(1rem, 3vh, 2rem);
  width: 100%;
}

/* Center the odd 5th card on its own row, matching the width of the cards above */
.event-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc((100% - clamp(0.75rem, 2vw, 1.5rem)) / 2);
  margin-inline: auto;
}

/* On wider screens, lay the 5 cards out as 3 + 2 (centered) so they fit one viewport tall */
@media (min-width: 360px) {
  .events__grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .event-card {
    grid-column: span 2;
  }

  .event-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .event-card:last-child:nth-child(odd) {
    grid-column: 4 / span 2;
    max-width: none;
    margin-inline: 0;
  }
}

.event-card {
  background-color: var(--color-white);
  border-radius: 16px;
  padding: clamp(0.75rem, 2.5vh, 1.5rem) 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 10px 25px rgba(39, 64, 61, 0.08);
}

.event-card__icon {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.event-card__title {
  margin-top: 0.25rem;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.event-card__date {
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  font-weight: 600;
}

.event-card__time,
.event-card__venue {
  font-size: clamp(0.7rem, 1.4vw, 0.85rem);
  opacity: 0.75;
}
