/* ═══════════════════════════════════════════
   JEI & ANGIE — WEDDING WEBSITE
   Bridgerton-Inspired Romantic Garden Aesthetic
   ═══════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  --blush:       #F7B5C1;
  --blush-light: #FDE8EC;
  --peach:       #FFDAB9;
  --lilac:       #C9A6C9;
  --lilac-dark:  #9B72A3;
  --sage:        #9DC183;
  --sage-dark:   #6B8F4E;
  --cream:       #FFFDD0;
  --ivory:       #F5EEE6;
  --warm-white:  #FBF7F4;
  --text-dark:   #3A2E2A;
  --text-mid:    #6B5B52;
  --text-light:  #A0877C;
  --gold:        #C9A96E;
  --gold-light:  #E8D5B0;

  --font-head:   'Cormorant Garamond', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-body:   'Montserrat', 'Helvetica Neue', sans-serif;

  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   32px;
  --radius-full: 9999px;

  --shadow-sm:   0 2px 12px rgba(58,46,42,0.08);
  --shadow-md:   0 8px 32px rgba(58,46,42,0.12);
  --shadow-lg:   0 20px 60px rgba(58,46,42,0.18);

  --transition:  0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--warm-white);
  overflow-x: hidden;
  line-height: 1.7;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ─── SPLASH / LANDING PAGE ─── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.splash__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(22,14,10,0.62) 0%, rgba(22,14,10,0.52) 100%);
}
.splash__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem;
  max-width: 520px;
  width: 100%;
}
.splash__label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 2.5rem;
}
.splash__dear {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 0.15rem;
}
.splash__guest {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 9vw, 4.2rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.75rem;
}
.splash__line {
  width: 72px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.75rem;
  opacity: 0.65;
}
.splash__names {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}
.splash__names span {
  font-family: var(--font-head);
  font-size: 0.55em;
  color: var(--gold);
  vertical-align: middle;
  font-style: normal;
}
.splash__date {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2.75rem;
}
.splash__btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
  background: transparent;
  padding: 0.95rem 2.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.splash__btn:hover,
.splash__btn:focus-visible {
  background: rgba(201,169,110,0.18);
  border-color: var(--gold);
  outline: none;
}

/* ─── UTILITIES ─── */
.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.85rem 2.5rem;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn--primary {
  background: linear-gradient(135deg, var(--blush), var(--lilac));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--lilac), var(--blush));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--lilac-dark);
  border-color: var(--lilac);
  font-size: 0.7rem;
  padding: 0.6rem 1.6rem;
}
.btn--ghost:hover {
  background: var(--lilac);
  color: #fff;
}

/* ─── SCROLL FADE-IN ─── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ─── SECTION HEADERS ─── */
.section-header {
  text-align: center;
  padding-bottom: 3rem;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--lilac-dark);
  margin-bottom: 0.75rem;
}
.section-label--light { color: var(--blush-light); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
}
.section-title--light { color: #fff; }



/* ════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 5vw;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(251,247,244,0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.nav__logo {
  font-family: var(--font-script);
  font-size: 1.9rem;
  color: #fff;
  transition: color var(--transition);
}
.nav.scrolled .nav__logo { color: var(--text-dark); }

.nav__links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
}
.nav.scrolled .nav__links a { color: var(--text-mid); }
.nav__links a:hover { color: var(--lilac-dark); }

.nav__cta {
  background: rgba(255,255,255,0.15) !important;
  border: 1px solid rgba(255,255,255,0.5) !important;
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  transition: background var(--transition), color var(--transition), border-color var(--transition) !important;
}
.nav.scrolled .nav__cta {
  background: var(--blush) !important;
  color: #fff !important;
  border-color: var(--blush) !important;
}
.nav__cta:hover { opacity: 0.85; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background var(--transition);
}
.nav.scrolled .nav__hamburger span { background: var(--text-dark); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--warm-white);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-mid);
  line-height: 1;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-menu a {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-dark);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--lilac-dark); }


/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 8rem 5vw 6rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(58,46,42,0.55) 0%,
    rgba(90,60,80,0.40) 50%,
    rgba(58,46,42,0.50) 100%
  );
  z-index: 1;
}


.hero__content {
  position: relative;
  z-index: 4;
  color: #fff;
  padding-right: 2rem;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.hero__names {
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 1.0;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,0.25);
  margin-bottom: 1rem;
}
.hero__names span {
  color: var(--gold-light);
}

.hero__invite {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.5rem;
}

.hero__countdown {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.hero__countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.5rem;
}
.hero__countdown-num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 500;
  color: #fff;
  line-height: 1;
}
.hero__countdown-label {
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 0.3rem;
}
.hero__countdown-sep {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  color: var(--gold);
  line-height: 1.1;
  padding-top: 0.1rem;
  opacity: 0.7;
}

/* Hero couple photo */
.hero__couple-photo {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
}

.hero__frame-wrap {
  position: relative;
  width: min(420px, 45vw);
}

.hero__frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 124%;
  height: auto;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}

.hero__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

/* Scroll cue */
.hero__scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.hero__scroll-arrow {
  display: block;
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.6);
  border-bottom: 2px solid rgba(255,255,255,0.6);
  transform: rotate(45deg) translateY(-4px);
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(-4px); opacity: 0.6; }
  50%       { transform: rotate(45deg) translateY(4px);  opacity: 1;   }
}


/* ════════════════════════════════════════════
   SAVE THE DATE
════════════════════════════════════════════ */
.save-date {
  position: relative;
  padding: 7rem 5vw;
  text-align: center;
  overflow: hidden;
}

.save-date__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.save-date__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(247,181,193,0.75),
    rgba(201,166,201,0.75)
  );
}

.save-date__content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.save-date__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.75rem;
}

.save-date__heading {
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

.save-date__location {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(255,255,255,0.9);
}


/* ════════════════════════════════════════════
   OUR STORY
════════════════════════════════════════════ */
.story {
  position: relative;
  padding: 8rem 0;
  background: var(--warm-white);
  overflow: hidden;
}

.story__chapters {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.story__chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
}

.story__chapter--reverse {
  direction: rtl;
}
.story__chapter--reverse > * { direction: ltr; }

.story__chapter-photo {
  position: relative;
}

.story__chapter-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-sm) var(--radius-lg) var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.story__chapter-photo::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: calc(var(--radius-lg) + 4px) var(--radius-sm) calc(var(--radius-lg) + 4px) var(--radius-sm);
  border: 1.5px solid var(--blush);
  opacity: 0.5;
  z-index: -1;
}

.story__chapter--reverse .story__chapter-photo img,
.story__chapter--reverse .story__chapter-photo::before {
  border-radius: var(--radius-sm) var(--radius-lg) var(--radius-sm) var(--radius-lg);
}

.story__chapter-text {
  padding: 1rem 0;
}

.story__chapter-num {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 300;
  color: var(--blush);
  opacity: 0.5;
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.story__chapter-text h3 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.story__chapter-text p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 1rem;
}
.story__chapter-text p:last-child { margin-bottom: 0; }

em { font-style: italic; color: var(--lilac-dark); }


/* ════════════════════════════════════════════
   QUOTE
════════════════════════════════════════════ */
.quote-section {
  position: relative;
  padding: 7rem 5vw;
  text-align: center;
  overflow: hidden;
}

.quote-section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(0.8);
}

.quote-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(201,166,201,0.6),
    rgba(247,181,193,0.6)
  );
}

.quote-section__text {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 680px;
  margin: 0 auto;
}

.quote-section__text p {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.5;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
  margin-bottom: 1.25rem;
}

.quote-section__text cite {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  font-style: normal;
}


/* ════════════════════════════════════════════
   WEDDING DETAILS
════════════════════════════════════════════ */
.details {
  position: relative;
  padding: 8rem 0;
  background: var(--ivory);
  overflow: hidden;
}

.details__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

/* Detail cards */
.detail-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.detail-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.detail-card__photo {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.detail-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.detail-card:hover .detail-card__photo img { transform: scale(1.05); }

.detail-card__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(58,46,42,0.35), transparent);
}

.detail-card__body {
  padding: 2rem;
  text-align: center;
}

.detail-card__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  color: var(--lilac-dark);
}
.detail-card__icon svg { width: 100%; height: 100%; }

.detail-card__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lilac-dark);
  margin-bottom: 0.5rem;
}

.detail-card__title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.detail-card__time {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--lilac-dark);
  margin-bottom: 0.25rem;
}

.detail-card__venue {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.detail-card__address {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

/* Center rings */
.details__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.details__rings {
  width: 120px;
  filter: drop-shadow(0 4px 16px rgba(201,166,201,0.5));
}

.details__date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, var(--blush), var(--lilac));
  color: #fff;
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  min-width: 100px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.details__date-month {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}

.details__date-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.1;
}

.details__date-year {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  opacity: 0.85;
}

/* Dress code */
.dress-code {
  text-align: center;
  padding-top: 2rem;
}

.dress-code__theme {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--text-dark);
  margin: 0.75rem 0;
}

.dress-code__desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.dress-code__swatches {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.swatch {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12), 0 0 0 3px #fff, 0 0 0 4.5px rgba(0,0,0,0.08);
  transition: transform var(--transition);
}
.swatch:hover { transform: scale(1.2); }


/* ════════════════════════════════════════════
   SOLO PORTRAITS
════════════════════════════════════════════ */
.portraits {
  position: relative;
  padding: 8rem 0;
  background: var(--warm-white);
  overflow: hidden;
}

.portraits__bg {
  position: absolute;
  inset: 0;
  background-size: 400px;
  background-repeat: repeat;
  opacity: 0.04;
}

.portraits__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: start;
}

.portrait-feature {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.portrait-feature__photos {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.75rem;
  align-items: start;
}

.portrait-feature__photos--solo {
  grid-template-columns: 1fr;
}

.portrait-feature--bride .portrait-feature__photos {
  grid-template-columns: 1fr 2fr;
}

.portrait-feature__main img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-sm) var(--radius-lg) var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.portrait-feature--bride .portrait-feature__main img {
  border-radius: var(--radius-sm) var(--radius-lg) var(--radius-sm) var(--radius-lg);
}

.portrait-feature__secondary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portrait-feature__secondary img {
  width: 100%;
  aspect-ratio: 1/1.2;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.portrait-feature__text {
  padding: 0 0.5rem;
}

.portrait-feature__role {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--lilac-dark);
  display: block;
  margin-bottom: 0.5rem;
}

.portrait-feature__name {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.portrait-feature__degree {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lilac-dark);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem !important;
}

.portrait-feature__text p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.9;
}

/* Portraits divider */
.portraits__divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 4rem;
}

.portraits__divider img {
  width: 60px;
  opacity: 0.6;
}

.portraits__divider span {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--lilac-dark);
  opacity: 0.7;
}


/* ════════════════════════════════════════════
   GALLERY
════════════════════════════════════════════ */
.gallery {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}

.gallery__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4) saturate(0.7);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(58,46,42,0.55),
    rgba(90,60,80,0.60),
    rgba(58,46,42,0.55)
  );
}

.gallery__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.gallery__item {
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(201,166,201,0.0);
  transition: background var(--transition);
}
.gallery__item:hover::after {
  background: rgba(201,166,201,0.25);
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery__item:hover img { transform: scale(1.06); }

/* Make every 5th item span 2 cols for visual variety */
.gallery__item:nth-child(5n+1) {
  grid-column: span 2;
}
.gallery__item:nth-child(5n+1) img { aspect-ratio: 3/2; }


/* ════════════════════════════════════════════
   RSVP
════════════════════════════════════════════ */
.rsvp {
  position: relative;
  padding: 8rem 0;
  background: var(--warm-white);
  overflow: hidden;
}

.rsvp__intro {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-mid);
  max-width: 560px;
  margin: 1.5rem auto 0;
  line-height: 1.8;
}

.rsvp__form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 3.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 780px;
  margin: 0 auto;
  border: 1px solid rgba(247,181,193,0.25);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.form__field:last-child { margin-bottom: 0; }

.form__row .form__field { margin-bottom: 0; }

label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
}
label span { color: var(--blush); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--warm-white);
  border: 1.5px solid rgba(201,166,201,0.35);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--lilac);
  box-shadow: 0 0 0 3px rgba(201,166,201,0.2);
  background: #fff;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A6C9' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea { resize: vertical; min-height: 90px; }

.form__error {
  font-size: 0.72rem;
  color: #e07070;
  display: none;
}
.form__field.error .form__error { display: block; }
.form__field.error input,
.form__field.error select {
  border-color: #e07070;
}

.form__submit {
  text-align: center;
  margin-top: 2rem;
}

/* RSVP success */
.rsvp__success {
  text-align: center;
  padding: 3rem 1rem;
}
.rsvp__success[hidden] { display: none; }

.rsvp__success-inner img {
  width: 80px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(201,166,201,0.5));
}

.rsvp__success h3 {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.rsvp__success p {
  font-size: 0.95rem;
  color: var(--text-mid);
  max-width: 400px;
  margin: 0 auto 0.5rem;
}

.rsvp__success-names {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--lilac-dark);
}


/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.footer {
  position: relative;
  padding: 5rem 5vw;
  text-align: center;
  overflow: hidden;
}

.footer__bg {
  position: absolute;
  inset: 0;
  background-size: 300px;
  background-repeat: repeat;
  opacity: 0.06;
}

.footer__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blush-light), var(--ivory));
}

.footer__content {
  position: relative;
  z-index: 2;
}

.footer__names {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.footer__date {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}


.footer__quote {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--text-mid);
  margin-bottom: 2rem;
}

.footer__credit {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
}


/* ════════════════════════════════════════════
   LIGHTBOX
════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 10, 0.94);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox:not([hidden]) {
  display: flex;
  opacity: 1;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img-wrap {
  max-width: min(800px, 90vw);
  max-height: 90svh;
  position: relative;
}

.lightbox__img-wrap img {
  max-width: 100%;
  max-height: 90svh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--transition);
}

.lightbox__close {
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__prev { left: 2vw; }
.lightbox__next { right: 2vw; }

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255,255,255,0.22);
}


/* ════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
════════════════════════════════════════════ */
@media (max-width: 900px) {

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  /* Hero — stack vertically */
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 7rem 5vw 5rem;
  }

  .hero__content { padding-right: 0; order: 2; }

  .hero__couple-photo {
    order: 1;
    margin-bottom: 1.5rem;
  }

  .hero__frame-wrap {
    width: min(300px, 60vw);
  }

  .hero__countdown { gap: 0.35rem; justify-content: center; }

  /* Story */
  .story__chapter,
  .story__chapter--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2.5rem;
  }

  .story__chapter-photo { max-width: 420px; margin: 0 auto; }

  /* Details */
  .details__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .details__center { flex-direction: row; padding: 1rem 0; }

  /* Portraits */
  .portraits__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .portrait-feature { max-width: 480px; margin: 0 auto; }
  .portraits__divider { flex-direction: row; padding-top: 0; }

  /* Gallery */
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .gallery__item:nth-child(5n+1) { grid-column: span 1; }
  .gallery__item:nth-child(5n+1) img { aspect-ratio: 3/4; }
  .gallery__item:nth-child(4n+1) { grid-column: span 2; }
  .gallery__item:nth-child(4n+1) img { aspect-ratio: 3/2; }

  /* RSVP form */
  .rsvp__form { padding: 2rem 1.5rem; }
  .form__row { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 600px)
════════════════════════════════════════════ */
@media (max-width: 600px) {

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:nth-child(4n+1),
  .gallery__item:nth-child(5n+1) { grid-column: span 1; }
  .gallery__item img { aspect-ratio: 1/1; }

  .portrait-feature__photos {
    grid-template-columns: 1fr;
  }
  .portrait-feature--bride .portrait-feature__photos {
    grid-template-columns: 1fr;
  }
  .portrait-feature__secondary {
    flex-direction: row;
  }
  .portrait-feature__secondary img { aspect-ratio: 1/1; }

  .details__center { flex-direction: column; }
  .details__rings { width: 80px; }

  .lightbox__prev { left: 0.5rem; }
  .lightbox__next { right: 0.5rem; }
}
