/* ========================================
   Jenna & Liam Wedding Website
   ======================================== */

/* ---------- 1. Custom Properties ---------- */
:root {
  --color-bg: #ffffff;
  --color-text: #3a3a3a;
  --color-text-light: #6b6b6b;
  --color-heading: #2c3e2d;
  --color-sage: #7a9a6d;
  --color-sage-light: #e8efe5;
  --color-sage-hover: #5c7a4e;
  --color-gold: #b8a88a;
  --color-brown: #8b7355;
  --color-border: #e8e4df;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 900px;
  --section-padding: 5rem 1.5rem;
  --nav-height: 56px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- 3. Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--color-heading);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

p {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 4. Layout ---------- */
.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-padding);
  text-align: center;
}

.section-heading {
  margin-bottom: 0.5rem;
}

.section-divider {
  width: 50px;
  height: 1px;
  background: var(--color-border);
  margin: 0 auto 2.5rem;
}

.section-intro {
  margin-bottom: 2.5rem;
  color: var(--color-text-light);
}

/* ---------- 5. Header / Crest ---------- */
.site-header {
  text-align: center;
  padding: 1.5rem 1.5rem 1.25rem;
}

.crest {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.oak-crest {
  width: clamp(150px, 40vw, 260px);
  height: auto;
}

.couple-names {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.ampersand {
  font-style: italic;
  font-weight: 300;
}

.wedding-meta {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ---------- 6. Countdown ---------- */
.countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 300;
  color: var(--color-heading);
  line-height: 1.2;
}

.countdown-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-top: 0.2rem;
}

.countdown-message {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--color-sage);
}

/* ---------- 7. Navigation ---------- */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 1.5rem;
  position: relative;
}

.nav-brand {
  display: none;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--color-heading);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.nav-active {
  color: var(--color-sage);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-text);
  margin: 5px 0;
  transition: all 0.3s ease;
}

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

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

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

/* ---------- 8. Hero ---------- */
.hero {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
}

.hero img {
  width: 100%;
  max-height: 75vh;
  object-fit: cover;
  object-position: center 62%;
}

/* ---------- 9. Our Story ---------- */

/* Left-align story text */
.our-story-section {
  text-align: left;
}

.our-story-section .section-heading,
.our-story-section .section-divider {
  text-align: center;
}

.our-story-section .section-divider {
  margin-left: auto;
  margin-right: auto;
}

.story-block {
  margin-bottom: 2.5rem;
}

.story-block p {
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.85;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1rem;
}

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

/* Story photo strips */
.story-photos {
  position: relative;
  margin-bottom: 2.5rem;
}

/* Inner wrapper clips the photos but lets arrows sit outside */
.story-photos-track-container {
  overflow: hidden;
}

.story-photos-track {
  display: flex;
  gap: 0.75rem;
  transition: transform 0.4s ease;
}

.story-photos-track img {
  height: 240px;
  width: auto;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.story-photos-track img:hover {
  opacity: 0.85;
}

/* Story photo strip arrows */
.story-photos-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.story-photos-arrow:hover {
  background: white;
  border-color: var(--color-sage);
  color: var(--color-sage);
}

.story-photos-arrow--left {
  left: -3rem;
}

.story-photos-arrow--right {
  right: -3rem;
}

.story-photos-arrow[disabled] {
  opacity: 0;
  pointer-events: none;
}

/* Story photo grid — simple image row, no carousel */
.story-photos-grid {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

/* Default grid: equal-width images (works for prom, grad where photos are similar) */
.story-photos-grid img {
  flex: 1;
  min-width: 0;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.story-photos-grid img:hover {
  opacity: 0.85;
}

/* Flex-fit grid: images keep their natural aspect ratios but fill the full width together */
.story-photos-grid--fit img {
  flex: none;
  aspect-ratio: auto;
  height: 240px;
  width: auto;
}

/* Lightbox overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-caption {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1rem;
  text-align: center;
  max-width: none;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1101;
  padding: 0.5rem;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1101;
  padding: 1rem;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.lightbox-arrow:hover {
  opacity: 0.7;
}

.lightbox-arrow--left {
  left: 0.5rem;
}

.lightbox-arrow--right {
  right: 0.5rem;
}

/* ---------- 10. Travel ---------- */
.travel-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
}

.travel-card {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
}

.travel-card h3 {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.travel-card p {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  font-size: 0.88rem;
  line-height: 1.6;
}

.travel-name {
  font-family: var(--font-serif);
  font-size: 1.05rem !important;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 0.1rem;
}

.travel-item {
  margin-bottom: 1rem;
}

.travel-item:last-child {
  margin-bottom: 0;
}

/* ---------- 11. Things to Do ---------- */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.activity-card {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
}

.activity-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.activity-card p {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---------- 11b. Things to Do — Area Sections ---------- */
.area-section {
  margin-bottom: 3rem;
  text-align: left;
}

.area-section:last-child {
  margin-bottom: 0;
}

.area-heading {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-heading);
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.area-note {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 300;
  font-style: italic;
  color: var(--color-text-light);
  max-width: none;
  margin-bottom: 1.5rem;
  text-align: center;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.spot-card {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

/* Container needs positioning so the fade overlay can layer on top */
.spot-card-img {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.spot-card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Hidden overlay image that fades in during photo rotation */
.spot-card-img .fade-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.spot-card-img .fade-overlay.active {
  opacity: 1;
}

.spot-card-info {
  padding: 1.25rem;
}

.spot-card-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 0.2rem;
}

.spot-card-type {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 0.75rem;
  max-width: none;
}

.spot-card-desc {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text-light);
  line-height: 1.6;
  max-width: none;
  margin-bottom: 1rem;
}

/* Inline links within card descriptions */
.spot-card-desc a {
  color: var(--color-sage);
  font-weight: 400;
  text-decoration: underline;
}

.spot-card-desc a:hover {
  color: var(--color-sage-hover);
}

.spot-card-map {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.spot-card-map iframe {
  width: 100%;
  height: 180px;
  border: 0;
  display: block;
}

/* ---------- 12. Photo Gallery ---------- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.photo-gallery img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.photo-gallery img:hover {
  opacity: 0.9;
}

/* ---------- 13. Wedding Party ---------- */
.party-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 600px;
  margin: 0 auto;
}

.party-group h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.party-member {
  margin-bottom: 1.25rem;
}

.member-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-heading);
  max-width: none;
}

.member-role {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  max-width: none;
}

/* ---------- 13b. Wedding Party Carousel ---------- */
.carousel-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 100%;
  margin-bottom: 2rem;
}

.carousel-column {
  min-width: 0;
}

.carousel-group-title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.carousel {
  position: relative;
  margin: 0 auto 1.5rem;
  padding: 0 0.5rem;
}

.carousel-track-container {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: 100%;
  text-align: center;
  padding: 0;
}

.slide-portrait {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  overflow: hidden;
  background: var(--color-sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-placeholder {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.carousel-slide .member-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-heading);
  max-width: none;
  margin-bottom: 0.15rem;
}

.carousel-slide .member-role {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  max-width: none;
  margin-bottom: 0.75rem;
}

.member-desc {
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.6;
  max-width: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  background: none;
  border: 1px solid var(--color-border);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 0;
  color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}

.carousel-arrow::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--color-text-light);
  border-right: 2px solid var(--color-text-light);
  transition: border-color 0.3s ease;
}

.carousel-arrow:hover {
  border-color: var(--color-sage);
}

.carousel-arrow:hover::after {
  border-color: var(--color-sage);
}

.carousel-arrow--left {
  left: 0;
}

.carousel-arrow--left::after {
  transform: rotate(-135deg);
  margin-left: 3px;
}

.carousel-arrow--right {
  right: 0;
}

.carousel-arrow--right::after {
  transform: rotate(45deg);
  margin-right: 3px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dot.active {
  background: var(--color-sage);
}

@media (max-width: 768px) {
  .carousel-pair {
    grid-template-columns: 1fr;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 1.5rem;
    padding-bottom: 0.5rem;
  }

  .carousel-column {
    min-width: 85vw;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .carousel {
    padding: 0 0.25rem;
  }

  .slide-portrait {
    width: 150px;
    height: 150px;
  }

  .carousel-arrow {
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
  }

  .carousel-column {
    min-width: 90vw;
  }
}

/* ---------- 14. Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin-top: 2.5rem;
  text-align: left;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-sage);
  transform: translateX(-5px);
}

.timeline-date {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 0.25rem;
}

.timeline-event {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 0.2rem;
}

.timeline-time {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.timeline-details p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.timeline-location a {
  color: var(--color-sage);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.timeline-location a:hover {
  border-bottom-color: var(--color-sage);
}

.timeline-map {
  margin-top: 1rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.timeline-map iframe {
  width: 100%;
  height: 200px;
  border: 0;
  display: block;
}

/* ---------- 15. Registry ---------- */
.registry-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.registry-btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--color-heading);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-heading);
  transition: all 0.3s ease;
}

.registry-btn:hover {
  background: var(--color-heading);
  color: white;
}

/* ---------- 15. RSVP Form ---------- */
.rsvp-form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-text);
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-bottom-color: var(--color-sage);
}

.form-group textarea {
  border: 1px solid var(--color-border);
  padding: 0.75rem;
  resize: vertical;
  margin-top: 0.25rem;
}

.form-group textarea:focus {
  border-color: var(--color-sage);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 1rem;
  padding-right: 1.5rem;
}

.radio-group {
  display: flex;
  gap: 2rem;
  margin-top: 0.4rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 300 !important;
  color: var(--color-text) !important;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: var(--color-sage);
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--color-heading);
  color: white;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 0.5rem;
}

.submit-btn:hover {
  background: var(--color-sage-hover);
}

/* ---------- 15b. Welcome Section (Home) ---------- */
.welcome-section {
  padding-top: 2.5rem;
}

.welcome-section p {
  line-height: 1.85;
}

.welcome-date {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-heading);
  letter-spacing: 0.03em;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  max-width: none;
}

.rsvp-cta {
  display: inline-block;
  padding: 1rem 3rem;
  border: 1px solid var(--color-heading);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-heading);
  transition: all 0.3s ease;
}

.rsvp-cta:hover {
  background: var(--color-heading);
  color: white;
}

/* ---------- 15b. RSVP Multi-Step ---------- */
.rsvp-form-container {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  min-height: 300px;
}

.rsvp-step {
  display: none;
  animation: fadeInStep 0.4s ease;
}

.rsvp-step.active {
  display: block;
}

@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-heading);
  text-align: center;
  margin-bottom: 0.5rem;
}

.step-description {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Progress dots */
.rsvp-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background 0.3s ease, transform 0.3s ease;
}

.progress-dot.active {
  background: var(--color-sage);
  transform: scale(1.3);
}

.progress-dot.completed {
  background: var(--color-sage);
}

.progress-line {
  width: 40px;
  height: 1px;
  background: var(--color-border);
}

/* Search results */
.search-results {
  margin-top: 0.5rem;
}

.search-result-item {
  display: block;
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: none;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-heading);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}

.search-result-item:hover {
  color: var(--color-sage);
}

.no-results,
.search-loading {
  font-size: 0.88rem;
  color: var(--color-text-light);
  font-style: italic;
  text-align: center;
  padding: 1rem 0;
}

/* Party member rows */
.party-member-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.party-member-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-heading);
  flex: 1;
}

.attendance-select {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--color-heading);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  flex-shrink: 0;
}

.attendance-select:focus {
  outline: none;
  border-color: var(--color-sage);
}

.party-member-plusone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.plusone-name-input {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-heading);
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 0.3rem 0;
  background: transparent;
}

.plusone-name-input:focus {
  outline: none;
  border-bottom-color: var(--color-sage);
}

/* Attendee list (confirmation screen) */
.attendee-section {
  margin-top: 1rem;
}

.attendee-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: left;
  max-width: 560px;
  margin: 0 auto;
}

.attendee-group-heading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--color-heading);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
}

.attendee-party {
  margin-bottom: 0.75rem;
}

.attendee-name {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}

.attendee-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .attendee-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Meal selections */
.meal-guest-group {
  margin-bottom: 2rem;
}

.meal-guest-group:last-child {
  margin-bottom: 0;
}

.meal-guest-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 1rem;
}

.meal-options {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.meal-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  cursor: pointer;
  padding: 0.5rem 0.5rem;
}

.meal-option input[type="radio"] {
  accent-color: var(--color-sage);
  flex-shrink: 0;
}

.meal-option-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.meal-option-header {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text);
}

.meal-option-description {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--color-text-light);
}

/* Step navigation */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}

.step-btn {
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.step-btn--back {
  background: none;
  color: var(--color-text-light);
  padding-left: 0;
}

.step-btn--back:hover {
  color: var(--color-text);
}

.step-btn--skip {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
}

.step-btn--skip:hover {
  border-color: var(--color-text-light);
  color: var(--color-text);
}

.step-btn--next,
.step-btn--submit {
  background: var(--color-heading);
  color: white;
  margin-left: auto;
}

.step-btn--next:hover,
.step-btn--submit:hover {
  background: var(--color-sage-hover);
}

.step-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Validation modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  background: white;
  border-radius: 8px;
  padding: 2.5rem 2rem 2rem;
  max-width: 400px;
  width: 90%;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.modal-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 0.5rem;
}

.modal-message {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text-light);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.modal-btn {
  align-self: flex-end;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--color-heading);
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal-btn:hover {
  background: var(--color-sage-hover);
}

/* Photo upload */
.upload-dropzone {
  border: 2px dashed var(--color-border);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--color-sage);
  background: var(--color-sage-light);
}

.upload-text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-text);
  max-width: none;
  margin-bottom: 0.25rem;
}

.upload-hint {
  font-size: 0.78rem;
  color: var(--color-text-light);
  max-width: none;
}

.upload-preview {
  text-align: center;
}

.upload-preview img {
  max-width: 100%;
  max-height: 300px;
  margin: 0 auto 1rem;
  display: block;
  object-fit: contain;
}

.remove-photo {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  cursor: pointer;
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 480px) {
  .attendance-options {
    max-width: 100%;
  }

  .upload-dropzone {
    padding: 2rem 1rem;
  }
}

/* ---------- RSVP Mobile ---------- */
@media (max-width: 480px) {
  /* Make form container fill the screen with a bit of breathing room */
  .rsvp-form-container {
    max-width: 100%;
  }

  /* Slightly smaller step headings on mobile */
  .step-heading {
    font-size: 1.3rem;
  }

  .step-description {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }

  /* Compact progress dots so they don't crowd */
  .progress-line {
    width: 24px;
  }

  .progress-dot {
    width: 8px;
    height: 8px;
  }

  .rsvp-progress {
    margin-bottom: 1.75rem;
  }

  /* Step navigation: stack buttons vertically and center them */
  .step-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  /* Make primary action buttons full-width on mobile for easy tapping */
  .step-btn--next,
  .step-btn--submit {
    width: 100%;
    text-align: center;
    margin-left: 0;
    order: -1;
    padding: 1rem 2rem;
  }

  /* Skip then Back, centered below the primary button */
  .step-btn--back {
    order: 2;
    width: 100%;
    text-align: center;
    padding-left: 2rem;
  }

  .step-btn--skip {
    order: 1;
    width: 100%;
    text-align: center;
  }

  /* Larger touch targets for attendance dropdowns */
  .attendance-select {
    padding: 0.75rem 0.85rem;
    font-size: 0.78rem;
  }

  /* Make party member rows comfortable for tapping */
  .party-member-row {
    padding: 0.85rem 0;
    gap: 0.5rem;
  }

  .party-member-name {
    font-size: 1rem;
  }

  /* Meal options: a bit more padding for touch */
  .meal-option {
    padding: 0.6rem 0.25rem;
  }

  .meal-option input[type="radio"] {
    width: 18px;
    height: 18px;
  }

  .meal-guest-name {
    font-size: 1.05rem;
  }

  /* Search input: larger tap target */
  .form-group input[type="text"],
  .form-group textarea {
    font-size: 1rem;
    padding: 0.75rem 0;
  }

  .form-group textarea {
    padding: 0.75rem;
  }

  /* Modal: slightly tighter padding on small screens */
  .modal {
    padding: 2rem 1.5rem 1.5rem;
  }
}

/* ---------- 16. Footer ---------- */
.site-footer {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  border-top: 1px solid var(--color-border);
}

.crest--small {
  margin-bottom: 0.75rem;
}

.oak-crest--small {
  width: 100px;
  height: auto;
}

.footer-names {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-heading);
  letter-spacing: 0.04em;
}

.footer-date {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

/* ---------- 17. Responsive: Tablet ---------- */
@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem 1.25rem;
  }

  /* Nav */
  .nav-inner {
    justify-content: center;
  }

  .nav-brand {
    display: block;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.72rem;
  }

  /* Grids */
  .travel-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .activities-grid {
    grid-template-columns: 1fr 1fr;
  }

  .area-grid {
    grid-template-columns: 1fr;
  }

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

  .party-columns {
    gap: 2rem;
  }

  /* Story photo strips: touch-scrollable on tablet/mobile */
  .story-photos {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .story-photos-arrow {
    display: none;
  }

  .story-photos-track {
    transition: none;
  }

  /* Grids become swipeable strips on mobile too */
  .story-photos-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }

  .story-photos-grid img {
    flex: none;
    width: auto;
    height: 200px;
    aspect-ratio: auto;
  }

  .story-photos-grid--fit img {
    flex-grow: 0;
    height: 200px;
  }

  /* Countdown */
  .countdown {
    gap: 1rem;
  }
}

/* ---------- 18. Responsive: Mobile ---------- */
@media (max-width: 480px) {
  :root {
    --section-padding: 3rem 1rem;
  }

  .site-header {
    padding: 1.25rem 1rem 1rem;
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }

  .spot-card-info {
    padding: 1rem;
  }

  .spot-card-img {
    height: 150px;
  }

  .spot-card-img img {
    height: 150px;
  }

  .spot-card-img .fade-overlay {
    height: 150px;
  }

  .spot-card-map iframe {
    height: 150px;
  }

  .photo-gallery {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .photo-gallery img {
    aspect-ratio: 4/3;
  }

  .party-columns {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .registry-links {
    flex-direction: column;
    align-items: center;
  }

  .registry-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .countdown {
    gap: 0.75rem;
  }

  .countdown-item {
    min-width: 50px;
  }

  /* Story photos smaller on mobile */
  .story-photos-track img {
    height: 180px;
  }

  /* Lightbox arrows tighter on mobile */
  .lightbox-arrow {
    font-size: 2rem;
    padding: 0.5rem;
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.75rem;
  }
}
