/* ===================================
   Wedding Website Styles
   Mobile-First Design
   =================================== */

/* CSS Custom Properties */
:root {
  /* Colors */
  --color-bg: #faf9f7;
  --color-bg-dark: #1a1a1a;
  --color-text: #2c2c2c;
  --color-text-light: #666666;
  --color-text-inverse: #ffffff;
  --color-accent: #b08968;
  --color-accent-light: #ddb892;
  --color-border: #e5e5e5;
  
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;
  
  /* Sizes */
  --header-height: 70px;
  --container-max: 1200px;
  --container-narrow: 800px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* Hide scrollbar until user starts scrolling */
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body.has-scrolled {
  scrollbar-width: auto;
  -ms-overflow-style: auto;
}

body.has-scrolled::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

/* ===================================
   Video loader (plays first, then fades out)
   =================================== */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.5s ease-out;
  pointer-events: auto;
}

.site-loader.is-complete {
  opacity: 0;
  pointer-events: none;
}

.site-loader__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-content {
  opacity: 0;
  transition: opacity 1.5s ease-out;
}

.site-content.is-visible {
  opacity: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* Section Title */
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 500;
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Button */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn--primary {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

.btn--primary:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  background-color: rgba(176, 137, 104, 0.08);
  transform: translateY(-2px);
}

.audio-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 130;
  min-height: 44px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transition: border-color var(--transition-normal),
              transform var(--transition-normal),
              box-shadow var(--transition-normal),
              padding var(--transition-normal),
              gap var(--transition-normal),
              color var(--transition-normal),
              background var(--transition-normal);
}

.audio-toggle:hover {
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.audio-toggle.is-muted {
  padding: 0 10px;
  gap: 0;
  justify-content: center;
}

.audio-toggle__icon {
  display: inline-flex;
  flex-shrink: 0;
}

.audio-toggle__icon--on svg,
.audio-toggle__icon--off svg {
  width: 24px;
  height: 24px;
}

/* Theme: light background (default) - dark icon & label */
.audio-toggle {
  color: var(--color-text);
}

.audio-toggle__icon svg {
  color: inherit;
}

/* Theme: dark background - light icon & label */
.audio-toggle.audio-toggle--dark-bg {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.2);
}

.audio-toggle.audio-toggle--dark-bg:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.3);
}

.audio-toggle.is-muted .audio-toggle__icon--on {
  display: none;
}

.audio-toggle:not(.is-muted) .audio-toggle__icon--off {
  display: none;
}

.audio-toggle__label {
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  opacity: 1;
  transition: max-width var(--transition-normal),
              opacity var(--transition-normal);
}

.audio-toggle.is-muted .audio-toggle__label {
  max-width: 0;
  opacity: 0;
  padding: 0;
  margin: 0;
}

@media (max-width: 767px) {
  .audio-toggle {
    right: 12px;
    bottom: 12px;
    min-height: 40px;
    padding: 0 12px 0 8px;
    font-size: 0.75rem;
    gap: 6px;
  }

  .audio-toggle.is-muted {
    padding: 0 8px;
    justify-content: center;
  }
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: transparent;
  transition: background-color var(--transition-normal);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.nav__logo {
  display: flex;
  align-items: center;
  transition: opacity var(--transition-normal);
}

.nav__logo:hover {
  opacity: 0.8;
}

.nav__logo-img {
  height: 36px;
  width: auto;
  /* Invert to white for dark backgrounds */
  filter: brightness(0) invert(1);
  transition: filter var(--transition-normal);
}

.header.scrolled .nav__logo-img {
  /* Dark logo for light background */
  filter: brightness(0);
}

.nav__menu {
  display: none;
  gap: var(--space-lg);
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-inverse);
  transition: color var(--transition-fast);
}

.header.scrolled .nav__link {
  color: var(--color-text);
}

.nav__link:hover {
  color: var(--color-accent-light);
}

.header.scrolled .nav__link:hover {
  color: var(--color-accent);
}

.nav__link--cta {
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid currentColor;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-inverse);
  transition: all var(--transition-fast);
}

.header.scrolled .nav__toggle span {
  background-color: var(--color-text);
}

/* Mobile Menu */
.nav__menu.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  padding: var(--space-lg);
  gap: var(--space-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav__menu.active .nav__link {
  color: var(--color-text);
}

/* Desktop Navigation */
@media (min-width: 768px) {
  .nav__menu {
    display: flex;
  }
  
  .nav__toggle {
    display: none;
  }
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1a1a;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
}

@media (max-width: 767px) {
  .hero__video {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: none;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hero__content {
  position: relative;
  text-align: center;
  color: var(--color-text-inverse);
  padding: var(--space-lg);
}

.hero__location,
.hero__date {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.hero__title-group {
  margin-top: 64px;
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.hero__title {
  margin: 0;
  line-height: 0;
  text-align: center;
}

.hero__title-img {
  display: block;
  width: auto;
  height: clamp(2.5rem, 10vw, 5rem);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  object-position: center;
}

.hero__divider {
  width: 80px;
  margin: 0 auto var(--space-xl);
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.hero__tagline {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.9;
  max-width: 400px;
  margin: var(--space-xl) auto 0;
}

.hero__tagline-br,
.mobile-br {
  display: none;
}

.hero__countdown {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.5rem;
}

.countdown__value {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--color-text-inverse);
  line-height: 1.2;
  display: block;
}

.countdown__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.25rem;
}

/* Mobile: reduce padding and hero gaps */
@media (max-width: 767px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero__content {
    padding: 16px;
  }

  .hero__location,
  .hero__date {
    margin-bottom: 24px;
  }

  .hero__title-group {
    margin-top: 24px;
    margin-bottom: 24px;
    gap: 24px;
  }

  .hero__divider {
    margin-bottom: 24px;
  }

  .hero__countdown {
    margin-top: 24px;
    gap: 0.5rem;
    flex-wrap: nowrap;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  .hero__countdown .countdown__unit {
    min-width: 2.75rem;
  }

  .hero__countdown .countdown__value {
    font-size: 1.5rem;
  }

  .hero__countdown .countdown__label {
    font-size: 0.58rem;
    margin-top: 0.2rem;
  }

  .hero__tagline {
    margin-top: 24px;
  }

  .hero__tagline-br,
  .mobile-br {
    display: block;
  }
}

@media (min-width: 768px) {
  .hero__countdown {
    gap: var(--space-xl);
  }

  .countdown__unit {
    min-width: 5rem;
  }
}

.hero__scroll {
  display: inline-flex;
  color: var(--color-text-inverse);
  opacity: 0.7;
  transition: opacity var(--transition-fast);
  animation: bounce 2s infinite;
}

.hero__scroll:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ===================================
   Parallax Hero Effect
   =================================== */
.hero--parallax {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
}

/* ===================================
   Gallery Mosaic Section - Scattered Layout (Hidden)
   =================================== */
.gallery-mosaic {
  position: relative;
  z-index: 1;
  background-color: #f5f0eb;
  margin-top: 100vh;
  min-height: 120vh;
  overflow: hidden;
  display: none;
}

/* ===================================
   Gallery Carousel Section (ACOE Style)
   =================================== */
.gallery-carousel {
  position: relative;
  z-index: 1;
  background-color: var(--color-bg);
  margin-top: 100vh;
  padding: 0;
  overflow: hidden;
  height: 720px;
  display: flex;
  align-items: center;
}

.gallery-carousel__container {
  width: 100%;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  cursor: grab;
  user-select: none;
  /* Allow vertical scroll (pan-y) so users can scroll down the page on mobile;
     horizontal gestures are still handled by our JS for carousel drag */
  touch-action: pan-y pinch-zoom;
}

.gallery-carousel__container:active,
.gallery-carousel__container.is-dragging {
  cursor: grabbing;
}

.gallery-carousel__track {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  width: max-content;
  flex-shrink: 0;
}

.gallery-carousel__slide {
  flex-shrink: 0;
  width: 280px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
  cursor: pointer;
}

/* Landscape variant — wider slide, same image height, object-fit handles crop */
.gallery-carousel__slide--landscape {
  width: 490px;
}

/* Alternate vertical offset like ACOE cards */
.gallery-carousel__slide:nth-child(odd) {
  padding-top: 48px;
}

.gallery-carousel__slide:nth-child(even) {
  padding-bottom: 48px;
}

.gallery-carousel__slide:hover {
  transform: translateY(-8px);
}

.gallery-carousel__slide img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  margin-bottom: var(--space-sm);
  transition: transform var(--transition-normal), filter var(--transition-normal);
}

.gallery-carousel__slide:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.gallery-carousel__caption {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  font-family: var(--font-sans);
}

.gallery-carousel__number {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.gallery-carousel__text {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.gallery-carousel__sublocation {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.6;
  text-transform: uppercase;
}

/* Secondary gallery (after proposal) - no top margin */
.gallery-carousel--secondary {
  margin-top: 0;
}

@media (max-width: 767px) {
  .gallery-carousel {
    height: 560px;
  }

  .gallery-carousel__slide {
    width: 196px;
  }

  .gallery-carousel__slide--landscape {
    width: 328px;
  }

  .gallery-carousel__slide img {
    height: 245px;
  }

  .gallery-carousel__track {
    gap: 25px;
  }
}

.pt-16 {
  padding-top: 4rem;
}

.xl\:pt-20 {
  padding-top: 5rem;
}

@media (min-width: 768px) {
  .gallery-carousel__slide {
    width: 320px;
  }

  .gallery-carousel__slide--landscape {
    width: 533px;
  }
  
  .gallery-carousel__slide img {
    height: 400px;
  }
}

@media (min-width: 1024px) {
  .gallery-carousel__slide {
    width: 360px;
  }

  .gallery-carousel__slide--landscape {
    width: 600px;
  }
  
  .gallery-carousel__slide img {
    height: 450px;
  }
  
  .gallery-carousel__number,
  .gallery-carousel__text {
    font-size: 1rem;
  }
}

@media (min-width: 1280px) {
  .xl\:pt-20 {
    padding-top: 5rem;
  }
  
  .gallery-carousel__track {
    padding-top: 5rem;
  }
}


.gallery-mosaic__container {
  position: relative;
  max-width: 1680px;
  margin: 0 auto;
  height: 100%;
  min-height: 120vh;
  padding: 60px 40px;
}

.gallery-mosaic__item {
  position: absolute;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}

.gallery-mosaic__item:hover {
  transform: scale(1.03) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.gallery-mosaic__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Scattered positions - Mobile */
.gallery-mosaic__item:nth-child(1) {
  top: 5%;
  left: 5%;
  width: 35%;
  height: 18%;
}

.gallery-mosaic__item:nth-child(2) {
  top: 3%;
  right: 8%;
  width: 40%;
  height: 22%;
}

.gallery-mosaic__item:nth-child(3) {
  top: 26%;
  left: 8%;
  width: 42%;
  height: 28%;
}

.gallery-mosaic__item:nth-child(4) {
  top: 30%;
  right: 5%;
  width: 25%;
  height: 15%;
}

.gallery-mosaic__item:nth-child(5) {
  top: 48%;
  right: 12%;
  width: 38%;
  height: 24%;
}

.gallery-mosaic__item:nth-child(6) {
  top: 58%;
  left: 3%;
  width: 30%;
  height: 20%;
}

.gallery-mosaic__item:nth-child(7) {
  top: 75%;
  left: 25%;
  width: 45%;
  height: 20%;
}

.gallery-mosaic__item:nth-child(8) {
  top: 80%;
  right: 5%;
  width: 28%;
  height: 16%;
}

/* Tablet - refined positions */
@media (min-width: 768px) {
  .gallery-mosaic {
    min-height: 140vh;
  }
  
  .gallery-mosaic__container {
    min-height: 140vh;
    padding: 80px 60px;
  }

  .gallery-mosaic__item:nth-child(1) {
    top: 4%;
    left: 8%;
    width: 22%;
    height: 14%;
  }

  .gallery-mosaic__item:nth-child(2) {
    top: 2%;
    right: 15%;
    width: 28%;
    height: 18%;
  }

  .gallery-mosaic__item:nth-child(3) {
    top: 20%;
    left: 5%;
    width: 32%;
    height: 26%;
  }

  .gallery-mosaic__item:nth-child(4) {
    top: 22%;
    right: 8%;
    width: 18%;
    height: 12%;
  }

  .gallery-mosaic__item:nth-child(5) {
    top: 38%;
    right: 5%;
    width: 35%;
    height: 28%;
  }

  .gallery-mosaic__item:nth-child(6) {
    top: 52%;
    left: 12%;
    width: 20%;
    height: 14%;
  }

  .gallery-mosaic__item:nth-child(7) {
    top: 68%;
    left: 5%;
    width: 40%;
    height: 22%;
  }

  .gallery-mosaic__item:nth-child(8) {
    top: 72%;
    right: 10%;
    width: 32%;
    height: 20%;
  }
}

/* Desktop - scattered across full width */
@media (min-width: 1024px) {
  .gallery-mosaic {
    min-height: 120vh;
  }
  
  .gallery-mosaic__container {
    min-height: 120vh;
    padding: 80px 60px;
  }

  .gallery-mosaic__item:nth-child(1) {
    top: 3%;
    left: 10%;
    width: 280px;
    height: 220px;
  }

  .gallery-mosaic__item:nth-child(2) {
    top: 2%;
    right: 15%;
    width: 380px;
    height: 280px;
  }

  .gallery-mosaic__item:nth-child(3) {
    top: 18%;
    left: 5%;
    width: 420px;
    height: 340px;
  }

  .gallery-mosaic__item:nth-child(4) {
    top: 22%;
    left: 38%;
    width: 380px;
    height: 280px;
  }

  .gallery-mosaic__item:nth-child(5) {
    top: 30%;
    right: 6%;
    width: 480px;
    height: 360px;
  }

  .gallery-mosaic__item:nth-child(6) {
    top: 48%;
    left: calc(50% - 190px);
    width: 380px;
    height: 280px;
  }

  .gallery-mosaic__item:nth-child(7) {
    top: 58%;
    left: 6%;
    width: 440px;
    height: 280px;
  }

  .gallery-mosaic__item:nth-child(8) {
    top: 62%;
    right: 10%;
    width: 420px;
    height: 320px;
  }
}

/* Large Desktop */
@media (min-width: 1400px) {
  .gallery-mosaic {
    min-height: 110vh;
  }
  
  .gallery-mosaic__container {
    min-height: 110vh;
  }

  .gallery-mosaic__item:nth-child(1) {
    top: 4%;
    left: 12%;
    width: 320px;
    height: 250px;
  }

  .gallery-mosaic__item:nth-child(2) {
    top: 2%;
    right: 18%;
    width: 450px;
    height: 320px;
  }

  .gallery-mosaic__item:nth-child(3) {
    top: 16%;
    left: 6%;
    width: 500px;
    height: 400px;
  }

  .gallery-mosaic__item:nth-child(4) {
    top: 18%;
    left: 40%;
    width: 400px;
    height: 300px;
  }

  .gallery-mosaic__item:nth-child(5) {
    top: 26%;
    right: 8%;
    width: 520px;
    height: 400px;
  }

  .gallery-mosaic__item:nth-child(6) {
    top: 46%;
    left: calc(50% - 200px);
    width: 400px;
    height: 300px;
  }

  .gallery-mosaic__item:nth-child(7) {
    top: 54%;
    left: 5%;
    width: 480px;
    height: 320px;
  }

  .gallery-mosaic__item:nth-child(8) {
    top: 58%;
    right: 12%;
    width: 460px;
    height: 360px;
  }
}

/* ===================================
   Photo Carousel (Marquee Style)
   =================================== */
.carousel {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-bg);
  padding: var(--space-lg) 0;
}

.carousel__track {
  display: flex;
  gap: var(--space-md);
  animation: scroll 30s linear infinite;
  width: max-content;
}

.carousel:hover .carousel__track {
  animation-play-state: paused;
}

.carousel__slide {
  flex-shrink: 0;
  width: 280px;
  height: 350px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.carousel__slide:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.carousel__slide:hover img {
  transform: scale(1.05);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-280px * 7 - var(--space-md) * 7));
  }
}

/* Responsive Carousel */
@media (min-width: 768px) {
  .carousel {
    padding: var(--space-xl) 0;
  }
  
  .carousel__slide {
    width: 320px;
    height: 400px;
  }
  
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-320px * 7 - var(--space-md) * 7));
    }
  }
}

@media (min-width: 1024px) {
  .carousel__slide {
    width: 360px;
    height: 450px;
  }
  
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-360px * 7 - var(--space-md) * 7));
    }
  }
}

/* ===================================
   About Header Section
   =================================== */
.about-header {
  position: relative;
  z-index: 1;
  height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
}

@media (max-width: 767px) {
  .about-header {
    height: 480px;
  }
}

.about__header {
  text-align: center;
  margin-bottom: 0;
}

/* ===================================
   About Section
   =================================== */
.about {
  position: relative;
  z-index: 1;
  padding: 0 0 var(--space-3xl) 0;
  background-color: var(--color-bg);
}

.about__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: var(--space-xs);
}

.about__heading--accent {
  font-style: italic;
  color: var(--color-accent);
}

.about__content {
  display: grid;
  gap: var(--space-2xl);
}

.about__story {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.about__text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.about__signature {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  margin-top: var(--space-lg);
}

.about__signature span {
  display: block;
  font-size: 1.5rem;
  font-style: normal;
  margin-top: var(--space-xs);
}

.about__gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.about__image {
  overflow: hidden;
  border-radius: 4px;
}

.about__image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.about__image:hover img {
  transform: scale(1.05);
}

/* Single Image Gallery */
.about__gallery--single {
  display: block;
}

.about__gallery--single .about__image {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.about__gallery--single .about__image img {
  height: auto;
  max-height: 800px;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Gallery Grid - Tablet and Up */
@media (min-width: 640px) {
  .about__gallery:not(.about__gallery--single) {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 200px);
  }
  
  .about__image--1 {
    grid-row: span 2;
  }
  
  .about__image--1 img {
    height: 100%;
  }
  
  .about__image--2 img,
  .about__image--3 img {
    height: 100%;
  }
}

@media (min-width: 1024px) {
  .about__content {
    grid-template-columns: 2fr 3fr;
    align-items: start;
    gap: var(--space-3xl);
  }
  
  .about__story {
    margin: 0;
  }
  
  .about__gallery:not(.about__gallery--single) {
    grid-template-rows: repeat(2, 220px);
  }
  
  .about__gallery--single {
    align-self: start;
  }
  
  .about__gallery--single .about__image {
    max-width: 100%;
    width: 100%;
  }
  
  .about__gallery--single .about__image img {
    max-height: 700px;
    width: 100%;
    object-fit: cover;
    object-position: top;
  }
}

/* ===================================
  Dress Code Section
  =================================== */
.dress-code {
  position: relative;
  z-index: 1;
  min-height: 1080px;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: #000;
}

.dress-code__bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1.4);
  object-fit: cover;
  z-index: -2;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.dress-code__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.dress-code__inner {
  display: flex;
  justify-content: flex-start;
}

.dress-code__card {
  width: 100%;
  max-width: none;
  padding: 36px;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
}

.dress-code__card .dress-code__text {
  flex: 1 1 280px;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dress-code__card .section__title--left,
.dress-code__card .dress-code__description,
.dress-code__card .dress-code__note {
  color: #fff;
}

.dress-code__card .section__title--left {
  text-align: center;
}

.dress-code__image-wrap {
  flex: 0 0 auto;
  margin: 0;
  max-width: 280px;
}

.dress-code__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.section__title--left {
  text-align: left;
  margin-bottom: var(--space-md);
}

.dress-code__description {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: var(--space-lg);
  max-width: var(--container-narrow);
}

.dress-code__card .dress-code__description {
  color: #fff;
  text-align: center;
}

.dress-code__card .dress-code__note {
  text-align: center;
}

.dress-code__palette {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-sm);
  justify-items: center;
}

.dress-code__look {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.dress-code__look-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.dress-code__look-label--group {
  margin-bottom: 0.1rem;
  text-align: center;
}

.dress-code__look-group-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  width: 100%;
}

.dress-code__look-label {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.03em;
  text-transform: none;
  margin: 0;
}

.dress-code__look-subcopy {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  margin: -0.2rem 0 0.35rem;
}

/* Keep all subcopy lines in the palette visually consistent in size */
.dress-code__palette .dress-code__look-subcopy {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

.dress-code__look-image {
  width: min(100%, 420px);
  height: auto;
  max-height: 480px;
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 4.8;
  border-radius: 16px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.35s ease;
}

.dress-code__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.dress-code__swatch {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  flex-shrink: 0;
  background-color: var(--swatch-color, #4D5723);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 6px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.dress-code__text {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.dress-code__look:hover .dress-code__look-image {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.dress-code__look:hover .dress-code__swatch {
  transform: translateY(-2px);
}

.dress-code__swatch--named::after {
  content: attr(data-color-name);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.dress-code__swatch--named:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 900px) {
  .dress-code__palette {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .dress-code__palette {
    grid-template-columns: repeat(3, 1fr);
  }

  .dress-code__look-group {
    grid-column: span 2;
  }

  .dress-code__look-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.dress-code__note {
  font-size: 15px;
  margin-top: 32px;
}

.dress-code__card .dress-code__note {
  color: #fff;
}

.dress-code__illustration {
  justify-self: center;
  max-width: 260px;
  opacity: 0.85;
}

.dress-code__illustration-svg {
  width: 100%;
  height: auto;
  stroke: var(--color-text);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 3 4;
}

.dress-code__sketch-tux path,
.dress-code__sketch-gown path {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

@media (min-width: 768px) {
  .dress-code__inner {
    justify-content: center;
  }
}

/* ===================================
   Entourage Section
   =================================== */
.entourage {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, #ffffff, #f5f0eb, #faf9f7, #ede4db, #ffffff);
  background-size: 400% 400%;
  animation: entourage-gradient 14s ease infinite;
  overflow: hidden;
}

/* Animated white-to-cream gradient background */
@keyframes entourage-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Keep all child content above the pattern */
.entourage .container {
  position: relative;
  z-index: 1;
}

.entourage--collapsed .container {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.entourage .section__title {
  text-align: center;
}

.entourage__intro {
  text-align: center;
  max-width: var(--container-narrow);
  margin: 0 auto var(--space-2xl);
  font-size: 1rem;
  color: var(--color-text-light);
}

.entourage__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin: 0 auto var(--space-2xl);
}

.entourage:not(.entourage--collapsed) .entourage__toggle {
  margin-top: 48px;
}

.entourage__toggle-icon {
  transition: transform 320ms ease;
}

.float-on-scroll {
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.entourage__content {
  height: auto;
  opacity: 1;
  overflow: hidden;
  transition:
    height var(--entourage-height-duration, 1520ms) cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity var(--entourage-opacity-duration, 520ms) ease;
}

.entourage--collapsed .entourage__content {
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.entourage__grid {
  display: grid;
  gap: var(--space-lg);
}

.entourage:not(.entourage--collapsed) .entourage__toggle-icon {
  transform: rotate(180deg);
}

.entourage__card {
  padding: var(--space-md) 0;
  text-align: center;
}

.entourage__heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  color: var(--color-text);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.entourage__heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  flex-shrink: 0;
}

.entourage__heading-icon svg {
  display: block;
}

.entourage__text {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.entourage__card--wide,
.entourage__card--highlight,
.entourage__card--ceremonial {
  grid-column: 1 / -1;
}

.entourage__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  justify-items: center;
  max-width: 520px;
  margin: 0 auto;
}

.entourage__column {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: center;
  text-align: center;
}

.entourage__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-xs);
}

.entourage__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entourage__list li {
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 0.25em 0;
  text-transform: capitalize;
  transition: opacity 0.25s ease-in, color 0.25s ease-in;
}

.entourage__list li:hover {
  opacity: 0.8;
}

.entourage__pair {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-xl);
  justify-content: center;
  align-items: flex-start;
}

.entourage__pair-item {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  align-items: center;
  text-align: center;
  transition: opacity 0.25s ease-in, transform 0.25s ease-in;
}

.entourage__pair-item:hover {
  opacity: 0.9;
}

.entourage__role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.entourage__name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  text-transform: capitalize;
}

.entourage__card--ceremonial .entourage__ceremonial {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-xl);
  justify-content: center;
  align-items: flex-start;
}

/* Anchor center to 2nd element */
.entourage__ceremonial-item:nth-child(1),
.entourage__ceremonial-item:nth-child(3) {
  flex: 1;
  align-items: center;
}

.entourage__ceremonial-item:nth-child(2) {
  flex: 0 0 auto;
}

.entourage__ceremonial-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
  text-align: center;
  transition: opacity 0.25s ease-in, transform 0.25s ease-in;
}

.entourage__ceremonial-item:hover {
  opacity: 0.9;
}

.entourage__ceremonial-role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.entourage__ceremonial-names {
  font-size: 0.95rem;
  color: var(--color-text);
  text-transform: capitalize;
}

@media (max-width: 767px) {
  .entourage__card--ceremonial .entourage__ceremonial {
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    justify-content: center;
  }

  .entourage__ceremonial-item:nth-child(1),
  .entourage__ceremonial-item:nth-child(2),
  .entourage__ceremonial-item:nth-child(3) {
    flex: none;
  }
}

.entourage__list--roles {
  gap: 0;
}

.entourage__list--roles li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  transition: opacity 0.25s ease-in, transform 0.25s ease-in;
}

.entourage__list--roles li:hover {
  opacity: 0.9;
}

.entourage__role-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.2em 0.5em;
  background: rgba(176, 137, 104, 0.15);
  color: var(--color-text);
  border-radius: 4px;
  min-width: 2.8em;
}

@media (min-width: 768px) {
  .entourage__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xl);
  }

  .entourage__card--wide {
    grid-column: span 2;
  }
}

/* ===================================
   Proposal Video Section
   =================================== */
.proposal-video {
  position: relative;
  z-index: 1;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #1a1a1a;
}

.proposal-video__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

.proposal-video__overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 30%, transparent 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 30%, transparent 100%);
  background-size: 100% 500px, 100% 500px;
  background-position: 0 100%, 0 0;
  background-repeat: no-repeat;
  z-index: 0;
}

.proposal-video__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
}

.proposal-video__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  color: #fff;
}

.proposal-video__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  max-width: 500px;
  line-height: 1.6;
  margin: 0 auto 2rem;
}

@media (max-width: 767px) {
  .proposal-video__subtitle {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.proposal-video__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.proposal-video__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.proposal-video__btn:hover {
  background: #fff;
  color: var(--color-dark);
}

/* Video Lightbox Modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: #000;
  cursor: pointer;
}

.video-modal__container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.video-modal__close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: opacity 0.2s ease, background 0.2s ease;
  z-index: 10000;
}

.video-modal__close:hover {
  opacity: 0.9;
  background: rgba(0, 0, 0, 0.7);
}

.video-modal__wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

.video-modal__video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.video-modal__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-modal__loading.is-visible {
  opacity: 1;
}

.video-modal__spinner {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  animation: video-spinner 0.7s linear infinite;
}

@keyframes video-spinner {
  to {
    transform: rotate(360deg);
  }
}

.video-modal__controls {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.video-modal__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.video-modal__control:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-1px);
}

.video-modal__control svg {
  display: block;
}

/* Default: only show play icon, hide pause */
.video-modal__control .video-modal__icon--pause {
  display: none;
}

/* When playing: swap to pause icon only */
.video-modal__control--play.is-playing .video-modal__icon--play {
  display: none;
}

.video-modal__control--play.is-playing .video-modal__icon--pause {
  display: block;
}

.video-modal__controls.video-modal__controls--hidden {
  opacity: 0;
  pointer-events: none;
}

.video-modal__wrapper.video-modal__wrapper--controls-hidden {
  cursor: none;
}

@media (max-width: 767px) {
  .video-modal__wrapper {
    max-width: 100%;
    margin: 0 8px;
  }
}

@media (min-width: 768px) {
  .proposal-video {
    height: 560px;
  }
}

@media (min-width: 1024px) {
  .proposal-video {
    height: 720px;
  }
}

/* ===================================
   Program Section (cream / light mode)
   =================================== */
.program {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) 0;
  background-color: #f5f0eb;
  color: var(--color-text);
}

.program .section__title {
  color: var(--color-text);
}

.program__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.program__card {
  display: grid;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(176, 137, 104, 0.2);
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.program__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.program__card--featured {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: var(--color-accent);
  box-shadow: 0 2px 16px rgba(176, 137, 104, 0.15);
}

/* Program connector (travel time between cards) */
.program__connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
}

.program__connector-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.program__chevron {
  display: block;
  font-size: 1rem;
  line-height: 1;
  color: rgba(44, 44, 44, 0.5);
  transform: rotate(90deg);
  animation: program-chevron-pulse 1.2s ease-in-out infinite both;
}

.program__chevron:nth-child(2) { animation-delay: 0.12s; }
.program__chevron:nth-child(3) { animation-delay: 0.24s; }
.program__chevron:nth-child(4) { animation-delay: 0.36s; }
.program__chevron:nth-child(5) { animation-delay: 0.48s; }
.program__chevron:nth-child(6) { animation-delay: 0.6s; }
.program__chevron:nth-child(7) { animation-delay: 0.72s; }
.program__chevron:nth-child(8) { animation-delay: 0.84s; }

@keyframes program-chevron-pulse {
  0%, 80%, 100% { opacity: 0.35; transform: rotate(90deg) scale(0.8); }
  40% { opacity: 1; transform: rotate(90deg) scale(1); }
}

.program__connector-copy {
  text-align: center;
}

.program__connector-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 0.25em 0;
}

.program__connector-icon {
  flex-shrink: 0;
  color: var(--color-text);
}

.program__connector-sub {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin: 0;
}

@media (max-width: 767px) {
  .program__connector {
    flex-direction: column;
    gap: var(--space-md);
  }

  .program__connector-dots--bottom {
    display: flex;
  }
}

@media (min-width: 768px) {
  .program__connector {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-xl);
  }

  .program__connector-dots {
    flex-direction: column;
  }

  .program__connector-dots--bottom {
    display: none;
  }
}

.program__card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.program__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.program__card:hover .program__card-image img {
  transform: scale(1.05);
}

.program__card-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
}

.program__card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.program__card-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.program__details {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.program__detail {
  display: flex;
  justify-content: space-between;
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
}

.program__detail dt {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
}

.program__detail dd {
  font-size: 0.9375rem;
  text-align: right;
  color: var(--color-text);
}

.program__map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background-color: var(--color-accent);
  padding: 0.625rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  margin-top: 1rem;
  align-self: flex-end;
  border: 1px solid rgba(176, 137, 104, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.program__map-link:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.program__map-link svg {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .program__card-content {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Tablet and up - horizontal card layout */
@media (min-width: 768px) {
  .program__card {
    grid-template-columns: 300px 1fr;
  }
  
  .program__card-image {
    height: 100%;
    min-height: 320px;
  }
  
  .program__card-content {
    padding: var(--space-xl);
  }
}

/* Desktop - larger image */
@media (min-width: 1024px) {
  .program__card {
    grid-template-columns: 400px 1fr;
  }
  
  .program__card-image {
    min-height: 350px;
  }
}

/* ===================================
   FAQ Section (cream / light mode)
   =================================== */
.faq {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) 0;
  background-color: #f5f0eb;
  color: var(--color-text);
}

.faq .section__title {
  color: var(--color-text);
}

.faq__list {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-md) 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
  text-align: left;
  color: var(--color-text);
}

.faq__question::after {
  content: '+';
  flex-shrink: 0;
  margin-left: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-text-light);
  transition: transform 300ms ease-in-out;
}

.faq__item.is-open .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer-wrapper {
  overflow: hidden;
  max-height: 0;
  transition: max-height 300ms ease-in-out;
}

.faq__answer {
  padding: 0 0 var(--space-md);
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-light);
}

.faq__answer a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ===================================
   RSVP Section
   =================================== */
.rsvp {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) 0;
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  text-align: center;
}

.rsvp__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto var(--space-md);
  line-height: 1.4;
  color: var(--color-text-inverse);
}

.rsvp__deadline {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rsvp__countdown {
  margin-top: var(--space-xl);
}

.rsvp__countdown .countdown__value {
  color: var(--color-text-inverse);
}

.rsvp__countdown .countdown__label {
  color: rgba(255, 255, 255, 0.75);
}

/* RSVP button: light style on dark section */
.rsvp .btn--primary {
  background-color: #fff;
  color: var(--color-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.rsvp .btn--primary:hover {
  background-color: var(--color-accent-light);
  color: var(--color-bg-dark);
  border-color: var(--color-accent-light);
}

/* ===================================
   Guest Message Section
   =================================== */
.guest-message {
  padding: var(--space-3xl) 0;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.guest-message__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: var(--space-xs);
}

.guest-message__intro {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  max-width: 480px;
}

.guest-message__embed {
  width: 100%;
  min-height: 500px;
  margin: 0 auto;
  margin-left: auto;
  margin-right: auto;
}

.guest-message__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.guest-message__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.guest-message__textarea {
  width: 100%;
  min-height: 160px;
  padding: var(--space-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  resize: vertical;
  transition: border-color var(--transition-fast);
}

.guest-message__textarea:hover {
  border-color: #ccc;
}

.guest-message__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(176, 137, 104, 0.15);
}

.guest-message__textarea::placeholder {
  color: #999;
}

.guest-message__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.guest-message__count {
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.guest-message__count.at-limit {
  color: var(--color-accent);
}

.guest-message__submit {
  margin-left: auto;
}

/* ===================================
   Footer
   =================================== */
.footer {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) 0;
  background-color: #f5f0eb;
  color: var(--color-text);
  text-align: center;
}

.footer__names {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.footer:not(.footer--extended) .footer__logo-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  height: clamp(1.5rem, 5vw, 2rem);
  width: auto;
  margin-bottom: var(--space-xs);
  opacity: 0.9;
  filter: brightness(0);
}

.footer__date {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* ===================================
   Scroll Animations
   =================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Alternative animation styles */
[data-animate="fade-up"] {
  transform: translateY(40px);
}

[data-animate="fade-in"] {
  transform: none;
}

/* Slow fade-in for about content (per-element) */
.about__content [data-animate="fade-in"] {
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* Entourage: ease-in with upward movement */
.entourage [data-animate="fade-up"] {
  transform: translateY(40px);
  transition: opacity 0.5s ease-in, transform 0.5s ease-in;
}

.entourage [data-animate="fade-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-left"] {
  transform: translateX(-30px);
}

[data-animate="fade-right"] {
  transform: translateX(30px);
}

[data-animate="scale"] {
  transform: scale(0.95);
}

[data-animate="fade-up"].is-visible,
[data-animate="fade-in"].is-visible,
[data-animate="fade-left"].is-visible,
[data-animate="fade-right"].is-visible,
[data-animate="scale"].is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* ===================================
   Accessibility
   =================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  /* Disable scroll animations for users who prefer reduced motion */
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===================================
   RSVP Page Styles
   =================================== */

/* Header Solid State (for inner pages) */
.header--solid {
  background-color: var(--color-bg);
  box-shadow: 0 1px 0 var(--color-border);
}

.header--solid .nav__logo-img {
  filter: brightness(0);
}

.header--solid .nav__link {
  color: var(--color-text);
}

.header--solid .nav__link:hover {
  color: var(--color-accent);
}

.header--solid .nav__toggle span {
  background-color: var(--color-text);
}

.nav__link--active {
  color: var(--color-accent) !important;
}

/* RSVP Hero Section */
.rsvp-hero {
  position: relative;
  margin-top: var(--header-height);
}

.rsvp-hero__img {
  width: 100%;
  height: auto;
  display: block;
}

.rsvp-hero__overlay {
  display: none;
}

@media (min-width: 1024px) {
  .rsvp-hero__overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    text-align: center;
    padding: var(--space-xl);
  }
  
  .rsvp-hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    color: #fff;
    max-width: 600px;
    line-height: 1.4;
    margin-bottom: var(--space-lg);
  }
  
  .rsvp-hero__btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity var(--transition-normal);
  }
  
  .rsvp-hero__btn:hover {
    opacity: 0.8;
  }
  
  .rsvp-hero__btn svg {
    animation: bounce 2s infinite;
  }
}

/* RSVP Pending Page - full bleed bg, overlay, countdown to open date */
.rsvp-pending {
  position: relative;
  min-height: 100vh;
  margin-top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rsvp-pending__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.rsvp-pending__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
}

.rsvp-pending__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: var(--space-xl);
}

.rsvp-pending__copy {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: var(--space-xl);
  letter-spacing: 0.02em;
}

.rsvp-pending__countdown {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.rsvp-pending__countdown .countdown__value {
  color: #fff;
}

.rsvp-pending__countdown .countdown__label {
  color: rgba(255, 255, 255, 0.75);
}

/* RSVP Form Section */
.rsvp-form-section {
  padding: var(--space-2xl) 0 var(--space-3xl);
  background-color: #f0f4f8; /* JotForm-style bluish fill */
}

.rsvp-form-embed {
  max-width: 700px;
  margin: 0 auto;
  min-height: 400px;
}

.rsvp-form-embed iframe {
  width: 100%;
  border: none;
  display: block;
}

/* Hide any "Powered by JotForm" link injected by the script into our page */
.rsvp-form-embed a[href*="jotform"] {
  display: none !important;
}

.rsvp-form {
  max-width: 600px;
  margin: 0 auto;
}

/* Form Elements */
.form__group {
  margin-bottom: var(--space-md);
}

.form__row {
  display: grid;
  gap: var(--space-md);
}

.form__row--half {
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .form__row--half {
    grid-template-columns: 1fr 1fr;
  }
}

.form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: #999999;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(176, 137, 104, 0.15);
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form__textarea {
  resize: vertical;
  min-height: 100px;
}

/* Fieldset & Radio Buttons */
.form__fieldset {
  border: none;
  padding: 0;
}

.form__radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.form__radio {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.form__radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form__radio-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  transition: all var(--transition-fast);
  position: relative;
  margin-top: 2px;
}

.form__radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 10px;
  height: 10px;
  background-color: var(--color-accent);
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.form__radio input:checked + .form__radio-custom {
  border-color: var(--color-accent);
}

.form__radio input:checked + .form__radio-custom::after {
  transform: translate(-50%, -50%) scale(1);
}

.form__radio input:focus-visible + .form__radio-custom {
  box-shadow: 0 0 0 3px rgba(176, 137, 104, 0.3);
}

.form__radio-text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text);
}

/* Button Full Width */
.btn--full {
  width: 100%;
  padding: 1rem var(--space-lg);
  margin-top: var(--space-md);
}

/* Extended Footer */
.footer--extended {
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__content {
  display: grid;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  text-align: center;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: var(--space-xs);
  opacity: 0.3;
}

.footer__logo-img {
  height: 48px;
  width: auto;
  margin-bottom: var(--space-sm);
  opacity: 0.7;
}

.footer__names {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.footer__desc {
  font-size: 0.875rem;
  line-height: 1.7;
  opacity: 0.7;
  max-width: 400px;
  margin: 0 auto;
}

.footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
}

.footer__link {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.footer__link:hover {
  opacity: 1;
}

.footer__bottom {
  padding-top: var(--space-lg);
  text-align: center;
}

@media (min-width: 768px) {
  .footer__content {
    grid-template-columns: 1fr auto;
    align-items: start;
    text-align: left;
  }
  
  .footer__brand {
    text-align: left;
  }
  
  .footer__desc {
    margin: 0;
  }
  
  .footer__nav {
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-sm);
  }
}
