/* ==========================================================================
   Shaun & Oliver — Wedding Website
   Editorial Luxury — Navy, Silver, Ivory
   ========================================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #242f68;
  --navy-deep: #161d42;
  --navy-mid: #2d3a7a;
  --silver: #a0a3ab;
  --silver-light: #c5c7cc;
  --ivory: #faf8f4;
  --ivory-warm: #f4f1eb;
  --cream: #ece8e0;
  --white: #ffffff;
  --text: #1e1e32;
  --text-soft: #6e6e82;
  --border: #e0ddd6;

  --font-names: 'Lindsey Signature', 'Great Vibes', cursive;
  --font-heading: 'Cormorant', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Film grain — fixed, pointer-events-none overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: multiply;
}

/* ==========================================================================
   NAVIGATION — Floating pill, detached from edges
   ========================================================================== */

.nav {
  position: fixed;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 0.9rem 2.2rem;
  transition: all 0.7s var(--ease-spring);
  background: rgba(22, 29, 66, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
}

.nav-scrolled {
  background: rgba(22, 29, 66, 0.92);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-inner {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

.nav a {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.4s var(--ease-out-expo);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: all 0.5s var(--ease-out-expo);
  transform: translateX(-50%);
}

.nav a:hover {
  color: var(--white);
}

.nav a:hover::after {
  width: 100%;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.label-sm {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.section-header-center {
  justify-content: center;
}

.section-rule {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--silver);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 3.5rem;
}

.section-title-center {
  text-align: center;
}

.container {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 3rem;
}

.container-wide {
  max-width: 1100px;
}

/* ==========================================================================
   SCROLL REVEAL — with blur for premium entrance
   ========================================================================== */

.section-header,
.section-title,
.details-layout,
.gallery,
.hotel-card,
.schedule,
.details-map,
.registry-card {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(4px);
  transition:
    opacity 1s var(--ease-out-expo),
    transform 1s var(--ease-out-expo),
    filter 1s var(--ease-out-expo);
}

.section-title {
  transition-delay: 0.1s;
}

.details-layout,
.gallery,
.hotel-card,
.schedule,
.details-map,
.registry-card {
  transition-delay: 0.2s;
}

.section-header.revealed,
.section-title.revealed,
.details-layout.revealed,
.gallery.revealed,
.hotel-card.revealed,
.schedule.revealed,
.details-map.revealed,
.registry-card.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  overflow: hidden;
  padding: 7rem 3rem 5rem;
  color: var(--ivory);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 35%, var(--navy-mid) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 65%, rgba(255, 255, 255, 0.04) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(36, 47, 104, 0.5) 0%, transparent 60%),
    var(--navy-deep);
  z-index: 0;
}

.hero-split {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 1100px;
  width: 100%;
}

.hero-left {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.hero-right {
  flex: 0 0 360px;
  align-self: flex-start;
  margin-top: 1rem;
  animation: fadeUp 1s 0.9s var(--ease-out-expo) both;
}

.hero-date {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 2rem;
  animation: fadeUp 1s 0.15s var(--ease-out-expo) both;
}

.hero-title {
  font-family: var(--font-names);
  font-size: clamp(3.8rem, 9vw, 7.5rem);
  font-weight: 400;
  line-height: 0.95;
  color: var(--ivory);
  margin-bottom: 0;
  animation: fadeUp 1s 0.35s var(--ease-out-expo) both;
}

.hero-monogram {
  display: block;
  width: clamp(260px, 50vw, 480px);
  height: auto;
  margin: 0 auto;
}

.hero-venue {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: 2rem;
  margin-bottom: 2rem;
  animation: fadeUp 1s 0.5s var(--ease-out-expo) both;
}

.hero-emblems {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  animation: fadeUp 1s 0.65s var(--ease-out-expo) both;
}

.hero-emblem {
  width: 72px;
  height: auto;
  opacity: 0.15;
  filter: brightness(0) invert(1);
}

.hero-whoosh {
  width: 200px;
  height: auto;
  opacity: 0.1;
  filter: brightness(0) invert(1);
}

/* ==========================================================================
   RSVP WIDGET — glass container to bridge dark/light contrast
   ========================================================================== */

#rsvp-widget {
  min-height: 200px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ==========================================================================
   SECTIONS — generous breathing room + smooth transitions
   ========================================================================== */

.section {
  position: relative;
  padding: 10rem 0;
  overflow: hidden;
}

/* Gradient fade at top of sections for smooth transitions */
.section-fade-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--ivory), transparent);
  z-index: 1;
  pointer-events: none;
}

.section-fade-dark {
  background: linear-gradient(to bottom, var(--navy-deep), transparent);
}

/* Details section — subtle warmth and depth */
.section-details {
  background:
    radial-gradient(ellipse at 70% 20%, rgba(224, 221, 214, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(236, 232, 224, 0.3) 0%, transparent 50%),
    var(--ivory);
}

.section-warm {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(236, 232, 224, 0.5) 0%, transparent 60%),
    var(--ivory-warm);
}

.section-dark {
  background:
    radial-gradient(ellipse at 50% 0%, var(--navy-mid) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(255,255,255,0.02) 0%, transparent 40%),
    var(--navy-deep);
  color: var(--ivory);
}

.section-dark .label-sm {
  color: var(--silver-light);
}

.section-dark .section-title {
  color: var(--ivory);
}

.section-dark .section-rule {
  background: var(--silver-light);
}

/* ==========================================================================
   GALLERY
   ========================================================================== */

.gallery-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  flex: 1 1 calc(33.333% - 8px);
  max-width: calc(33.333% - 6px);
  border-radius: 3px;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.5s var(--ease-out-expo);
  pointer-events: none;
}

.gallery-item:hover::after {
  background: rgba(0,0,0,0.04);
}

.gallery-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center 20%;
  aspect-ratio: 4 / 5;
  transition: transform 0.8s var(--ease-spring);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   DETAILS — two-column layout
   ========================================================================== */

.details-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.details-col {
  display: flex;
  flex-direction: column;
}

.details-col-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.detail-card {
  padding: 1rem 0;
}

.detail-card + .detail-card {
  border-top: 1px solid var(--border);
}

.detail-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.3rem;
}

.detail-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
}

.details-map {
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: 4px;
  box-shadow:
    0 12px 48px rgba(30, 30, 50, 0.08),
    0 2px 8px rgba(30, 30, 50, 0.04);
  margin-top: 1.5rem;
}

.details-map iframe {
  display: block;
  width: 100%;
}

/* ==========================================================================
   HOTEL / TRAVEL — double-bezel card
   ========================================================================== */

.hotel-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 800px;
  overflow: hidden;
  background: var(--white);
  border-radius: 6px;
  box-shadow:
    0 16px 56px rgba(30, 30, 50, 0.07),
    0 4px 12px rgba(30, 30, 50, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.hotel-info {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hotel-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.hotel-address {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 1.8rem;
  letter-spacing: 0.02em;
}

.hotel-note {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-soft);
}

.hotel-map {
  min-height: 340px;
}

.hotel-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
}

/* ==========================================================================
   SCHEDULE — clean rows
   ========================================================================== */

.schedule {
  max-width: none;
}

.schedule-row {
  display: flex;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.4s var(--ease-out-expo);
}

.schedule-row:hover {
  padding-left: 0.3rem;
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-time {
  flex-shrink: 0;
  width: 60px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--silver);
  font-variant-numeric: tabular-nums;
}

.schedule-event {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.section-faq {
  background: var(--ivory-warm);
  padding: 5rem 0;
}

.faq-list {
  max-width: 480px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.1rem 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.3s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-soft);
  margin-left: 1rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
  content: '\2212';
}

.faq-question:hover {
  color: var(--navy);
}

.faq-answer {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-soft);
  line-height: 1.7;
  padding: 0 0 1.1rem;
}

/* ==========================================================================
   REGISTRY — centered, elegant callout
   ========================================================================== */

.section-registry {
  padding: 5rem 0;
  background: var(--ivory);
}

.registry-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.registry-note {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 2.5rem;
}

.registry-btn {
  display: inline-block;
  padding: 1.1rem 3.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  background: var(--navy);
  transition: background 0.3s ease, transform 0.3s ease;
}

.registry-btn:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
}

.registry-link:hover {
  border-color: var(--navy);
}

/* Bottom RSVP CTA */
.section-rsvp-bottom {
  background:
    radial-gradient(ellipse at 50% 0%, var(--navy-mid) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(255,255,255,0.02) 0%, transparent 40%),
    var(--navy-deep);
  padding: 6rem 0;
}

.rsvp-bottom-card {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.rsvp-bottom-label {
  color: var(--silver-light);
}

.rsvp-bottom-title {
  color: var(--ivory);
  margin-bottom: 2rem;
}

.rsvp-bottom-btn {
  display: inline-block;
  padding: 1.1rem 3.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy-deep);
  background: var(--ivory);
  transition: background 0.3s ease, transform 0.3s ease;
}

.rsvp-bottom-btn:hover {
  background: var(--white);
  transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER — substantial, cinematic
   ========================================================================== */

.footer {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(45, 58, 122, 0.3) 0%, transparent 50%),
    var(--navy-deep);
  color: var(--ivory);
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--silver);
  opacity: 0.3;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer-monogram {
  display: block;
  width: clamp(160px, 30vw, 280px);
  margin: 0 auto 0.8rem;
  filter: brightness(0) invert(1);
}

.footer-date {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--silver);
  opacity: 0.5;
  margin-bottom: 3rem;
}

.footer-emblems {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.footer-icon {
  width: 112px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.08;
}

.footer-icon-center {
  width: 88px;
  opacity: 0.05;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .hero-split {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-right {
    flex: none;
    width: 100%;
    max-width: 440px;
  }

  .hero-venue {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }

  .details-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hotel-card {
    grid-template-columns: 1fr;
  }

  .hotel-map {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .hero {
    padding: 5rem 1.5rem 2.5rem;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(3.2rem, 14vw, 5.5rem);
    margin-bottom: 1rem;
  }

  .nav {
    top: 0.8rem;
    padding: 0.7rem 1.5rem;
  }

  .nav-inner {
    gap: 1.5rem;
  }

  .nav a {
    font-size: 0.62rem;
    letter-spacing: 0.15em;
  }

  .section {
    padding: 6rem 0;
  }

  .section-title {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  .hero-emblems {
    display: none;
  }


  .gallery-item {
    flex: 1 1 calc(50% - 4px);
    max-width: calc(50% - 2px);
  }

  .gallery-item img {
    aspect-ratio: 3 / 4;
    object-position: center 25%;
  }

  .gallery {
    gap: 4px;
  }

  .gallery-wrap {
    padding: 0 1rem;
  }

  .footer {
    padding: 5rem 2rem;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    gap: 1.2rem;
  }

  .nav a {
    font-size: 0.58rem;
  }

  .hero {
    padding: 5rem 1.2rem 2.5rem;
  }

  .hero-title {
    font-size: clamp(2.8rem, 16vw, 4.5rem);
  }

  .gallery {
    gap: 3px;
  }

  .section {
    padding: 4.5rem 0;
  }

  .hotel-info {
    padding: 2rem 1.5rem;
  }

  .detail-card {
    gap: 0.8rem;
  }
}
