/* ==========================================
   Sara & Mitchell Wedding Website
   Color Palette: Sage Green, Cream, Terracotta
   Fonts: Cormorant Garamond + Montserrat
   ========================================== */

/* --- CSS Custom Properties --- */
:root {
  --cream:            #FAF6F0;
  --cream-dark:       #F0EBE3;
  --sage:             #7D8E6E;
  --sage-dark:        #5F6F52;
  --sage-light:       #E8EDE3;
  --sage-muted:       #A3B18A;
  --terracotta:       #C4785B;
  --terracotta-dark:  #A8614A;
  --terracotta-light: #F2DDD3;
  --text:             #3B3B3B;
  --text-light:       #6B6B6B;
  --text-lighter:     #999;
  --white:            #FFFFFF;
  --shadow-sm:        0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:        0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:        0 8px 40px rgba(0,0,0,0.1);
  --radius:           12px;
  --radius-sm:        8px;
  --transition:       0.3s ease;
  --font-heading:     'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:        'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

a {
  color: var(--sage-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--terracotta);
}

img {
  max-width: 100%;
  display: block;
}

.hidden {
  display: none !important;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 70%, transparent 100%);
}

.nav.scrolled {
  background: rgba(250, 246, 240, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 2px;
  transition: color var(--transition);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.nav.scrolled .nav-logo {
  color: var(--sage-dark);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  padding: 4px 0;
  position: relative;
  transition: color var(--transition);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--terracotta);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav.scrolled .nav-links a {
  color: var(--text);
}

.nav.scrolled .nav-links a:hover {
  color: var(--terracotta);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav.scrolled .nav-toggle span {
  background: var(--text);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel {
  position: absolute;
  inset: 0;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  line-height: 1;
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.3);
}

.carousel-btn--prev { left: 20px; }
.carousel-btn--next { right: 20px; }

.carousel-dots {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.35) 50%,
    rgba(0,0,0,0.5) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
}

.hero-pre {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.hero-amp {
  font-style: italic;
  font-weight: 300;
  margin: 0 8px;
  color: var(--terracotta-light);
}

.hero-divider {
  display: flex;
  justify-content: center;
  margin: 16px 0;
  color: rgba(255,255,255,0.6);
}

.hero-date {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.hero-venue {
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 32px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 48px;
  border: 1.5px solid rgba(255,255,255,0.8);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all var(--transition);
}

.hero-cta:hover {
  background: var(--white);
  color: var(--sage-dark);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
}

.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section--cream {
  background: var(--cream);
}

.section--white {
  background: var(--white);
}

.section--sage {
  background: var(--sage-light);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  color: var(--sage-dark);
  font-weight: 400;
  letter-spacing: 1px;
}

.section-divider {
  width: 60px;
  height: 1.5px;
  background: var(--terracotta);
  margin: 20px auto 48px;
  opacity: 0.7;
}

/* --- Story --- */
.story-text {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.story-text:last-child {
  margin-bottom: 0;
}

/* --- Photo Gallery Grid --- */
.gallery-section {
  padding-bottom: 80px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.photo-grid-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
}

.photo-grid-item--wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-grid-item:hover img {
  transform: scale(1.04);
}

/* --- Schedule / Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  background: var(--sage-muted);
  opacity: 0.5;
}

.timeline-event {
  position: relative;
  margin-bottom: 48px;
}

.timeline-event:last-child {
  margin-bottom: 0;
}

.timeline-event::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sage);
  border: 3px solid var(--sage-light);
}

.timeline-date {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.timeline-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.timeline-card--spaced {
  margin-top: 16px;
}

.timeline-card h3 {
  font-size: 1.6rem;
  color: var(--sage-dark);
  margin-bottom: 8px;
}

.timeline-time {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-location {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.timeline-card > p:not(.timeline-time):not(.timeline-location):not(.timeline-dress) {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

.timeline-dress {
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--sage-dark);
  letter-spacing: 0.5px;
}

/* --- Travel --- */
.travel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.travel-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.travel-icon {
  color: var(--sage);
  margin-bottom: 16px;
}

.travel-card h3 {
  font-size: 1.5rem;
  color: var(--sage-dark);
  margin-bottom: 12px;
}

.travel-card > p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.hotel-block {
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border-left: 3px solid var(--sage-muted);
}

.hotel-block:last-child {
  margin-bottom: 0;
}

.hotel-block h4 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 4px;
}

.hotel-block p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.hotel-block a {
  font-size: 0.85rem;
  font-weight: 500;
}

/* --- FAQs --- */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.faq-item:first-child {
  border-top: 1px solid rgba(0,0,0,0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text);
  text-align: left;
  transition: color var(--transition);
}

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

.faq-icon {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--terracotta);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  /* max-height set dynamically by JS to exact scrollHeight — no cutoff */
}

.faq-answer p {
  padding-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- RSVP --- */
.rsvp-intro {
  text-align: center;
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.rsvp-form {
  max-width: 520px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(125, 142, 110, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group 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 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* --- Choice Buttons (replaces old radio styles) --- */
.choice-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.choice-btn {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-light);
  background: var(--cream);
  user-select: none;
}

.choice-btn:hover {
  border-color: var(--sage-muted);
  color: var(--text);
  background: var(--white);
}

.choice-btn.selected {
  border-color: var(--sage);
  background: var(--sage-light);
  color: var(--sage-dark);
  font-weight: 500;
}

.choice-btn input[type="radio"],
.choice-btn input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Event toggle buttons (checkbox-style, multi-select) */
.choice-btn--event {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  min-width: 130px;
}

.choice-btn--event .choice-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.choice-btn--event strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.choice-btn--event small {
  font-size: 0.73rem;
  color: var(--text-lighter);
  font-weight: 400;
  letter-spacing: 0.3px;
}

.choice-btn--event.selected strong {
  color: var(--sage-dark);
}

.choice-btn--event::after {
  content: '';
  position: absolute;
  top: 9px;
  right: 10px;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  background: var(--white);
  transition: all var(--transition);
}

.choice-btn--event.selected::after {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  line-height: 16px;
  text-align: center;
}

.choice-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.choice-text {
  line-height: 1.2;
}

.choice-btn--num {
  flex: 0 0 auto;
  min-width: 56px;
  width: 56px;
  padding: 12px 8px;
  font-size: 1rem;
  font-weight: 400;
}

.choice-group--sm {
  gap: 8px;
}

/* --- RSVP Form Reveal Sections --- */
.form-hint {
  font-size: 0.78rem;
  color: var(--text-lighter);
  margin-top: 6px;
}

.form-reveal {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}

.form-reveal.visible {
  max-height: 1800px;
  opacity: 1;
}

/* Guest rows */
.guest-row {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 12px;
  border-left: 3px solid var(--sage-muted);
}

.guest-row-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* For guest row 1, only meal pref (no name field, full width) */
#guestRow1 .form-row {
  grid-template-columns: 1fr;
  max-width: 260px;
}

/* --- Registry updates --- */
.honeymoon-label {
  font-size: 1.3rem;
  margin-top: 10px;
  letter-spacing: 4px;
}

.registry-img-fallback {
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--cream);
}

.registry-zola-cta {
  text-align: center;
  padding: 40px 0 8px;
  border-top: 1px solid var(--cream-dark);
  margin-top: 8px;
}

.registry-zola-tagline {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.btn--registry {
  display: inline-block;
  padding: 16px 48px;
  background: var(--sage-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all var(--transition);
}

.btn--registry:hover {
  background: var(--sage);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  border: none;
}

.btn--primary {
  background: var(--sage-dark);
  color: var(--white);
  width: 100%;
  padding: 16px;
}

.btn--primary:hover {
  background: var(--sage);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  border: 1.5px solid var(--sage);
  color: var(--sage-dark);
  background: transparent;
  padding: 12px 28px;
}

.btn--outline:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: var(--white);
}

/* RSVP Success */
.rsvp-success {
  text-align: center;
  padding: 48px 24px;
}

.success-icon {
  color: var(--sage);
  margin-bottom: 16px;
}

.rsvp-success h3 {
  font-size: 2rem;
  color: var(--sage-dark);
  margin-bottom: 12px;
}

.rsvp-success p {
  font-size: 1rem;
  color: var(--text-light);
}

/* --- Registry --- */
.registry-intro {
  text-align: center;
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.registry-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.registry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.registry-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.registry-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.registry-card--honeymoon .registry-card-image {
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--terracotta-light) 100%);
}

.honeymoon-icon {
  color: var(--sage-dark);
}

.registry-placeholder {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-light);
  text-align: center;
  padding: 20px;
}

.registry-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.registry-card-body h3 {
  font-size: 1.3rem;
  color: var(--sage-dark);
  margin-bottom: 8px;
}

.registry-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.registry-price {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.registry-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-lighter);
  font-style: italic;
}

/* --- Footer --- */
.footer {
  background: var(--sage-dark);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.footer-title {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 8px;
}

.footer-title span {
  font-style: italic;
  color: var(--terracotta-light);
}

.footer-date {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 20px;
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  margin: 0 auto 20px;
}

.footer-hashtag {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.8;
}

/* --- Location / Venue --- */
.venue-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

/* --- Venue Carousel (TC photos) --- */
.venue-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.venue-carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.venue-carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.venue-carousel-slide.active {
  opacity: 1;
}

.venue-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.75);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  backdrop-filter: blur(4px);
  transition: background var(--transition), transform var(--transition);
  z-index: 2;
  padding: 0;
}

.venue-carousel-btn:hover {
  background: rgba(255, 255, 255, 0.95);
}

.venue-carousel-btn--prev { left: 10px; }
.venue-carousel-btn--next { right: 10px; }

.venue-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.venue-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.venue-carousel-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* POI wider section */
.poi-section-container {
  padding-top: 48px;
  padding-bottom: 16px;
}

.poi-section-header {
  margin-bottom: 24px;
}

.poi-section-header .subsection-title {
  margin-bottom: 8px;
}

.venue-info h3 {
  font-size: 2rem;
  color: var(--sage-dark);
  margin-bottom: 16px;
}

.venue-tagline {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.venue-detail {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
}

.venue-address {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.venue-address svg {
  color: var(--terracotta);
  flex-shrink: 0;
}

.lodging-notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--terracotta-light);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 56px;
  border-left: 4px solid var(--terracotta);
}

.lodging-notice-icon {
  color: var(--terracotta);
  flex-shrink: 0;
  margin-top: 2px;
}

.lodging-notice h4 {
  font-size: 1.1rem;
  color: var(--terracotta-dark);
  margin-bottom: 8px;
}

.lodging-notice p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

.subsection-title {
  font-size: 1.6rem;
  color: var(--sage-dark);
  margin-bottom: 12px;
  margin-top: 8px;
}

.subsection-intro {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Things to Do Grid */
.things-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.thing-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.thing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.thing-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.thing-card h4 {
  font-size: 1.15rem;
  color: var(--sage-dark);
  margin-bottom: 8px;
}

.thing-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Timeline Sub-Events (wedding day detail) */
.timeline-sub-events {
  margin: 16px 0;
}

.timeline-sub {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.timeline-sub:last-child {
  border-bottom: none;
}

.timeline-sub .timeline-time {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--terracotta);
  min-width: 120px;
  margin-bottom: 0;
}

.timeline-sub p:not(.timeline-time) {
  font-size: 0.95rem;
  color: var(--text);
}

/* --- POI Map Layout --- */
.poi-section-container {
  padding-top: 48px;
  padding-bottom: 48px;
}

.poi-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  height: calc(100vh - 92px);
  align-items: stretch;
}

/* Left column: header on top, cards fill the rest and scroll */
.poi-left-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.poi-left-header {
  flex-shrink: 0;
  padding-bottom: 20px;
}

.poi-left-header .subsection-title {
  margin-bottom: 8px;
}

/* Tab bar — sits between header and scrollable panel area */
.poi-tabs {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--sage-light);
  margin-bottom: 14px;
}

.poi-tab {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sage-dark);
  background: none;
  border: 1.5px solid var(--sage-light);
  border-radius: 30px;
  padding: 8px 6px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.poi-tab:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
  background: var(--terracotta-light);
}

.poi-tab.active {
  color: var(--white);
  background: var(--sage-dark);
  border-color: var(--sage-dark);
}

/* Scrollable panel area — replaces old .poi-cards */
.poi-tab-panels {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  scroll-behavior: smooth;
  min-height: 0; /* required for flex overflow to work */
}

/* Custom scrollbar */
.poi-tab-panels::-webkit-scrollbar {
  width: 4px;
}
.poi-tab-panels::-webkit-scrollbar-track {
  background: transparent;
}
.poi-tab-panels::-webkit-scrollbar-thumb {
  background: var(--sage-muted);
  border-radius: 4px;
}

/* Each tab panel = column of cards */
.poi-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.poi-tab-panel[hidden] {
  display: none;
}

.poi-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
  border: 1.5px solid transparent;
}

.poi-card:hover {
  box-shadow: var(--shadow-md);
}

.poi-card.active {
  border-color: var(--sage);
}

.poi-card-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}

.poi-card-header:hover {
  background: var(--cream);
}

.poi-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text);
  flex-grow: 1;
  line-height: 1.3;
}

.poi-drive {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--terracotta);
  white-space: nowrap;
  background: var(--terracotta-light);
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}

.poi-chevron {
  font-size: 1.2rem;
  color: var(--text-lighter);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.poi-card.open .poi-chevron {
  transform: rotate(90deg);
}

.poi-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.poi-card.open .poi-card-body {
  max-height: 300px;
}

.poi-card-body p {
  padding: 0 16px 12px;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
  border-top: 1px solid var(--cream-dark);
  padding-top: 12px;
}

.poi-directions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 16px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--sage-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.poi-directions:hover {
  color: var(--terracotta);
}

/* Map wrapper — sticky, fills full height of the grid row */
.poi-map-wrapper {
  position: sticky;
  top: 92px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: calc(100vh - 92px);
}

#poiMap {
  width: 100%;
  height: 100%;
}

/* Mapbox popup style overrides */
.mapboxgl-popup-content {
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-md) !important;
  font-family: var(--font-body) !important;
  padding: 12px 16px !important;
}

.mapboxgl-popup-tip {
  border-top-color: white !important;
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Tablet */
@media (max-width: 900px) {
  .registry-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .photo-grid-item--wide {
    grid-column: span 2;
  }

  .venue-hero {
    grid-template-columns: 1fr;
  }

  .venue-carousel {
    aspect-ratio: 16 / 9;
  }

  .poi-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .poi-left-col {
    height: auto;
    overflow: visible;
  }

  .poi-tab-panels {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }

  .poi-map-wrapper {
    position: relative;
    top: 0;
    height: 420px;
    order: -1; /* map on top on tablet */
  }
}

/* Mobile */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 64px;
  }

  .nav-inner {
    height: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: var(--text) !important;
    font-size: 0.85rem;
    padding: 16px 0;
    display: block;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .nav-links a:hover {
    color: var(--terracotta) !important;
  }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero-pre {
    font-size: 0.7rem;
  }

  .section {
    padding: 72px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-divider {
    margin-bottom: 36px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .carousel-btn--prev { left: 12px; }
  .carousel-btn--next { right: 12px; }

  .carousel-dots {
    bottom: 100px;
  }

  .photo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .photo-grid-item--wide {
    grid-column: span 2;
    aspect-ratio: 16/9;
  }

  .photo-grid-item {
    aspect-ratio: 1;
  }

  .timeline {
    padding-left: 32px;
  }

  .timeline-event::before {
    left: -28px;
    width: 10px;
    height: 10px;
  }

  .timeline-card {
    padding: 24px;
  }

  .travel-card {
    padding: 28px;
  }

  .radio-group {
    flex-direction: column;
    gap: 12px;
  }

  .registry-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .scroll-indicator {
    bottom: 24px;
  }

  .things-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .thing-card {
    padding: 20px 16px;
  }

  .lodging-notice {
    flex-direction: column;
    gap: 12px;
    padding: 24px;
  }

  .timeline-sub {
    flex-direction: column;
    gap: 2px;
  }

  .timeline-sub .timeline-time {
    min-width: auto;
  }

  .poi-map-wrapper {
    height: 360px;
  }

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

/* Small phones */
@media (max-width: 400px) {
  .container,
  .container--narrow {
    padding: 0 16px;
  }

  .hero-cta {
    padding: 12px 36px;
  }

  .timeline-card h3 {
    font-size: 1.3rem;
  }
}

/* Print styles */
@media print {
  .nav, .carousel-btn, .carousel-dots, .scroll-indicator, .hero-cta {
    display: none;
  }

  .hero {
    height: auto;
    min-height: 0;
    padding: 40px;
  }

  .section {
    padding: 40px 0;
  }
}
