:root {
  --font-heading: "Allura", cursive;
  /* --font-heading: 'Playfair Display', serif; */
  --font-body: "Source Sans 3", sans-serif;
  --color-background: #F2E4DB;
  --color-primary: #986764;
  --color-secondary: #838F7D;
  --color-text: #2d2d2d;
  --color-muted: #A7A8A0;
  --color-tertiary: #DBBCB8;
  --shadow-soft: 0 20px 40px rgba(36, 33, 28, 0.12);
  --radius-large: 32px;
  --radius-medium: 20px;
  --radius-small: 12px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  max-width: 100vw;
  overflow-x: hidden;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 32px clamp(24px, 5vw, 64px) 120px;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  max-width: 1920px;
  margin: 0 auto;
}

.nav {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  gap: 24px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 64px;
  z-index: 6999;
  transition: all 0.3s ease;
}

.nav-scrolling {
  /* background-color: rgba(242, 228, 219, .85); */
  background-color: var(--color-background);
  box-shadow: var(--shadow-soft);
}

.nav-scrolling .logo img {
  height: 56px;
}

.logo {
  font-family: var(--font-heading);
}

.logo img {
  height: 110px;
  transition: height 0.3s ease;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  font-weight: 500;
}

  .timeline {
    display: block;
    background: #fff;
    border-radius: var(--radius-large);
    border: 1px solid rgba(152, 103, 100, 0.18);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    max-width: 680px;
    margin: 0 auto;
  }

  .bold {
    font-weight: 600;
  }


  .timeline-line {
    display: none;
  }

  .timeline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    transition: background-color 0.3s ease;
  }

  .timeline-item + .timeline-item {
    border-top: 1px solid rgba(152, 103, 100, 0.2);
  }

  .timeline-stamp {
    justify-content: flex-start;
    padding: 0;
    background: none;
    border-radius: 0;
    color: var(--color-text);
  }

  .timeline-stamp p {
    font-weight: 600;
  }

  .timeline-item:hover {
    background-color: var(--color-background);

  }

.nav-links a {
  position: relative;
  padding-bottom: 8px;
  cursor: pointer;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.hero-content {
  max-width: 540px;
  margin-top: clamp(60px, 12vw, 160px);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(42px, 10vw, 80px);
  line-height: 1.1;
  margin-bottom: 20px;
}

.lead {
  font-size: 18px;
  margin-bottom: 36px;
  color: var(--color-text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(152, 103, 100, 0.35);
}

.button-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.button-outline:hover,
.button-outline:focus-visible {
  background: var(--color-primary);
  color: #fff;
}

.hero-scroll {
  align-self: center;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.8;
}

main {
  background: var(--color-background);
}

.section {
  padding: clamp(72px, 10vw, 120px) clamp(24px, 5vw, 64px);
  position: relative;
}

.px-large {
  padding: 120px 0;
  padding-right: 55%;
}

.p-0 
{
  padding: 0 !important;
}

.section-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.overline {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 13px;
  color: var(--color-primary);
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 6vw, 60px);
  margin: 18px 0;
}

.muted {
  color: var(--color-muted);
}



.section-program {
  background: #fff;
}


.section-story {
  position: relative;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.story-card {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(152, 103, 100, 0.18);
}

.story-card.color-primary {
  background-color: var(--color-primary);
  color: #fff;
  text-align: center;
}
.story-card.color-secondary {
  background-color: var(--color-secondary);
  color: #fff;
  text-align: center;
}
.story-card.color-tertiary {
  background-color: var(--color-tertiary);
  color: var(--color-text);
  text-align: center;
}
.story-card.color-background {
  background-color: var(--color-background);
  color: var(--color-text);
  text-align: center;
}
.story-card.color-muted {
  background-color: var(--color-muted);
  color: #fff;
  text-align: center;
}

.story-card h3 {
  font-family: var(--font-heading);
  font-size: 40px;
  margin-bottom: 10px;
  color: var(--color-secondary);
}

.section-location {
  background: #fff;
}

.section-location .section-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 48px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.details {
  list-style: none;
  margin: 24px 0;
  display: grid;
  gap: 12px;
}

  .details strong {
  color: var(--color-secondary);
}

.position-relative {
  position: relative;
}

.map-placeholder {
  position: absolute;
  left: 50%;
  top: 0;
  border-left: 2px dashed rgba(152, 103, 100, 0.4);
  width: 100%;
  max-width: 50vw;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--color-secondary);
  letter-spacing: 2px;
  overflow: hidden;
}

.section-rsvp {
  background: linear-gradient(135deg, rgba(152, 103, 100, 0.12), rgba(131, 143, 125, 0.12));
}

.rsvp-form {
  background: #fff;
  padding: clamp(32px, 6vw, 48px);
  border-radius: var(--radius-large);
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 24px;
}

.form-row {
  display: grid;
  gap: 12px;
}

label {
  font-weight: 600;
  color: var(--color-secondary);
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-small);
  border: 1px solid rgba(131, 143, 125, 0.25);
  font-family: var(--font-body);
  font-size: 16px;
  background: rgba(255, 255, 255, 0.9);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(152, 103, 100, 0.25);

/* Hide RSVP elements (removed) */
.nav-links a[href="#rsvp"],
.section-rsvp,
.hero a.button[href="#rsvp"] {
  display: none !important;
}
}

.section-gifts {
  background: #fff;
}

.gift-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gift-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-medium);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.gift-card h3 {
  font-family: var(--font-heading);
  font-size: 40px;
  margin-bottom: 12px;
}

.footer {
  padding: 48px clamp(24px, 5vw, 64px) 64px;
  background: #1f2b2e;
  color: rgba(255, 255, 255, 0.85);
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
}

.footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

.footer-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 15px;
}

.mb-24 {
  margin-bottom: 24px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


.photo-shoot {
  display: flex;
  flex-direction: row;
  right: 10%;
  height: auto;
  top: 0;
  background-color: var(--color-text);
}

.photo-border {
  width: 20px;
  background-color: var(--color-text);
  background-image: url(/media/white-box.svg);
  background-repeat: repeat-y;
}

.slider-photo {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 10px;
  background-color: var(--color-text);
}

.slider-photo img {
  width: 400px;
  border-radius: 8px;
} 
.badge-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  padding: 16px 24px;
  background-color: var(--color-primary);
  border-radius: 16px;
  color: white;
  font-size: 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  transition: all 0.25s ease;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(152, 103, 100, 0.8)
}

.badge img {
  height: 24px;
}
.hero-slider {
    position: absolute;
    right: 15%;
    top: 0;
    touch-action: none;
    cursor: grab;
    will-change: transform;
}

.hero-slider.dragging {
  cursor: grabbing;
}

#map {
  width: 100%;
  height: 100%;
}

/* JS controls the hero-slider transform; no CSS keyframes */

/* Lightbox and slider interactivity */
#lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

#lightbox-overlay.open {
  display: flex;
}

#lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.slider-photo.is-paused {
  animation-play-state: paused;
}

.slider-photo.grabbable {
  cursor: grab;
}

.slider-photo.dragging {
  cursor: grabbing;
  touch-action: none;
}

  .slider-photo::before{
    content: "";
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 20px;
    height: 100%;
    background-color: var(--color-text);
    z-index: 99;
    background-image: url(media/white-box.svg);
    background-repeat: repeat-y;
  }

  .slider-photo::after{
    content: "";
    position: absolute;
    right: -20px;
    top: 0;
    bottom: 0;
    width: 20px;
    height: 100%;
    background-color: var(--color-text);
    z-index: 99;
    background-image: url(media/white-box.svg);
    background-repeat: repeat-y;
  }

.food-menu {
  max-width: 1100px;
  margin: 0 auto;
  border: 2px solid var(--color-muted);
  padding: 24px 40px 24px 40px;
}

.menu-card {
  display: grid;                                               
  grid-template-columns: 1fr 1fr;
  padding: 32px 0 32px 0;
  border-top: 1px solid var(--color-muted);
}

.bt-0 {
  border-top: none;
}

.bb-0 {
  border-bottom: none;
}


    .qr-code {
    max-width: 300px;
  }

  .slider-photo img {
    width: 400px;

  }

  .h4-headline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 24px;
}

@media (max-width: 1110px) {
  .hero-slider {
    position: relative;
  }

  .slider-photo {
    flex-direction: row;
    /* Ensure the slider spans full intrinsic width of all images */
    display: inline-flex;
    width: max-content;
  }

  /* Prevent items from shrinking so total width = sum of images + gaps */
  .slider-photo img {
    flex: 0 0 auto;
  }

  .photo-shoot {
    flex-direction: column;
  }

}
@media (max-width: 1110px) {
  .nav-links {
  }

  .body{
    max-width: unset;
  }

  .hero-slider {
    position: relative;
    top: unset;
    left: unset;
    right: unset;
  }

  .hero {
    padding: 24px 24px 96px;
    gap: 32px;
  }

  .nav {
    padding: 16px 24px;
  }

  .hero-content {
    margin-top: 160px;
  }

  .section-content {
    grid-template-columns: 1fr !important;
    text-align: center;;
  }

  .px-large {
    padding: 72px 24px;
    padding-bottom: 0;
  }

  .map-placeholder {
    position: relative;
    width: 100vw;
    max-width: unset;
    height: 460px;
    left: unset;
    top: unset;
  }

  .menu-card {
    grid-template-columns: 1fr;
  }
    .slider-photo::before{
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    right: 0; 
    width: 100%;
    height: 20px;
    background-color: var(--color-text);
    z-index: 99;
    background-image: url(media/white-box.svg);
    background-repeat: repeat-x;
  }

  .slider-photo::after{
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    top: unset;
    bottom: -20px;
    width: 100%;
    height: 20px;
    background-color: var(--color-text);
    z-index: 99;
    background-image: url(media/white-box.svg);
    background-repeat: repeat-x;
  }
  .slider-photo img {
    height: 360px;
    width: auto;
  }

  .h4-headline {
  font-size: 16px;
}
}
