:root {
  --ink: #53333a;
  --ink-soft: #7c5660;
  --rose: #c75b74;
  --rose-deep: #9e405b;
  --peach: #f7b79f;
  --peach-soft: #ffd7c8;
  --blush: #fff1ec;
  --cream: #fffaf6;
  --ivory: #fffdf9;
  --gold: #c99b58;
  --gold-soft: #e6c382;
  --sage: #93aaa0;
  --line: rgba(158, 64, 91, 0.18);
  --line-gold: rgba(201, 155, 88, 0.28);
  --glass: rgba(255, 253, 249, 0.72);
  --shadow: 0 30px 90px rgba(132, 65, 77, 0.18);
  --shadow-soft: 0 18px 50px rgba(132, 65, 77, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-script: "Alex Brush", "Great Vibes", cursive;
  --font-arabic: "Amiri", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 204, 188, 0.68), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(255, 239, 227, 0.95), transparent 28rem),
    radial-gradient(circle at 14% 90%, rgba(247, 183, 159, 0.36), transparent 32rem),
    linear-gradient(135deg, #fff8f3 0%, #ffe8de 48%, #fffaf6 100%);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

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

::selection {
  color: var(--ivory);
  background: var(--rose);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ivory);
  background: var(--rose-deep);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

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

.petal-layer,
.page-glow,
.pattern-wash {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.petal-layer {
  z-index: 4;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -12vh;
  left: var(--left, 50%);
  width: var(--size, 18px);
  height: calc(var(--size, 18px) * 1.35);
  border-radius: 80% 12% 80% 18%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.82), transparent 22%),
    linear-gradient(150deg, rgba(255, 197, 188, 0.94), rgba(234, 126, 145, 0.70) 52%, rgba(255, 224, 206, 0.78));
  opacity: var(--opacity, 0.72);
  filter: drop-shadow(0 8px 12px rgba(177, 91, 107, 0.12));
  transform: rotate(var(--rotate, 20deg));
  animation: petalFall var(--duration, 14s) linear var(--delay, 0s) infinite;
}

.petal:nth-child(3n) {
  border-radius: 18% 80% 20% 80%;
  background:
    radial-gradient(circle at 38% 25%, rgba(255, 255, 255, 0.74), transparent 20%),
    linear-gradient(145deg, rgba(255, 217, 200, 0.92), rgba(247, 183, 159, 0.78));
}

.petal:nth-child(4n) {
  width: calc(var(--size, 18px) * 0.76);
  height: calc(var(--size, 18px) * 1.7);
  opacity: calc(var(--opacity, 0.72) * 0.72);
}

@keyframes petalFall {
  0% {
    transform: translate3d(0, -12vh, 0) rotate(0deg);
    opacity: 0;
  }
  9% {
    opacity: var(--opacity, 0.72);
  }
  50% {
    transform: translate3d(calc(var(--drift, 80px) * 0.45), 52vh, 0) rotate(190deg);
  }
  92% {
    opacity: var(--opacity, 0.72);
  }
  100% {
    transform: translate3d(var(--drift, 80px), 112vh, 0) rotate(390deg);
    opacity: 0;
  }
}

.page-glow {
  z-index: -3;
}

.page-glow--one {
  background: radial-gradient(circle at 4% 44%, rgba(255, 210, 198, 0.65), transparent 28rem);
}

.page-glow--two {
  background: radial-gradient(circle at 96% 74%, rgba(236, 159, 139, 0.26), transparent 30rem);
}

.pattern-wash {
  z-index: -2;
  opacity: 0.24;
  background-image: url("assets/peach-arabesque.svg");
  background-size: 420px 420px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 88%, transparent 100%);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 90;
  width: min(1140px, calc(100% - 30px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 250, 246, 0.62);
  box-shadow: 0 16px 55px rgba(132, 65, 77, 0.13);
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-color: rgba(201, 155, 88, 0.30);
  background: rgba(255, 250, 246, 0.90);
  box-shadow: 0 16px 60px rgba(132, 65, 77, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: -0.04em;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 215, 200, 0.92), transparent 58%),
    rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.42);
}

.brand strong {
  display: block;
  color: var(--rose-deep);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  margin-top: -2px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--rose-deep);
  background: rgba(255, 231, 221, 0.95);
}

.site-nav a:hover {
  transform: translateY(-1px);
}

.site-nav .nav-pill {
  color: var(--ivory);
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  box-shadow: 0 12px 30px rgba(158, 64, 91, 0.22);
}

.site-nav .nav-pill:hover,
.site-nav .nav-pill.is-active {
  color: var(--ivory);
  background: linear-gradient(135deg, #d96d86, var(--rose-deep));
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 231, 221, 0.92);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--rose-deep);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 128px 0 82px;
}

.hero__content,
.date-card,
.invitation-card,
.detail-card,
.family-card,
.venue-card,
.map-illustration,
.rsvp-form,
.rsvp-note {
  position: relative;
}

.hero__content::before,
.invitation-card::before,
.rsvp-form::before,
.venue-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 211, 197, 0.32), rgba(201, 155, 88, 0.20));
}

.hero__content {
  border-radius: 42px;
  padding: clamp(34px, 6vw, 68px);
  background: rgba(255, 253, 249, 0.70);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.hero__content::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  bottom: -94px;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 183, 159, 0.22), transparent 66%);
}

.hero__ornament {
  position: absolute;
  width: clamp(140px, 18vw, 230px);
  height: clamp(140px, 18vw, 230px);
  z-index: -1;
  opacity: 0.75;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.72) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 80%, rgba(247, 183, 159, 0.44), transparent 48%);
  border: 1px solid var(--line-gold);
  border-radius: 50%;
}

.hero__ornament::before,
.hero__ornament::after {
  content: "";
  position: absolute;
  inset: 32px;
  border: 1px solid rgba(201, 155, 88, 0.30);
  transform: rotate(45deg);
}

.hero__ornament::after {
  transform: rotate(0deg);
}

.hero__ornament--left {
  left: -8vw;
  top: 20vh;
}

.hero__ornament--right {
  right: -9vw;
  bottom: 8vh;
}

.arabic {
  font-family: var(--font-arabic);
}

.basmala {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.04;
  text-shadow: 0 14px 30px rgba(201, 155, 88, 0.16);
}

.kicker,
.section-kicker,
.date-card__label {
  margin: 0 0 12px;
  color: var(--rose-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.section-copy h2,
.venue-card h2,
.rsvp-copy h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 7.5vw, 7.4rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.hero__names {
  display: grid;
  gap: 5px;
  margin: 28px 0 16px;
  color: var(--rose);
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  line-height: 0.88;
}

.hero__names em {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.8vw, 2.6rem);
  font-style: italic;
}

.hero__summary {
  max-width: 560px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 600;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 30px;
}

.action-row {
  justify-content: center;
}

.action-row--left {
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.radio-card:has(input:focus-visible) {
  outline: 3px solid rgba(199, 91, 116, 0.28);
  outline-offset: 3px;
}

.btn--primary {
  color: var(--ivory);
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  box-shadow: 0 14px 34px rgba(158, 64, 91, 0.24);
}

.btn--primary:hover {
  box-shadow: 0 18px 42px rgba(158, 64, 91, 0.28);
}

.btn--soft {
  color: var(--rose-deep);
  border: 1px solid rgba(201, 155, 88, 0.24);
  background: rgba(255, 250, 246, 0.74);
  box-shadow: 0 12px 28px rgba(132, 65, 77, 0.10);
}

.btn--wide {
  width: 100%;
}

.btn[disabled] {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.date-card {
  justify-self: end;
  width: min(380px, 100%);
  padding: 14px;
  border: 1px solid rgba(201, 155, 88, 0.28);
  border-radius: 190px 190px 34px 34px;
  background: rgba(255, 253, 249, 0.56);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.date-card__arch {
  min-height: 490px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  padding: 58px 28px 34px;
  text-align: center;
  border: 1px solid rgba(201, 155, 88, 0.20);
  border-radius: 170px 170px 24px 24px;
  background:
    linear-gradient(180deg, rgba(255, 248, 243, 0.80), rgba(255, 231, 221, 0.55)),
    url("assets/peach-arabesque.svg");
  background-size: auto, 320px 320px;
}

.date-card__date {
  display: grid;
  gap: 5px;
  color: var(--rose-deep);
}

.date-card__date span {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  text-transform: uppercase;
}

.date-card__date strong {
  color: var(--rose);
  font-family: var(--font-serif);
  font-size: clamp(6rem, 14vw, 9.25rem);
  line-height: 0.78;
  font-weight: 600;
}

.date-card p {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
}

.date-card small {
  max-width: 250px;
  color: var(--ink-soft);
  font-weight: 700;
  line-height: 1.6;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 32px;
  height: 52px;
  display: grid;
  justify-items: center;
  padding: 8px 0;
  border: 1px solid rgba(158, 64, 91, 0.28);
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.52);
}

.scroll-cue span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  animation: cue 1.7s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(22px); opacity: 1; }
}

.section {
  position: relative;
  padding: clamp(74px, 11vw, 132px) 0;
}

.section-shell {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading p,
.section-copy p,
.venue-card address,
.rsvp-copy p {
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.8;
}

.section-heading h2,
.section-copy h2,
.venue-card h2,
.rsvp-copy h2 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
}

.invitation-shell {
  display: grid;
  gap: 32px;
}

.invitation-card {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 62px);
  text-align: center;
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 249, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.invitation-card__top {
  position: absolute;
  inset: 16px 16px auto;
  height: 136px;
  border: 1px solid rgba(201, 155, 88, 0.24);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  opacity: 0.55;
}

.card-basmala {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  line-height: 1.1;
}

.card-copy,
.dua-line {
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  line-height: 1.55;
}

.invitation-card h3 {
  margin: 24px 0 18px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6.5vw, 5.3rem);
  font-weight: 600;
  line-height: 0.96;
}

.couple-lockup {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 22px auto;
}

.couple-lockup strong {
  color: var(--rose);
  font-family: var(--font-script);
  font-size: clamp(3.1rem, 8vw, 5.8rem);
  font-weight: 400;
  line-height: 0.86;
}

.couple-lockup span {
  max-width: 720px;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.2vw, 1.42rem);
  font-weight: 700;
  line-height: 1.35;
}

.couple-lockup em {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.details {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 243, 236, 0.76), rgba(255, 255, 255, 0));
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 34px 0;
}

.detail-card,
.family-card,
.rsvp-note {
  border: 1px solid rgba(201, 155, 88, 0.23);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.66);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.detail-card {
  padding: 28px;
  text-align: center;
}

.detail-card__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: var(--rose-deep);
  background: rgba(255, 222, 211, 0.72);
  font-size: 1.7rem;
}

.detail-card h3,
.family-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
}

.detail-card p,
.family-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 36px auto 0;
}

.countdown div {
  min-height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 18px 10px;
  border: 1px solid rgba(201, 155, 88, 0.23);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.70);
  box-shadow: var(--shadow-soft);
}

.countdown strong {
  color: var(--rose);
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 600;
  line-height: 0.9;
}

.countdown span {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  align-items: center;
  gap: clamp(24px, 6vw, 72px);
}

.family-stack {
  display: grid;
  gap: 18px;
}

.family-card {
  padding: 30px;
}

.family-card h3 {
  color: var(--rose);
  font-size: 2.35rem;
}

.venue-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
}

.venue-card {
  padding: clamp(30px, 5vw, 54px);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 249, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.venue-card address {
  margin: 22px 0 0;
  font-style: normal;
}

.map-illustration {
  min-height: 430px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 155, 88, 0.25);
  border-radius: 180px 180px 34px 34px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.68), rgba(255, 228, 217, 0.68)),
    url("assets/peach-arabesque.svg");
  background-size: auto, 340px 340px;
  box-shadow: var(--shadow-soft);
}

.map-illustration__arch {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.map-pin {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  transform: rotate(-45deg);
  box-shadow: 0 14px 32px rgba(158, 64, 91, 0.22);
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: var(--ivory);
}

.map-illustration strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 2.6rem;
}

.map-illustration p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.rsvp {
  padding-bottom: clamp(86px, 12vw, 150px);
}

.rsvp-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  align-items: start;
  gap: clamp(28px, 6vw, 72px);
}

.rsvp-copy {
  position: sticky;
  top: 120px;
}

.rsvp-note {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 22px;
}

.rsvp-note strong {
  color: var(--rose-deep);
}

.rsvp-note span {
  color: var(--ink-soft);
  line-height: 1.6;
}

code {
  padding: 0.16em 0.4em;
  border-radius: 8px;
  color: var(--rose-deep);
  background: rgba(255, 224, 214, 0.82);
  font-size: 0.92em;
}

.rsvp-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4.5vw, 42px);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 249, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

.form-row {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label,
.form-fieldset legend {
  color: var(--ink);
  font-weight: 800;
}

.form-field label span,
.form-fieldset legend span {
  color: var(--rose);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(158, 64, 91, 0.18);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

input,
select {
  min-height: 54px;
  padding: 0 16px;
}

textarea {
  resize: vertical;
  min-height: 124px;
  padding: 16px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(124, 86, 96, 0.62);
}

.form-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.form-fieldset legend {
  margin-bottom: 10px;
}

.radio-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid rgba(158, 64, 91, 0.16);
  border-radius: 18px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.radio-card input {
  width: 18px;
  height: 18px;
  min-height: auto;
  accent-color: var(--rose);
}

.radio-card:has(input:checked) {
  border-color: rgba(201, 155, 88, 0.42);
  color: var(--rose-deep);
  background: rgba(255, 231, 221, 0.86);
}

.field-error {
  min-height: 1.2em;
  color: var(--rose-deep);
  font-size: 0.85rem;
  font-weight: 700;
}

.form-status {
  min-height: 1.4em;
  margin: -4px 0 0;
  color: var(--ink-soft);
  font-weight: 700;
  line-height: 1.5;
}

.form-status.is-success {
  color: #54765f;
}

.form-status.is-error {
  color: var(--rose-deep);
}

.site-footer {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 44px 16px 58px;
  text-align: center;
  color: var(--ink-soft);
  background: linear-gradient(180deg, transparent, rgba(255, 221, 210, 0.56));
}

.site-footer .arabic {
  margin: 0;
  color: var(--gold);
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.1;
}

.site-footer p:last-child {
  margin: 0;
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 140;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 18px;
  border: 1px solid rgba(201, 155, 88, 0.28);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 18px 50px rgba(132, 65, 77, 0.18);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  backdrop-filter: blur(14px);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--instant {
  transition-delay: 0.12s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 76px 0 auto;
    width: min(520px, calc(100vw - 30px));
    margin: 0 auto;
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(201, 155, 88, 0.26);
    border-radius: 24px;
    background: rgba(255, 250, 246, 0.96);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

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

  .site-nav a {
    text-align: center;
  }

  .hero,
  .two-column,
  .venue-layout,
  .rsvp-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 118px;
  }

  .date-card {
    justify-self: center;
  }

  .detail-grid,
  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rsvp-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    padding: 9px 10px 9px 12px;
  }

  .brand__mark {
    width: 39px;
    height: 39px;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .brand small {
    font-size: 0.62rem;
  }

  .hero,
  .section-shell {
    width: min(100% - 22px, 1140px);
  }

  .hero__content,
  .invitation-card,
  .venue-card,
  .rsvp-form {
    border-radius: 26px;
  }

  .date-card__arch {
    min-height: 410px;
  }

  .section {
    padding: 64px 0;
  }

  .detail-grid,
  .countdown,
  .form-row {
    grid-template-columns: 1fr;
  }

  .countdown div {
    min-height: 110px;
  }

  .hero-actions,
  .action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .toast {
    right: 11px;
    bottom: 11px;
    max-width: calc(100vw - 22px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .petal-layer,
  .scroll-cue {
    display: none;
  }
}

/* ==========================================================================
   INTERACTIVE MONOGRAM ENVELOPE OPENER
   ========================================================================== */

/* Locked scroll state when envelope is closed */
body.envelope-closed {
  overflow: hidden !important;
}

/* Block main page reveals while envelope is active to coordinate animations */
body.envelope-active .hero .reveal {
  opacity: 0 !important;
  transform: translateY(28px) !important;
  transition: none !important;
}

/* Fullscreen Backdrop Overlay */
.envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 239, 227, 0.98), transparent 45rem),
    linear-gradient(135deg, #fffaf6 0%, #ffece4 100%);
  backdrop-filter: blur(20px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    visibility 0.8s;
  overflow: hidden;
}

/* Zoom and fade out overlay when dismissed */
.envelope-overlay.is-dismissed {
  opacity: 0;
  transform: scale(1.05);
  visibility: hidden;
  pointer-events: none;
}

/* 3D Perspective wrapper for the folding effect */
.envelope-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1500px;
  z-index: 2;
}

/* The structural envelope card box */
.envelope {
  position: relative;
  width: 450px;
  height: 310px;
  background: #ffe3da;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 24px 64px rgba(132, 65, 77, 0.16);
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

/* Arabesque liner printed on the inside back wall of the envelope */
.envelope-liner {
  position: absolute;
  inset: 4px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent),
    #ffe3da;
  background-image: url("assets/peach-arabesque.svg");
  background-size: 180px 180px;
  border-radius: 0 0 10px 10px;
  z-index: 1;
  opacity: 0.44;
}

/* Fold-out envelope flaps */
.envelope-flap {
  position: absolute;
  transform-style: preserve-3d;
}

/* Top flap is a down-pointing triangle folding from the top hinge */
.top-flap {
  top: 0;
  left: 0;
  width: 100%;
  height: 52%;
  background: var(--peach-soft);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  z-index: 5;
  transition:
    transform 0.75s cubic-bezier(0.25, 1, 0.5, 1),
    z-index 0s linear 0.38s;
  filter: drop-shadow(0 4px 6px rgba(132, 65, 77, 0.08));
}

/* Opens and folds backwards in 3D */
.envelope.opened .top-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

/* Left, Right and Bottom structural overlap flaps */
.left-flap {
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: var(--blush);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  z-index: 4;
  border-radius: 0 0 0 12px;
}

.right-flap {
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: var(--blush);
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
  z-index: 4;
  border-radius: 0 0 12px 0;
}

.bottom-flap {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: #ffebe4; /* Creates layered paper depth */
  clip-path: polygon(0 100%, 100% 100%, 50% 0);
  z-index: 4;
  border-radius: 0 0 12px 12px;
}

/* The card tucked inside the envelope which emerges when opened */
.envelope-card {
  position: absolute;
  bottom: 12px;
  left: 15px;
  width: 420px;
  height: 275px;
  background: var(--ivory);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(132, 65, 77, 0.06);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: bottom center;
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1) 0.45s;
}

/* Slides up and stands proud of the front pocket flaps */
.envelope.opened .envelope-card {
  transform: translateY(-135px) scale(1.02);
}

/* Inside aesthetics of the invitation card */
.envelope-card-content {
  width: calc(100% - 22px);
  height: calc(100% - 22px);
  border: 1px solid var(--line-gold);
  border-radius: 6px;
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  box-shadow: inset 0 0 0 5px var(--ivory);
}

.envelope-card-moon {
  color: var(--gold);
  font-size: 1.05rem;
  line-height: 1;
  margin-bottom: 2px;
}

.basmala-mini {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 1.1rem;
  line-height: 1.1;
}

.envelope-card-monogram {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--rose-deep);
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 3px;
  border-bottom: 1px solid var(--line-gold);
  padding-bottom: 3px;
  width: 100px;
}

.envelope-card-kicker {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.envelope-card-names {
  margin: 0;
  color: var(--rose);
  font-family: var(--font-script);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
}

.envelope-card-date {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
}

.envelope-card-decoration {
  color: var(--gold);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  margin-top: 6px;
}

/* Organic 3D Wax Seal holding the top flap */
.wax-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.45s ease 0.08s;
  outline: none;
}

.wax-seal:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
  outline: 3px solid rgba(201, 155, 88, 0.45);
  border-radius: 50%;
}

/* Irregular organic borders with radial metallic shine */
.seal-outer {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 35% 35%, #eec88b, #c99b58 52%, #a07231 92%);
  border-radius: 51% 49% 53% 47% / 49% 52% 48% 51%;
  box-shadow:
    0 8px 20px rgba(132, 65, 77, 0.26),
    inset 0 2px 3px rgba(255, 255, 255, 0.4),
    inset 0 -3px 5px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  animation: sealPulse 2.5s infinite ease-in-out;
}

@keyframes sealPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
    box-shadow:
      0 12px 26px rgba(132, 65, 77, 0.32),
      inset 0 2px 3px rgba(255, 255, 255, 0.4),
      inset 0 -3px 5px rgba(0, 0, 0, 0.28);
  }
}

.wax-seal:hover .seal-outer {
  animation-play-state: paused;
  transform: scale(1.06);
  box-shadow:
    0 12px 28px rgba(132, 65, 77, 0.36),
    inset 0 2px 4px rgba(255, 255, 255, 0.5),
    inset 0 -3px 6px rgba(0, 0, 0, 0.3);
}

.seal-inner {
  width: 100%;
  height: 100%;
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(201, 155, 88, 0.15) 0%, transparent 80%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.seal-letters {
  color: #fff8f0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  text-shadow:
    -1px -1px 0px rgba(0, 0, 0, 0.24),
    1px 1px 1px rgba(255, 255, 255, 0.18);
}

/* Fade out and scale down the wax seal when opened */
.envelope.opened .wax-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  pointer-events: none;
}

/* User help instruction callout */
.envelope-instruction {
  margin-top: 32px;
  color: var(--rose-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 0.4s ease;
  opacity: 0.9;
}

/* Fades away immediately when envelope starts opening */
.envelope.opened + .envelope-instruction {
  opacity: 0;
  pointer-events: none;
}

.instruction-arrow {
  font-size: 1.2rem;
  animation: bounceArrow 1.5s infinite;
}

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

/* Responsive adjustment scaling rules */
@media (max-width: 480px) {
  .envelope {
    transform: scale(0.78);
  }
  .envelope-instruction {
    margin-top: 10px;
  }
}

@media (max-width: 375px) {
  .envelope {
    transform: scale(0.68);
  }
}

/* Floating Music Toggle Button */
.music-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 50px;
  height: 50px;
  z-index: 100;
  border-radius: 50%;
  border: 1px solid rgba(201, 155, 88, 0.28);
  color: var(--rose-deep);
  background: rgba(255, 253, 249, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(132, 65, 77, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background-color 0.3s ease,
    opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  outline: none;
}

/* Hide while envelope is active/closed to maintain a clean intro screen */
body.envelope-active .music-toggle {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.music-toggle:hover {
  transform: scale(1.08);
  background: rgba(255, 253, 249, 0.9);
}

.music-toggle:focus-visible {
  outline: 3px solid rgba(199, 91, 116, 0.28);
  outline-offset: 3px;
}

.music-icon {
  width: 22px;
  height: 22px;
}

/* Wave animations when playing */
.music-toggle.is-playing .sound-wave {
  transform-origin: center left;
  animation: wavePulse 1.4s infinite ease-in-out;
}

.music-toggle.is-playing .sound-wave--one {
  animation-delay: 0s;
}

.music-toggle.is-playing .sound-wave--two {
  animation-delay: 0.35s;
}

@keyframes wavePulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* Adjust position on mobile viewports to avoid layout overlaps */
@media (max-width: 640px) {
  .music-toggle {
    bottom: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
  }
  .music-icon {
    width: 18px;
    height: 18px;
  }
}


