:root {
  --deep-emerald: #064e3b;
  --emerald: #047857;
  --soft-gold: #d8b15f;
  --ivory: #fffdf5;
}

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
}

body.cover-open {
  overflow: hidden;
}

body.invitation-open {
  overflow: auto;
}

.islamic-pattern,
.hero-ornament::before {
  background-image:
    linear-gradient(30deg, rgba(216, 177, 95, 0.18) 12%, transparent 12.5%, transparent 87%, rgba(216, 177, 95, 0.18) 87.5%, rgba(216, 177, 95, 0.18)),
    linear-gradient(150deg, rgba(216, 177, 95, 0.18) 12%, transparent 12.5%, transparent 87%, rgba(216, 177, 95, 0.18) 87.5%, rgba(216, 177, 95, 0.18)),
    linear-gradient(30deg, rgba(216, 177, 95, 0.18) 12%, transparent 12.5%, transparent 87%, rgba(216, 177, 95, 0.18) 87.5%, rgba(216, 177, 95, 0.18)),
    linear-gradient(150deg, rgba(216, 177, 95, 0.18) 12%, transparent 12.5%, transparent 87%, rgba(216, 177, 95, 0.18) 87.5%, rgba(216, 177, 95, 0.18));
  background-position: 0 0, 0 0, 28px 49px, 28px 49px;
  background-size: 56px 98px;
}

.hero-ornament::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.hero-ornament::after {
  content: '';
  position: absolute;
  inset: auto -20% -35% -20%;
  height: 60%;
  background: radial-gradient(circle, rgba(4, 120, 87, 0.12), transparent 65%);
}

.nav-link {
  position: relative;
  transition: color 200ms ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--soft-gold);
  transition: transform 200ms ease;
}

.nav-link:hover {
  color: var(--emerald);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.section-padding {
  padding: 5rem 1.25rem;
}

.section-kicker {
  margin-bottom: 0.75rem;
  color: var(--soft-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.section-title {
  color: var(--deep-emerald);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.arch-card {
  position: relative;
}

.arch-card::before,
.arch-card::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgba(216, 177, 95, 0.3);
  filter: blur(24px);
}

.arch-card::before {
  top: 20%;
  left: -18%;
  width: 8rem;
  height: 8rem;
}

.arch-card::after {
  right: -15%;
  bottom: 8%;
  width: 7rem;
  height: 7rem;
}

.info-card {
  min-height: 15rem;
  border: 1px solid rgba(6, 78, 59, 0.1);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.86);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 24px 70px rgba(6, 78, 59, 0.08);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 90px rgba(6, 78, 59, 0.14);
}

.info-card h3 {
  margin-top: 1rem;
  color: var(--deep-emerald);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
}

.info-card p {
  margin-top: 0.75rem;
  color: #5f6b6b;
  line-height: 1.75;
}

.info-icon {
  display: inline-flex;
  width: 4rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(216, 177, 95, 0.18);
  font-size: 1.75rem;
}

.gallery-card {
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 2rem;
  background: #fff;
  box-shadow: 0 24px 70px rgba(6, 78, 59, 0.1);
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 400ms ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#cover.is-hidden {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-100%);
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.mobile-bottom-nav a {
  border-radius: 999px;
  padding: 0.55rem 0.25rem;
  transition: background-color 200ms ease, color 200ms ease;
}

.mobile-bottom-nav a:active,
.mobile-bottom-nav a:hover {
  background: rgba(4, 120, 87, 0.1);
  color: var(--emerald);
}

@media (max-width: 767px) {
  .section-padding {
    padding: 4rem 1rem;
  }

  .section-title {
    font-size: clamp(2.15rem, 12vw, 3rem);
  }

  .section-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.26em;
  }

  .info-card {
    min-height: auto;
    border-radius: 1.5rem;
    padding: 1.35rem;
  }

  .info-card h3 {
    font-size: 1.65rem;
  }

  .info-icon {
    width: 3.35rem;
    height: 3.35rem;
    font-size: 1.45rem;
  }

  .gallery-card {
    border-width: 5px;
    border-radius: 1.5rem;
  }

  .reveal {
    transform: translateY(22px);
  }
}

@media (max-width: 360px) {
  .mobile-bottom-nav {
    inset-inline: 0.5rem;
    font-size: 0.58rem;
  }
}
