:root {
  --ivory: #f5efe6;
  --champagne: #e7d8bf;
  --gold: #b39767;
  --gold-deep: #8c7248;
  --olive: #6d684f;
  --brown: #4b3928;
  --brown-soft: rgba(75, 57, 40, 0.72);
  --card: rgba(255, 250, 243, 0.7);
  --card-strong: rgba(255, 250, 243, 0.84);
  --border: rgba(179, 151, 103, 0.28);
  --shadow: 0 24px 60px rgba(104, 76, 39, 0.12);
  --shadow-soft: 0 14px 30px rgba(104, 76, 39, 0.08);
  --radius-lg: 32px;
  --radius-md: 22px;
  --max-width: 1200px;
  --scroll-y: 0;
  --scroll-wave: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--brown);
  font-family: "Cormorant Garamond", serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 26%),
    radial-gradient(circle at bottom right, rgba(214, 190, 147, 0.28), transparent 28%),
    linear-gradient(180deg, #f8f2ea 0%, #f2eadf 45%, #f6efe8 100%);
  min-height: 100vh;
}

body.intro-active {
  overflow: hidden;
}



a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.romantic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.romantic-svg {
  width: 100%;
  height: 100%;
  opacity: 0.78;
}

.romantic-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
  stroke-dasharray: 18 18 2 14;
  filter: drop-shadow(0 0 12px rgba(179, 151, 103, 0.12));
  mix-blend-mode: multiply;
}

.path-one {
  stroke: rgba(179, 151, 103, 0.22);
}

.path-two {
  stroke: rgba(140, 114, 72, 0.18);
}

.path-three {
  stroke: rgba(214, 196, 160, 0.2);
}

.path-four {
  stroke: rgba(179, 151, 103, 0.16);
}

.romantic-heart,
.romantic-petal {
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 8px 16px rgba(179, 151, 103, 0.18));
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(60, 44, 30, 0.7), rgba(22, 15, 10, 0.92));
  transition: opacity 500ms ease, visibility 500ms ease;
}

.intro-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-shell {
  position: relative;
  width: min(96vw, 1560px);
  max-height: 94vh;
  aspect-ratio: 10 / 16;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  background: #120d0a;
}

.intro-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-copy {
  position: absolute;
  inset: auto 1.2rem 1.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  background: rgba(30, 20, 13, 0.58);
  backdrop-filter: blur(10px);
  color: #fffaf1;
  text-align: center;
  transition: opacity 220ms ease, transform 220ms ease;
}

.intro-copy.is-hidden {
  opacity: 0;
  transform: translateY(10px);
}

.intro-kicker,
.intro-title {
  margin: 0;
}

.intro-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 246, 229, 0.78);
}

.intro-title {
  margin-top: 0.35rem;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 1.25rem auto 0;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(248, 241, 231, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.topbar:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: rgba(248, 241, 231, 0.82);
}

.brand {
  font-family: "Great Vibes", cursive;
  font-size: 2rem;
  color: var(--gold-deep);
  transition: transform 220ms ease, text-shadow 220ms ease;
}

.brand:hover {
  transform: translateY(-1px) scale(1.04);
  text-shadow: 0 0 18px rgba(179, 151, 103, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  transition: color 180ms ease, transform 180ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--gold-deep);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--brown);
  padding: 0.7rem 1rem;
  font: inherit;
}

.section {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.section-icon {
  display: block;
  width: 120px;
  max-width: 34vw;
  margin: 0 auto 1rem;
  opacity: 0.92;
  transition: transform 500ms ease, filter 500ms ease;
  will-change: transform;
}

.hero-icon {
  width: 138px;
  margin-bottom: 1.15rem;
}

.hero-swans {
width: min(128px, 72%);
}

.eyebrow {
  margin: -6px 0 2.6rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.9rem;
  color: var(--gold-deep);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  line-height: 0.95;
  color: var(--brown);
  text-shadow: 0 12px 26px rgba(179, 151, 103, 0.12);
}

.hero {
  margin-top: -95px;
  position: relative;
  display: grid;
  place-items: center;
  width: 100vw;
  min-height: 100vh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 7rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 71%;
  opacity: 0.62;
  filter: saturate(1) sepia(0.06) contrast(1.02);
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248, 242, 234, 0.12), rgba(248, 242, 234, 0.38));
  pointer-events: none;
}

.hero-card,
.glass-card,
.event-card,
.countdown-item {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgb(255 250 243 / 0%);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms ease,
    border-color 320ms ease,
    background 320ms ease;
  will-change: transform;
}

.hero-card {
  position: relative;
  z-index: 1;
  max-width: 860px;
  text-align: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: 40px;
  animation: heroFloat 6s ease-in-out infinite;
}

.hero h1 {
  margin: 0.4rem 0 1rem;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.4rem, 10vw, 6.4rem);
  font-weight: 400;
  line-height: 0.9;
  color: var(--brown);
}

.hero h1 span {
  display: inline-block;
  color: var(--gold-deep);
  transform: translateY(-0.04em);
  animation: heartPulse 3.8s ease-in-out infinite;
}

.hero-copy {
  max-width: 580px;
  margin: 0 auto;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  line-height: 1.45;
  color: var(--brown-soft);
}

.hero-details,
.bank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.bank-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.label {
  display: block;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--gold-deep);
}

.hero-details strong,
.bank-grid strong {
  font-size: 1.2rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.12) 30%, rgba(255, 255, 255, 0.45) 48%, transparent 70%);
  transform: translateX(-140%);
  transition: transform 650ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:hover::before,
.button:focus-visible::before {
  transform: translateX(140%);
}

.button-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #d8c29a 100%);
  color: #fff9f1;
  box-shadow: 0 18px 34px rgba(179, 151, 103, 0.28);
}

.button-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.4);
  color: var(--brown);
}

.ornament {
  position: absolute;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.55;
  will-change: transform;
}

.ornament-left {
  left: -10rem;
  top: 8rem;
  background: radial-gradient(circle, rgba(231, 216, 191, 0.9) 0%, rgba(231, 216, 191, 0) 70%);
  transform: translate3d(0, calc(var(--scroll-y) * 0.04px), 0);
}

.ornament-right {
  right: -8rem;
  bottom: 6rem;
  background: radial-gradient(circle, rgba(179, 151, 103, 0.35) 0%, rgba(179, 151, 103, 0) 70%);
  transform: translate3d(0, calc(var(--scroll-y) * -0.05px), 0);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.countdown-item {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: var(--radius-md);
}

.hero-card:hover,
.glass-card:hover,
.event-card:hover,
.countdown-item:hover {
  transform: translateY(-8px) scale(1);
  box-shadow: 0 28px 68px rgba(104, 76, 39, 0.18);
  border-color: rgba(179, 151, 103, 0.42);
  background: rgba(255, 250, 243, 0.18);
}

.section:hover .section-icon {
  transform: translateY(-4px) rotate(-4deg) scale(1.03);
  filter: drop-shadow(0 10px 24px rgba(179, 151, 103, 0.2));
}

.count-number {
  display: block;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1;
  color: var(--gold-deep);
}

.count-label {
  display: block;
  margin-top: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.story-layout,
.timeline-grid,
.rsvp-layout,
.location-layout {
  display: grid;
  gap: 1.25rem;
}

.story-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.menu-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.location-layout,
.rsvp-layout {
  grid-template-columns: 1.15fr 0.85fr;
}

.glass-card,
.event-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
}

.glass-card h3,
.event-card h3 {
  margin: 0 0 0.8rem;
  font-family: "Great Vibes", cursive;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--brown);
}

.glass-card p,
.event-card p,
.venue-copy {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.5;
  color: var(--brown-soft);
}

.event-time {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.info-stack {
  display: grid;
  gap: 1.25rem;
}

.venue-line {
  font-size: 1.35rem;
  color: var(--brown);
}

.venue-copy {
  margin-top: 1rem;
}

.gallery-grid {
  column-count: 3;
  column-gap: 1rem;
}

.gallery-item {
  position: relative;
  display: block;
  margin: 0 0 1rem;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0)),
    linear-gradient(160deg, rgba(199, 176, 132, 0.86), rgba(111, 93, 60, 0.82));
  box-shadow: var(--shadow-soft);
  transition: transform 280ms ease, box-shadow 280ms ease;
  will-change: transform;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.34), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(255, 244, 224, 0.18), transparent 28%);
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
  z-index: 1;
  transition: transform 420ms ease, opacity 420ms ease, filter 420ms ease;
}

.gallery-real-photo {
  background: linear-gradient(180deg, rgba(46, 31, 20, 0.04), rgba(46, 31, 20, 0.18));
}

.gallery-real-photo::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12)),
    linear-gradient(0deg, rgba(34, 22, 12, 0.34), rgba(34, 22, 12, 0.02));
}

.gallery-real-photo img {
  object-fit: cover;
  padding: 0;
  cursor: zoom-in;
}

.gallery-photo {
  background:
    linear-gradient(rgba(59, 42, 28, 0.18), rgba(59, 42, 28, 0.38)),
    url("assets/images/localcasamentobanner.jpeg") center/cover no-repeat;
}

.gallery-photo::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.18));
}

.gallery-illustration {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0)),
    linear-gradient(160deg, rgba(199, 176, 132, 0.25), rgba(111, 93, 60, 0.12));
}

.swan-shot img {
  object-fit: cover;
  padding: 0;
  opacity: 0.78;
}

.bow-shot img,
.vase-shot img,
.cupid-shot img,
.rings-shot img {
  padding: 1.5rem;
}

.gallery-item span {
  position: absolute;
  left: 1.3rem;
  bottom: 1.15rem;
  z-index: 2;
  font-family: "Great Vibes", cursive;
  font-size: 2rem;
  color: rgba(255, 252, 246, 0.94);
  transition: transform 280ms ease, letter-spacing 280ms ease;
}

.gallery-item:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 30px 68px rgba(104, 76, 39, 0.22);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.04);
}

.gallery-item:hover span {
  transform: translateY(-4px);
  letter-spacing: 0.03em;
}

.gallery-item:nth-child(1) {
  aspect-ratio: 3 / 5;
}

.gallery-item:nth-child(2) {
  aspect-ratio: 3 / 4.1;
}

.gallery-item:nth-child(3) {
  aspect-ratio: 3 / 4.6;
}

.gallery-item:nth-child(4) {
  aspect-ratio: 3 / 5.2;
}

.gallery-item:nth-child(5) {
  aspect-ratio: 3 / 4.2;
}

.gallery-item:nth-child(6) {
  aspect-ratio: 3 / 4.8;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(18, 13, 10, 0.92);
  backdrop-filter: blur(10px);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.lightbox.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lightbox-figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 90vh;
}

.lightbox-image {
  max-width: min(92vw, 980px);
  max-height: 86vh;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.12);
  color: #fffaf1;
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, background 180ms ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  transform: scale(1.06);
  background: rgba(255, 250, 243, 0.2);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-nav {
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev {
  justify-self: start;
}

.lightbox-next {
  justify-self: end;
}

.gifts-card {
  max-width: 900px;
  margin: 0 auto;
}

.pix-box {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.pix-copy-button {
  width: 100%;
  border: 1px solid rgba(179, 151, 103, 0.24);
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.88);
  color: var(--brown);
  padding: 1.1rem 1.2rem;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.pix-copy-button:hover,
.pix-copy-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(179, 151, 103, 0.5);
  box-shadow: var(--shadow);
}

.pix-feedback {
  min-height: 1.4rem;
  margin: 0;
  text-align: center;
  color: var(--gold-deep);
  font-size: 1.05rem;
}

.gifts-modal {
  position: fixed;
  inset: 0;
  z-index: 115;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(18, 13, 10, 0.76);
  backdrop-filter: blur(10px);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.gifts-modal.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gifts-modal-card {
  position: relative;
  width: min(100%, 1100px);
  max-height: 88vh;
  overflow: auto;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(255, 250, 243, 0.92);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.gifts-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(179, 151, 103, 0.24);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.8);
  color: var(--brown);
  font-size: 1.8rem;
  line-height: 1;
}

.gifts-modal-heading {
  margin-bottom: 1.5rem;
}

.gifts-modal-toolbar {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gifts-search-label,
.gifts-sort-label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: var(--brown);
}

.gifts-search-label input,
.gifts-sort-label select {
  min-width: 180px;
  border: 1px solid rgba(179, 151, 103, 0.22);
  border-radius: 14px;
  background: rgba(255, 250, 243, 0.9);
  color: var(--brown);
  padding: 0.7rem 0.9rem;
  font: inherit;
}

.gifts-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gift-product {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(179, 151, 103, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
}

.gift-product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(231, 216, 191, 0.32);
}

.gift-product-title {
  margin: 0;
  font-size: 1.35rem;
  color: var(--brown);
}

.gift-product-price {
  margin: 0;
  color: var(--gold-deep);
  font-size: 1.8rem;
  font-weight: 600;
    text-align: center;
}

.gift-product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  border: 1px solid rgba(179, 151, 103, 0.22);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.88);
  color: var(--brown);
  padding: 0.7rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.gifts-modal-feedback {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--gold-deep);
}

.audio-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(179, 151, 103, 0.35);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.82);
  color: var(--gold-deep);
  box-shadow: 0 10px 24px rgba(104, 76, 39, 0.16);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, opacity 220ms ease, background 180ms ease, color 180ms ease;
}

.audio-toggle:hover,
.audio-toggle:focus-visible {
  transform: translateY(-2px) scale(1.06);
  background: rgba(255, 250, 243, 0.94);
}

.audio-toggle.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.audio-toggle svg {
  width: 16px;
  height: 16px;
}

.audio-icon-off {
  display: none;
}

.audio-toggle.is-muted .audio-icon-on {
  display: none;
}

.audio-toggle.is-muted .audio-icon-off {
  display: inline-flex;
}

.venue-photo {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  margin-bottom: 1.25rem;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 320ms ease, box-shadow 320ms ease, filter 320ms ease;
}

.venue-photo:hover {
  transform: scale(1.02);
  box-shadow: 0 28px 64px rgba(104, 76, 39, 0.2);
  filter: saturate(1.03);
}

.rsvp-form {
  display: grid;
  gap: 1rem;
}

.rsvp-count-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.rsvp-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 1.1rem;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 1px solid rgba(179, 151, 103, 0.22);
  border-radius: 18px;
  background: var(--card-strong);
  color: var(--brown);
  padding: 0.95rem 1rem;
  font: inherit;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  outline: 2px solid rgba(179, 151, 103, 0.22);
  border-color: var(--gold);
}

.form-feedback {
  min-height: 1.5rem;
  margin: 0;
  color: var(--gold-deep);
}

.family-members {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(179, 151, 103, 0.16);
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.34);
}

.family-members-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.family-members-head h3 {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: 2rem;
  font-weight: 400;
  color: var(--brown);
}

.family-members-list {
  display: grid;
  gap: 0.9rem;
}

.family-member-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.add-member-button {
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
}

.remove-member-button {
  min-height: 52px;
  border: 1px solid rgba(179, 151, 103, 0.22);
  border-radius: 18px;
  background: rgba(255, 250, 243, 0.88);
  color: var(--brown);
  padding: 0.85rem 1rem;
  font: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.remove-member-button:hover,
.remove-member-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(179, 151, 103, 0.5);
  box-shadow: var(--shadow-soft);
}

.footer {
  position: relative;
  z-index: 1;
  padding: 2rem 1rem 3rem;
  text-align: center;
  color: var(--brown-soft);
}

.footer p {
  margin: 0.2rem 0;
  font-size: 1.2rem;
}

.footer p:first-child {
  font-family: "Great Vibes", cursive;
  font-size: 2.5rem;
  color: var(--gold-deep);
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes heartPulse {
  0%, 100% {
    transform: translateY(-0.04em) scale(1);
  }
  50% {
    transform: translateY(-0.04em) scale(1.08);
  }
}

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

@media (max-width: 980px) {
  .topbar {
    border-radius: 28px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 28px;
    background: rgba(248, 241, 231, 0.95);
    box-shadow: var(--shadow-soft);
  }

  .nav.is-open {
    display: flex;
  }

  .story-layout,
  .menu-grid,
  .timeline-grid,
  .location-layout,
  .rsvp-layout,
  .hero-details,
  .rsvp-count-grid,
  .bank-grid,
  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    column-count: 2;
  }

  .gifts-modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 640px) {
  .section {
    padding: 3.5rem 0;
  }

  .topbar {
    width: min(calc(100% - 1rem), var(--max-width));
    margin-top: 0.5rem;
    padding: 0.9rem 1rem;
  }

  .intro-shell {
    width: min(93vw, 560px);
    max-height: 92vh;
  }

  .hero {
    min-height: 100svh;
    padding: 6.5rem 1rem 3rem;
  }

  .hero-video {
    object-position: center center;
  }



  .hero-card,
  .glass-card,
  .event-card,
  .countdown-item {
    border-radius: 24px;
  }

  .story-layout,
  .menu-grid,
  .timeline-grid,
  .location-layout,
  .rsvp-layout,
  .hero-details,
  .rsvp-count-grid,
  .bank-grid,
  .countdown-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    column-count: 1;
  }

  .venue-photo {
    height: 220px;
  }

  .lightbox {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    padding: 1rem;
    gap: 0.5rem;
  }

  .lightbox-image {
    max-width: 100%;
    max-height: 78vh;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.7rem;
  }

  .family-member-row {
    grid-template-columns: 1fr;
  }

  .gifts-modal-card {
    padding: 1.25rem;
  }

  .gifts-modal-grid {
    grid-template-columns: 1fr;
  }

  .gift-product {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 0.85rem;
    border-radius: 18px;
  }

  .gift-product-image {
    width: 84px;
    height: 84px;
    aspect-ratio: auto;
    border-radius: 14px;
  }

  .gift-product-title {
    font-size: 1.08rem;
  }

  .gift-product-price {
    font-size: 1rem;
  }

  .gift-product-link {
    min-height: 2.5rem;
    font-size: 0.74rem;
    padding: 0.6rem 0.85rem;
  }

  .gifts-modal-toolbar {
    justify-content: stretch;
    align-items: stretch;
    flex-direction: column;
  }

  .gifts-search-label input,
  .gifts-sort-label select {
    min-width: 100%;
  }
}
