:root {
  --pink: #d97880;
  --pink-dark: #bf626a;
  --light-pink: #f9e5e3;
  --cream: #fffaf7;
  --text: #292426;
  --muted: #73696a;
  --gold: #cdb18b;
  --border: #eaded8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
}

button {
  font-family: inherit;
}

.hero {
  min-height: 560px;
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(238, 176, 176, 0.18),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(238, 176, 176, 0.18),
      transparent 30%
    ),
    linear-gradient(180deg, #fffaf7, #fdf2ef);
}

/* Decorative flowers */

.hero::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;

  right: -90px;
  top: -80px;

  border: 2px solid rgba(220, 130, 140, 0.25);
  border-radius: 50%;

  box-shadow:
    -35px 20px 0 -30px rgba(220, 130, 140, 0.25),
    -75px 60px 0 -55px rgba(220, 130, 140, 0.2),
    -100px 110px 0 -75px rgba(220, 130, 140, 0.2);

  transform: rotate(20deg);
}

.hero::after {
  content: "❀";
  position: absolute;

  left: -35px;
  bottom: -45px;

  font-size: 190px;
  color: rgba(217, 120, 128, 0.12);
}

/* TOP BAR */

.top-bar {
  position: relative;
  z-index: 3;

  max-width: 900px;
  margin: auto;

  padding: 28px 28px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.monogram {
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  /* letter-spacing: 2px; */
  display: flex;
  gap: 4px;
}

.monogram span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--pink);

  animation: heartbeat 1.8s ease-in-out infinite;
  transform-origin: center;
}

.monogram span svg {
  display: block;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }

  10% {
    transform: scale(1.15);
  }

  20% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.12);
  }

  40% {
    transform: scale(1);
  }

  100% {
    transform: scale(1);
  }
}

.menu-btn {
  width: 46px;
  height: 46px;

  border: 0;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.6);

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;

  padding: 0 12px;
}

.menu-btn span {
  height: 2px;
  width: 100%;
  background: var(--pink);
}

/* HERO CONTENT */

.hero-content {
  position: relative;
  z-index: 2;

  text-align: center;

  max-width: 850px;
  margin: 20px auto 0;
}

.families-intro {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;

  color: var(--pink);
}

.families-intro p {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text);
}

.hero h1 {
  margin-top: 20px;

  font-family: "Cormorant Garamond", serif;

  font-size: clamp(58px, 8vw, 100px);

  font-weight: 500;
  letter-spacing: 2px;

  text-transform: uppercase;
}

.hero h1 em {
  font-family: "Allura", cursive;
  font-size: 0.65em;
  text-transform: lowercase;
  color: var(--pink);
  font-weight: 400;
}

.hero h1 span {
  padding-left: 20px;
}

.families-intro p {
  text-transform: uppercase;
}

.getting-married {
  margin-top: 15px;

  font-size: 11px;
  letter-spacing: 4px;
}

.ornament {
  color: var(--gold);
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* COUNTDOWN */

.countdown-box {
  background: rgba(255, 255, 255, 0.72);

  border: 1px solid var(--border);

  border-radius: 22px;

  max-width: 700px;
  margin: 25px auto 0;

  padding: 22px;

  box-shadow: 0 10px 30px rgba(100, 60, 60, 0.08);
}

.countdown-title {
  font-family: "Cormorant Garamond", serif;

  font-size: 16px;
  letter-spacing: 3px;

  margin-bottom: 20px;
  font-weight: 600;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.time {
  border-right: 1px solid var(--border);
  font-weight: 600;
}

.time:last-child {
  border-right: 0;
}

.time strong {
  display: block;

  font-family: "Cormorant Garamond", serif;

  color: var(--pink);

  font-size: 40px;
  font-weight: 500;
  /* background-color: red; */
  position: relative;
  bottom: 6px;
}

.time span {
  display: block;

  margin-top: 4px;

  font-size: 9px;
  letter-spacing: 2px;
}

/* DATE */

.date-banner {
  height: 78px;

  background: var(--pink);

  color: white;

  display: flex;
  justify-content: center;
  align-items: center;

  gap: 15px;

  text-align: center;
}

.calendar-icon {
  font-size: 27px;
}

.date-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  letter-spacing: 3px;
}

.save-date {
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 3px;
}

/* COMMON SECTION */

.section {
  padding: 50px 25px;
}

.section-title {
  display: flex;

  justify-content: center;
  align-items: center;

  gap: 17px;

  margin-bottom: 30px;
}

.section-title h2 {
  font-family: "Cormorant Garamond", serif;

  font-size: 26px;

  font-weight: 600;

  letter-spacing: 3px;
}

.section-title span {
  color: var(--gold);
}

/* EVENTS */

.events-section {
  background: #fffaf7;
}

.events-grid {
  max-width: 1000px;
  margin: auto;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 18px;
}

.event-card {
  min-height: 300px;

  border: 1px solid var(--border);

  border-radius: 20px;

  padding: 25px 18px;

  text-align: center;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(252, 244, 240, 0.7)
  );

  box-shadow: 0 8px 25px rgba(80, 50, 50, 0.06);

  position: relative;
}

.event-icon {
  width: 58px;
  height: 58px;

  margin: -55px auto 18px;

  border-radius: 50%;

  background: #fff;

  border: 1px solid var(--border);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 23px;

  color: var(--pink);

  box-shadow: 0 5px 15px rgba(80, 50, 50, 0.07);
}

.event-card h3 {
  color: var(--pink);

  font-family: "Cormorant Garamond", serif;

  font-size: 18px;

  letter-spacing: 2px;
}

.event-date {
  font-family: "Cormorant Garamond", serif;

  font-size: 37px;

  margin: 12px 0;

  line-height: 0.8;
}

.event-date small {
  display: block;

  font-family: "Montserrat", sans-serif;

  font-size: 9px;

  letter-spacing: 2px;

  margin-top: 7px;
}

.event-time {
  font-size: 10px;
  letter-spacing: 1px;

  margin: 22px 0 10px;
}

.event-location {
  font-family: "Cormorant Garamond", serif;

  font-size: 15px;

  line-height: 1.4;
}

.dress-code {
  color: var(--pink);

  font-size: 10px;

  margin-top: 17px;
}

.calendar-btn,
.photos-btn {
  display: block;

  margin: 25px auto 0;

  padding: 12px 25px;

  border: 1px solid #e59ba0;

  border-radius: 999px;

  background: transparent;

  color: var(--pink);

  letter-spacing: 2px;

  font-size: 10px;
}

/* FAMILY */

.family-section {
  background: #fcf6f2;
}

.family-section .section-title {
  margin-bottom: 50px;
}

.family-grid {
  max-width: 1000px;

  margin: auto;

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 14px;

  margin-top: 30px;
}

.family-card {
  position: relative;

  border: 1px solid var(--border);

  border-radius: 15px;

  background: rgba(255, 255, 255, 0.6);

  padding: 35px 15px 20px;

  text-align: center;

  min-height: 150px;
}

.family-icon {
  position: absolute;

  top: -27px;
  left: 50%;

  transform: translateX(-50%);

  width: 52px;
  height: 52px;

  border-radius: 50%;

  background: white;

  border: 1px solid var(--border);

  display: flex;

  justify-content: center;
  align-items: center;

  color: var(--pink);

  font-size: 19px;
}

.family-card h3 {
  font-family: "Cormorant Garamond", serif;

  color: var(--pink-dark);

  font-size: 12px;

  letter-spacing: 1px;

  margin-bottom: 12px;
}

.family-card p {
  font-family: "Cormorant Garamond", serif;

  font-size: 15px;

  line-height: 1.35;
}

.family-message {
  text-align: center;

  margin-top: 25px;

  font-family: "Cormorant Garamond", serif;

  font-size: 17px;
}

.small-heart {
  text-align: center;

  color: var(--pink);

  margin-top: 10px;
}

/* VENUE */

.venue-map {
  position: relative;

  max-width: 1100px;

  height: 350px;

  margin: auto;

  border-radius: 22px;

  overflow: hidden;

  box-shadow: 0 10px 30px rgba(70, 50, 50, 0.1);
}

.venue-map iframe {
  width: 100%;
  height: 100%;

  border: 0;

  filter: grayscale(0.15) sepia(0.05);
}

.venue-info {
  position: absolute;

  left: 20px;
  top: 20px;

  width: 270px;

  padding: 25px;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.94);

  text-align: center;

  box-shadow: 0 10px 25px rgba(60, 50, 50, 0.13);
}

.venue-pin {
  color: var(--pink);
  font-size: 23px;
}

.venue-info h3 {
  font-family: "Cormorant Garamond", serif;

  font-size: 21px;

  margin: 8px 0;
}

.venue-info p {
  font-family: "Cormorant Garamond", serif;

  font-size: 15px;

  line-height: 1.3;
}

.venue-info a {
  display: inline-block;

  margin-top: 15px;

  color: var(--pink);

  font-size: 10px;

  text-decoration: none;

  letter-spacing: 1px;
}

/* GALLERY */

.gallery-section {
  background: #fffaf7;
}

.gallery {
  max-width: 1000px;

  margin: auto;

  display: grid;

  grid-template-columns: repeat(5, 1fr);

  gap: 10px;
}

.gallery img {
  width: 100%;

  aspect-ratio: 1;

  object-fit: cover;

  border-radius: 12px;

  cursor: pointer;

  transition: 0.3s;
}

.gallery img:hover {
  transform: scale(1.025);
}

/* FOOTER */

.footer {
  background: var(--pink);

  color: white;

  text-align: center;

  padding: 35px 20px 45px;
}

.footer-heart {
  font-size: 20px;
}

.footer h2 {
  font-family: "Allura", cursive;

  font-size: 37px;

  font-weight: 400;

  margin: 8px 0;
}

.footer p {
  font-size: 9px;

  letter-spacing: 3px;
}

.footer-decoration {
  margin-top: 15px;

  color: #f6d8d4;

  letter-spacing: 10px;
}

/* MUSIC */

.music-btn {
  position: fixed;

  bottom: 20px;
  right: 20px;

  width: 48px;
  height: 48px;

  border-radius: 50%;

  border: 0;

  background: var(--pink);

  color: white;

  font-size: 22px;

  z-index: 100;

  box-shadow: 0 8px 25px rgba(80, 40, 40, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* LIGHTBOX */

.lightbox {
  position: fixed;

  inset: 0;

  z-index: 1000;

  background: rgba(20, 15, 16, 0.92);

  display: none;

  justify-content: center;
  align-items: center;

  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 95%;
  max-height: 90vh;

  border-radius: 10px;
}

#closeLightbox {
  position: absolute;

  right: 25px;
  top: 15px;

  background: none;

  border: 0;

  color: white;

  font-size: 42px;

  cursor: pointer;
}

/* =========================================
   SIDE MENU
========================================= */

.side-menu {
  position: fixed;

  top: 0;
  right: 0;

  width: min(390px, 88vw);
  height: 100vh;

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(217, 120, 128, 0.13),
      transparent 30%
    ),
    linear-gradient(180deg, #fffaf7, #f9e9e5);

  z-index: 1000;

  transform: translateX(100%);

  transition: transform 0.45s cubic-bezier(0.77, 0, 0.18, 1);

  box-shadow: -15px 0 45px rgba(60, 40, 40, 0.12);

  overflow: auto;
}

.side-menu.active {
  transform: translateX(0);
}

.mf-es {
  height: 100px;
  width: 100%;
}

/* HEADER */

.side-menu-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  padding: 28px 28px 20px;

  border-bottom: 1px solid rgba(210, 180, 160, 0.3);
}

.side-monogram {
  font-family: "Cormorant Garamond", serif;

  font-size: 32px;

  letter-spacing: 2px;

  color: #272223;
}

.side-monogram span {
  color: var(--pink);
}

.close-menu {
  width: 44px;
  height: 44px;

  border-radius: 50%;

  border: 1px solid var(--border);

  background: rgba(255, 255, 255, 0.65);

  color: var(--pink);

  font-size: 30px;

  line-height: 1;

  cursor: pointer;

  transition: 0.25s;
}

.close-menu:hover {
  background: var(--pink);
  color: white;
}

/* CONTENT */

.side-menu-content {
  padding: 40px 30px;
}

.menu-label {
  font-size: 9px;

  letter-spacing: 3px;

  color: var(--pink);

  margin-bottom: 28px;
}

/* LINKS */

.side-menu nav {
  display: flex;

  flex-direction: column;

  gap: 5px;
}

.menu-link {
  display: flex;

  align-items: center;

  gap: 20px;

  padding: 16px 5px;

  color: var(--text);

  text-decoration: none;

  font-family: "Cormorant Garamond", serif;

  font-size: 23px;

  border-bottom: 1px solid rgba(220, 200, 190, 0.3);

  transition: 0.25s;
}

.menu-link span {
  font-family: "Montserrat", sans-serif;

  font-size: 9px;

  letter-spacing: 1px;

  color: var(--pink);

  width: 20px;
}

.menu-link:hover {
  color: var(--pink);

  padding-left: 12px;
}

/* DIVIDER */

.menu-divider {
  text-align: center;

  color: var(--gold);

  margin: 45px 0 35px;

  letter-spacing: 8px;

  font-size: 13px;
}

/* FOOTER */

.menu-footer {
  text-align: center;

  padding: 25px;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.55);

  border: 1px solid rgba(220, 200, 190, 0.4);
}

.menu-footer p {
  font-family: "Allura", cursive;

  font-size: 30px;

  line-height: 1.1;

  color: #403739;
}

.menu-footer span {
  display: block;

  margin-top: 15px;

  color: var(--pink);

  font-family: "Cormorant Garamond", serif;

  font-size: 18px;

  letter-spacing: 1px;
}

/* OVERLAY */

.menu-overlay {
  position: fixed;

  inset: 0;

  background: rgba(35, 25, 28, 0.38);

  backdrop-filter: blur(3px);

  z-index: 999;

  opacity: 0;

  visibility: hidden;

  transition: 0.35s;
}

.menu-overlay.active {
  opacity: 1;

  visibility: visible;
}

/* PREVENT PAGE SCROLL */

body.menu-open {
  overflow: hidden;
}

.music-note {
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-bars {
  display: none;

  height: 20px;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.audio-bars i {
  display: block;
  width: 3px;
  height: 7px;
  border-radius: 5px;
  background: #fff;

  transform-origin: center;
  animation: audioWave 0.8s ease-in-out infinite;
}

/* Different heights/timing make it look like an audio waveform */

.audio-bars i:nth-child(1) {
  animation-delay: -0.2s;
}

.audio-bars i:nth-child(2) {
  animation-delay: -0.4s;
}

.audio-bars i:nth-child(3) {
  animation-delay: -0.6s;
}

.audio-bars i:nth-child(4) {
  animation-delay: -0.1s;
}

@keyframes audioWave {
  0%,
  100% {
    height: 5px;
  }

  50% {
    height: 19px;
  }
}

/* Playing state */

.music-btn.playing .music-note {
  display: none;
}

.music-btn.playing .audio-bars {
  display: flex;
}

/* MOBILE */

@media (max-width: 700px) {
  .hero {
    min-height: 530px;
  }

  .top-bar {
    padding: 20px 18px;
  }

  .monogram {
    font-size: 30px;
  }

  .hero-content {
    margin-top: 25px;
  }

  .families-intro p {
    font-size: 8px;
    letter-spacing: 2px;
  }

  .hero h1 {
    font-size: 57px;
    line-height: 0.95;

    margin-top: 15px;
  }

  .hero h1 em {
    font-size: 0.7em;
  }

  .getting-married {
    font-size: 8px;
    letter-spacing: 2px;
  }

  .countdown-box {
    margin: 20px 15px 0;

    padding: 20px 10px;
  }

  .countdown-title {
    font-size: 13px;
    letter-spacing: 2px;
  }

  .time strong {
    font-size: 30px;
  }

  .time span {
    font-size: 7px;
    letter-spacing: 1px;
  }

  /* Events */

  .section {
    padding: 45px 15px;
  }

  .section-title h2 {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .events-grid {
    grid-template-columns: 1fr;

    gap: 55px;

    padding: 0 15px;
  }

  .event-card {
    min-height: 270px;
  }

  /* Family */

  .family-grid {
    grid-template-columns: repeat(2, 1fr);

    gap: 45px 10px;

    padding: 0 5px;
  }

  .family-card {
    min-height: 150px;
  }

  .family-card h3 {
    font-size: 10px;
  }

  /* Venue */

  .venue-map {
    height: 390px;
  }

  .venue-info {
    left: 12px;
    right: 12px;

    width: auto;

    top: 12px;
  }

  /* Gallery */

  .gallery {
    grid-template-columns: repeat(2, 1fr);

    gap: 7px;
  }

  .gallery img:first-child {
    grid-column: span 2;

    aspect-ratio: 1.7;
  }

  .footer h2 {
    font-size: 32px;
  }

  .hero h1 span {
    padding-left: 0px;
  }
}
