/* ============================================================
   ARNAUD & MARIAM — WEDDING WEBSITE
   Change the colors below to update the entire visual identity.
   ============================================================ */

:root {
  --blue: #182c91;
  --blue-deep: #10216f;
  --blue-soft: #3348a4;
  --ivory: #f7f3e9;
  --ivory-deep: #eee7d8;
  --paper: #fffdf8;
  --ink: #14245f;
  --muted: #6b6d75;
  --line: rgba(24, 44, 145, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --page-padding: clamp(1.25rem, 5vw, 5rem);
  --section-space: clamp(6rem, 12vw, 10rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  color: var(--paper);
  background: var(--blue);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.sr-only,
.svg-library {
  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: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  color: white;
  background: var(--blue);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.music-toggle {
  position: fixed;
  right: auto;
  bottom: 1.2rem;
  left: 1.2rem;
  z-index: 90;
  display: flex;
  min-width: 3.35rem;
  height: 3.35rem;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  color: white;
  background: var(--blue);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  box-shadow: 0 0.7rem 2rem rgba(16,33,111,0.18);
  cursor: pointer;
  transition: border-radius 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.music-toggle[hidden] {
  display: none;
}

.music-toggle:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
}

.music-toggle__label {
  display: none;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.music-toggle__icon {
  display: flex;
  height: 1rem;
  gap: 2px;
  align-items: center;
}

.music-toggle__icon i {
  display: block;
  width: 2px;
  height: 35%;
  background: currentColor;
  animation: music-pulse 1s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.music-toggle__icon i:nth-child(2) {
  height: 90%;
  animation-delay: -0.35s;
}

.music-toggle__icon i:nth-child(3) {
  height: 60%;
  animation-delay: -0.7s;
}

.music-toggle[aria-pressed="true"] .music-toggle__icon i {
  animation-play-state: running;
}

@keyframes music-pulse {
  from { transform: scaleY(0.55); }
  to { transform: scaleY(1); }
}

.eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section {
  position: relative;
  padding: var(--section-space) var(--page-padding);
  overflow: hidden;
}

.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.25rem, 8vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.78;
}

.section h2 em {
  font-weight: 400;
}

.text-link {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.25rem 0;
  color: inherit;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.text-link span {
  transition: transform 0.3s ease;
}

.text-link:hover span {
  transform: translateY(3px);
}

.button {
  display: inline-flex;
  min-height: 3.75rem;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  border: 1px solid var(--blue);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--outline {
  color: var(--blue);
  background: transparent;
}

.button--outline:hover {
  color: var(--paper);
  background: var(--blue);
}

.button--solid {
  color: white;
  background: var(--blue);
}

.button--solid:hover {
  background: var(--blue-deep);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  height: 5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-padding);
  color: var(--blue);
  transition: height 0.4s ease, color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  direction: ltr;
}

.site-header.is-scrolled {
  height: 4.25rem;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.monogram {
  position: relative;
  z-index: 102;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.08em;
  text-decoration: none;
}

.header-start {
  position: relative;
  z-index: 102;
  display: flex;
  gap: clamp(0.8rem, 2vw, 1.5rem);
  align-items: center;
}

.monogram span {
  padding: 0 0.15rem;
  font-size: 0.75em;
  font-style: italic;
  font-weight: 400;
}

.language-switch {
  display: flex;
  align-items: center;
  border-left: 1px solid currentColor;
  padding-left: clamp(0.7rem, 1.5vw, 1rem);
}

.language-switch button {
  position: relative;
  min-width: 1.8rem;
  padding: 0.3rem 0.25rem;
  color: inherit;
  background: transparent;
  border: 0;
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.25s ease;
}

.language-switch button:hover,
.language-switch button[aria-pressed="true"] {
  opacity: 1;
}

.language-switch button[aria-pressed="true"]::after {
  position: absolute;
  right: 0.3rem;
  bottom: 0.05rem;
  left: 0.3rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.language-switch button[lang="ar"] {
  font-family: Tahoma, Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0;
}

.menu-toggle {
  position: relative;
  z-index: 102;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  position: absolute;
  left: 0.55rem;
  width: 1.7rem;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s ease, top 0.3s ease;
}

.menu-toggle span:nth-last-child(2) {
  top: 1.1rem;
}

.menu-toggle span:last-child {
  top: 1.65rem;
}

.menu-open .menu-toggle span:nth-last-child(2) {
  top: 1.4rem;
  transform: rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  top: 1.4rem;
  transform: rotate(-45deg);
}

.site-nav {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  color: white;
  background: var(--blue);
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.site-nav a {
  font-family: var(--serif);
  font-size: 2.5rem;
  text-decoration: none;
}

.menu-open .site-header {
  color: white;
}

.menu-open .site-nav {
  visibility: visible;
  opacity: 1;
}

/* Arabic keeps the same visual composition while using natural RTL reading. */
html[dir="rtl"] body {
  font-family: Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .hero h1,
html[dir="rtl"] .invitation-card h3,
html[dir="rtl"] .site-footer h2,
html[dir="rtl"] .monogram {
  direction: ltr;
  font-family: var(--serif);
}

html[dir="rtl"] .section h2,
html[dir="rtl"] .hero-intro,
html[dir="rtl"] .venue-lead,
html[dir="rtl"] .invitation-card p,
html[dir="rtl"] .form-success h3 {
  font-family: Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}

html[dir="rtl"] .venue {
  direction: ltr;
}

html[dir="rtl"] .venue-copy,
html[dir="rtl"] .rsvp-form {
  direction: rtl;
}

html[dir="rtl"] .venue-copy {
  text-align: right;
}

html[dir="rtl"] .field label,
html[dir="rtl"] .field legend {
  letter-spacing: 0;
}

html[dir="rtl"] .radio-card span {
  padding-right: 3rem;
  padding-left: 1rem;
}

html[dir="rtl"] .radio-card span::before {
  right: 1rem;
  left: auto;
}

html[dir="rtl"] .button,
html[dir="rtl"] .text-link,
html[dir="rtl"] .eyebrow {
  letter-spacing: 0.04em;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 7rem var(--page-padding) 5.5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.9) 0, rgba(255,255,255,0) 46%),
    var(--ivory);
}

.hero::before {
  position: absolute;
  inset: 1rem;
  border: 1px solid var(--line);
  content: "";
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 56rem);
  text-align: center;
}

.hero-content .eyebrow {
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.3rem, 19vw, 10rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.66;
}

.hero h1 i {
  position: relative;
  z-index: 1;
  margin: clamp(0.1rem, 0.35vw, 0.3rem) 0;
  font-size: 0.46em;
  font-weight: 400;
  line-height: 0.62;
}

.hero-intro {
  margin: clamp(2.2rem, 5vh, 3.7rem) auto 1.25rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.35;
}

.ornament {
  display: flex;
  width: 9rem;
  gap: 0.7rem;
  align-items: center;
  margin: 1.7rem auto;
}

.ornament span {
  height: 1px;
  flex: 1;
  background: currentColor;
  opacity: 0.4;
}

.ornament b {
  font-size: 0.62rem;
  font-weight: 400;
}

.hero-date {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1;
}

.hero-time {
  margin: 0.6rem 0 1.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero address {
  display: flex;
  flex-direction: column;
  margin-bottom: 2.2rem;
  font-style: normal;
  line-height: 1.55;
}

.hero address strong {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
}

.hero address span {
  color: var(--muted);
  font-size: 0.75rem;
}

.hero-floral {
  position: absolute;
  z-index: 1;
  width: clamp(11rem, 34vw, 28rem);
  color: var(--blue);
  opacity: 0.98;
  pointer-events: none;
  transform-origin: bottom center;
  animation: botanical-breeze 8s ease-in-out infinite alternate;
}

.hero-floral--left {
  bottom: -2.5rem;
  left: -4.6rem;
  width: clamp(9.5rem, 29vw, 23rem);
  transform: rotate(12deg);
}

.hero-floral--right {
  right: -4.6rem;
  bottom: -2.5rem;
  width: clamp(11rem, 34vw, 28rem);
  transform: scaleX(-1) rotate(10deg);
  animation-delay: -4s;
}

.hero-floral--right svg {
  /* Shorten the branch while keeping its base aligned with the left flower. */
  transform: scaleY(0.84);
  transform-origin: center bottom;
}

.scroll-note {
  display: none;
}

/* Invitation */
.invitation {
  background: var(--blue);
  color: var(--paper);
}

.invitation::before,
.invitation::after {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  content: "";
}

.invitation::before {
  top: -7rem;
  left: -7rem;
}

.invitation::after {
  right: -8rem;
  bottom: -8rem;
}

.section-heading {
  margin-bottom: clamp(3rem, 8vw, 6rem);
  text-align: center;
}

.invitation-card {
  position: relative;
  width: min(100%, 42rem);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.5rem, 8vw, 5rem);
  color: var(--blue);
  background:
    linear-gradient(rgba(24,44,145,0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 5px;
  box-shadow: 0 2rem 5rem rgba(4, 14, 62, 0.28);
  text-align: center;
}

.invitation-card::before {
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(24,44,145,0.35);
  content: "";
  pointer-events: none;
}

.card-corner {
  position: absolute;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  border-color: var(--blue);
  border-style: solid;
}

.card-corner--tl {
  top: 1.15rem; left: 1.15rem; border-width: 1px 0 0 1px;
}
.card-corner--tr {
  top: 1.15rem; right: 1.15rem; border-width: 1px 1px 0 0;
}
.card-corner--bl {
  bottom: 1.15rem; left: 1.15rem; border-width: 0 0 1px 1px;
}
.card-corner--br {
  right: 1.15rem; bottom: 1.15rem; border-width: 0 1px 1px 0;
}

.card-flower {
  display: block;
  width: min(100%, 20.5rem);
  height: auto;
  margin: 0 auto 1.5rem;
}

.card-preface,
.card-note {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.invitation-card h3 {
  margin: 1.2rem 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 9vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.invitation-card h3 i {
  font-size: 0.7em;
  font-weight: 400;
}

.invitation-card > p:not(.card-preface):not(.card-note):not(.card-place) {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.45;
}

.card-date {
  display: grid;
  width: min(100%, 23rem);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 2.4rem auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-date span {
  padding: 0.75rem 0.3rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.card-date strong {
  padding: 0 1rem;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 3.7rem;
  font-weight: 500;
  line-height: 1.2;
}

.card-place {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.35;
}

.card-place b {
  font-weight: 600;
}

.card-note {
  margin-top: 2.5rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.card-rsvp {
  position: relative;
  z-index: 2;
  gap: 0.4rem;
  margin-top: 1.25rem;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(0.82rem, 3.8vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
  white-space: nowrap;
}

/* Venue */
.venue {
  display: grid;
  gap: 4rem;
  background: var(--ivory);
}

.venue-decoration {
  position: absolute;
  right: -4rem;
  bottom: -3rem;
  width: clamp(15rem, 34vw, 29rem);
  color: var(--blue);
  opacity: 0.06;
  pointer-events: none;
  transform: scaleX(-1) rotate(8deg);
}

.venue-image-wrap,
.venue-copy {
  position: relative;
  z-index: 1;
}

.venue-image-wrap {
  padding: clamp(0.35rem, 1vw, 0.7rem);
  background: rgba(255, 253, 248, 0.68);
  border-radius: 0.9rem;
  box-shadow: 0 1.25rem 3.5rem rgba(16, 33, 111, 0.1);
}

.venue-photo {
  display: block;
  width: 100%;
  min-height: clamp(28rem, 70vw, 42rem);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  overflow: hidden;
  border-radius: 0.6rem;
  box-shadow: 0 0.5rem 1.5rem rgba(20, 36, 95, 0.06);
  object-position: 44% center;
}

.venue-copy {
  align-self: center;
}

.venue-copy h2 {
  color: var(--blue);
  font-size: clamp(2rem, 4.3vw, 3.6rem);
  line-height: 0.88;
}

.venue-copy h2 em {
  white-space: nowrap;
}

.venue-lead {
  max-width: 36rem;
  margin: 2.5rem 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.45;
}

.venue-details {
  display: grid;
  gap: 1.5rem;
  margin: 2.5rem 0 1.25rem;
}

.venue-details > div {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.venue-details span {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.venue-details p {
  margin: 0.5rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.35;
}

/* RSVP */
.rsvp {
  background: var(--paper);
}

.rsvp-heading {
  max-width: 38rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.rsvp-heading h2 {
  color: var(--blue);
}

.rsvp-heading > p:last-child {
  max-width: 27rem;
  margin: 2rem auto 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.35;
}

.rsvp-form {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 48rem);
  gap: 1.7rem 1.25rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 4rem);
  background: var(--ivory);
  border: 1px solid var(--line);
}

.field {
  position: relative;
  min-width: 0;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field label span,
.field legend span {
  color: #a33131;
}

.field label i {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.field input:not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.65rem 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(24,44,145,0.4);
  border-radius: 0;
  outline: none;
  transition: border-color 0.25s ease;
}

.field textarea {
  resize: vertical;
}

.field select {
  cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 1px 0 var(--blue);
}

.field input::placeholder {
  color: rgba(107,109,117,0.65);
}

.attendance-field {
  padding: 0;
  border: 0;
}

.radio-group {
  display: grid;
  gap: 0.75rem;
}

.radio-card {
  position: relative;
  margin: 0 !important;
  cursor: pointer;
}

.radio-card input {
  position: absolute;
  opacity: 0;
}

.radio-card span {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  padding: 0.8rem 1rem 0.8rem 3rem;
  color: var(--ink) !important;
  background: transparent;
  border: 1px solid var(--line);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s ease, background 0.25s ease;
}

.radio-card span::before {
  position: absolute;
  left: 1rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid var(--blue);
  border-radius: 50%;
  content: "";
}

.radio-card input:checked + span {
  color: white !important;
  background: var(--blue);
}

.radio-card input:checked + span::before {
  background: white;
  border: 3px solid var(--blue);
  box-shadow: 0 0 0 1px white;
}

.radio-card input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.error-message {
  display: none;
  margin-top: 0.35rem;
  color: #a33131;
  font-size: 0.65rem;
}

.field.has-error .error-message {
  display: block;
}

.field.has-error input:not([type="radio"]),
.field.has-error select,
.field.has-error textarea {
  border-color: #a33131;
}

.form-privacy {
  margin: -0.6rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.rsvp-decoration {
  position: absolute;
  width: clamp(10rem, 22vw, 19rem);
  color: var(--blue);
  opacity: 0.06;
  pointer-events: none;
}

.rsvp-decoration--left {
  bottom: -3rem;
  left: -4rem;
  transform: rotate(8deg);
}

.rsvp-decoration--right {
  top: auto;
  bottom: -3rem;
  right: -4rem;
  transform: scaleX(-1) rotate(8deg);
}

.form-success {
  width: min(100%, 48rem);
  min-height: 30rem;
  margin: 0 auto;
  padding: 5rem 2rem;
  background: var(--ivory);
  border: 1px solid var(--line);
  text-align: center;
}

.form-success svg {
  width: 4rem;
  margin: 0 auto 2rem;
  color: var(--blue);
}

.form-success h3 {
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 500;
  line-height: 0.95;
}

.form-success .eyebrow {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.form-success .text-link {
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  position: relative;
  display: grid;
  min-height: 15rem;
  place-items: center;
  overflow: hidden;
  padding: 2.5rem var(--page-padding);
  color: white;
  background: var(--blue);
  text-align: center;
}

.site-footer > div:not(.footer-floral) {
  position: relative;
  z-index: 1;
}

.site-footer p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
}

.site-footer h2 {
  margin: 0.4rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 7vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.site-footer h2 i {
  font-size: 0.7em;
  font-weight: 400;
}

.site-footer > div > span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.site-footer > a {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  place-items: center;
  text-decoration: none;
  transition: background 0.3s ease;
}

.site-footer > a:hover {
  background: rgba(255,255,255,0.12);
}

.footer-floral {
  position: absolute;
  bottom: -5.5rem;
  left: 50%;
  width: min(20rem, 62vw);
  color: white;
  opacity: 0.07;
  transform: translateX(-50%) rotate(-2deg);
}

/* Scroll reveal: content remains visible if JavaScript is unavailable. */
.js .reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.22, 1, .36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes botanical-breeze {
  from { rotate: -1.2deg; translate: 0 0; }
  to { rotate: 1.2deg; translate: 0 -0.5rem; }
}

/* Tablet and desktop */
@media (min-width: 48rem) {
  .card-rsvp {
    gap: 0.75rem;
    font-size: clamp(1.3rem, 3.3vw, 1.75rem);
  }

  .music-toggle {
    right: auto;
    bottom: 1.75rem;
    left: 1.75rem;
    border-radius: 2rem;
  }

  .music-toggle__label {
    display: inline;
  }

  .site-footer > a {
    right: 1.75rem;
    bottom: 1.75rem;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    width: auto;
    flex-direction: row;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
    visibility: visible;
    color: inherit;
    background: transparent;
    opacity: 1;
  }

  .site-nav a {
    position: relative;
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }

  .site-nav a:not(.nav-rsvp)::after {
    position: absolute;
    right: 0;
    bottom: -0.25rem;
    left: 0;
    height: 1px;
    background: currentColor;
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
  }

  .site-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .nav-rsvp {
    padding: 0.55rem 1rem;
    border: 1px solid currentColor;
  }

  .hero h1 span:first-child {
    margin-right: 1.2em;
  }

  .hero h1 span:last-child {
    margin-left: 1.1em;
  }

  .hero h1 i {
    margin: clamp(0.2rem, 0.45vw, 0.4rem) 0;
  }

  .hero-floral--left {
    left: -2rem;
  }

  .hero-floral--right {
    right: -2rem;
  }

  .venue {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(4rem, 8vw, 8rem);
    align-items: center;
  }

  .venue-image-wrap {
    width: 100%;
    max-width: 44rem;
  }

  .venue-photo {
    min-height: 38rem;
  }

  .venue-details,
  .rsvp-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field--full {
    grid-column: 1 / -1;
  }

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

}

@media (min-width: 70rem) {
  .scroll-note {
    position: absolute;
    right: var(--page-padding);
    bottom: 3rem;
    display: block;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
  }

  .scroll-note::after {
    display: inline-block;
    width: 1px;
    height: 3rem;
    margin-top: 1rem;
    background: currentColor;
    content: "";
  }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
