* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #4b4038;
  /* --black-soft: #11100e; */
  --gold: #c6a15b;
  --gold-light: #e5c982;
  --cream: #f4efe5;
  --cream-2: #e8ddca;
  --muted: #a99d8e;
  --white: #fffdf8;
  --border: rgba(198, 161, 91, 0.26);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Kufi Arabic", sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

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

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

.hidden {
  display: none !important;
}

/* ---------- intro ---------- */

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* background:
    radial-gradient(circle at 50% 45%, rgba(198, 161, 91, .13), transparent 34%),
    linear-gradient(180deg, #C5B3D3, #C5B3D3); */
}

.intro-screen::before,
.intro-screen::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(198, 161, 91, 0.12);
  border-radius: 50%;
}

.intro-screen::before {
  width: 72vw;
  height: 72vw;
  max-width: 880px;
  max-height: 880px;
}

.intro-screen::after {
  width: 54vw;
  height: 54vw;
  max-width: 640px;
  max-height: 640px;
}

.intro-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(198, 161, 91, 0.13);
  filter: blur(95px);
}

.intro-content {
  position: relative;
  z-index: 2;
  width: min(80vw, 760px);
  text-align: center;
}

.intro-brand {
  margin-bottom: 22px;
  color: var(--gold-light);
  font-family: "Aref Ruqaa", serif;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
}

.envelope-btn {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.45));
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

.envelope-btn:hover {
  transform: translateY(-5px) scale(1.012);
  filter: drop-shadow(0 35px 46px rgba(0, 0, 0, 0.52));
}

.envelope-btn img {
  width: 100%;
  border-radius: 28px;
}

.intro-hint {
  margin-top: 22px;
  color: var(--cream-2);
  font-size: 0.9rem;
  opacity: 0.8;
}

.intro-line {
  display: block;
  width: 54px;
  height: 1px;
  margin: 16px auto 0;
  background: var(--gold);
}

.intro-screen.is-opening .envelope-btn {
  animation: openEnvelope 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.intro-screen.is-opening .intro-brand,
.intro-screen.is-opening .intro-hint,
.intro-screen.is-opening .intro-line {
  animation: fadeAway 0.45s ease forwards;
}

.intro-screen.is-opening {
  animation: introFade 1.1s 0.4s ease forwards;
}

@keyframes openEnvelope {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.05) translateY(-8px);
  }
  100% {
    transform: scale(1.22) translateY(-18px);
    opacity: 0;
  }
}

@keyframes fadeAway {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes introFade {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ---------- shared ---------- */

.section-dark {
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(198, 161, 91, 0.07),
      transparent 22%
    ),
    var(--black);
}

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

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

.eyebrow {
  display: inline-block;
  color: var(--cream-2);
  font-size: 1rem;
  letter-spacing: 0.12em;
  opacity: 0.78;
}

.eyebrow--gold {
  color: var(--gold);
  opacity: 1;
}

.section-heading {
  width: min(92%, 820px);
  margin: 0 auto 52px;
  text-align: center;
}

.section-heading h2 {
  margin-top: 10px;
  color: var(--black);
  font-family: "Aref Ruqaa", serif;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.25;
}

.section-heading--light h2 {
  color: var(--white);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 42px 3vw;
}

.hero-grid {
  width: min(1280px, 100%);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 42% 58%;
  grid-template-areas: "image text";
  align-items: center;
  gap: 34px;

  /* Keep image physically on the left and text on the right */
  direction: ltr;
}

.hero-copy {
  grid-area: text;
  direction: rtl;

  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.hero-art {
  grid-area: image;
  position: relative;

  width: 100%;
  min-height: 620px;

  display: grid;
  place-items: end center;
}

.mini-brand {
  color: var(--gold-light);
  font-family: "Aref Ruqaa", serif;
  font-size: 1.2rem;
}

/* أفراح آل الخطيب */
.family-heading {
  margin-top: 18px;
  color: var(--white);
  font-family: "Aref Ruqaa", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
}

/* الصف العلوي */
.family-parents-row {
  width: 100%;
  max-width: 650px;
  margin: 24px auto 0;

  display: grid;
  grid-template-columns: 1fr 45px 1fr;
  align-items: center;
  gap: 15px;
}

.family-parent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.family-parent-label {
  color: var(--gold-light);
  font-size: 0.72rem;
}

.family-parent strong {
  color: var(--white);
  font-family: "Aref Ruqaa", serif;
  font-size: 1.15rem;
  font-weight: 400;
}

.family-waw {
  color: var(--gold);
  font-family: "Aref Ruqaa", serif;
  font-size: 2.6rem;
}

/* يتشرفون بدعوتكم */
.official-invite {
  margin-top: 25px;
  color: var(--gold-light);
  font-family: "Aref Ruqaa", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
}

/* العريس والعروس */
.couple-card-row {
  width: 100%;
  max-width: 650px;
  margin: 28px auto 0;

  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: end;
  gap: 15px;
}

.couple-person {
  text-align: center;
}

.parent-of {
  color: var(--white);
  font-size: 0.75rem;
  line-height: 1.8;
}

.parent-of span {
  display: block;
  margin-top: 3px;
  color: var(--gold-light);
  font-family: "Aref Ruqaa", serif;
  font-size: 1rem;
}

.person-name {
  margin-top: 12px;
  color: var(--white);
  font-family: "Aref Ruqaa", serif;
  font-size: clamp(3rem, 6vw, 5.3rem);
  font-weight: 400;
  line-height: 1;
}

/* الخاتمان */
.rings-symbol {
  position: relative;
  width: 70px;
  height: 55px;
  margin-inline: auto;
}

.rings-symbol span {
  position: absolute;
  top: 8px;
  width: 38px;
  height: 38px;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.rings-symbol span:first-child {
  right: 10px;
}

.rings-symbol span:last-child {
  left: 10px;
}

.hero-message {
  width: min(100%, 560px);
  margin: 22px auto 0;
  color: #d4cec4;
  font-size: 0.88rem;
  line-height: 2;
}

.hero-date {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--cream);
  font-size: 0.9rem;
}

.hero-date span {
  width: 52px;
  height: 1px;
  background: var(--gold);
}
.scroll-btn,
.gold-btn {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
  cursor: pointer;
  transition: 0.25s ease;
}

.scroll-btn {
  margin-top: 32px;
  padding: 13px 28px;
  border-radius: 999px;
}

.scroll-btn:hover,
.gold-btn:hover {
  background: var(--gold);
  color: var(--black);
}

.hero-art-frame {
  position: relative;
  width: min(100%, 480px);
  height: 620px;
  display: grid;
  place-items: end center;
}

.hero-art-frame::before {
  content: "";
  position: absolute;
  inset: 6% 8% 4%;
  border: 1px solid rgba(198, 161, 91, 0.3);
  border-radius: 48% 48% 20px 20px;
}

.hero-art-halo {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 18%;
  border-radius: 50%;
  background: rgba(198, 161, 91, 0.12);
  filter: blur(70px);
}

.hero-art img {
  position: relative;
  z-index: 2;
  max-height: 600px;
  width: auto;
  object-fit: contain;
}

/* ---------- quote ---------- */

.quote-section {
  padding: 90px 24px;
  background: var(--cream);
  color: var(--black);
}

.quote-wrap {
  width: min(840px, 100%);
  margin: auto;
  text-align: center;
}

.quote-wrap p {
  font-family: "Aref Ruqaa", serif;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  line-height: 1.5;
}

.quote-mark {
  display: block;
  height: 42px;
  color: var(--gold);
  font-family: serif;
  font-size: 4rem;
  line-height: 1;
}

.quote-mark--bottom {
  transform: translateY(12px);
}

/* ---------- details ---------- */

.details-section {
  padding: 110px 6vw;
  background: var(--cream);
}

.details-grid {
  width: min(1100px, 85%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.detail-card {
  min-height: 250px;
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: var(--black);
  border: 1px solid rgba(198, 161, 91, 0.45);
  background: rgba(255, 255, 255, 0.55);
  position: relative;
  
}

.detail-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(198, 161, 91, 0.13);
  pointer-events: none;
}

.detail-number {
  position: absolute;
  top: 16px;
  left: 18px;
  color: var(--gold);
  font-family: serif;
  font-size: 0.8rem;
}

.detail-card p {
  color: #8d7756;
  font-size: 0.78rem;
}

.detail-card h3 {
  margin-top: 12px;
  font-family: "Aref Ruqaa", serif;
  font-size: 1.75rem;
  font-weight: 400;
}

.detail-card small {
  margin-top: 6px;
  color: #777069;
}

/* ---------- countdown ---------- */

.countdown-section {
  padding: 110px 6vw;
}

.countdown {
  width: min(880px, 90%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.count-box {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid var(--border);
  position: relative;
  border-radius: 20%;

}

/* .count-box::before,
.count-box::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
} */

.count-box::before {
  top: -5px;
}

.count-box::after {
  bottom: -5px;
}

.count-box strong {
  color: var(--gold-light);
  font-family: "Aref Ruqaa", serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
}

.count-box span {
  margin-top: 10px;
  color: var(--cream-2);
  font-size: 0.78rem;
  opacity: 0.76;
}

/* ---------- story ---------- */

.story-section {
  padding: 100px 6vw;
  background: var(--cream);
  color: var(--black);
}

.story-grid {
  width: min(1120px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  align-items: center;
  gap: 70px;
}

.story-art {
  display: grid;
  place-items: center;
}

.gold-frame {
  position: relative;
  width: min(100%, 430px);
  min-height: 600px;
  border: 1px solid var(--gold);
  display: grid;
  align-items: end;
}

.gold-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(198, 161, 91, 0.25);
}

.gold-frame img {
  width: 90%;
  height: 90%;

  object-fit: contain;

  display: block;
  margin: 0 auto;
}

.story-copy h2 {
  margin-top: 10px;
  font-family: "Aref Ruqaa", serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.3;
}

.story-copy p {
  margin-top: 24px;
  color: #5b554d;
  line-height: 2.2;
  font-size: 0.94rem;
}

.signature {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--gold);
  font-family: "Aref Ruqaa", serif;
  font-size: 1.45rem;
}

/* ---------- portrait ---------- */

.portrait-section {
  padding: 90px 6vw 0;
  overflow: hidden;
}

.portrait-wrap {
  width: min(1100px, 100%);
  min-height: 680px;
  margin: auto;
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  align-items: center;
  gap: 50px;
}

.portrait-copy {
  text-align: center;
}

.portrait-copy h2 {
  margin-top: 10px;
  color: var(--gold-light);
  font-family: "Aref Ruqaa", serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
}

.portrait-copy p {
  width: min(100%, 450px);
  margin: 18px auto 0;
  color: #d5cec4;
  line-height: 2.1;
}

.portrait-art {
  align-self: end;
  display: flex;
  justify-content: center;
}

.portrait-art img {
  max-height: 720px;
  width: auto;
  object-fit: contain;
}

/* ---------- RSVP ---------- */

.rsvp-section {
  padding: 110px 24px;
  background: var(--black);
}

.rsvp-card {
  width: min(820px, 100%);
  margin: auto;
  padding: 62px clamp(24px, 6vw, 72px);
  border: 1px solid rgba(198, 161, 91, 0.5);
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(49, 38, 20, 0.08);
}

.rsvp-deadline {
  margin-top: 10px;
  color: #776d5e;
  font-size: 0.82rem;
}

.rsvp-form {
  display: grid;
  gap: 18px;
}

.rsvp-form label {
  display: grid;
  gap: 8px;
  color: var(--black);
  font-size: 0.8rem;
}

.rsvp-form input,
.rsvp-form select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(8, 8, 8, 0.24);
  background: transparent;
  color: var(--black);
  outline: none;
  padding: 13px 2px;
}

.rsvp-form input:focus,
.rsvp-form select:focus {
  border-bottom-color: var(--gold);
}

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

.gold-btn {
  margin-top: 12px;
  min-height: 52px;
  background: var(--black);
  color: var(--cream);
}

/* ---------- footer ---------- */

.footer {
  padding: 5px 24px;
  text-align: center;
  border-top: 1px solid rgba(198, 161, 91, 0.14);
  background: var(--cream);
}

.footer-monogram {
  width: 70px;
  /* height: 70px; */
  /* margin: 0 auto 18px; */
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Aref Ruqaa", serif;
}
footer a {
  text-decoration: none;
  color: var(--black);
}

.footer p {
  color: var(--black);
  font-family: "Aref Ruqaa", serif;
  font-size: 1.6rem;
}

.footer span:last-child {
  display: block;
  /* margin-top: 8px; */
  color: #8e8375;
  font-size: 0.7rem;
}

.music-btn {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 50;
  width: 52px;
  height: 52px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--black);
  color: var(--gold-light);
  cursor: pointer;
}

.music-btn.playing {
  box-shadow: 0 0 0 8px rgba(198, 161, 91, 0.08);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .details-grid {
    grid-template-columns: 1fr;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .story-copy {
    text-align: center;
  }

  .signature {
    justify-content: center;
  }

  .portrait-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portrait-copy {
    padding-top: 40px;
  }
}

@media (max-width: 620px) {
  .intro-content {
    width: 94vw;
  }

  .envelope-btn img {
    border-radius: 18px;
  }
  .names {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .hero-message {
    font-size: 0.84rem;
  }
  .quote-section,
  .details-section,
  .countdown-section,
  .story-section,
  .rsvp-section {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .countdown {
    grid-template-columns: 1fr 1fr;
  }

  .count-box {
    min-height: 145px;
  }

  .gold-frame {
    min-height: 480px;
  }

  .gold-frame img {
    max-height: 520px;
  }

  .portrait-wrap {
    min-height: 0;
  }

  .portrait-art img {
    max-height: 560px;
  }

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

  .rsvp-card {
    padding: 48px 22px;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 40px 20px;
    overflow: hidden;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
  }

  /* الصورة أولاً */
  .hero-art {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-art-frame {
    width: 88vw;
    max-width: 360px;
    height: 430px;
  }

  .hero-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* النص بعد الصورة */
  .hero-copy {
    order: 2;
    width: 100%;
    text-align: center;
    margin-top: 120px;
  }

  .family-heading {
    font-size: 30px;
    margin-bottom: 25px;
  }

  .family-parents-row {
    flex-direction: column;
    gap: 15px;
  }

  .family-waw {
    transform: none;
    display: block;
    font-size: 40px;
    color: #d8b06a;
    margin: 10px 0;
  }

  .couple-card-row {
    flex-direction: column;
    gap: 15px;
  }

  .person-name {
    font-size: 55px;
  }

  .rings-symbol img {
    width: 55px;
  }

  .official-invite {
    font-size: 18px;
  }

  .hero-message {
    font-size: 16px;
    line-height: 2;
  }

  .hero-date {
    justify-content: center;
    margin-top: 25px;
  }

  .scroll-btn {
    margin: 25px auto 0;
  }
}

.family-heading {
  font-size: 2rem;
}

.family-parents-row {
  grid-template-columns: 1fr 25px 1fr;
  gap: 6px;
}

.family-parent strong {
  font-size: 0.85rem;
}

.family-parent-label {
  font-size: 0.62rem;
}

.family-waw {
  font-size: 2rem;
}

.couple-card-row {
  grid-template-columns: 1fr 50px 1fr;
  gap: 4px;
}

.person-name {
  font-size: clamp(2.7rem, 13vw, 4rem);
}

.parent-of {
  font-size: 0.62rem;
}

.rings-symbol {
  transform: scale(0.7);
}

/* ===== FINAL MOBILE HERO FIX ===== */
@media (max-width: 768px) {
  .hero {
    padding: 35px 15px 60px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    direction: rtl;
  }

  /* الآية فوق الصورة فقط */
  .mobile-quran {
    display: block;
    order: 0;
    margin-bottom: 20px;
  }

  .mobile-quran p {
    font-size: 18px;
    line-height: 2;
  }

  /* الصورة بعد الآية */
  .hero-art {
    order: 1;
    min-height: 350px;
    width: 100%;
  }

  .hero-art-frame {
    width: min(480px, 100%);
    height: 620px;
    margin: auto;
  }

  .hero-art img {
    max-height: 600px;
    width: auto;
  }

  /* النص يبقى مثل اللابتوب */
  .hero-copy {
    order: 2;
    text-align: center;
  }

  /* العائلتين جنب بعض */
  .family-parents-row {
    display: grid;
    grid-template-columns: 1fr 35px 1fr;
  }

  /* العريس والعروس جنب بعض */
  .couple-card-row {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: center;
  }

  .person-name {
    font-size: 3.2rem;
  }

  .rings-symbol {
    transform: scale(0.8);
    margin-top: 80px;
  }

  .hero-message {
    font-size: 14px;
  }

  .scroll-btn {
    margin: auto;
  }
}

/* tablet */
@media (min-width: 769px) and (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 45% 55%;
    gap: 15px;
  }

  .hero-art-frame {
    height: 520px;
  }

  .hero-copy {
    transform: scale(0.9);
  }
}
.mobile-quran {
  display: none;
  text-align: center;
  margin-bottom: 25px;
}

.mobile-quran p {
  font-family: "Aref Ruqaa", serif;
  color: #d8b06a;
  font-size: 20px;
  line-height: 2;
  margin-top:50PX
}

/* موبايل فقط */
@media (max-width: 768px) {
  .mobile-quran {
    display: block;
  }

  /* ترتيب الصورة بعد الآية */
  .hero-art {
    display: flex;
    justify-content: center;
  }

  /* الحفاظ على نفس حجم اللابتوب للصورة الأولى */
  .hero-art-frame {
    width: min(480px, 100%);
    height: 620px;
    margin: auto;
  }

  .hero-art img {
    max-height: 600px;
    width: auto;
    height: auto;
    object-fit: contain;
  }
}

/* اللابتوب */
@media (min-width: 769px) {
  .mobile-quran {
    display: none;
  }
}