/* ========================
   Global styles
   ======================== */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Navbar height variable (desktop vs mobile) */
:root {
  --nav-h: 24px;
  --bs-body-font-family: "Cormorant Garamond", serif;
  --bs-body-font-size: 1.25rem;
  --bs-body-color: #1f3a2e; /* Taupe Grey */
  --bs-body-bg: #f8f5f0;
  --primary: #635346; /* Dusty Rose Olive Green */
  --bs-primary: #1f3a2e; /* Olive Green */
  --accent-dark: #470f0e; /* Alizarin Crimson (deep) */
  --neutral-dark: #1f3a2e; /* Taupe Grey */
  --neutral-black: #000000;
}
body {
  padding-top: var(--nav-h);
  font-family: var(--bs-body-font-family);
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-size: var(--bs-body-font-size);
}
@media (max-width: 991.98px) {
  :root {
    --nav-h: 12px;
  }
}

/* ========================
   Wedding Navbar
   ======================== */
.site-nav {
  position: relative;
  z-index: 1050;
}

.desktop-nav {
  position: fixed;
  top: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100vw - 2rem));
  pointer-events: none;
  z-index: 1045;
}

.desktop-nav__shell {
  position: relative;
  width: fit-content;
  margin: 0 auto;
  pointer-events: auto;
}

.desktop-nav__trigger {
  width: fit-content;
  margin: 0 auto;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 250, 243, 0.35);
  border-radius: 999px;
  background: rgba(23, 38, 31, 0.56);
  color: rgba(255, 250, 243, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.desktop-nav__shell:hover .desktop-nav__trigger,
.desktop-nav__shell:focus-within .desktop-nav__trigger {
  transform: translateY(-2px);
  background: rgba(23, 38, 31, 0.74);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.2);
}

.desktop-nav__monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.14);
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.desktop-nav__trigger-text {
  font-family: "Cinzel", serif;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.desktop-nav__trigger-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #d8b87a;
  box-shadow: 0 0 0 6px rgba(216, 184, 122, 0.12);
}

.desktop-nav__panel {
  margin-top: 0.75rem;
  padding: 1rem 1.35rem 1.15rem;
  border: 1px solid rgba(255, 250, 243, 0.2);
  border-radius: 1.5rem;
  background: linear-gradient(
    180deg,
    rgba(24, 39, 32, 0.9) 0%,
    rgba(48, 31, 29, 0.78) 100%
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 220ms ease;
}

.desktop-nav__shell:hover .desktop-nav__panel,
.desktop-nav__shell:focus-within .desktop-nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.desktop-nav__brand {
  color: #fffaf3;
  text-decoration: none;
  font-family: "Waterfall", cursive;
  font-size: 2.5rem;
  line-height: 0.9;
  white-space: nowrap;
}

.desktop-nav__brand:hover,
.desktop-nav__brand:focus {
  color: #ffffff;
}

.desktop-nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.desktop-nav__link {
  color: rgba(255, 250, 243, 0.9);
  text-decoration: none;
  font-family: "Cinzel", serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.desktop-nav__link:hover,
.desktop-nav__link:focus {
  background: rgba(255, 250, 243, 0.14);
  color: #ffffff;
  transform: translateY(-1px);
}

.desktop-nav__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.desktop-nav__welcome {
  color: rgba(255, 250, 243, 0.8);
  font-size: 0.95rem;
}

.desktop-nav__button {
  border-color: rgba(255, 250, 243, 0.45);
  color: #fffaf3;
  border-radius: 999px;
  padding-inline: 1rem;
}

.desktop-nav__button:hover,
.desktop-nav__button:focus {
  background: #fffaf3;
  border-color: #fffaf3;
  color: #1f3a2e;
}

.mobile-nav {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1045;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.mobile-nav__toggle {
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 38, 31, 0.84);
  color: #fffaf3;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.mobile-nav.is-open .mobile-nav__toggle {
  transform: scale(0.96);
  background: rgba(48, 31, 29, 0.92);
}

.mobile-nav__toggle-box {
  display: inline-flex;
  flex-direction: column;
  gap: 0.24rem;
}

.mobile-nav__toggle-box span {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav__panel {
  width: min(86vw, 320px);
  margin-top: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(31, 58, 46, 0.1);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(250, 245, 238, 0.96) 0%, rgba(243, 234, 223, 0.96) 100%);
  color: var(--neutral-dark);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mobile-nav__eyebrow {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(71, 15, 14, 0.72);
  margin-bottom: 0.35rem;
}

.mobile-nav__panel-head {
  margin-bottom: 1rem;
}

.mobile-nav__title {
  font-family: "Waterfall", cursive;
  font-size: 3rem;
  line-height: 0.9;
  margin-bottom: 0;
}

.mobile-nav__stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav__link {
  display: block;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  color: var(--neutral-dark);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(31, 58, 46, 0.08);
  font-family: "Cinzel", serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.mobile-nav__footer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(31, 58, 46, 0.12);
}

.mobile-nav__welcome {
  color: rgba(31, 58, 46, 0.78);
  font-size: 1rem;
}

@media (max-width: 1199.98px) {
  .desktop-nav__panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .desktop-nav__meta {
    justify-content: center;
  }
}

/* ========================
   Scroll snap container
   ======================== */
.snap-container {
  position: relative;
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}
.snap-panel {
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* ========================
   Hero video section
   ======================== */
.hero-video-wrap {
  position: relative;
  min-height: 100%;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.65) 100%), radial-gradient(1200px 700px at 70% 10%, rgba(156, 190, 100, 0.25), rgba(0, 0, 0, 0.55));
  pointer-events: none;
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 100%;
  max-width: 900px;
  padding: 0 1rem;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Hero fonts */
.hero-eyebrow {
  font-family: "Italianno", serif;
  opacity: 0.9;
  letter-spacing: 0.14em;
  font-size: clamp(2rem, 4.4vw, 2.5rem);
}
.hero-title {
  font-family: "Waterfall", cursive;
  font-size: clamp(5rem, 12vw, 8rem);
  line-height: 1.05;
}
.hero-sub,
.hero-details {
  font-family: "Italianno", serif;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  opacity: 0.95;
  letter-spacing: 0.14em;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  opacity: 0.9;
}
.scroll-cue .chevron {
  width: 16px;
  height: 16px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  margin: 6px auto 0;
  animation: cue 1.6s infinite ease-in-out;
}
@keyframes cue {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
    opacity: 0.9;
  }
  50% {
    transform: translateY(6px) rotate(45deg);
    opacity: 0.6;
  }
}

/* ========================
   Panels
   ======================== */
.panel {
  position: relative;
}
.panel-light {
  background: #f8f5f0;
}
.panel-paper {
  background: linear-gradient(#fbf8f1, #f5efe6);
}
.panel-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='table' tableValues='0 0.02'/></feComponentTransfer></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.7;
}
.panel .container {
  position: relative;
  z-index: 1;
}
.panel-title {
  font-family: "Cinzel", serif;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--accent-dark);
}

/* ========================
   Buttons
   ======================== */
.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--neutral-dark);
  --bs-btn-color: #fff;
}
.btn-outline-secondary {
  --bs-btn-color: var(--neutral-dark);
  --bs-btn-border-color: var(--neutral-dark);
  --bs-btn-hover-bg: var(--neutral-dark);
  --bs-btn-hover-color: #fff;
}

/* ========================
   Helpers
   ======================== */
.letter-spacing-2 {
  letter-spacing: 0.12em;
}

/* ---------- Florals ---------- */
.floral {
  position: absolute;
  z-index: 0;
  opacity: 0.6;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}
.floral-top-left {
  top: -40px;
  left: -40px;
  width: clamp(200px, 24vw, 360px);
  transform: rotate(-6deg);
}
.floral-top-right {
  top: -40px;
  right: -40px;
  width: clamp(200px, 24vw, 360px);
  transform: rotate(8deg);
}
.floral-bottom-right {
  bottom: -40px;
  right: -20px;
  width: clamp(220px, 28vw, 420px);
  transform: rotate(4deg);
}
.floral-bottom-left {
  bottom: -40px;
  left: -20px;
  width: clamp(220px, 28vw, 420px);
  transform: rotate(-4deg);
}
.floral-center-fade {
  top: 50%;
  left: 50%;
  width: clamp(280px, 40vw, 520px);
  transform: translate(-50%, -50%);
  opacity: 0.25;
}

/* ---------- Photo grid ---------- */
.object-fit-cover {
  object-fit: cover;
}
.ratio > img {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 575.98px) {
  .floral {
    opacity: 0.45;
  }
}

/* ---------- Prose ---------- */
.prose {
  color: var(--neutral-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.125rem;
  line-height: 1.3;
  max-width: 700px;
  margin: 0 auto;
}
