/* Compiled CSS for the wedding site.
   If you edit the SCSS files in /scss, recompile them into this file.
   You can also ignore SCSS and just edit this CSS directly if you prefer. */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  background-color: #f9f6f3;
}

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

a {
  color: #c88a5b;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-inline: 1rem;
}

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e1d7cc;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.5rem;
}

.site-header__brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: inherit;
  transition: opacity 0.2s ease;
}

.site-header__brand:hover {
  opacity: 0.85;
}

.site-header__names {
  font-family: "Georgia", "Times New Roman", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.site-header__date {
  font-size: 0.8rem;
  color: #777777;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e1d7cc;
  background: #ffffff;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: #c88a5b;
  background-color: #fdf9f6;
}

.nav-toggle__line {
  display: block;
  height: 2px;
  width: 16px;
  margin-inline: auto;
  background-color: #333333;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hamburger to X morph when open */
.nav-toggle.is-active .nav-toggle__line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

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

.nav-toggle.is-active .nav-toggle__line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.site-nav {
  display: none;
}

.site-nav__list {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.site-nav a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777777;
}

.site-nav a[aria-current="page"] {
  color: #c88a5b;
  font-weight: 600;
}

.site-nav.is-open {
  display: block;
}

@media (min-width: 768px) {
  .site-nav {
    display: block;
  }
}

@media (max-width: 768px) {
  .site-header {
    position: relative;
  }

  .site-header__inner {
    align-items: center;
  }

  .site-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 12px 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem 1.5rem;
  }
}

/* ========= Home page: Transparent Header ========= */

.site-header--transparent {
  background-color: transparent;
  border-bottom-color: transparent;
  position: fixed;
  width: 100%;
  transition: background-color 0.35s ease, border-bottom-color 0.35s ease;
}

.site-header--transparent .site-header__names {
  color: #ffffff;
  transition: color 0.35s ease;
}

.site-header--transparent .site-header__date {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.35s ease;
}

/* Brand link wraps the name/date spans; keep anchor color in sync so hover
   underline matches visible text (spans override color but decoration uses the <a>). */
.site-header--transparent .site-header__brand {
  color: #ffffff;
  transition: color 0.35s ease;
}

.site-header--transparent .site-nav a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.35s ease;
}

.site-header--transparent .nav-toggle {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  transition: border-color 0.35s ease, background-color 0.35s ease;
}

.site-header--transparent .nav-toggle__line {
  background-color: #ffffff;
  transition: background-color 0.35s ease, transform 0.25s ease, opacity 0.25s ease;
}

.site-header--transparent.is-scrolled,
.site-header--transparent:has(.site-nav.is-open) {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: #e1d7cc;
}

.site-header--transparent.is-scrolled .site-header__names,
.site-header--transparent:has(.site-nav.is-open) .site-header__names {
  color: #333333;
}

.site-header--transparent.is-scrolled .site-header__date,
.site-header--transparent:has(.site-nav.is-open) .site-header__date {
  color: #777777;
}

.site-header--transparent.is-scrolled .site-header__brand,
.site-header--transparent:has(.site-nav.is-open) .site-header__brand {
  color: #333333;
}

.site-header--transparent.is-scrolled .site-nav a,
.site-header--transparent:has(.site-nav.is-open) .site-nav a {
  color: #777777;
}

.site-header--transparent.is-scrolled .nav-toggle,
.site-header--transparent:has(.site-nav.is-open) .nav-toggle {
  border-color: #e1d7cc;
  background: #ffffff;
}

.site-header--transparent.is-scrolled .nav-toggle__line,
.site-header--transparent:has(.site-nav.is-open) .nav-toggle__line {
  background-color: #333333;
}

@media (max-width: 768px) {
  .site-header--transparent {
    position: fixed;
  }
}

.section {
  padding-block: 3.5rem;
}

@media (min-width: 768px) {
  .section {
    padding-block: 4.5rem;
  }
}

.RSVP-section {
  padding-top: 0rem !important;
}

.section--light {
  background-color: #ffffff;
}

.section__header {
  text-align: center;
  margin-bottom: 2rem;
}

.section__title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.section__lead {
  margin: 0 auto;
  max-width: 32rem;
  color: #777777;
}

.section__note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #777777;
}

.section__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .section__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.section__grid-two {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .section__grid-two {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    align-items: start;
    gap: 3rem;
  }
}

.section h2 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #333;
}

.section article p {
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

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

.page-hero {
  padding-block: 3rem 2rem;
  text-align: center;
}

.page-hero__title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 2.4rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.page-hero__lead {
  max-width: 32rem;
  margin-inline: auto;
  color: #777777;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .page-hero {
    padding-block: 5rem 2.5rem;
  }

  .page-hero__title {
    font-size: 3rem;
  }
}

/* ========= Parallax Hero ========= */

.hero {
  position: relative;
  z-index: 0;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.hero__bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: url("../images/grange-new.jpeg") center / cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.05) 40%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 700px;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 400;
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.hero__subtitle {
  margin: 0 0 2.5rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.08em;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease;
  animation: heroScrollBounce 2.5s ease-in-out infinite;
}

.hero__scroll-hint:hover {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.btn--hero {
  display: inline-block;
  background-color: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  padding: 0.75rem 2.4rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.15s ease;
}

.btn--hero:hover,
.btn--hero:focus {
  background-color: #ffffff;
  color: #333333;
  border-color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.home-content {
  position: relative;
  z-index: 1;
  background-color: #f9f6f3;
  border-radius: 32px 32px 0 0;
  margin-top: -32px;
  padding-top: 0.5rem;
}

.home .site-footer {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 4.5rem;
  }

  .hero__subtitle {
    font-size: 1.1rem;
  }

  .hero__eyebrow {
    font-size: 0.85rem;
    margin-bottom: 2rem;
  }
}

.site-footer {
  border-top: 1px solid #e1d7cc;
  padding-block: 1rem;
  background-color: #ffffff;
}

.site-footer__inner {
  text-align: center;
}

.site-footer__text {
  margin: 0;
  font-size: 0.85rem;
  color: #777777;
}

.muted {
  color: #999;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn--primary {
  background-color: #c88a5b;
  color: #ffffff;
  border-color: transparent;
}

.btn--primary:hover,
.btn--primary:focus {
  background-color: #af764b;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn:disabled,
.btn[disabled] {
  background-color: #d6c5b5;
  border-color: transparent;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn:disabled:hover,
.btn[disabled]:hover {
  background-color: #d6c5b5;
}

.card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 2rem;
  border: 1px solid #e1d7cc;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.card__title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.card__body {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #777777;
}

.card__link {
  font-size: 0.9rem;
  font-weight: 600;
}

.card__meta {
  font-size: 0.85rem;
  color: #777777;
}

.card--link {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card--link:hover,
.card--link:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.card-list {
  display: grid;
  gap: 2rem;
}

.card-list--compact {
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .card-list--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .card-list--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-list--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .card-list--compact.card-list--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card--compact {
  padding: 1.25rem 1.5rem;
}

.card--compact .card__title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.card--compact .card__body {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0;
  color: #555555;
  word-break: break-word;
}

.card--compact .card__link {
  font-size: 0.9rem;
}

.section__subheading {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

.copyable {
  -webkit-user-select: all;
  -moz-user-select: all;
  -ms-user-select: all;
  user-select: all;
  cursor: text;
  border-radius: 3px;
  padding: 0 2px;
  transition: background-color 0.15s ease;
}

.copyable:hover {
  background-color: rgba(214, 197, 181, 0.25);
}

.copyable::selection {
  background-color: rgba(214, 197, 181, 0.55);
}

.image-placeholder {
  border-radius: 18px;
  border: 2px dashed #e1d7cc;
  background: repeating-linear-gradient(
    45deg,
    rgba(241, 224, 209, 0.6),
    rgba(241, 224, 209, 0.6) 10px,
    rgba(241, 224, 209, 0.9) 10px,
    rgba(241, 224, 209, 0.9) 20px
  );
  min-height: 160px;
  overflow: hidden;
}

.image-placeholder--tall {
  min-height: 260px;
}

.image-placeholder:has(img) {
  border: none;
  background: none;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  transition: transform 0.5s ease;
}

.image-placeholder:hover img {
  transform: scale(1.03);
}

/* ========= Image Carousel ========= */

.carousel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.carousel__slide img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  display: block;
  background-color: #f9f6f3;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #333333;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease, transform 0.15s ease, background-color 0.2s ease;
}

.carousel__btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-50%) scale(1.08);
}

.carousel__btn:active {
  transform: translateY(-50%) scale(0.96);
}

.carousel__btn--prev {
  left: 12px;
}

.carousel__btn--next {
  right: 12px;
}

@media (min-width: 768px) {
  .carousel__btn {
    display: flex;
    opacity: 0;
  }

  .carousel:hover .carousel__btn {
    opacity: 1;
  }
}

.carousel__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel__dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.carousel__dot.is-active {
  background: #c88a5b;
  transform: scale(1.25);
}

/* ========= Registry Hero Image ========= */

.registry-hero-image {
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: stretch;
  margin-block: 2rem 1rem;
}

.countdown__item {
  min-width: 100px;
  padding: 1.25rem 1rem;
  border-radius: 16px;
  background-color: #ffffff;
  border: 1px solid rgba(225, 215, 204, 0.6);
  text-align: center;
}

@media (max-width: 768px) {
  .countdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .countdown__message {
    grid-column: 1 / -1;
  }
}

.countdown__number {
  display: block;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 2.2rem;
  color: #c88a5b;
}

.countdown__label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #777777;
  margin-top: 0.25rem;
}

.countdown__message {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #777777;
}

@media (max-width: 768px) {
  .countdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 320px;
    margin-inline: auto;
  }

  .countdown__message {
    grid-column: 1 / -1;
  }
}

.schedule {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 0;
  max-width: 480px;
  display: grid;
  gap: 0;
}

.schedule__item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid #ece4da;
  transition: background-color 0.25s ease, padding-left 0.25s ease;
}

.schedule__item:last-child {
  border-bottom: none;
}

.schedule__item:hover {
  background-color: rgba(200, 138, 91, 0.04);
  padding-left: 1rem;
}

.schedule__time {
  font-weight: 600;
  font-size: 0.85rem;
  color: #c88a5b;
  text-align: right;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.schedule__event {
  font-size: 0.95rem;
  color: #444;
}

.map-container {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e1d7cc;
}

.map-container iframe {
  display: block;
}

.form {
  max-width: 540px;
  margin-inline: auto;
}

.form__group {
  margin-bottom: 1.4rem;
}

.form__fieldset {
  border: 1px solid #e1d7cc;
  border-radius: 10px;
  padding: 1rem;
}

.form__option {
  display: block;
  margin-top: 0.25rem;
}

label,
legend {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #e1d7cc;
  font: inherit;
  background-color: #ffffff;
  color: #333333;
  -webkit-text-fill-color: #333333;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Override Safari's default blue styling on select/option (iOS Safari applies blue) */
select,
select:focus,
select:active,
select option {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
  opacity: 1;
}

select {
  -webkit-appearance: none;
  appearance: none;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23777777' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

/* Extra specificity for form selects (RSVP) - Safari iOS blue override */
.form select,
.form-body select {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
}

select option {
  background-color: #ffffff !important;
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
}

/* Extra specificity for form selects (RSVP, etc.) - Safari can be stubborn */
.form select,
.form-body select,
select.form__input {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
  background-color: #ffffff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(200, 138, 91, 0.3);
  border-color: #c88a5b;
}

.form__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.form__hint {
  font-size: 0.85rem;
  color: #777777;
  margin: 0;
}

.form__section-heading {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: normal;
  color: #555555;
  margin-top: 0;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.form-body {
  max-width: 540px;
  margin-inline: auto;
  text-align: left;
}

.form-body > .form {
  max-width: none;
}

.rsvp-guest-display {
  margin: 0;
  padding: 0.65rem 0.9rem;
  background-color: #f1e0d1;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  color: #333333;
  display: inline-block;
}

#rsvp-status {
  min-height: 1.5em;
  transition: opacity 0.2s ease;
}

#rsvp-status:not(:empty) {
  font-size: 1.2rem;
  font-weight: 500;
  color: #9b5f3b;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background-color: rgba(200, 138, 91, 0.1);
  border-radius: 10px;
  border-left: 3px solid #c88a5b;
  display: inline-block;
  max-width: 32rem;
}

@media (max-width: 767px) {
  .form__actions {
    align-items: center;
  }

  .form__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.form__status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.form__actions .form__status,
.form__actions .form__hint {
  margin: 0;
}

.form__status--error {
  color: #c0392b;
}

.form__status--success {
  color: #9b5f3b;
}

.faq {
  display: grid;
  gap: 0.5rem;
}

.faq__item {
  border-radius: 12px;
  border: 1px solid #e1d7cc;
  background-color: #ffffff;
  overflow: hidden;
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq__question:hover {
  background-color: rgba(241, 224, 209, 0.4);
}

.faq__answer {
  padding-inline: 1rem;
  padding-bottom: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, padding-bottom 0.2s ease;
}

.faq__item.is-open .faq__answer {
  padding-bottom: 1rem;
  max-height: 400px;
}

/* Password protection modal */
body.modal-open {
  overflow: hidden;
}

.password-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  overflow-y: auto;
}

.password-modal__content {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 3rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.password-modal__title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.password-modal__text {
  color: #777777;
  margin-bottom: 2rem;
}

.password-modal__input {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #e1d7cc;
  font: inherit;
  background-color: #ffffff;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-modal__input:focus {
  outline: 2px solid rgba(200, 138, 91, 0.3);
  border-color: #c88a5b;
}

.guest-selector {
  margin-top: 2rem;
}

.guest-selector__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.guest-selector__input-wrapper {
  position: relative;
}

.guest-selector__input {
  width: 100%;
  padding-right: 2.5rem;
}

.guest-selector__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1px solid #e1d7cc;
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  margin-top: 2px;
  display: none;
}

.guest-selector__dropdown.is-open {
  display: block;
}

.guest-selector__option {
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #e1d7cc;
  transition: background-color 0.2s ease;
}

.guest-selector__option:hover {
  background-color: #f1e0d1;
}

.guest-selector__option:last-child {
  border-bottom: none;
}

.guest-selector__no-results {
  padding: 1rem;
  color: #777777;
  font-style: italic;
}

.guest-confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 1rem;
  overflow-y: auto;
}

.guest-confirm-modal__content {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 2.5rem 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.guest-confirm-modal__title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.guest-confirm-modal__text {
  color: #777777;
  margin-bottom: 1rem;
}

.guest-confirm-modal__name {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.5rem;
  color: #c88a5b;
  margin: 0 0 2rem;
  padding: 1rem;
  background-color: #faf4ee;
  border-radius: 10px;
  word-break: break-word;
}

.guest-confirm-modal__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.guest-confirm-modal__actions .btn {
  flex: 1 1 140px;
  min-width: 0;
}

.guest-confirm-modal__back {
  background-color: #ffffff;
  color: #555555;
  border-color: #d6c5b5;
}

.guest-confirm-modal__back:hover,
.guest-confirm-modal__back:focus {
  background-color: #faf4ee;
  border-color: #c88a5b;
  color: #333333;
  transform: translateY(-1px);
}

@media (max-width: 420px) {
  .guest-confirm-modal__actions {
    flex-direction: column;
  }

  .guest-confirm-modal__actions .btn {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* ========= Intro / Envelope Animation ========= */

.intro-active .site-header,
.intro-active main,
.intro-active footer,
.intro-active .password-modal {
  opacity: 0 !important;
  pointer-events: none !important;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f6f3;
}

.intro-envelope {
  position: relative;
  z-index: 5;
  width: 300px;
  max-width: 80vw;
  perspective: 800px;
  animation: envelopeAppear 0.8s ease-out both;
}

@keyframes envelopeAppear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(24px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.intro-envelope__body {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: linear-gradient(160deg, #f1e0d1, #e8d0bc);
  border-radius: 6px;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.intro-envelope__body::before,
.intro-envelope__body::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
}

.intro-envelope__body::before {
  left: 0;
  background: linear-gradient(
    to bottom right,
    transparent 49%,
    rgba(200, 170, 140, 0.25) 49%,
    rgba(200, 170, 140, 0.25) 51%,
    transparent 51%
  );
}

.intro-envelope__body::after {
  right: 0;
  background: linear-gradient(
    to bottom left,
    transparent 49%,
    rgba(200, 170, 140, 0.25) 49%,
    rgba(200, 170, 140, 0.25) 51%,
    transparent 51%
  );
}

.intro-envelope__flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 55%;
  background: linear-gradient(to bottom, #dcc4ac, #d4b89a);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.intro-flap--open {
  transform: rotateX(-180deg);
}

.intro-seal {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #b83a3a, #8b2020 55%, #6a1818);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.15),
    inset 0 1px 2px rgba(255, 200, 200, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.intro-seal:hover {
  transform: translate(-50%, -50%) scale(1.07);
  box-shadow:
    0 5px 16px rgba(0, 0, 0, 0.35),
    0 2px 5px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(255, 200, 200, 0.2);
}

.intro-seal:active {
  transform: translate(-50%, -50%) scale(0.97);
}

.intro-seal__ring {
  position: absolute;
  inset: 7px;
  border: 1.5px solid rgba(241, 224, 209, 0.25);
  border-radius: 50%;
  pointer-events: none;
}

.intro-seal__text {
  font-family: "Georgia", "Times New Roman", serif;
  color: rgba(241, 224, 209, 0.85);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.intro-seal--cracked {
  animation: sealCrack 0.4s ease-out forwards;
  cursor: default;
}

@keyframes sealCrack {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
  40% {
    transform: translate(-50%, -50%) scale(1.12) rotate(-3deg);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.4) rotate(8deg);
    opacity: 0;
  }
}

.intro-fade {
  position: absolute;
  inset: 0;
  background-color: #ffffff;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 10;
  pointer-events: none;
}

.intro-fade--active {
  opacity: 1;
}

.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.intro-loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.intro-loader--delayed {
  opacity: 0;
}

.intro-loader--hidden {
  opacity: 0;
}

.intro-loader__svg {
  width: 100px;
  height: 100px;
}

.intro-loader__track {
  fill: none;
  stroke: #e8d0bc;
  stroke-width: 4;
}

.intro-loader__progress {
  fill: none;
  stroke: #c88a5b;
  stroke-width: 4;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.3s ease;
}

/* ========= Scroll Reveal Animations ========= */

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

.reveal {
  opacity: 0;
}

.reveal.is-visible {
  animation: revealUp 0.6s ease-out forwards;
}

.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }
.reveal-delay-4 { animation-delay: 0.4s; }
.reveal-delay-5 { animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
  }
  .reveal.is-visible {
    animation: none;
  }
}

.contact-email {
  user-select: all;
  font-weight: 600;
  cursor: text;
}

