:root {
  --pearl-ivory: #788172;
  --warm-linen: #E8DFD2;
  --soft-taupe: #CFC3B5;
  --olive-green: #6E7560;
  --eucalyptus: #98A691;
  --champagne-gold: #C8B27D;

  --coconut-milk: #F0EDE5;
  --text-on-light: #3F463B;
  --text-primary: var(--coconut-milk);
  --text-secondary: var(--coconut-milk);
  --text-inverse: var(--coconut-milk);
  --surface: rgba(247, 243, 236, 0.86);
  --surface-strong: rgba(255, 253, 248, 0.94);
  --surface-muted: rgba(232, 223, 210, 0.58);
  --border-soft: rgba(207, 195, 181, 0.74);
  --border-gold: rgba(200, 178, 125, 0.62);
  --focus-ring: rgba(110, 117, 96, 0.34);
  --success: #55634F;
  --error: #8B3F38;
  --shadow-soft: 0 24px 70px rgba(71, 64, 51, 0.10);
  --shadow-card: 0 18px 46px rgba(71, 64, 51, 0.08);

  --font-names: "Bodoni Moda", Didot, "Bodoni 72", serif;
  --font-amp: "Alex Brush", "Bickham Script Pro", "Edwardian Script ITC", cursive;
  --font-editorial: "Cormorant Garamond", Baskerville, Garamond, Georgia, serif;
  --font-info: "Montserrat", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: var(--font-editorial);

  --header-height: 64px;
  --container: 1120px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --tracking-nav: 0.16em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background: var(--pearl-ivory);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text-primary);
  background: var(--pearl-ivory);
  font-family: var(--font-body);
  font-size: 20pt;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(110, 117, 96, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 117, 96, 0.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mix-blend-mode: multiply;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: var(--text-primary);
  background: rgba(200, 178, 125, 0.32);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  border: 1px solid var(--champagne-gold);
  border-radius: var(--radius-sm);
  background: var(--olive-green);
  color: var(--text-inverse);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem clamp(1rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--border-soft);
  background: rgba(247, 243, 236, 0.86);
  color: var(--text-on-light);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.44) inset;
}

@supports ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
  .site-header {
    background: rgba(247, 243, 236, 0.74);
    -webkit-backdrop-filter: blur(14px) saturate(118%);
    backdrop-filter: blur(14px) saturate(118%);
  }
}

.primary-nav {
  width: min(100%, 880px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3.3vw, 2.65rem);
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  color: var(--text-on-light);
  font-family: var(--font-body);
  font-size: clamp(0.68rem, 0.22vw + 0.62rem, 0.78rem);
  font-weight: 500;
  letter-spacing: var(--tracking-nav);
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, transform 180ms ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.45rem;
  width: 0;
  height: 1px;
  transform: translateX(-50%);
  background: var(--champagne-gold);
  transition: width 220ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--text-on-light);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a:active::after {
  width: min(100%, 4.6rem);
}

.primary-nav a:focus-visible,
.button:focus-visible,
.gallery__item:focus-visible,
.lightbox__close:focus-visible,
.menu-toggle:focus-visible,
.rsvp-form input:focus-visible,
.rsvp-form select:focus-visible,
.rsvp-form label:focus-within input[type="radio"] {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.menu-toggle {
  display: none;
}

.section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 8.5rem) clamp(1.125rem, 5vw, 4.5rem);
}

.section__inner {
  width: min(var(--container), 100%);
  margin: 0 auto;
  text-align: center;
}

.section-title,
.eyebrow {
  position: relative;
  color: var(--text-primary);
  font-family: var(--font-editorial);
  font-size: clamp(2.12rem, 4.96vw, 4.64rem);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 0.96;
  text-transform: uppercase;
}

.section-title {
  margin: 0 auto clamp(1.5rem, 3vw, 2.4rem);
}

.section-title::after,
.eyebrow::after {
  content: "";
  display: block;
  width: clamp(3rem, 8vw, 5.25rem);
  height: 1px;
  margin: 1.15rem auto 0;
  background: linear-gradient(90deg, transparent, var(--champagne-gold), transparent);
}

.section-copy {
  max-width: 40rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  color: var(--text-secondary);
}

.section-icon {
  width: clamp(5rem, 14vw, 8rem);
  height: clamp(5rem, 14vw, 8rem);
  margin: 0 auto clamp(1.2rem, 3vw, 1.8rem);
  object-fit: contain;
}

.gifts .section-title {
  margin-bottom: 10px;
}

.gifts .section-icon {
  margin-bottom: 10px;
}

.gifts .section-copy {
  line-height: 38px;
}

.dress__detail {
  font-size: 22px;
}

.section--sage {
  background:
    linear-gradient(180deg, rgba(152, 166, 145, 0.16), rgba(247, 243, 236, 0.82)),
    var(--pearl-ivory);
}

.section--image {
  background-image:
    linear-gradient(180deg, rgba(120, 129, 114, 0.2), rgba(120, 129, 114, 0.86)),
    url("Imagenes/Imagen_invitacion-7.jpg");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.section--image-soft {
  background-image:
    linear-gradient(180deg, rgba(247, 243, 236, 0.88), rgba(232, 223, 210, 0.88)),
    url("Imagenes/Imagen_invitacion-6.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.quote--image {
  background-image:
    linear-gradient(180deg, rgba(247, 243, 236, 0.88), rgba(232, 223, 210, 0.88)),
    url("Imagenes/Imagen_invitacion-3.jpg");
}

.hero {
  min-height: calc(72.25vh - var(--header-height) + 79px);
  min-height: calc(72.25svh - var(--header-height) + 79px);
  display: grid;
  place-items: center;
  padding-left: 0;
  padding-right: 0;
  padding-top: clamp(3rem, 6vw, 4.7rem);
  padding-bottom: clamp(3.4rem, 6.8vw, 5.1rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: clamp(1rem, 3vw, 2rem);
  pointer-events: none;
  border: 1px solid rgba(200, 178, 125, 0.34);
}

.hero__content {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  margin: auto;
  padding: clamp(1.25rem, 4vw, 3rem) 0;
  text-align: center;
}

.couple-mark {
  width: min(48rem, 88vw);
  margin: 0 auto;
  color: var(--text-primary);
  font-family: var(--font-names);
  font-size: clamp(4.25rem, 12vw, 8.25rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.86;
  text-align: center;
  text-shadow:
    0 0 1.2rem rgba(240, 237, 229, 0.72),
    0 0.7rem 2.2rem rgba(63, 70, 59, 0.22);
}

.couple-mark span {
  display: block;
}

.couple-mark__amp {
  display: block;
  margin: 0.16em 0 0.2em;
  font-family: var(--font-amp);
  font-size: 0.82em;
  line-height: 0.72;
}

@media (orientation: landscape) {
  .couple-mark {
    width: min(38rem, 58vw);
    font-size: clamp(3.2rem, 6vw, 5.8rem);
    letter-spacing: 0.04em;
    line-height: 0.84;
    transform: translateY(60px);
  }

  .couple-mark__amp {
    margin: 0.1em 0 0.16em;
    font-size: 0.72em;
  }
}

.event-date {
  margin: 0 0 clamp(1.5rem, 3vw, 2.2rem);
  color: var(--text-primary);
  font-family: var(--font-info);
  font-size: 10pt;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1;
}

.countdown {
  width: min(38rem, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.55rem, 1.4vw, 0.9rem);
  margin: 0 auto clamp(1.75rem, 4vw, 2.75rem);
}

.countdown span {
  min-width: 0;
  padding: clamp(0.78rem, 2vw, 1.1rem) 0.5rem;
  border: 1px solid var(--border-soft);
  border-top-color: var(--border-gold);
  color: var(--text-on-light);
  background: rgba(247, 243, 236, 0.72);
  box-shadow: 0 0.8rem 2.2rem rgba(71, 64, 51, 0.075);
}

.countdown strong {
  display: block;
  color: var(--text-on-light);
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 3.8vw, 2.45rem);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
}

.countdown small {
  display: block;
  margin-top: 0.45rem;
  color: var(--text-on-light);
  font-size: clamp(0.64rem, 1.2vw, 0.78rem);
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.55rem;
  border: 1px solid rgba(110, 117, 96, 0.78);
  border-radius: var(--radius-sm);
  background: var(--olive-green);
  color: var(--text-inverse);
  box-shadow: 0 0.75rem 2rem rgba(71, 64, 51, 0.10);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button:hover {
  background: #5E6653;
  border-color: var(--champagne-gold);
  box-shadow: 0 1rem 2.4rem rgba(71, 64, 51, 0.14);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 0.45rem 1.3rem rgba(71, 64, 51, 0.12);
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.button--small {
  min-height: 2.55rem;
  padding: 0.68rem 1.25rem;
  font-size: 0.7rem;
}

.eyebrow,
.event-card h3,
.gift-card h3,
.dress__mode {
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.event-card h3 {
  font-size: 20px;
}

.parents {
  background: var(--pearl-ivory);
}

.parents__grid,
.card-grid,
.gift-grid {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
}

.parents__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.parents article {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-block: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.44), rgba(232, 223, 210, 0.18));
}

.parents article::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin: 0 auto 1.2rem;
  background: var(--champagne-gold);
}

.parents h2,
.event-card h3,
.gift-card h3 {
  margin: 0 0 1rem;
}

.parents p,
.event-card p,
.gift-card p,
.dress p,
.rsvp p {
  margin: 0.35rem 0;
}

.parents p {
  color: var(--text-primary);
  font-family: var(--font-editorial);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.25;
}

.parents .invitation-copy {
  max-width: 50rem;
  margin: 0 auto;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.85;
}

.date-agenda__content {
  width: min(42rem, 100%);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-block: 1px solid var(--border-soft);
  color: var(--text-on-light);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.44), rgba(232, 223, 210, 0.18));
}

.date-agenda__content .event-date {
  color: var(--text-on-light);
  margin-bottom: clamp(1.45rem, 3vw, 2.1rem);
}

.card-grid,
.gift-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-card,
.gift-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--border-soft);
  color: var(--text-on-light);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.event-card h3,
.event-card p,
.gift-card h3,
.gift-card p {
  color: var(--text-on-light);
}

.event-card {
  min-height: auto;
}

.event-card p {
  margin-top: 0;
}

.event-card--venue {
  grid-column: 1 / -1;
}

.event-card:not(.event-card--venue) h3 {
  margin-bottom: 10px;
}

.event-card img {
  width: clamp(9.6rem, 16vw, 12.6rem);
  aspect-ratio: 1;
  margin: 0 auto 1rem;
  object-fit: contain;
  filter: saturate(0.78) sepia(0.08);
}

.event-card:not(.event-card--venue) img {
  margin-bottom: 10px;
}

.event-card.event-card--compact-image-gap img {
  margin-bottom: 5px;
}

.event-card--venue img {
  width: clamp(18rem, 48vw, 34rem);
  aspect-ratio: auto;
}

.event-card p strong,
.gift-card strong {
  font-weight: 600;
}

.event-card .button,
.gift-card .button {
  margin-top: auto;
}

.gallery {
  background: linear-gradient(180deg, var(--pearl-ivory), rgba(232, 223, 210, 0.42));
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.35rem);
}

.gallery__item {
  min-width: 0;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--warm-linen);
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5.35;
  object-fit: cover;
  transition: transform 520ms ease, filter 520ms ease;
}

.gallery__item--wide {
  grid-column: 1 / -1;
}

.gallery__item--wide img {
  aspect-ratio: 16 / 8.2;
}

@media (hover: hover) and (pointer: fine) {
  .gallery__item:hover img {
    transform: scale(1.035);
    filter: saturate(0.94) contrast(1.02);
  }
}

.no-kids .section__inner,
.quote {
  color: var(--text-primary);
}

.no-kids p,
.quote p {
  max-width: 35rem;
  margin: 0 auto;
  color: var(--text-primary);
  font-family: var(--font-editorial);
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  font-style: italic;
  line-height: 1.1;
}

.no-kids .section__inner,
.quote p {
  padding: clamp(1.5rem, 4vw, 2.6rem);
  color: var(--text-on-light);
  background: rgba(247, 243, 236, 0.54);
  border: 1px solid rgba(200, 178, 125, 0.28);
}

.no-kids .section-title,
.no-kids p {
  color: var(--text-on-light);
}

.gift-card {
  gap: 1.1rem;
  justify-content: center;
  text-align: center;
}

.gift-card img {
  width: min(100%, 14rem);
  max-height: 6.5rem;
  object-fit: contain;
}

.gift-card--liverpool img,
.gift-card--experience img {
  margin-block: auto;
}

.gift-card--liverpool .button,
.gift-card--experience .button {
  margin-top: 0;
}

.gift-card--bank {
  gap: 0.55rem;
}

.gift-card--bank h3 {
  font-size: clamp(1rem, 1.75vw, 1.28rem);
  line-height: 1.15;
}

.gift-card--bank p {
  margin-block: 0.175rem;
  font-size: clamp(0.94rem, 1.2vw, 1.08rem);
  line-height: 1.3;
}

.gift-card p {
  color: var(--text-on-light);
  word-break: break-word;
}

.dress {
  background:
    linear-gradient(90deg, transparent, rgba(200, 178, 125, 0.12), transparent),
    var(--pearl-ivory);
}

.dress__mode {
  display: inline-flex;
  margin: 0.25rem auto 1.15rem;
  padding: 0.55rem 1.2rem;
  border-block: 1px solid var(--champagne-gold);
  color: var(--text-primary);
  font-size: clamp(0.86rem, 1.2vw, 1rem);
}

.quote {
  text-align: center;
}

.rsvp {
  background:
    linear-gradient(180deg, rgba(232, 223, 210, 0.74), rgba(247, 243, 236, 0.96)),
    var(--warm-linen);
}

.rsvp .section-title,
.rsvp p {
  color: var(--text-on-light);
}

.rsvp-form {
  width: min(42rem, 100%);
  display: grid;
  gap: 1rem;
  margin: clamp(1.75rem, 4vw, 2.6rem) auto 0;
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid var(--border-soft);
  color: var(--text-on-light);
  background: rgba(255, 253, 248, 0.62);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.rsvp-form.is-phone-step {
  gap: 0;
}

.rsvp-form.is-phone-step .field-group {
  gap: 0.25rem;
}

.rsvp-form.is-phone-step [data-validate-phone-button] {
  margin-top: 30px;
}

.rsvp-flow {
  display: grid;
  gap: 0.9rem;
}

.rsvp-form:not(.is-phone-step) .rsvp-flow {
  gap: 20px;
}

.flow-item {
  animation: flowReveal 260ms ease both;
}

.rsvp-instruction {
  margin: 0;
  color: var(--text-on-light);
  font-size: 0.96rem;
}

.field-group {
  display: grid;
  gap: 0.45rem;
}

.field-group label,
.readonly-label {
  color: var(--text-on-light);
  font-size: 0.95rem;
}

.field-note {
  display: block;
  margin-top: 0.12rem;
  color: var(--text-on-light);
  font-size: calc(0.95rem * 0.67);
  line-height: 1.35;
}

.readonly-label {
  margin: 0;
}

.readonly-value {
  margin: 0;
  min-height: 3rem;
  display: flex;
  align-items: center;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(239, 234, 225, 0.72);
  color: var(--text-on-light);
}

.readonly-value--inline {
  width: fit-content;
  min-width: 4.2rem;
}

.readonly-value--guest-name {
  font-size: 20px;
}

.party-size-field {
  gap: 14px;
}

.attendance-group {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--border-soft);
  color: var(--text-on-light);
  background: rgba(247, 243, 236, 0.56);
}

.attendance-group legend {
  padding: 0 0.4rem;
  color: var(--text-on-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.attendance-option {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.55rem;
  margin: 0.3rem 1.2rem 0.15rem 0;
  color: var(--text-on-light);
  cursor: pointer;
}

.field-error {
  min-height: 1.15rem;
  margin: 0;
  color: #8f2a2a;
  font-size: 0.86rem;
}

.rsvp-form p.field-error,
.rsvp-form p.form-message {
  margin: 0;
}

.rsvp-form .field-error:empty {
  display: none;
}

.validation-summary {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(157, 42, 42, 0.26);
  border-radius: var(--radius-sm);
  background: rgba(157, 42, 42, 0.08);
  color: var(--text-on-light);
}

.validation-summary p,
.validation-summary li {
  margin: 0;
  color: var(--text-on-light);
}

.validation-summary ul {
  margin: 0.45rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.2rem;
}

.returning-message {
  margin: 0;
  padding: 0.8rem 0.9rem;
  border-left: 2px solid var(--champagne-gold);
  background: rgba(247, 243, 236, 0.7);
}

.rsvp-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--border-soft);
  color: var(--text-on-light);
  background: rgba(247, 243, 236, 0.56);
}

.rsvp-form legend {
  padding: 0 0.4rem;
  color: var(--text-on-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rsvp-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--text-on-light);
  font-size: 0.95rem;
}

.rsvp-form fieldset label {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.55rem;
  margin: 0.3rem 1.2rem 0.15rem 0;
  color: var(--text-on-light);
  cursor: pointer;
}

.rsvp-form input,
.rsvp-form select {
  width: 100%;
  min-height: 3rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--text-on-light);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.rsvp-form input.is-readonly {
  background: rgba(239, 234, 225, 0.72);
}

.rsvp-form select {
  appearance: none;
  padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.25 7 7.25l6-6' fill='none' stroke='%236E7560' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 1.2rem center;
  background-repeat: no-repeat;
  background-size: 0.875rem 0.5625rem;
}

.rsvp-form input[type="radio"] {
  width: 1.05rem;
  min-height: auto;
  height: 1.05rem;
  accent-color: var(--olive-green);
}

.rsvp-form input:hover,
.rsvp-form select:hover {
  border-color: var(--eucalyptus);
}

.rsvp-form input:focus-visible,
.rsvp-form select:focus-visible {
  border-color: var(--olive-green);
  background-color: #FFFCF7;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.rsvp-form input:user-invalid,
.rsvp-form select:user-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(139, 63, 56, 0.13);
}

.rsvp-form input:disabled,
.rsvp-form select:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.rsvp-form select.is-single-option:disabled {
  opacity: 1;
  background-color: rgba(207, 195, 181, 0.42);
  background-image: none;
  color: rgba(63, 70, 59, 0.72);
  box-shadow: inset 0 2px 8px rgba(71, 64, 51, 0.08);
}

.form-message {
  min-height: 1.7rem;
  margin: 0;
  padding-left: 0.8rem;
  border-left: 2px solid var(--champagne-gold);
  color: var(--text-on-light);
  font-size: 0.95rem;
}

.rsvp-form:not(.is-phone-step) .form-message {
  margin-top: 4px;
}

.form-message:empty {
  display: none;
  padding-left: 0;
  border-left: 0;
}

.form-message.is-error {
  border-left-color: var(--error);
  color: var(--text-on-light);
  font-weight: 600;
}

.form-message.is-success {
  border-left-color: var(--olive-green);
}

.success-panel {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  padding: clamp(1.3rem, 4vw, 2rem);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at top, rgba(200, 178, 125, 0.18), transparent 58%),
    rgba(255, 253, 248, 0.82);
  box-shadow: 0 16px 38px rgba(71, 64, 51, 0.08);
  text-align: center;
}

.success-progress {
  position: relative;
  width: 6.5rem;
  height: 6.5rem;
  display: grid;
  place-items: center;
}

.success-progress svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.success-progress circle {
  fill: none;
  stroke-width: 6;
}

.success-progress__track {
  stroke: rgba(152, 166, 145, 0.28);
}

.success-progress__value {
  stroke: var(--olive-green);
  stroke-linecap: round;
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
  animation: completeSuccessProgress 4s linear forwards;
}

.success-progress__countdown {
  color: var(--olive-green);
  font-family: var(--font-info);
  font-size: 1.5rem;
  font-weight: 500;
}

.success-panel .success-panel__message {
  max-width: 28rem;
  margin: 0;
  color: var(--text-on-light);
  font-family: var(--font-editorial);
  font-size: clamp(0.92rem, 2.4vw, 1.16rem);
  font-weight: 600;
  line-height: 1.4;
}

.success-panel .success-panel__note {
  margin: 0;
  color: var(--olive-green);
  font-family: var(--font-info);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

[data-validate-phone-button][disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

@keyframes completeSuccessProgress {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes flowReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem;
  border-top: 1px solid rgba(200, 178, 125, 0.42);
  background:
    linear-gradient(180deg, rgba(110, 117, 96, 0.96), #4F5748),
    var(--olive-green);
  color: var(--text-inverse);
  text-align: center;
}

.site-footer::before {
  content: "";
  display: block;
  width: min(8rem, 38vw);
  height: 1px;
  margin: 0 auto 1.5rem;
  background: var(--champagne-gold);
}

.site-footer p {
  margin: 0 0 0.45rem;
  font-family: var(--font-editorial);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  letter-spacing: 0.04em;
}

.site-footer small {
  color: var(--text-primary);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  background: rgba(38, 35, 30, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(100%, 72rem);
  max-height: 86vh;
  object-fit: contain;
  border: 1px solid rgba(247, 243, 236, 0.28);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.36);
}

.lightbox__close {
  position: fixed;
  top: clamp(0.9rem, 2vw, 1.4rem);
  right: clamp(0.9rem, 2vw, 1.4rem);
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(247, 243, 236, 0.42);
  border-radius: 50%;
  background: rgba(247, 243, 236, 0.08);
  color: var(--text-inverse);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: background-color 180ms ease, transform 180ms ease;
}

.lightbox__close:hover {
  background: rgba(247, 243, 236, 0.18);
  transform: rotate(5deg);
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(0.9rem);
    animation: revealFallback 700ms ease 180ms forwards;
    transition: opacity 700ms ease, transform 700ms ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: none;
  }
}

@keyframes revealFallback {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1020px) {
  .card-grid,
  .gift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gift-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 60px;
  }

  .site-header {
    justify-content: flex-end;
    padding: 0.55rem 1rem;
  }

  .menu-toggle {
    position: relative;
    z-index: 22;
    width: 2.9rem;
    height: 2.9rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    background: rgba(247, 243, 236, 0.62);
    cursor: pointer;
  }

  .menu-toggle__bar,
  .menu-toggle__bar::before,
  .menu-toggle__bar::after {
    position: relative;
    display: block;
    width: 1.35rem;
    height: 1px;
    background: var(--olive-green);
    content: "";
    transition: transform 220ms ease, opacity 180ms ease;
  }

  .menu-toggle__bar::before,
  .menu-toggle__bar::after {
    position: absolute;
    left: 0;
  }

  .menu-toggle__bar::before {
    transform: translateY(-0.42rem);
  }

  .menu-toggle__bar::after {
    transform: translateY(0.42rem);
  }

  .site-header.is-open .menu-toggle__bar {
    transform: rotate(45deg);
  }

  .site-header.is-open .menu-toggle__bar::before {
    opacity: 0;
    transform: translateY(0);
  }

  .site-header.is-open .menu-toggle__bar::after {
    transform: translateY(0) rotate(90deg);
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    display: none;
    padding: 1rem 1.2rem 1.35rem;
    border-bottom: 1px solid var(--border-soft);
    background: rgba(247, 243, 236, 0.96);
    box-shadow: var(--shadow-soft);
  }

  .site-header.is-open .primary-nav {
    display: grid;
    gap: 0.35rem;
  }

  .primary-nav a {
    width: 100%;
    min-height: 2.8rem;
  }

  .section {
    padding-block: clamp(3.75rem, 10vw, 6rem);
  }

  .parents + .date-agenda {
    padding-top: 0;
    padding-bottom: 30px;
  }

  .date-agenda__content {
    padding-bottom: 20px;
  }

  .date-agenda__content > .button {
    display: flex;
    width: fit-content;
    margin-inline: auto;
  }

  #itinerario {
    padding-top: 30px;
  }

  .section--image {
    background-attachment: scroll;
    background-position: center top;
  }

  .hero {
    min-height: calc(72.25vh - var(--header-height));
    min-height: calc(72.25svh - var(--header-height));
  }

  .hero::before {
    inset: 0.75rem;
  }

  .parents__grid,
  .card-grid,
  .gift-grid,
  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .gift-card:last-child {
    grid-column: auto;
  }

  .gallery__item--wide {
    grid-column: auto;
  }

  .gallery__item--wide img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 560px) {
  .hero__content {
    padding-inline: 0.6rem;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .countdown span {
    padding-inline: 0.3rem;
  }

  .parents article,
  .event-card,
  .gift-card,
  .rsvp-form {
    padding: 1.1rem;
  }

  .rsvp-form fieldset label {
    display: flex;
    width: 100%;
    margin-right: 0;
  }

  .attendance-option {
    width: 100%;
    margin-right: 0;
  }
}

@media (max-width: 380px) {
  .countdown {
    gap: 0.45rem;
  }

  .countdown strong {
    font-size: 1.35rem;
  }

  .countdown small {
    font-size: 0.61rem;
    letter-spacing: 0.08em;
  }

  .button {
    width: 100%;
    padding-inline: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .flow-item {
    animation: none;
  }

  .success-progress__value {
    animation-duration: 4s;
  }
}

@media (prefers-contrast: more) {
  :root {
    --border-soft: rgba(110, 117, 96, 0.72);
    --focus-ring: rgba(38, 35, 30, 0.42);
  }

  .site-header,
  .event-card,
  .gift-card,
  .rsvp-form,
  .gallery__item,
  .countdown span {
    background: var(--pearl-ivory);
  }
}
