:root {
  /* ========= PALETTE VERT ROYAL + BEIGE ========= */
  --royal-green:       #355548;
  --royal-green-soft:  #47685a;
  --royal-green-deep:  #244037;
  --royal-green-dark:  #1d332c;
  --royal-green-glow:  rgba(53, 85, 72, 0.22);

  --beige:             #d8c6ad;
  --beige-soft:        #e8dccb;
  --beige-light:       #f4ede3;
  --ivory:             #fbf8f3;
  --white:             #ffffff;

  --text-dark:         #2e3f38;
  --text-main:         #47554f;
  --text-soft:         #5b6862;

  --text-on-dark:      #f7f1e8;
  --text-on-dark-soft: rgba(247, 241, 232, 0.88);
  --text-on-dark-muted: rgba(247, 241, 232, 0.66);

  --title-beige:       #ae9272;
  --title-beige-light: #ead9c3;
  --accent-link:       #d7c4a8;
  --accent-icon:       #dcc6a7;

  --border-soft:       rgba(53, 85, 72, 0.12);
  --border-strong:     rgba(53, 85, 72, 0.22);
  --border-beige:      rgba(216, 198, 173, 0.35);

  --shadow:            0 16px 40px rgba(24, 38, 32, 0.08);
  --shadow-hover:      0 22px 50px rgba(24, 38, 32, 0.14);
  --shadow-dark:       0 20px 48px rgba(10, 18, 15, 0.28);

  --radius:            26px;
  --transition:        all 0.35s ease;
  --container:         1120px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  background:
    radial-gradient(circle at top left, rgba(216, 198, 173, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(53, 85, 72, 0.16), transparent 35%),
    linear-gradient(135deg, #fcfaf6 0%, #f7f1e8 50%, #fdfbf8 100%);
}

body.intro-active {
  overflow: hidden;
}

img,
iframe {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

main {
  overflow: hidden;
}

.main-content {
  position: relative;
  z-index: 2;
  background: transparent;
  animation: mainFade 1.1s ease;
}

.hidden {
  display: none;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  max-width: 860px;
}

.center {
  text-align: center;
}

/* ========= FOND ANIMÉ ========= */
.animated-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  top: -80px;
  left: -100px;
  background: radial-gradient(circle, rgba(53, 85, 72, 0.28), rgba(53, 85, 72, 0.02));
  animation: floatOrb1 16s infinite;
}

.orb-2 {
  width: 520px;
  height: 520px;
  right: -140px;
  top: 25%;
  background: radial-gradient(circle, rgba(216, 198, 173, 0.34), rgba(216, 198, 173, 0.04));
  animation: floatOrb2 20s infinite;
}

.orb-3 {
  width: 420px;
  height: 420px;
  bottom: -120px;
  left: 28%;
  background: radial-gradient(circle, rgba(71, 104, 90, 0.20), rgba(71, 104, 90, 0.03));
  animation: floatOrb3 18s infinite;
}

.bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(53, 85, 72, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 85, 72, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: moveGrid 22s linear infinite;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(120px, 90px) scale(1.12); }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-110px, 80px) scale(1.08); }
}

@keyframes floatOrb3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(60px, -90px) scale(1.14); }
}

@keyframes moveGrid {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-20px, -14px); }
  100% { transform: translate(0, 0); }
}

/* ========= BOUTON MUSIQUE ========= */
.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 248, 243, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(53, 85, 72, 0.18);
  box-shadow: 0 10px 25px rgba(29, 51, 44, 0.16);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
}

body.intro-finished .music-toggle {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.music-toggle:hover {
  transform: translateY(0) scale(1.08);
}

.music-toggle i {
  font-size: 1.2rem;
  color: var(--royal-green);
}

/* ========= INTRO SCREEN ========= */
.intro-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  min-height: 100dvh;
  background:
    linear-gradient(135deg, rgba(29, 51, 44, 0.88), rgba(53, 85, 72, 0.72)),
    var(--royal-green-dark);
  overflow: hidden;
  z-index: 5000;
}

.intro-screen.is-finished {
  position: relative;
  inset: auto;
  height: 100vh;
  min-height: 100dvh;
  z-index: 1;
}

.intro-trigger {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: pointer;
  overflow: hidden;
  background: transparent;
  transition: opacity 1.6s ease, transform 1.6s ease, visibility 1.6s ease;
}

.intro-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29, 51, 44, 0.12), rgba(29, 51, 44, 0.4));
  pointer-events: none;
  transition: opacity 1.4s ease;
}

.intro-cover,
.video-end-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.intro-cover {
  z-index: 2;
  animation: gentlePulse 4.5s ease-in-out infinite;
}

.video-end-frame {
  z-index: 1;
  opacity: 1;
}

.intro-screen.is-opening .intro-trigger {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.intro-screen.is-opening .intro-trigger::after {
  opacity: 0;
}

.intro-screen.is-finished .intro-trigger {
  display: none;
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.012); }
}

/* ========= FLOATING LOGO ========= */
.floating-logo {
  position: fixed;
  top: 0;
  left: 0;
  width: clamp(150px, 14vw, 210px);
  height: clamp(150px, 14vw, 210px);
  z-index: 9999;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
  animation: logoSwim 26s ease-in-out infinite;
}

.floating-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  opacity: 0.95;
  filter: drop-shadow(0 8px 24px rgba(29, 51, 44, 0.28));
  animation: logoFloat 5.5s ease-in-out infinite;
}

body.logo-active .floating-logo {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.4s ease, visibility 1.4s ease;
}

@keyframes logoSwim {
  0%   { transform: translate3d(4vw, 10vh, 0); }
  20%  { transform: translate3d(70vw, 17vh, 0); }
  40%  { transform: translate3d(62vw, 60vh, 0); }
  60%  { transform: translate3d(14vw, 72vh, 0); }
  80%  { transform: translate3d(22vw, 34vh, 0); }
  100% { transform: translate3d(4vw, 10vh, 0); }
}

@keyframes logoFloat {
  0%   { transform: translateY(0) rotate(-5deg) scale(1); }
  25%  { transform: translateY(-8px) rotate(2deg) scale(1.03); }
  50%  { transform: translateY(3px) rotate(6deg) scale(0.985); }
  75%  { transform: translateY(-6px) rotate(-2deg) scale(1.02); }
  100% { transform: translateY(0) rotate(-5deg) scale(1); }
}

/* ========= SECTIONS ========= */
.section {
  position: relative;
  padding: 100px 0;
  z-index: 1;
}

.section-light {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(244, 237, 227, 0.88)),
    linear-gradient(135deg, rgba(216, 198, 173, 0.18), rgba(53, 85, 72, 0.06));
  color: var(--text-dark);
  backdrop-filter: blur(3px);
}

.section-dark {
  background:
    linear-gradient(135deg, rgba(29, 51, 44, 0.96) 0%, rgba(36, 64, 55, 0.96) 50%, rgba(53, 85, 72, 0.95) 100%);
  color: var(--text-on-dark);
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(216, 198, 173, 0.08), transparent 30%),
    radial-gradient(circle at 80% 75%, rgba(255, 255, 255, 0.05), transparent 32%);
  pointer-events: none;
}

.section-dark > * {
  position: relative;
  z-index: 1;
}

.section-with-banner {
  padding-top: 0;
}

.full-banner {
  width: 100%;
  margin: 0 0 56px;
  overflow: hidden;
  position: relative;
}

.full-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(29, 51, 44, 0.18));
  pointer-events: none;
}

.section-banner-image {
  width: 100%;
  height: clamp(220px, 34vw, 440px);
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.01);
  transition: transform 1.4s ease;
}

.full-banner:hover .section-banner-image {
  transform: scale(1.06);
}

/* ========= SECTION HEAD ========= */
.section-head {
  margin-bottom: 46px;
}

.ornament {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--royal-green);
  font-size: 0.9rem;
}

.ornament i {
  color: var(--title-beige);
  font-size: 0.85rem;
}

.ornament-line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--royal-green-soft), transparent);
}

.ornament-light {
  color: var(--title-beige-light);
}

.ornament-light i {
  color: var(--title-beige-light);
}

.ornament-light .ornament-line {
  background: linear-gradient(to right, transparent, rgba(234, 217, 195, 0.9), transparent);
}

.section-label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--royal-green-soft);
  margin-bottom: 12px;
  font-weight: 700;
}

.section-label.light {
  color: var(--title-beige-light);
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--title-beige);
  font-weight: 700;
}

.section-title.light {
  color: var(--title-beige-light);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.section-arabic {
  font-family: "Amiri", serif;
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--royal-green);
}

.section-arabic.light {
  color: var(--title-beige-light);
}

.section-text {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-main);
  font-size: 1.02rem;
}

.section-dark .section-text {
  color: var(--text-on-dark-soft);
}

.light-text {
  color: var(--text-on-dark-soft) !important;
}

.light-text strong {
  color: var(--title-beige-light);
  font-weight: 700;
}

/* ========= EVENT HIGHLIGHT ========= */
.event-highlight {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 auto 38px;
  padding: 26px 28px;
  max-width: 720px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border-beige);
  box-shadow: var(--shadow);
  text-align: left;
  backdrop-filter: blur(14px);
}

.event-highlight-icon {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--royal-green), var(--royal-green-soft));
  color: var(--beige-light);
  font-size: 1.55rem;
  box-shadow: 0 10px 24px rgba(29, 51, 44, 0.18);
}

.event-highlight-content {
  flex: 1;
}

.event-highlight-label {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--royal-green-soft);
  font-weight: 700;
}

.event-highlight-content strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.1;
  color: var(--title-beige);
  margin-bottom: 6px;
  font-weight: 700;
}

.event-highlight-content p {
  color: var(--text-main);
  margin: 0;
}

/* ========= COUNTDOWN ========= */
.countdown {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: nowrap;
}

.count-box {
  position: relative;
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 26px 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(53, 85, 72, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  backdrop-filter: blur(10px);
}

.count-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--royal-green), transparent);
}

.count-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.count-box span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  color: var(--royal-green);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}

.count-box small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.64rem;
  color: var(--title-beige);
  font-weight: 700;
}

/* ========= CARDS ========= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 36px;
}

.card {
  position: relative;
  border-radius: var(--radius);
  padding: 38px 30px;
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), transparent 45%);
  pointer-events: none;
}

.card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.15;
}

.card p {
  color: inherit;
}

.card-subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
}

.card-subtitle i {
  margin-right: 8px;
  color: inherit;
}

.card-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.card-light {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border-beige);
  color: var(--text-dark);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card-light h3 {
  color: var(--title-beige);
}

.card-light .card-subtitle {
  color: var(--royal-green-soft);
}

.card-light i {
  color: var(--royal-green);
}

.card-light:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(53, 85, 72, 0.24);
}

.card-dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(234, 217, 195, 0.16);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(12px);
}

.card-dark h3 {
  color: var(--title-beige-light);
}

.card-dark .card-subtitle {
  color: var(--title-beige-light);
}

.card-dark i {
  color: var(--title-beige-light);
}

.card-dark p,
.card-dark .card-line {
  color: var(--text-on-dark-soft);
}

.card-dark:hover {
  transform: translateY(-12px);
  border-color: rgba(234, 217, 195, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

/* ========= LIENS ========= */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--title-beige-light);
  font-weight: 700;
  border-bottom: 1px solid rgba(234, 217, 195, 0.34);
  padding-bottom: 3px;
  transition: var(--transition);
}

.text-link i {
  color: var(--title-beige-light);
}

.text-link:hover {
  color: var(--white);
  transform: translateY(-1px);
  border-color: var(--white);
}

/* ========= DRESS GRID ========= */
.dress-grid .card {
  min-height: 220px;
}

/* ========= MAP ========= */
.map-box {
  height: 420px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(234, 217, 195, 0.18);
  box-shadow: var(--shadow-dark);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.map-box:hover {
  transform: scale(1.01);
  border-color: rgba(234, 217, 195, 0.36);
}

/* ========= RSVP ========= */
.rsvp-section {
  padding-bottom: 120px;
}

.rsvp-form {
  margin-top: 40px;
  padding: 40px 38px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(234, 217, 195, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 25px 60px rgba(10, 18, 15, 0.22);
}

.rsvp-field {
  margin-bottom: 22px;
  flex: 1;
  min-width: 0;
}

.rsvp-row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.rsvp-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 10px;
}

.rsvp-field label i {
  color: var(--title-beige-light);
  font-size: 0.9rem;
}

.rsvp-field .optional {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.72rem;
  font-style: italic;
  opacity: 0.88;
  font-weight: 500;
}

.rsvp-field input[type="text"],
.rsvp-field input[type="tel"],
.rsvp-field select,
.rsvp-field textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-family: "Montserrat", sans-serif;
  color: var(--royal-green-dark);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(53, 85, 72, 0.18);
  border-radius: 14px;
  transition: all 0.3s ease;
  outline: none;
}

.rsvp-field input::placeholder,
.rsvp-field textarea::placeholder {
  color: rgba(53, 85, 72, 0.58);
  font-style: italic;
}

.rsvp-field input:focus,
.rsvp-field select:focus,
.rsvp-field textarea:focus {
  background: var(--white);
  border-color: var(--royal-green);
  box-shadow: 0 0 0 4px rgba(53, 85, 72, 0.14);
}

.rsvp-field textarea {
  resize: vertical;
  min-height: 90px;
  font-family: "Montserrat", sans-serif;
}

.rsvp-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23355548' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.rsvp-field select option {
  background: var(--white);
  color: var(--royal-green-dark);
}

.rsvp-radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.rsvp-radio {
  flex: 1;
  min-width: 220px;
  position: relative;
  cursor: pointer;
}

.rsvp-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rsvp-radio span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(53, 85, 72, 0.14);
  color: var(--royal-green-dark);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: left;
}

.rsvp-radio span i {
  font-size: 1rem;
  color: var(--royal-green);
}

.rsvp-radio span strong {
  font-size: 0.98rem;
  line-height: 1.2;
  color: var(--royal-green-dark);
}

.rsvp-radio span small {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-main);
}

.rsvp-radio:hover span {
  background: var(--white);
  border-color: rgba(53, 85, 72, 0.22);
}

.rsvp-radio input:checked + span {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(244, 237, 227, 0.98));
  border-color: var(--royal-green);
  box-shadow: 0 0 0 3px rgba(53, 85, 72, 0.12);
}

.rsvp-radio input:checked + span i {
  color: var(--title-beige);
}

.rsvp-status {
  display: none;
  margin: 18px 0 8px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.rsvp-status.is-visible {
  display: block;
}

.rsvp-status.is-success {
  background: rgba(216, 198, 173, 0.12);
  border: 1px solid rgba(216, 198, 173, 0.28);
  color: var(--title-beige-light);
}

.rsvp-status.is-error {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(216, 198, 173, 0.28);
  color: #fff1e1;
}

.rsvp-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  justify-content: center;
}

/* ========= BOUTONS ========= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  min-width: 220px;
  position: relative;
  overflow: hidden;
}

.btn i {
  font-size: 1.1rem;
}

.btn:disabled {
  opacity: 0.8;
  cursor: wait;
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--royal-green) 0%, var(--royal-green-soft) 100%);
  color: var(--beige-light);
  box-shadow: 0 12px 30px rgba(29, 51, 44, 0.22);
}

.btn-whatsapp::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transition: left 0.6s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(29, 51, 44, 0.28);
}

.btn-whatsapp:hover::before {
  left: 100%;
}

.btn-whatsapp i {
  font-size: 1.35rem;
}

.rsvp-field.has-error input,
.rsvp-field.has-error select,
.rsvp-field.has-error textarea {
  border-color: var(--title-beige);
  box-shadow: 0 0 0 3px rgba(216, 198, 173, 0.18);
}

.rsvp-error-msg {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #fff1e1;
  font-style: italic;
}

/* ========= FOOTER ========= */
.footer {
  background: linear-gradient(180deg, var(--royal-green) 0%, var(--royal-green-deep) 55%, var(--royal-green-dark) 100%);
  color: var(--text-on-dark);
  padding: 76px 0 80px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(216, 198, 173, 0.08), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.04), transparent 40%);
  pointer-events: none;
}

.footer > * {
  position: relative;
  z-index: 1;
}

.footer-divider {
  width: 140px;
  height: 1px;
  margin: 0 auto 28px;
  background: linear-gradient(to right, transparent, rgba(234, 217, 195, 0.8), transparent);
}

.footer-divider-bottom {
  margin-top: 28px;
  margin-bottom: 26px;
}

.intro-title {
  font-family: "Great Vibes", cursive;
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.05;
  color: var(--title-beige-light);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}

.footer-text {
  color: var(--text-on-dark-soft);
  max-width: 720px;
  margin: 0 auto 16px;
}

.footer-arabic {
  font-family: "Amiri", serif;
  font-size: 1.6rem;
  color: var(--title-beige-light);
}

.footer-copyright {
  margin-top: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.08em;
  text-align: center;
}

/* ========= ANIMATIONS REVEAL ========= */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-zoom {
  opacity: 0;
  transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-zoom {
  transform: scale(0.94);
}

.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-zoom.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes mainFade {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========= RESPONSIVE ========= */
@media (max-width: 1024px) {
  .section {
    padding: 88px 0;
  }

  .section-with-banner {
    padding-top: 0;
  }

  .cards-grid {
    gap: 24px;
  }

  .section-banner-image {
    height: clamp(210px, 36vw, 370px);
  }
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .countdown {
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .section {
    padding: 72px 0;
  }

  .section-with-banner {
    padding-top: 0;
  }

  .full-banner {
    margin-bottom: 36px;
  }

  .section-banner-image {
    height: 220px;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .section-title {
    font-size: clamp(1.9rem, 7vw, 2.7rem);
  }

  .section-arabic {
    font-size: 1.4rem;
  }

  .ornament-line {
    width: 40px;
  }

  .event-highlight {
    flex-direction: column;
    text-align: center;
    padding: 22px 18px;
    gap: 14px;
  }

  .event-highlight-icon {
    width: 62px;
    height: 62px;
    min-width: 62px;
    font-size: 1.25rem;
  }

  .countdown {
    flex-wrap: wrap;
    gap: 12px;
  }

  .count-box {
    width: calc(50% - 6px);
    flex: unset;
    padding: 18px 8px;
    border-radius: 18px;
  }

  .count-box span {
    font-size: clamp(1.3rem, 6vw, 2rem);
    margin-bottom: 6px;
  }

  .count-box small {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .cards-grid,
  .dress-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 26px;
  }

  .card {
    padding: 30px 22px;
  }

  .card h3 {
    font-size: 1.75rem;
  }

  .map-box {
    height: 320px;
    border-radius: 20px;
  }

  .rsvp-form {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .rsvp-row {
    flex-direction: column;
    gap: 0;
  }

  .rsvp-radio {
    min-width: 100%;
  }

  .rsvp-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    min-width: unset;
  }

  .footer {
    padding: 58px 0 64px;
  }

  .footer-arabic {
    font-size: 1.3rem;
  }

  .intro-title {
    font-size: clamp(2.4rem, 11vw, 4rem);
  }

  .floating-logo {
    width: 110px;
    height: 110px;
  }

  .footer-copyright {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
  }

  .orb-1,
  .orb-2,
  .orb-3 {
    filter: blur(55px);
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 18px);
  }

  .countdown {
    gap: 10px;
  }

  .count-box {
    width: calc(50% - 5px);
    padding: 14px 6px;
  }

  .count-box span {
    font-size: 1.3rem;
  }

  .count-box small {
    font-size: 0.54rem;
  }

  .card {
    padding: 24px 18px;
  }

  .card h3 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-arabic {
    font-size: 1.2rem;
  }

  .section-banner-image {
    height: 180px;
  }

  .floating-logo {
    width: 95px;
    height: 95px;
  }

  .footer-copyright {
    font-size: 0.72rem;
  }

  .rsvp-form {
    padding: 24px 18px;
  }

  .rsvp-field label {
    font-size: 0.74rem;
  }

  .btn {
    padding: 14px 24px;
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-zoom {
    opacity: 1 !important;
    transform: none !important;
  }

  .floating-logo {
    top: 20px;
    left: 20px;
    transform: none !important;
  }
}
