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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background-color: #ffffff;
}

/* Top navigation */
.top-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: #000000;
  backdrop-filter: none;
  border-bottom: none;
}

/* Wedding page only: no nav background, hide "Alyona & Ryan", menu at far right */
.top-nav.nav-over-hero {
  background: transparent;
}

.top-nav.nav-over-hero .nav-name {
  display: none;
}

/* Wedding page only: tabs at far right (no "Alyona & Ryan" in nav) */
.top-nav.nav-over-hero .nav-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  justify-content: flex-end;
}

/* Location, Attire, Gifts, RSVP: full-width bar, name leftmost, tabs rightmost */
.nav-inner {
  width: 100%;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-family: "Great Vibes", cursive;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #ffffff;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.90);
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  position: relative;
  padding-bottom: 0.2rem;
}

/* White underline for non-RSVP links on hover */
.nav-links a:not(.nav-rsvp)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #ffffff;
  transition: width 0.2s ease;
}

.nav-links a:not(.nav-rsvp):hover::after {
  width: 100%;
}

.nav-links a:not(.nav-rsvp):hover {
  color: #ffffff;
}

.nav-rsvp {
  border: 1px solid #ffffff;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-rsvp:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

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

/* Generic hero page backgrounds when using inline style background-image */
.hero.hero-generic {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg,
.location-hero-bg,
.where-bg,
.attire-hero-bg,
.gifts-hero-bg,
.rsvp-hero-bg,
.wedding-day-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

/* Schedule banner: zoom in to crop out gray sides, keep "Mr. & Mrs." and table centered */
.wedding-day-hero .wedding-day-bg {
  background-size: 150%;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Wedding hero: fill area (no gray sides), crop ~0.5" from top to keep hands/ring in frame */
.hero .hero-bg {
  background-size: cover;
  background-position: center 48%;
  background-repeat: no-repeat;
}

.hero-overlay,
.location-hero-overlay,
.where-overlay,
.attire-hero-overlay,
.gifts-hero-overlay,
.rsvp-hero-overlay,
.wedding-day-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
}

.hero-content,
.location-hero-content,
.where-content,
.attire-hero-content,
.gifts-hero-content,
.rsvp-hero-content,
.wedding-day-content {
  position: relative;
  text-align: center;
  padding: 2.5rem 1.5rem 0.5rem;
  margin-top: 0;
}

/* Wedding hero text block positioning
   - Keep the text lines centered within the block
   - Move the entire block to the top-left so it doesn't cover faces */
.hero .hero-content {
  position: absolute;
  top: 140px;
  left: 60px;
  right: auto;
  margin-top: 0;
  padding: 0;
  max-width: 560px;
  text-align: center;
}

@media (max-width: 900px) {
  .hero .hero-content {
    top: 120px;
    left: 24px;
    max-width: 80vw;
  }
}

.hero-title {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: clamp(2.8rem, 5vw, 4rem);
}

.hero-content h1 {
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  letter-spacing: 0.08em;
}

.hero-date {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.hero .hero-title,
.hero .hero-date {
  color: #ffffff;
}

.hero-rsvp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
  padding: 0.8rem 2.6rem;
  border-radius: 2px;
  border: 1px solid #ffffff;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-rsvp:hover {
  background-color: #ffffff;
  color: #000000;
}

/* WEDDING INDEX CONTENT */
.intro-section {
  background-color: #ffffff;
  padding: 5rem 1.5rem 2rem;
  border-top: 1px solid #f3f4f6;
}

.intro-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.intro-lead {
  font-size: 1.4rem;
  line-height: 1.6;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.story-card {
  text-align: left;
}

.story-image-wrap {
  width: 100%;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.story-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.story-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.story-text {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
}

/* Wedding day */
.wedding-day-section {
  background-color: #ffffff;
  border-top: 1px solid #f3f4f6;
  padding-top: 1.5rem;
  scroll-margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.wedding-day-section .wedding-day-content {
  padding-top: 1rem;
}

.wedding-day-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.wedding-day-content {
  color: #111827;
  position: relative;
  z-index: 2;
}

.wedding-day-content h2 {
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  color: #111827;
  visibility: visible;
}

.wedding-day-content p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.wedding-day-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 5rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  text-align: center;
}

/* Wedding page: central timeline with vertical line + hearts, events alternating left/right */
.schedule-timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1rem;
}

.schedule-timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #374151;
  margin-left: -1px;
  z-index: 0;
}

.schedule-timeline-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 2.5rem 1fr;
  grid-template-rows: repeat(4, auto);
  gap: 0 0.5rem;
  align-items: start;
}

.schedule-timeline-heart:nth-child(1) { grid-area: 1 / 2; }
.schedule-event:nth-child(2) { grid-area: 1 / 3; }
.schedule-timeline-heart:nth-child(3) { grid-area: 2 / 2; }
.schedule-event:nth-child(4) { grid-area: 2 / 1; }
.schedule-timeline-heart:nth-child(5) { grid-area: 3 / 2; }
.schedule-event:nth-child(6) { grid-area: 3 / 3; }
.schedule-timeline-heart:nth-child(7) { grid-area: 4 / 2; }
.schedule-event:nth-child(8) { grid-area: 4 / 1; }

.schedule-timeline-heart {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0;
  color: #374151;
  line-height: 0;
}

.schedule-timeline-heart .schedule-heart-icon {
  width: 1rem;
  height: 1rem;
}

.schedule-event {
  padding: 0.5rem 0 1.5rem;
}

.schedule-event-content {
  max-width: 36em;
}

.schedule-event--right .schedule-event-content {
  margin-left: 1.25rem;
  text-align: left;
}

.schedule-event--left .schedule-event-content {
  margin-right: 1.25rem;
  margin-left: auto;
  text-align: right;
}

.schedule-event h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.25rem;
}

.schedule-event-time {
  font-size: 0.9rem;
  color: #4b5563;
  margin: 0 0 0.75rem;
}

.schedule-event-body {
  margin-bottom: 0.75rem;
}

.schedule-event-body .schedule-text {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4b5563;
}

.schedule-event-body .schedule-text:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .schedule-timeline-line {
    display: none;
  }

  .schedule-timeline-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(8, auto);
  }

  .schedule-timeline-heart:nth-child(1) { grid-area: 1 / 1; }
  .schedule-event:nth-child(2) { grid-area: 2 / 1; }
  .schedule-timeline-heart:nth-child(3) { grid-area: 3 / 1; }
  .schedule-event:nth-child(4) { grid-area: 4 / 1; }
  .schedule-timeline-heart:nth-child(5) { grid-area: 5 / 1; }
  .schedule-event:nth-child(6) { grid-area: 6 / 1; }
  .schedule-timeline-heart:nth-child(7) { grid-area: 7 / 1; }
  .schedule-event:nth-child(8) { grid-area: 8 / 1; }

  .schedule-event--left .schedule-event-content,
  .schedule-event--right .schedule-event-content {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    text-align: left;
  }
}

/* Wedding page: vertical schedule list — time left, vertical line, description right (fallback/other pages) */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}

.schedule-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e5e7eb;
}

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

.schedule-row .schedule-time {
  flex-shrink: 0;
  width: 5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.schedule-divider {
  flex-shrink: 0;
  width: 1px;
  min-height: 3rem;
  background-color: #d1d5db;
  align-self: stretch;
}

.schedule-detail {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.schedule-detail h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: #111827;
}

.schedule-detail .schedule-text {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

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

.schedule-column h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.schedule-time {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.schedule-text {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
}

/* LOCATION PAGE */
.location-section {
  background-color: #ffffff;
  border-top: 1px solid #f3f4f6;
}

.location-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate; /* keep banner image above section’s white background */
}

/* Location hero: use <img> so the photo loads when opening via file:// in browser */
.location-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
}

.location-hero .location-hero-overlay {
  z-index: 1;
}

.location-hero .location-hero-content {
  z-index: 2;
  color: #ffffff;
}

.location-hero-content h2 {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: clamp(2.8rem, 5vw, 4rem);
  letter-spacing: 0;
  color: #ffffff;
}

.location-hero-content p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #ffffff;
}

.location-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.location-block + .location-block {
  margin-top: 3.5rem;
}

.location-block h3 {
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 1rem;
  color: #111827;
}

.location-text {
  font-size: 0.95rem;
  color: #4b5563;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Full-bleed wrapper so maps row can extend to viewport width */
.location-maps-row-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

.location-maps-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
  max-width: none;
  margin: 0 auto;
  /* Map 1 dictates size: row height = (row width / 3) / (4/3) = row width / 4 → aspect-ratio 4 */
  aspect-ratio: 4;
  min-height: 0;
}

.location-maps-row .map-wrap {
  margin: 0;
  max-width: none;
  min-height: 0;
  display: flex;
  border: 1px solid #e5e7eb;
}

.location-maps-row .map-wrap iframe {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
}

.location-maps-row .location-map-cell {
  border: 1px solid #e5e7eb;
  overflow: hidden;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}

.location-maps-row .location-map-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .location-maps-row {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  .location-maps-row .map-wrap {
    min-height: 280px;
  }

  .location-maps-row .map-wrap iframe {
    min-height: 280px;
  }

  .location-maps-row .location-map-cell {
    min-height: 280px;
  }
}

.map-wrap {
  margin: 0 auto;
  max-width: 640px;
  border: 1px solid #e5e7eb;
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

.location-directions-lead {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.location-room-block-intro {
  margin-top: 1.5rem;
}

.location-other-options-intro {
  margin-top: 2em;
}

.location-map-images {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem;
  margin: 0 auto;
  max-width: 960px;
}

/* When inside .location-maps-row, layout is controlled by .location-maps-row rules above */

.location-map-img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #e5e7eb;
  object-fit: cover;
}

.location-map-img-first {
  min-height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .location-map-images {
    grid-template-columns: 1fr;
  }
}

.location-block.where-to-stay {
  margin-top: 0.5rem;
  padding-top: 2em;
}

.where-to-stay .where-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1.5rem;
  isolation: isolate;
}

.where-to-stay .where-bg {
  z-index: 0;
}

.where-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.where-to-stay .where-overlay {
  z-index: 1;
}

.where-to-stay .where-content {
  z-index: 2;
}

.where-content h3 {
  font-weight: 300;
  font-size: 2rem;
  letter-spacing: 0.08em;
}

.where-content p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.hotel-block-single {
  margin-top: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hotel-column-centered {
  text-align: center;
}

.hotel-column-centered .hotel-meta {
  justify-content: center;
}

.hotel-column-centered .icon-inline {
  justify-content: center;
}

.hotel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.hotel-column h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.hotel-column p {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
}

/* Attire page */
.attire-section {
  background-color: #ffffff;
  border-top: 1px solid #f3f4f6;
}

.attire-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.attire-hero .attire-hero-bg {
  z-index: 0;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.attire-hero .attire-hero-overlay {
  z-index: 1;
}

.attire-hero .attire-hero-content {
  z-index: 2;
}

.attire-hero-content h2 {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: clamp(2.8rem, 5vw, 4rem);
  letter-spacing: 0;
  color: #ffffff;
}

.attire-hero-content p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #ffffff;
}

.attire-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.attire-heading {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 1rem;
}

.attire-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.attire-intro p {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.attire-intro p:last-child {
  margin-bottom: 0;
}

.attire-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.attire-card {
  text-align: center;
}

.attire-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: #111827;
}

.attire-image-wrap {
  margin-top: 0;
}

.attire-image-wrap--ladies {
  background-color: #ffffff;
}

.attire-image-wrap--gentlemen {
  background-color: #f8f9fa;
}

.attire-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 320px;
  object-position: center;
}

.attire-image--gentlemen {
  filter: sepia(0.12) saturate(1.05);
}

/* Gifts page */
.gifts-section {
  background-color: #ffffff;
  border-top: 1px solid #f3f4f6;
}

.gifts-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.gifts-hero .gifts-hero-bg {
  z-index: 0;
}

.gifts-hero .gifts-hero-overlay {
  z-index: 1;
}

.gifts-hero .gifts-hero-content {
  z-index: 2;
  color: #ffffff;
}

.gifts-hero-content h2 {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: clamp(2.8rem, 5vw, 4rem);
  letter-spacing: 0;
  color: #ffffff;
}

.gifts-hero-content p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #ffffff;
}

.gifts-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}

.gifts-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.gifts-intro p {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.65;
  margin: 0;
}

.gifts-heading {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
}

.gifts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  text-align: left;
}

.gift-card {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
}

.gift-card a {
  word-break: break-word;
}

.gift-payment-details {
  margin-top: 0.75rem;
  text-align: left;
}

.gift-payment-details p {
  margin-bottom: 0.75rem;
}

.gift-payment-details p:last-child {
  margin-bottom: 0;
}

.gift-number {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.gift-qr-wrap {
  margin-top: 1rem;
}

.gift-qr {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* RSVP page */
.rsvp-section {
  background-color: #ffffff;
  border-top: 1px solid #f3f4f6;
}

.rsvp-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.rsvp-hero .rsvp-hero-bg {
  z-index: 0;
}

.rsvp-hero .rsvp-hero-overlay {
  z-index: 1;
}

.rsvp-hero .rsvp-hero-content {
  z-index: 2;
  color: #ffffff;
}

.rsvp-hero-content h2 {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: clamp(2.8rem, 5vw, 4rem);
  letter-spacing: 0;
  color: #ffffff;
}

.rsvp-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.rsvp-intro {
  font-size: 1.4rem;
  color: #111827;
  text-align: center;
  margin-bottom: 2rem;
}

.rsvp-decline-message {
  margin: 0 0 2rem;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#rsvp-followup {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#rsvp-after-guest-count {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  width: 100%;
}

.form-row-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.85rem;
  color: #374151;
}

.rsvp-form-note {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.45;
  margin: 0 0 0.25rem;
}

.required {
  font-size: 0.8rem;
  color: #9b1c1c;
}

.field-error {
  font-size: 0.8rem;
  color: #9b1c1c;
  line-height: 1.35;
  margin: 0.1rem 0 0;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid #d1d5db;
  padding: 0.6rem 0.7rem;
  font-size: 0.9rem;
  border-radius: 2px;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #111827;
}

.rsvp-submit {
  border: 1px solid #111827;
  background-color: #ffffff;
  padding: 0.8rem 2.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  align-self: flex-start;
  cursor: pointer;
}

.rsvp-submit:hover {
  background-color: #111827;
  color: #ffffff;
}

/* FOOTER */
.site-footer {
  background-color: #000000;
  color: #f9fafb;
  padding: 1.5rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.footer-names {
  font-family: "Great Vibes", cursive;
  font-size: 1.55rem;
  color: #ffffff;
}

.footer-rsvp-link,
.footer-luth-link {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-rsvp-link {
  color: #fbbf24;
  text-decoration: none;
}

.footer-rsvp-link:hover {
  text-decoration: underline;
}

.footer-luth-link {
  color: #9ca3af;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.footer-luth-link:hover {
  color: #fbbf24;
  text-decoration: underline;
}

/* Luth owner dashboard */
.luth-dashboard-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.luth-dashboard-page .luth-dashboard {
  flex: 1;
}

.luth-dashboard {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 3rem;
  width: 100%;
}

.luth-dashboard-hero {
  margin-bottom: 2rem;
}

.luth-dashboard-title {
  font-family: "Great Vibes", cursive;
  font-size: 2.75rem;
  font-weight: 400;
  color: #111827;
  margin-bottom: 0.75rem;
}

.luth-dashboard-lead {
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
  max-width: 52rem;
}

.luth-panel {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.5rem;
}

.luth-panel-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
}

.luth-import-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.luth-file-label {
  cursor: pointer;
}

.luth-file-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.luth-btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  background: #111827;
  border: 1px solid #111827;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

.luth-btn:hover {
  background: #000000;
}

.luth-btn-secondary {
  background: #374151;
  border-color: #374151;
}

.luth-btn-secondary:hover {
  background: #1f2937;
}

.luth-btn-ghost {
  background: transparent;
  color: #374151;
  border-color: #d1d5db;
}

.luth-btn-ghost:hover {
  background: #f3f4f6;
}

.luth-checkbox-label {
  font-size: 0.85rem;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.luth-status {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.luth-qr-widget {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  margin-bottom: 1rem;
}

.luth-qr-copy .luth-panel-title {
  margin-bottom: 0.25rem;
}

.luth-qr-copy .luth-muted {
  margin-bottom: 0.65rem;
}

.luth-qr-preview {
  display: inline-flex;
  justify-self: end;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.35rem;
  background: #ffffff;
}

.luth-qr-preview img {
  display: block;
  width: 124px;
  height: 124px;
  object-fit: contain;
}

.luth-paste-block {
  margin-bottom: 1rem;
}

.luth-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: #374151;
}

.luth-paste-area {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  resize: vertical;
}

.luth-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.luth-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.luth-stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.luth-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.luth-stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.luth-breakdowns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.luth-breakdown h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.luth-attendance-widget {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.85rem;
  align-items: center;
}

.luth-pie-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.luth-pie {
  width: 120px;
  height: 120px;
  border-radius: 999px;
}

.luth-pie::after {
  content: "";
  position: absolute;
  inset: 18px;
  background: #ffffff;
  border-radius: 999px;
}

.luth-pie-total {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
}

.luth-pie-total span {
  margin-top: 0.1rem;
  font-size: 0.65rem;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.luth-pie-legend {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.luth-legend-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #374151;
  line-height: 1.35;
}

.luth-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 10px;
}

.luth-dot-yes { background: #10b981; }
.luth-dot-no { background: #ef4444; }
.luth-dot-unknown { background: #9ca3af; }

.luth-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4fr auto;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.luth-bar-label {
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.luth-bar-track {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.luth-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #d97706);
  border-radius: 999px;
  min-width: 2px;
}

.luth-bar-num {
  font-weight: 600;
  color: #111827;
  min-width: 2ch;
  text-align: right;
}

.luth-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 720px) {
  .luth-two-col {
    grid-template-columns: 1fr;
  }

  .luth-attendance-widget {
    grid-template-columns: 1fr;
  }

  .luth-qr-widget {
    grid-template-columns: 1fr;
  }

  .luth-qr-preview {
    justify-self: start;
  }
}

.luth-highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.luth-highlight-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #374151;
}

.luth-highlight-list li:last-child {
  border-bottom: none;
}

.luth-muted {
  font-size: 0.9rem;
  color: #9ca3af;
}

.luth-empty {
  color: #6b7280;
  font-size: 0.95rem;
}

.luth-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.luth-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.luth-data-table th,
.luth-data-table td {
  padding: 0.5rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}

.luth-data-table th {
  background: #f3f4f6;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.luth-data-table tr:hover td {
  background: #fafafa;
}

/* Music toggle button */
.music-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #ffffff;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
}

.music-toggle:hover {
  background: rgba(0, 0, 0, 0.85);
}

.music-toggle span {
  font-size: 1.2rem;
}

/* Small screen adjustments */
@media (max-width: 900px) {
  .story-grid,
  .schedule-grid,
  .hotel-grid,
  .attire-grid,
  .gifts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    flex-direction: column;
    gap: 0.35rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .nav-rsvp {
    padding: 0.3rem 0.7rem;
  }

  .intro-lead {
    font-size: 1.2rem;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* Wedding hero on phones: keep nav compact and move copy away from photo center */
  .top-nav.nav-over-hero {
    background: rgba(0, 0, 0, 0.45);
  }

  .top-nav.nav-over-hero .nav-inner {
    flex-direction: row;
    justify-content: flex-end;
    padding: 0.55rem 0.8rem;
  }

  .top-nav.nav-over-hero .nav-links {
    gap: 0.6rem;
    font-size: 0.72rem;
  }

  .top-nav.nav-over-hero .nav-rsvp {
    font-size: 0.62rem;
    padding: 0.24rem 0.5rem;
    letter-spacing: 0.12em;
  }

  .hero .hero-content {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 5rem;
    transform: translateX(-50%);
    max-width: 92vw;
    text-align: center;
  }

  .hero .hero-title {
    font-size: clamp(2.05rem, 9vw, 2.6rem);
  }

  .hero .hero-date {
    margin-top: 0.65rem;
    font-size: 0.82rem;
  }

  .hero .hero-rsvp {
    margin-top: 1rem;
    padding: 0.65rem 1.5rem;
    font-size: 0.68rem;
  }
}

/* Inline icons (modern, minimalist) */
.icon-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #111827;
}

.icon-inline a {
  color: inherit;
  text-decoration: none;
}

.icon-inline a:hover {
  text-decoration: underline;
}

.icon-inline svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Small spacing for hotel meta lines */
.hotel-meta {
  margin-top: 0.25rem;
}

/* Site access gate */
.access-gate-locked {
  overflow: hidden;
}

.access-gate {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1rem;
}

.access-gate-card {
  width: min(460px, 100%);
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.access-gate-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  color: #111827;
  text-align: center;
}

.access-gate-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.access-gate-error {
  min-height: 1.2em;
  margin: 0 0 0.55rem;
  color: #b91c1c;
  font-size: 0.9rem;
}

.access-gate-button {
  width: 100%;
  border: 1px solid #111827;
  background: #111827;
  color: #ffffff;
  border-radius: 6px;
  padding: 0.62rem 0.75rem;
  font-size: 0.92rem;
  cursor: pointer;
}

.access-gate-button:hover {
  background: #000000;
}

/* Wedding Day banner rendering fix (prevents background from disappearing) */
.wedding-day-bg { z-index: 0; }
.wedding-day-overlay { z-index: 1; }
.wedding-day-content { position: relative; z-index: 2; }

