* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =====================================================
   WEDDING EVENTS PAGE
===================================================== */

.events-page {
  --event-dark: #762f46;
  --event-deep: #8e3654;
  --event-pink: #c75d7b;
  --event-light: #ed9fb3;
  --event-soft: #f8d8e1;
  --event-pale: #fff7f6;
  --event-cream: #fffaf8;
  --event-text: #704654;

  background: linear-gradient(180deg, #fffaf8, #fff2f5);

  color: var(--event-text);

  overflow: hidden;
}

/* =====================================================
   HERO
===================================================== */

.events-hero {
  position: relative;

  height: min(780px, 92vh);

  min-height: 600px;

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;

  color: white;

  text-align: center;
}

.events-hero-image {
  position: absolute;

  inset: 0;
}

.events-hero-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.events-hero-overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(67, 18, 32, 0.25),
    rgba(80, 22, 39, 0.72)
  );
}

.events-hero-content {
  position: relative;

  z-index: 3;

  max-width: 760px;

  padding: 30px;
}

.events-kicker {
  display: block;

  margin-bottom: 22px;

  font-family: Arial, sans-serif;

  font-size: 9px;

  letter-spacing: 5px;

  opacity: 0.9;
}

.events-hero h1 {
  margin: 0;

  font-family: Georgia, "Times New Roman", serif;

  font-size: clamp(65px, 10vw, 115px);

  line-height: 0.78;

  font-weight: 400;

  letter-spacing: -4px;
}

.events-hero h1 em {
  display: block;

  margin-top: 18px;

  font-family: "Brush Script MT", "Segoe Script", cursive;

  font-size: 1.15em;

  font-weight: 400;

  letter-spacing: 0;

  color: #ffd5df;
}

.events-hero p {
  max-width: 440px;

  margin: 35px auto 25px;

  font-family: Georgia, serif;

  font-size: 15px;

  line-height: 1.8;

  color: rgba(255, 255, 255, 0.9);
}

.events-hero-divider {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 14px;

  margin: 20px 0;
}

.events-hero-divider span {
  width: 70px;

  height: 1px;

  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8));
}

.events-hero-divider span:last-child {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
}

.events-hero-divider i {
  color: #ffd1dd;

  font-style: normal;

  font-size: 14px;
}

.events-date {
  font-family: Arial, sans-serif;

  font-size: 8px;

  letter-spacing: 4px;

  opacity: 0.85;
}

/* Floating petals */

.events-floating-petal {
  position: absolute;

  z-index: 2;

  color: #ffd4df;

  opacity: 0.7;

  animation: eventPetalFloat 5s ease-in-out infinite;
}

.petal-one {
  top: 20%;
  left: 15%;

  font-size: 28px;
}

.petal-two {
  top: 35%;
  right: 16%;

  font-size: 14px;

  animation-delay: 1s;
}

.petal-three {
  bottom: 22%;
  right: 10%;

  font-size: 40px;

  animation-delay: 2s;
}

@keyframes eventPetalFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-20px) rotate(12deg);
  }
}

/* Scroll */

.events-scroll {
  position: absolute;

  bottom: 25px;

  left: 50%;

  transform: translateX(-50%);

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 10px;

  font-family: Arial, sans-serif;

  font-size: 8px;

  letter-spacing: 3px;

  opacity: 0.8;
}

.events-scroll div {
  width: 1px;

  height: 45px;

  background: linear-gradient(to bottom, white, transparent);

  animation: eventScroll 2s infinite;
}

@keyframes eventScroll {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* =====================================================
   INTRO
===================================================== */

.events-intro {
  max-width: 800px;

  margin: 0 auto;

  padding: 105px 25px 75px;

  text-align: center;
}

.events-intro-kicker {
  display: block;

  margin-bottom: 14px;

  font-family: Arial, sans-serif;

  font-size: 9px;

  letter-spacing: 4px;

  color: var(--event-pink);
}

.events-intro h2 {
  margin: 0;

  font-family: Georgia, serif;

  font-size: clamp(35px, 5vw, 55px);

  font-weight: 400;

  line-height: 1;

  color: var(--event-dark);
}

.events-intro h2 em {
  display: block;

  margin-top: 8px;

  font-family: "Brush Script MT", "Segoe Script", cursive;

  font-size: 1.15em;

  color: var(--event-pink);

  font-weight: 400;
}

.events-intro p {
  max-width: 560px;

  margin: 27px auto;

  font-family: Georgia, serif;

  font-size: 14px;

  line-height: 1.8;

  color: #8a5b68;
}

.intro-heart {
  width: 38px;
  height: 38px;

  margin: 22px auto 0;

  display: flex;

  align-items: center;
  justify-content: center;

  border: 1px solid rgba(199, 93, 123, 0.35);

  border-radius: 50%;

  color: var(--event-pink);

  font-size: 12px;
}

/* =====================================================
   DAY NAVIGATION
===================================================== */

.event-day-nav {
  max-width: 850px;

  margin: 0 auto 65px;

  padding: 5px;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 5px;

  border: 1px solid rgba(141, 48, 77, 0.12);

  border-radius: 60px;

  background: rgba(255, 255, 255, 0.7);

  box-shadow: 0 8px 30px rgba(118, 47, 70, 0.07);
}

.day-nav-item {
  border: none;

  background: transparent;

  border-radius: 50px;

  padding: 14px 15px;

  cursor: pointer;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 3px;

  color: #956575;

  transition: 0.35s ease;
}

.day-nav-item span {
  font-family: Arial, sans-serif;

  font-size: 7px;

  letter-spacing: 2px;
}

.day-nav-item strong {
  font-family: Georgia, serif;

  font-size: 17px;

  font-weight: 400;
}

.day-nav-item small {
  font-family: Arial, sans-serif;

  font-size: 7px;

  letter-spacing: 1px;
}

.day-nav-item.active {
  background: linear-gradient(135deg, var(--event-dark), var(--event-pink));

  color: white;

  box-shadow: 0 8px 20px rgba(118, 47, 70, 0.18);
}

/* =====================================================
   TIMELINE SECTION
===================================================== */

.events-timeline-section {
  position: relative;

  padding: 20px 25px 120px;

  background: #fff8f7;
}

.events-timeline-section::before {
  content: "";

  position: absolute;

  inset: 0;

  opacity: 0.12;

  pointer-events: none;

  background-image: radial-gradient(
    rgba(118, 47, 70, 0.18) 0.7px,
    transparent 0.7px
  );

  background-size: 8px 8px;
}

/* =====================================================
   DAY
===================================================== */

.event-day {
  position: relative;

  max-width: 1050px;

  margin: 0 auto;

  display: none;

  animation: dayAppear 0.6s ease;
}

.event-day.active {
  display: block;
}

@keyframes dayAppear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   DAY HEADING
===================================================== */

.day-heading {
  position: relative;

  z-index: 2;

  display: flex;

  align-items: center;

  gap: 30px;

  max-width: 720px;

  margin: 0 auto 90px;

  text-align: left;
}

.day-number {
  flex-shrink: 0;

  width: 90px;
  height: 90px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: linear-gradient(135deg, #fff, #f9dbe3);

  border: 1px solid rgba(199, 93, 123, 0.35);

  color: var(--event-pink);

  font-family: Georgia, serif;

  font-size: 26px;

  box-shadow: 0 10px 30px rgba(118, 47, 70, 0.09);
}

.day-heading > div:last-child > span {
  display: block;

  margin-bottom: 8px;

  font-family: Arial, sans-serif;

  font-size: 8px;

  letter-spacing: 3px;

  color: var(--event-pink);
}

.day-heading h2 {
  margin: 0;

  font-family: Georgia, serif;

  font-size: clamp(38px, 5vw, 56px);

  line-height: 0.9;

  font-weight: 400;

  color: var(--event-dark);
}

.day-heading h2 em {
  font-family: "Brush Script MT", "Segoe Script", cursive;

  font-size: 1.15em;

  color: var(--event-pink);

  font-weight: 400;
}

.day-heading p {
  max-width: 550px;

  margin: 14px 0 0;

  font-family: Georgia, serif;

  font-size: 13px;

  line-height: 1.7;

  color: #8b5f6b;
}

/* =====================================================
   EVENT TIMELINE
===================================================== */

.event-timeline {
  position: relative;

  max-width: 900px;

  margin: 0 auto;
}

/* Central line */

.event-timeline::before {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;

  left: 50%;

  width: 1px;

  transform: translateX(-50%);

  background: linear-gradient(
    to bottom,
    transparent,
    #d58ba0 4%,
    #d58ba0 96%,
    transparent
  );
}

/* =====================================================
   EVENT ITEM
===================================================== */

.event-item {
  position: relative;

  display: grid;

  grid-template-columns: 1fr 70px 1fr;

  align-items: center;

  margin-bottom: 75px;

  min-height: 170px;
}

.event-item:last-child {
  margin-bottom: 0;
}

/* Time */

.event-time {
  display: flex;

  align-items: baseline;

  justify-content: flex-end;

  gap: 5px;

  padding-right: 28px;

  color: var(--event-dark);
}

.event-time strong {
  font-family: Georgia, serif;

  font-size: 30px;

  font-weight: 400;

  letter-spacing: -1px;
}

.event-time span {
  font-family: Arial, sans-serif;

  font-size: 9px;

  letter-spacing: 1px;

  color: var(--event-pink);
}

/* Node */

.event-node {
  position: relative;

  z-index: 3;

  width: 52px;
  height: 52px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin: 0 auto;

  border: 1px solid rgba(199, 93, 123, 0.4);

  border-radius: 50%;

  background: linear-gradient(135deg, #fff, #f9dce4);

  color: var(--event-pink);

  font-size: 13px;

  box-shadow:
    0 0 0 8px #fff8f7,
    0 8px 20px rgba(118, 47, 70, 0.12);

  transition: 0.35s ease;
}

.event-item:hover .event-node {
  transform: scale(1.15);

  background: linear-gradient(135deg, var(--event-pink), var(--event-dark));

  color: white;
}

/* Card */

.event-card {
  grid-column: 3;

  display: flex;

  overflow: hidden;

  min-height: 170px;

  border: 1px solid rgba(199, 93, 123, 0.16);

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.8);

  box-shadow: 0 12px 35px rgba(118, 47, 70, 0.08);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.event-item:hover .event-card {
  transform: translateY(-5px);

  box-shadow: 0 20px 45px rgba(118, 47, 70, 0.14);
}

/* Every second item moves card left */

.event-item:nth-child(even) .event-card {
  grid-column: 1;

  grid-row: 1;

  flex-direction: row-reverse;
}

/* =====================================================
   EVENT IMAGE
===================================================== */

.event-card-image {
  position: relative;

  flex: 0 0 150px;

  min-height: 170px;

  overflow: hidden;
}

.event-card-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.7s ease;
}

.event-item:hover .event-card-image img {
  transform: scale(1.08);
}

/* Featured */

.featured-badge {
  position: absolute;

  left: 12px;
  bottom: 12px;

  padding: 6px 10px;

  border-radius: 30px;

  background: rgba(118, 47, 70, 0.9);

  color: white;

  font-family: Arial, sans-serif;

  font-size: 7px;

  letter-spacing: 1.5px;
}

/* =====================================================
   EVENT CARD CONTENT
===================================================== */

.event-card-content {
  flex: 1;

  padding: 25px 23px;
}

.event-card-content.no-image {
  padding: 30px;
}

.event-label {
  display: block;

  margin-bottom: 7px;

  font-family: Arial, sans-serif;

  font-size: 7px;

  letter-spacing: 2px;

  color: var(--event-pink);
}

.event-card h3 {
  margin: 0;

  font-family: Georgia, serif;

  font-size: 23px;

  line-height: 1;

  font-weight: 400;

  color: var(--event-dark);
}

.event-card h3 em {
  font-family: "Brush Script MT", "Segoe Script", cursive;

  font-size: 1.15em;

  color: var(--event-pink);

  font-weight: 400;
}

.event-card p {
  margin: 12px 0;

  font-family: Georgia, serif;

  font-size: 11px;

  line-height: 1.65;

  color: #89616c;
}

.event-details {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: 12px;

  font-family: Arial, sans-serif;

  font-size: 7px;

  letter-spacing: 0.5px;

  color: #9a6877;
}

/* Final event */

.final-event {
  background: linear-gradient(135deg, #fff, #f9dce4);

  border-color: rgba(199, 93, 123, 0.35);
}

.final-event-node {
  background: linear-gradient(135deg, var(--event-pink), var(--event-dark));

  color: white;

  animation: eventHeartPulse 2.4s infinite;
}

@keyframes eventHeartPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 8px #fff8f7,
      0 8px 20px rgba(118, 47, 70, 0.12);
  }

  50% {
    box-shadow:
      0 0 0 14px rgba(199, 93, 123, 0.08),
      0 10px 28px rgba(118, 47, 70, 0.2);
  }
}

/* =====================================================
   VENUE CTA
===================================================== */

.events-venue {
  position: relative;

  min-height: 430px;

  display: flex;

  align-items: center;

  justify-content: center;

  text-align: center;

  overflow: hidden;

  color: white;

  background: linear-gradient(135deg, #7a3048, #b64e6d);
}

.events-venue::before {
  content: "";

  position: absolute;

  width: 650px;
  height: 650px;

  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.15);

  top: -420px;

  left: 50%;

  transform: translateX(-50%);
}

.events-venue-inner {
  position: relative;

  z-index: 2;

  padding: 40px;
}

.events-venue-inner > span {
  font-family: Arial, sans-serif;

  font-size: 8px;

  letter-spacing: 4px;

  opacity: 0.8;
}

.events-venue h2 {
  margin: 15px 0 10px;

  font-family: Georgia, serif;

  font-size: clamp(40px, 6vw, 65px);

  font-weight: 400;

  line-height: 0.9;
}

.events-venue h2 em {
  font-family: "Brush Script MT", "Segoe Script", cursive;

  font-size: 1.2em;

  color: #ffd5df;

  font-weight: 400;
}

.events-venue p {
  font-family: Georgia, serif;

  font-size: 13px;

  line-height: 1.7;

  opacity: 0.85;
}

.venue-direction-btn {
  display: inline-flex;

  align-items: center;

  gap: 15px;

  margin-top: 20px;

  padding: 12px 22px;

  border: 1px solid rgba(255, 255, 255, 0.55);

  border-radius: 50px;

  background: rgba(255, 255, 255, 0.08);

  color: white;

  font-family: Arial, sans-serif;

  font-size: 8px;

  letter-spacing: 2px;

  cursor: pointer;

  transition: 0.3s ease;
}

.venue-direction-btn b {
  font-size: 16px;

  font-weight: 400;

  transition: transform 0.3s ease;
}

.venue-direction-btn:hover {
  background: white;

  color: var(--event-dark);

  transform: translateY(-3px);
}

.venue-direction-btn:hover b {
  transform: translateX(5px);
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {
  .events-hero {
    min-height: 650px;

    height: 85vh;
  }

  .events-hero h1 {
    font-size: 60px;
  }

  .events-hero p {
    font-size: 13px;
  }

  .events-intro {
    padding: 80px 25px 60px;
  }

  .events-intro h2 {
    font-size: 36px;
  }

  /* Day navigation */

  .event-day-nav {
    margin: 0 15px 45px;

    border-radius: 25px;
  }

  .day-nav-item {
    padding: 12px 5px;
  }

  .day-nav-item strong {
    font-size: 14px;
  }

  .day-nav-item small {
    font-size: 6px;
  }

  /* Day heading */

  .day-heading {
    margin-bottom: 60px;

    gap: 18px;

    align-items: flex-start;
  }

  .day-number {
    width: 65px;
    height: 65px;

    font-size: 20px;
  }

  .day-heading h2 {
    font-size: 37px;
  }

  .day-heading p {
    font-size: 12px;
  }

  /* Timeline */

  .events-timeline-section {
    padding: 10px 15px 90px;
  }

  .event-timeline {
    padding-left: 52px;
  }

  .event-timeline::before {
    left: 20px;

    transform: none;
  }

  .event-item {
    display: block;

    min-height: 0;

    margin-bottom: 55px;
  }

  .event-time {
    justify-content: flex-start;

    padding: 0;

    margin-bottom: 10px;
  }

  .event-time strong {
    font-size: 27px;
  }

  .event-node {
    position: absolute;

    left: -52px;

    top: 3px;

    width: 42px;
    height: 42px;

    margin: 0;
  }

  .event-card,
  .event-item:nth-child(even) .event-card {
    display: flex;

    flex-direction: column;

    width: 100%;

    grid-column: auto;

    grid-row: auto;
  }

  .event-card-image {
    width: 100%;

    flex: none;

    height: 190px;

    min-height: 190px;
  }

  .event-card-content,
  .event-card-content.no-image {
    padding: 22px;
  }

  .event-card h3 {
    font-size: 23px;
  }

  .event-card p {
    font-size: 11px;
  }

  .events-venue {
    min-height: 390px;
  }

  .events-venue h2 {
    font-size: 45px;
  }
}

@media (max-width: 420px) {
  .events-hero h1 {
    font-size: 50px;
  }

  .event-day-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .day-nav-item span {
    font-size: 6px;
  }

  .day-nav-item strong {
    font-size: 12px;
  }

  .day-nav-item small {
    display: none;
  }

  .day-heading {
    align-items: center;
  }

  .day-number {
    width: 55px;
    height: 55px;

    font-size: 17px;
  }

  .day-heading h2 {
    font-size: 31px;
  }

  .event-timeline {
    padding-left: 48px;
  }

  .event-timeline::before {
    left: 18px;
  }

  .event-node {
    left: -48px;

    width: 38px;
    height: 38px;
  }
}
