/* ===== N&T WEDDING — V3: ATMOSPHERIC EDITORIAL ===== */
/* Kinfolk meets candlelit Brooklyn loft               */
/* Fonts: Cormorant Garamond (display) + Crimson Pro (body) */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=Crimson+Pro:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

:root {
  --pine:       #1e4844;
  --sage:       #49817c;
  --fall:       #984b31;
  --clay:       #ba7355;
  --rustic:     #69362c;
  --burgundy:   #6B2D3B;
  --amber:      #C4913A;
  --peach:      #D4896A;
  --terracotta: #B85C3A;
  --cream:      #faf6f1;
  --cream-dark: #f0e8df;
  --white:      #ffffff;
  --text:       #2c2c2c;
  --text-light: #5a5a5a;
  --warm-black: #1a1210;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Crimson Pro', serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  padding-top: 70px;
}
body.page-home { padding-top: 0; }

/* Film grain — adds analog texture to the entire page */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
  opacity: 0.028;
  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.7' 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;
  background-size: 256px 256px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
  color: var(--rustic);
}
h1 { font-size: 5rem; font-weight: 300; }
h2 { font-size: 3.2rem; font-weight: 300; margin-bottom: 1rem; }
h3 { font-size: 1.8rem; font-weight: 400; margin-bottom: 0.75rem; }
h4 { font-size: 1.3rem; font-weight: 500; }

p { margin-bottom: 1rem; }
a { color: var(--clay); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--fall); }
img { max-width: 100%; height: auto; display: block; }

.label {
  font-family: 'Crimson Pro', serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(26, 18, 16, 0.95);
  backdrop-filter: blur(12px);
  padding: 0 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  height: 70px;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
/* Homepage: nav starts transparent over hero */
body.page-home .nav:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
}
/* Text shadow on brand + nav text-links only -- NOT on the RSVP pill button.
   RSVP has dark text on yellow background; a text-shadow there reads as an
   ugly halo. The nav gradient is handled by the photo-column top fade
   (.hero-image::before) so the rustic panel stays clean. */
body.page-home .nav:not(.scrolled) .nav-brand,
body.page-home .nav:not(.scrolled) .nav-links a:not(.nav-rsvp) {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85), 0 0 14px rgba(0, 0, 0, 0.55);
  box-shadow: none;
}
.nav.scrolled {
  background: rgba(26, 18, 16, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; color: var(--cream);
  font-weight: 400; letter-spacing: 0.08em; font-style: italic;
  opacity: 0.9;
}
.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a {
  color: rgba(250,246,241,0.7);
  font-family: 'Crimson Pro', serif; font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.5rem 0; border-bottom: 1px solid transparent; transition: all 0.3s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--cream); border-bottom-color: var(--amber);
}
.nav-links .nav-rsvp {
  background: var(--amber); color: var(--warm-black);
  padding: 0.5rem 1.5rem; border: 1px solid var(--amber);
  border-radius: 0; font-weight: 600; letter-spacing: 0.15em;
}
.nav-links .nav-rsvp:hover {
  background: #d4a03f; color: var(--warm-black); border-color: #d4a03f;
}
.nav-toggle { display: none; cursor: pointer; background: none; border: none; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--cream); margin: 6px 0; transition: 0.3s; }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-image {
  /* Desktop hero-desktop.jpg is a 4000x2250 (16:9) crop with subjects
     positioned at 62% of crop vertical -- mirrors mobile composition.
     On any 16:9 viewport this renders with no cover-cropping; on 16:10
     and ultrawide cover handles the small overhang. center positions
     the subjects naturally at 62% from top of viewport on 16:9. */
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  /* Lighter neutral charcoal overlay - lets B&W photo read true with
     contrast at the top for headline legibility, no harsh bottom crush. */
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.40) 28%,
      rgba(0,0,0,0.25) 50%,
      rgba(0,0,0,0.35) 100%
    );
}
.hero-content { position: relative; z-index: 2; color: var(--cream); padding: 2rem; }
.hero-names {
  display: flex; align-items: baseline; justify-content: center;
  gap: 2rem; flex-wrap: wrap;
}
.hero-names h1 {
  font-size: 7rem; color: var(--cream);
  font-weight: 300; letter-spacing: 0.06em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7), 0 0 60px rgba(0,0,0,0.5);
}
.hero-names .ampersand {
  font-size: 3.5rem; font-style: italic; opacity: 0.5;
  font-weight: 300; font-family: 'Cormorant Garamond', serif; color: var(--cream);
}
.hero-date {
  font-family: 'Crimson Pro', serif;
  font-size: 0.8rem; letter-spacing: 0.4em; text-transform: uppercase;
  margin-top: 2.5rem; font-weight: 500; opacity: 0.95;
  text-shadow: 0 1px 12px rgba(0,0,0,0.75);
}
.hero-venue {
  font-family: 'Crimson Pro', serif;
  font-size: 0.8rem; letter-spacing: 0.2em;
  margin-top: 0.5rem; opacity: 0.85; text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0,0,0,0.75);
}
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.hero-scroll span {
  font-family: 'Crimson Pro', serif;
  font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(250,246,241,0.35);
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(250,246,241,0.25), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(1); }
  50% { opacity: 0.6; transform: scaleY(1.2); }
}

/* ===== HERO: DESKTOP SPLIT LAYOUT (rustic warm) ===== */
/* Desktop only -- mobile retains full-bleed presentation in @media (max-width: 768px).
   Photo column locked at 11:13 aspect ratio (same as the mobile crop) so the
   visible composition matches mobile exactly: subjects' face at column 62%,
   hands/stomach at column bottom, sides trimmed by ~330 source-px each --
   identical framing on every desktop size. Right panel takes remaining width. */
@media (min-width: 769px) {
  .hero {
    display: flex;
    align-items: stretch;
  }
  .hero-image {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    height: 100%;
    aspect-ratio: 11 / 13;
    background-size: cover;
    background-position: center;
  }
  /* Top fade over the photo column so the transparent nav stays readable
     against bright ceiling-light areas of the photo. Confined to the photo
     column so the rustic panel never gets a dark cap. */
  .hero-image::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 240px;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.80) 0%,
      rgba(0, 0, 0, 0.55) 30%,
      rgba(0, 0, 0, 0.25) 65%,
      rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
  }
  .hero-overlay { display: none; }
  .hero-content {
    position: relative;
    z-index: auto;
    flex: 1 1 0;
    background: linear-gradient(160deg, var(--fall) 0%, var(--rustic) 100%);
    color: var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 3rem;
    text-align: center;
  }
  .hero-content .hero-names {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.2rem;
  }
  .hero-content .hero-names h1 {
    font-family: 'Cormorant Garamond', 'Source Serif 4', serif;
    font-size: clamp(3.5rem, 6vw, 6rem);
    font-weight: 300;
    color: var(--cream);
    text-shadow: none;
    letter-spacing: 0.02em;
    line-height: 1;
  }
  .hero-content .hero-names .ampersand {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-style: italic;
    color: var(--cream);
    opacity: 0.7;
    text-shadow: none;
    font-family: 'Cormorant Garamond', 'Source Serif 4', serif;
  }
  .hero-content .hero-date {
    color: var(--cream);
    text-shadow: none;
    opacity: 0.85;
    letter-spacing: 0.4em;
    margin-top: 0;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
  }
  .hero-content .hero-venue {
    color: var(--cream);
    text-shadow: none;
    opacity: 0.85;
    text-transform: none;
    letter-spacing: 0.04em;
    font-family: 'Cormorant Garamond', 'Source Serif 4', serif;
    font-style: italic;
    font-size: 1.05rem;
    margin-top: 0.7rem;
    font-weight: 400;
  }
  /* Hairline divider between names and date in the right panel. */
  .hero-content .hero-names::after {
    content: none;
  }
  .hero-content .hero-date::before {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background: rgba(250, 246, 241, 0.55);
    margin: 2rem auto 1.6rem;
  }
  /* Scroll indicator: anchor to horizontal center of the right column. */
  .hero-scroll {
    left: 79%;
  }
  .hero-scroll span {
    color: rgba(250, 246, 241, 0.55);
  }
  .hero-scroll-line {
    background: linear-gradient(to bottom, rgba(250, 246, 241, 0.5), transparent);
  }
}

/* ===== ATMOSPHERIC SECTIONS ===== */
/* Full-bleed image backgrounds with warm overlays */
.section-atmo {
  position: relative;
  padding: 8rem 2rem;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--cream);
  overflow: hidden;
}
@supports (-webkit-touch-callout: none) {
  .section-atmo { background-attachment: scroll; }
}
.section-atmo::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
}
.section-atmo > * { position: relative; z-index: 2; }
.section-atmo h2, .section-atmo h3 { color: var(--cream); }
.section-atmo p { color: rgba(250,246,241,0.75); }
.section-atmo .section-divider { background: var(--amber); opacity: 0.5; }
.section-atmo .detail-card { border-color: rgba(250,246,241,0.08); }

/* Warm overlay — for romantic/candlelit sections */
.section-atmo--warm::before {
  background: linear-gradient(
    135deg,
    rgba(105,54,44,0.92) 0%,
    rgba(152,75,49,0.88) 50%,
    rgba(107,45,59,0.9) 100%
  );
}
/* Dark overlay — for dramatic/evening sections */
.section-atmo--dark::before {
  background: linear-gradient(
    to bottom,
    rgba(26,18,16,0.82) 0%,
    rgba(26,18,16,0.72) 50%,
    rgba(26,18,16,0.88) 100%
  );
}

/* Glass card — semi-transparent on atmospheric backgrounds */
.glass-card {
  background: rgba(250,246,241,0.06);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(250,246,241,0.08);
  border-radius: 4px;
  padding: 2rem;
}

/* ===== STANDARD SECTIONS ===== */
.section { padding: 6rem 2rem; max-width: 1000px; margin: 0 auto; }
.section-full { padding: 6rem 2rem; max-width: 100%; }
.section-cream { background: var(--cream); }
.section-muted { background: var(--cream-dark); }
.section-dark { background: var(--warm-black); color: var(--cream); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }
.section-warm { background: linear-gradient(135deg, var(--rustic), var(--fall)); color: var(--cream); }
.section-warm h2, .section-warm h3 { color: var(--cream); }
.section-burgundy { background: var(--burgundy); color: var(--cream); }
.section-burgundy h2, .section-burgundy h3 { color: var(--cream); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p {
  font-size: 1.05rem; color: var(--text-light);
  max-width: 550px; margin: 0.75rem auto 0; line-height: 1.9;
}
.section-dark .section-header p,
.section-warm .section-header p,
.section-burgundy .section-header p,
.section-atmo .section-header p { color: rgba(250,246,241,0.75); }
.section-divider { width: 50px; height: 1.5px; background: var(--terracotta); margin: 1.5rem auto; }

/* ===== TIMELINE PHOTOS - per-photo treatments (no blanket aspect ratio) ===== */
/* Default: portrait 3/4 with faces in upper third. Used by High School (1200x1597
   night selfie) where faces sit in upper-middle of frame. */
.timeline-card .timeline-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: block;
}

/* Tight portrait: 4/5 with faces locked high. Used by Proposal (1200x1800
   B&W stoop portrait) - crops legs/cobblestone, holds Nicole's face on Tom's
   chest as the focal point. */
.timeline-card .timeline-photo--tight {
  aspect-ratio: 4/5;
  object-position: center 32%;
}

/* Square: 1/1, no crop. Used by Making It Official (1200x1200 close selfie) -
   the source is already square, container must match or sides get cropped off. */
.timeline-card .timeline-photo--square {
  aspect-ratio: 1/1;
  object-position: center;
}

/* Pair (default): two portraits side by side desktop, stacked mobile. Used by
   Real Beginning (graduation portraits, both subjects mid-shot). */
.timeline-photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.timeline-photo-pair img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  display: block;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
/* Pair stays side-by-side at all viewports per Nicole's preference */

/* Stacked variant: two photos full card width, one over the other, ALL viewports.
   Used by Ultimate Test (empty pandemic NYC street + Met) - the empty horizontal
   context only reads at full width; stacking gives each photo enough size to
   show the city emptiness that makes the shot meaningful. */
.timeline-photo-pair--stacked {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.timeline-photo-pair--stacked img {
  aspect-ratio: 3/4;
  object-position: center 60%;
}

/* ===== TWO-COLUMN LAYOUTS ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.two-col-image { border-radius: 4px; overflow: hidden; }
.two-col-image img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
/* Offset variant — image has depth/shadow */
.two-col--offset { gap: 5rem; }
.two-col--offset .two-col-image {
  position: relative;
  box-shadow: 0 20px 60px rgba(26,18,16,0.12);
}

/* ===== PULL QUOTE ===== */
.pull-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; font-style: italic; font-weight: 300;
  text-align: center; color: var(--fall);
  max-width: 750px; margin: 0 auto;
  padding: 4rem 2rem; line-height: 1.4;
}
.pull-quote .attribution {
  display: block; font-size: 0.7rem;
  font-family: 'Crimson Pro', serif; font-style: normal;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--clay); margin-top: 1.5rem; font-weight: 400;
}
.section-atmo .pull-quote,
.section-warm .pull-quote,
.section-dark .pull-quote { color: var(--cream); }
.section-atmo .pull-quote .attribution,
.section-warm .pull-quote .attribution,
.section-dark .pull-quote .attribution { color: rgba(250,246,241,0.4); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: 0.9rem 2.5rem;
  font-family: 'Crimson Pro', serif; font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  border: none; border-radius: 0; cursor: pointer;
  transition: all 0.4s; text-decoration: none;
}
.btn-primary { background: var(--clay); color: var(--white); }
.btn-primary:hover { background: var(--fall); color: var(--white); }
.btn-burgundy { background: var(--burgundy); color: var(--white); }
.btn-burgundy:hover { background: #7B3548; color: var(--white); }
.btn-outline { background: transparent; color: var(--rustic); border: 1px solid var(--rustic); }
.btn-outline:hover { background: var(--rustic); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--cream); border: 1px solid rgba(250,246,241,0.3); }
.btn-outline-light:hover { background: rgba(250,246,241,0.1); color: var(--white); border-color: var(--cream); }
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.5rem; }

/* ===== DETAIL GRID ===== */
.details-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; text-align: center; margin: 2.5rem 0; }
.detail-card { padding: 2.5rem 1rem; border-right: 1px solid rgba(105,54,44,0.08); }
.detail-card:last-child { border-right: none; }
.detail-label {
  font-family: 'Crimson Pro', serif; font-size: 0.7rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 0.75rem;
}
.detail-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; color: var(--rustic); font-weight: 300;
}
/* In atmospheric sections, detail values are cream */
.section-atmo .detail-value { color: var(--cream); }

/* ===== CARDS ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--white); border-radius: 4px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.4s, box-shadow 0.4s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.card-image { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.25rem; }
.card-body h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.card-body p { font-size: 0.95rem; color: var(--text-light); }

/* ===== TIMELINE ===== */
.timeline { max-width: 700px; margin: 0 auto; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, var(--clay), var(--burgundy)); opacity: 0.2;
}
.timeline-item {
  position: relative; padding: 1.5rem 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.timeline-dot {
  width: 12px; height: 12px; background: var(--clay);
  border: 3px solid var(--cream); border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(186,115,85,0.15);
  z-index: 1; margin-bottom: 1rem;
}
.timeline-year {
  font-family: 'Crimson Pro', serif; font-size: 0.65rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 0.5rem; font-weight: 600;
}
.timeline-card {
  background: var(--white); border-radius: 4px;
  padding: 1.5rem; max-width: 500px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.timeline-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.timeline-card p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 0; }
.timeline-card .timeline-placeholder {
  width: 100%; height: 200px; border-radius: 4px; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--text-light);
}

/* ===== SCHEDULE ===== */
.schedule-list { max-width: 550px; margin: 0 auto; }
.schedule-item {
  display: flex; gap: 1.5rem; align-items: baseline;
  padding: 1.25rem 0; border-bottom: 1px solid rgba(105,54,44,0.08);
}
.schedule-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 300;
  color: var(--clay); white-space: nowrap; min-width: 80px;
}
.schedule-event strong { display: block; color: var(--rustic); font-weight: 600; }
.schedule-event { color: var(--text-light); }
/* Schedule in atmospheric/dark sections */
.section-atmo .schedule-time { color: var(--amber); }
.section-atmo .schedule-event strong { color: var(--cream); }
.section-atmo .schedule-event { color: rgba(250,246,241,0.55); }
.section-atmo .schedule-item { border-bottom-color: rgba(250,246,241,0.06); }

/* ===== ACCORDION ===== */
.accordion-item { border-bottom: 1px solid rgba(105,54,44,0.1); }
.accordion-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 500; color: var(--rustic);
  border: none; background: none; width: 100%; text-align: left;
}
.accordion-header:hover { color: var(--fall); }
.accordion-header .icon { font-size: 1.5rem; transition: transform 0.3s; color: var(--clay); font-weight: 300; }
.accordion-item.open .accordion-header .icon { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.accordion-item.open .accordion-body { max-height: 500px; padding-bottom: 1.25rem; }
.accordion-body p { color: var(--text-light); font-size: 0.95rem; line-height: 1.8; }

/* ===== FORM ===== */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--rustic); margin-bottom: 0.5rem; font-family: 'Crimson Pro', serif;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.85rem 1rem;
  font-family: 'Crimson Pro', serif; font-size: 1rem;
  border: 1px solid rgba(105,54,44,0.12); border-radius: 0;
  background: var(--white); color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(186,115,85,0.08);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ===== COUNTDOWN ===== */
.countdown { display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap; padding: 2rem 0; }
.countdown-unit { text-align: center; }
.countdown-number {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 4.5rem; font-weight: 300;
  color: var(--cream); line-height: 1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
  font-variant-numeric: lining-nums;
}
.countdown-label {
  font-family: 'Crimson Pro', serif; font-size: 0.65rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(250,246,241,0.7); margin-top: 0.75rem;
}

/* ===== PICK CARDS (compact venue cards) ===== */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Cinder's Picks list (text-driven, two columns on desktop) */
.picks-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 920px;
  columns: 2;
  column-gap: 2.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
.picks-list li {
  break-inside: avoid;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(250,246,241,0.12);
}
.picks-list li:last-child { border-bottom: none; }
.picks-list strong {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--cream);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
@media (max-width: 768px) {
  .picks-list { columns: 1; }
}
.pick-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.pick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.pick-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--cream-dark);
}
.pick-card-body {
  padding: 1.25rem;
}
.pick-card-body h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--rustic);
}
.pick-card-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}
.pick-card-tag {
  display: inline-block;
  font-family: 'Crimson Pro', serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  margin-bottom: 0.4rem;
}
.tag-budget { background: rgba(73,129,124,0.12); color: var(--sage); }
.tag-mid { background: rgba(196,145,58,0.12); color: var(--amber); }
.tag-splurge { background: rgba(107,45,59,0.12); color: var(--burgundy); }

.picks-category {
  font-family: 'Cormorant Garamond', serif;
  color: var(--amber);
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  margin: 2.5rem 0 1rem;
  padding-left: 0.25rem;
}
.picks-category:first-of-type { margin-top: 1.5rem; }

/* Photo card grid for Cinder's Picks (atmospheric dark-overlay context) */
.picks-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 2.5rem;
}
.picks-photo-card {
  display: flex;
  flex-direction: column;
  background: rgba(250,246,241,0.05);
  border: 1px solid rgba(250,246,241,0.10);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.picks-photo-card:hover {
  transform: translateY(-2px);
  background: rgba(250,246,241,0.09);
  border-color: rgba(250,246,241,0.22);
}
.picks-photo-img {
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  background-color: rgba(250,246,241,0.08);
  background-repeat: no-repeat;
}
.picks-photo-body {
  padding: 0.85rem 1rem 1rem;
}
.picks-photo-body h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--cream);
  margin: 0 0 0.3rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.picks-photo-body p {
  font-family: 'Crimson Pro', serif;
  font-size: 0.82rem;
  color: rgba(250,246,241,0.72);
  margin: 0;
  line-height: 1.4;
  font-style: italic;
}
@media (max-width: 768px) {
  .picks-photo-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .picks-photo-img { height: 120px; }
}
@media (max-width: 480px) {
  .picks-photo-grid { grid-template-columns: 1fr; }
  .picks-photo-img { height: 180px; }
}

/* ===== PHOTO BREAK-OUT STRIPS ===== */
.photo-strip {
  position: relative;
  padding: 2.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
}
.photo-strip-year {
  font-family: 'Crimson Pro', serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.photo-strip-row {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}
.photo-strip-img {
  flex: 1;
  height: 240px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-light);
  font-style: italic;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
/* Pair-then-single layout: 2 photos side-by-side, then 1 feature photo full width.
   Pair uses natural 3:4 aspect (no crop) matching the feature photo treatment. */
.photo-strip-row + .photo-strip-row { margin-top: 0.75rem; }
.photo-strip-row--pair .photo-strip-img { height: auto; aspect-ratio: 3/4; }
/* Feature photo: natural 3:4 aspect (no vertical cropping). Width matches the
   strip's full width so the pair-on-top + single-below layout reads as one
   coherent rectangle. */
.photo-strip-row--single .photo-strip-img {
  flex: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
}

/* ===== IMAGE MOSAIC ===== */
.image-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
}
.image-mosaic > * { border-radius: 4px; overflow: hidden; }
.mosaic-tall { grid-row: span 2; }
.mosaic-wide { grid-column: span 2; }
.mosaic-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--cream-dark);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ===== FOOTER ===== */
.footer {
  background: var(--warm-black); color: var(--cream);
  text-align: center; padding: 5rem 2rem 3.5rem;
}
.footer h3 {
  color: var(--cream); font-size: 2.4rem;
  font-weight: 300; font-style: italic; margin-bottom: 0.75rem;
}
.footer .footer-line { width: 40px; height: 1px; background: var(--amber); margin: 1.25rem auto; opacity: 0.35; }
.footer p { opacity: 0.4; font-size: 0.8rem; letter-spacing: 0.05em; }
.footer .footer-nav { margin-top: 2rem; }
.footer .footer-nav a {
  color: rgba(250,246,241,0.3); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0.85rem;
}
.footer .footer-nav a:hover { color: var(--cream); }
.footer .footer-nav a.rsvp-link {
  font-weight: 700; text-decoration: underline;
  color: rgba(250,246,241,0.5);
}

/* ===== PAGE BANNER ===== */
/* Warm diagonal overlay — for page header banners */
.banner {
  position: relative;
  padding: 5rem 2rem 4rem;
  text-align: center;
  color: var(--cream);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.banner::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(105,54,44,0.7), rgba(26,18,16,0.6) 50%, rgba(107,45,59,0.7));
}
.banner > * { position: relative; z-index: 2; }
.banner h2 { color: var(--cream); }
.banner p { color: rgba(250,246,241,0.75); margin-bottom: 0; }
.banner .label { color: var(--amber); }
.banner .section-divider { background: var(--amber); opacity: 0.5; }

/* Casper intro title — spectral reporter byline */
.casper-title {
  font-family: 'Crimson Pro', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,246,241,0.45);
  margin-top: 0.25rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  body { padding-top: 65px; }
  body.page-home { padding-top: 0; }

  .nav { padding: 0 1.25rem; height: 65px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 65px; left: 0; right: 0;
    background: rgba(26,18,16,0.96);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem 1.5rem; gap: 0.25rem;
  }
  .nav-links.open a { padding: 0.75rem 0; }
  .nav-links.open .nav-rsvp {
    padding: 0.75rem 1.5rem;
    margin: 0.5rem auto;
    display: inline-block;
    width: fit-content;
  }

  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }

  .hero { min-height: 100vh; }
  .hero-names h1 { font-size: 4.2rem; }
  .hero-names .ampersand { font-size: 2.2rem; }
  .hero-names { gap: 1rem; }
  .hero-scroll { bottom: 1.5rem; }

  .section { padding: 4rem 1.25rem; }
  .section-atmo { padding: 5rem 1.25rem; background-attachment: scroll; }

  .details-grid { grid-template-columns: 1fr 1fr; }
  .detail-card { border-right: none; border-bottom: 1px solid rgba(250,246,241,0.06); padding: 1.5rem; }
  .detail-card:last-child { border-bottom: none; }

  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col--offset { gap: 2rem; }
  .two-col-image { order: -1; }
  .two-col-image img {
    min-height: auto;
    max-height: 460px;
    object-position: center 60% !important;
  }

  /* Mobile hero - chest-up crop (hero-mobile.jpg, 1100x1014, 1.085 ratio):
     ceiling/lights occupy upper ~45%, both subjects chest-up in lower ~55%.
     cover + center top fills the viewport width, clipping at the bottom of
     the photo (escalator area) which is acceptable. This preserves the
     desktop chest-up framing while keeping headline-over-ceiling-headroom. */
  .hero-image {
    background-image: url('/images/hero-mobile.jpg') !important;
    background-size: cover;
    background-position: center top;
  }
  /* Mobile uses the same lighter overlay as desktop (defined in base rule). */
  /* Anchor hero content into the bright ceiling band that sits just above
     the subjects' faces. 20vh keeps the headline close to the subjects (like
     desktop's vertically-centered headline over the upper bodies) instead of
     pinned to the very top edge. */
  .hero {
    align-items: flex-start;
    padding-top: 20vh;
  }
  .hero-content {
    padding-top: 0;
    padding-bottom: 0;
  }
  /* Keep "Nicole & Tom" horizontal on mobile (overrides the <480px column stack)
     so the whole headline block fits in the ~240px ceiling headroom. */
  .hero-names {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.85rem !important;
    justify-content: center;
  }
  .hero-names h1 {
    font-size: 3.4rem !important;
    white-space: nowrap;
  }
  .hero-names .ampersand {
    font-size: 1.9rem !important;
    margin: 0 !important;
  }
  .hero-date {
    margin-top: 1.5rem;
    font-size: 0.7rem;
  }
  .hero-venue {
    font-size: 0.68rem;
  }

  /* Mobile Wythe Hotel + banner - strengthen the overlay so the bright HOTEL
     sign and red brick don't fight the text. Position back to center so the
     composition isn't unnaturally shifted. */
  .section-atmo--dark,
  .banner {
    background-position: center center !important;
  }
  .section-atmo--dark::before,
  .banner::before {
    background: linear-gradient(
      to bottom,
      rgba(26,18,16,0.92) 0%,
      rgba(26,18,16,0.88) 50%,
      rgba(26,18,16,0.94) 100%
    ) !important;
  }

  .card-grid { grid-template-columns: 1fr; }
  .card { max-width: 400px; margin: 0 auto; }
  .picks-grid { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .timeline-card { max-width: 100%; }

  .pull-quote { font-size: 2rem; padding: 2rem 1rem; }

  .countdown { gap: 1.5rem; }
  .countdown-number { font-size: 3rem; }

  .footer .footer-nav a { margin: 0 0.4rem; font-size: 0.65rem; }

  .btn-group { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; text-align: center; }

  .schedule-item { gap: 1rem; }
  .schedule-time { font-size: 1.3rem; min-width: 65px; }

  .glass-card { padding: 1.5rem; }

  .photo-strip-row { flex-direction: column; }
  /* In column flex, flex:1 (flex-basis:0) collapses height to 0 because
     parent has no fixed height. Override with flex:none so height wins. */
  .photo-strip-img { flex: none; height: 240px; }
  /* Pair stays side-by-side on mobile with natural 3:4 aspect (no crop). */
  .photo-strip-row--pair { flex-direction: row !important; gap: 0.5rem; }
  .photo-strip-row--pair .photo-strip-img { flex: 1 1 0 !important; height: auto; }
  .photo-strip-row--single .photo-strip-img {
    flex: 1 !important;
    height: auto;
  }

  .image-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .mosaic-tall { grid-row: span 1; }
  .mosaic-wide { grid-column: span 1; }
}

@media (max-width: 480px) {
  /* Hero stays horizontal at <480 (overriding the legacy column stack)
     so headline fits in the ceiling-headroom band above the subjects.
     Smaller font keeps "Nicole & Tom" on one line at iPhone-13-mini width (375). */
  .hero-names h1 { font-size: 3rem !important; }
  .hero-names .ampersand { font-size: 1.7rem !important; }
  .hero-names { gap: 0.7rem !important; }
  .countdown { gap: 1rem; }
  .countdown-number { font-size: 2.5rem; }
  .picks-grid { grid-template-columns: 1fr; }
}
