:root {
  --bg: hsl(40 33% 97%);
  --fg: hsl(25 15% 16%);
  --muted: hsl(25 12% 45%);
  --gold: hsl(39 44% 62%);
  --gold-soft: hsl(39 34% 82%);
  --line: hsl(37 24% 84%);
  --arabic-font: "Noto Naskh Arabic", "Tajawal", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--arabic-font);
}

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

.hidden {
  display: none !important;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.audio-toggle {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 60;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.audio-toggle:hover {
  background: rgba(0, 0, 0, 0.5);
}

.audio-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  cursor: pointer;
  background: #0e0e0e;
}

.cover-image,
.invite-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-image {
  z-index: 1;
  transition: filter 0.7s ease-out, opacity 0.5s ease;
}

.cover.opening .cover-image {
  filter: blur(18px);
  opacity: 0;
}

.invite-video {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.7s ease;
  display: none;
}

.cover.opening .invite-video {
  opacity: 1;
}

.tap-hint {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #fff;
  font-size: clamp(0.76rem, 1.6vw, 0.96rem);
  letter-spacing: 0.25em;
  font-weight: 300;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  animation: tapBlink 6s ease-in-out infinite;
}

@keyframes tapBlink {
  0%,
  100% {
    opacity: 0;
  }
  10%,
  22% {
    opacity: 0.85;
  }
  30%,
  42% {
    opacity: 0.25;
  }
  50%,
  62% {
    opacity: 0.85;
  }
  70%,
  82% {
    opacity: 0.25;
  }
  90% {
    opacity: 0.85;
  }
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 85%;
  z-index: 2;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.55) 30%,
    rgba(255, 255, 255, 0.25) 55%,
    rgba(255, 255, 255, 0) 75%
  );
  filter: blur(30px);
  pointer-events: none;
}

.hero-dark {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(0, 0, 0, 0.18);
}

.hero-content {
  position: relative;
  z-index: 4;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 1rem 4rem;
}

.hero-arabic-block {
  color: hsl(55 11% 35%);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.95), 0 0 40px rgba(255, 255, 255, 0.7);
  line-height: 1.12;
  transform: translateY(-1rem);
}

.hero-arabic-block .line-top {
  display: block;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  margin-bottom: clamp(1.7rem, 3.3vw, 2.25rem);
  margin-top: clamp(-2.6rem, -5vw, -1.9rem);
}

.hero-arabic-block .parents {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: clamp(1.7rem, 3.4vw, 2.25rem);
}

.hero-arabic-block .parents span {
  font-size: clamp(0.8rem, 1.45vw, 1rem);
}

.hero-arabic-block .parents .wa {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  margin: 0.25rem 0;
}

.hero-arabic-block .line-mid {
  display: block;
  font-size: clamp(0.92rem, 1.6vw, 1.08rem);
  margin-bottom: clamp(1.35rem, 2.9vw, 2rem);
}

.hero-arabic-block .line-bottom {
  display: block;
  font-size: clamp(0.84rem, 1.5vw, 1rem);
  margin-bottom: clamp(0.65rem, 1.2vw, 1rem);
}

.names-logo {
  width: min(540px, 78vw);
  margin-top: clamp(0.25rem, 1vw, 0.8rem);
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.7));
}

.sons-below {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2.4rem, 11vw, 10rem);
  color: hsl(55 11% 35%);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.95), 0 0 40px rgba(255, 255, 255, 0.7);
}

.sons-below span {
  font-size: clamp(0.72rem, 1.2vw, 0.95rem);
}

.hero-divider {
  width: clamp(5rem, 8.5vw, 6rem);
  height: 1px;
  background: var(--gold);
  margin-top: clamp(0.45rem, 1.1vw, 0.75rem);
  margin-bottom: clamp(0.5rem, 1vw, 0.9rem);
}

.hero-date {
  margin-top: 0;
  color: hsl(55 11% 35%);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.95), 0 0 40px rgba(255, 255, 255, 0.7);
}

.hero-date span {
  display: block;
  font-size: clamp(0.9rem, 1.45vw, 1.02rem);
  letter-spacing: 0.3em;
}

.hero-date strong {
  display: block;
  margin-top: 0.15rem;
  font-size: clamp(1.08rem, 2.2vw, 1.4rem);
  font-weight: 400;
}

.scroll-btn {
  margin-top: clamp(1rem, 2.2vw, 1.4rem);
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #fff;
  font-family: var(--arabic-font);
  font-size: clamp(0.72rem, 1.2vw, 0.88rem);
  letter-spacing: 0.14em;
  padding: 0.45rem 1.12rem 0.24rem;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.scroll-btn:hover {
  background: hsl(39 44% 58%);
  box-shadow: 0 10px 24px rgba(124, 101, 72, 0.22);
}

.scroll-btn:active {
  transform: scale(0.98);
}

.countdown-section {
  position: relative;
  padding: 6rem 0 0;
  overflow: hidden;
  background: var(--bg);
}

.countdown-section .pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: radial-gradient(circle at 1px 1px, hsl(40 18% 50%) 1px, transparent 0);
  background-size: 32px 32px;
}

.title-wrap {
  text-align: center;
}

.title-wrap .date-en {
  margin: 0 0 1rem;
  font-size: clamp(0.82rem, 1.35vw, 1rem);
  color: var(--muted);
  letter-spacing: 0.05em;
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 3.15rem);
  font-weight: 300;
  color: var(--fg);
}

.countdown-row {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(7, auto);
  justify-content: center;
  align-items: start;
  column-gap: clamp(0.3rem, 1.2vw, 1.2rem);
  row-gap: 0;
  padding-bottom: 0.6rem;
}

.count-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: clamp(3rem, 7.2vw, 6rem);
  min-height: clamp(5.25rem, 10vw, 8.1rem);
}

.count-unit .frame {
  position: absolute;
  top: -0.35rem;
  width: clamp(3rem, 7.2vw, 6rem);
  height: clamp(4rem, 8.5vw, 7rem);
  border: 1px solid rgba(200, 165, 112, 0.5);
  border-radius: 45% 45% 42% 42%;
  background: rgba(245, 238, 226, 0.34);
  z-index: 0;
}

.count-unit .value {
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1;
  font-weight: 300;
  position: relative;
  z-index: 1;
  min-width: 2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.count-unit .label {
  margin-top: 0.25rem;
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.dot {
  font-size: clamp(1.3rem, 2.7vw, 2rem);
  color: var(--gold);
  align-self: center;
  margin-top: -1.15rem;
  line-height: 1;
}

.branch {
  width: min(520px, 76vw);
  margin: 0 auto;
  transform: translateY(-22%);
  opacity: 0.95;
  pointer-events: none;
}

.quran-quote-wrap {
  position: relative;
  max-width: 48rem;
  margin: 1.6rem auto 2rem;
}

.quran-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 8rem);
  height: calc(100% + 8rem);
  max-width: none;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.quran-content {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 2rem;
}

.quran-quote {
  width: 100%;
  max-width: 28rem;
  object-fit: contain;
  margin-top: -2.5rem;
  margin-bottom: -1.5rem;
}

.details-section {
  padding: 1.5rem 0 8rem;
  background: var(--bg);
}

.details-section .title-wrap p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: clamp(0.85rem, 1.3vw, 1rem);
}

.separator-wrap {
  display: flex;
  justify-content: center;
  margin-top: -3rem;
  margin-bottom: -2.4rem;
}

.separator {
  width: min(260px, 50vw);
}

.venue-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.9rem;
  margin-bottom: 1.6rem;
  padding: 0.7rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 236, 224, 0.9));
  border: 1px solid rgba(201, 162, 126, 0.35);
  box-shadow: 0 14px 34px rgba(78, 57, 34, 0.14);
}

.venue-image {
  width: min(760px, 95vw);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 126, 0.32);
  box-shadow: 0 8px 20px rgba(61, 43, 24, 0.12);
}

.location-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.3vw, 1rem);
}

.location-head .pin {
  color: var(--gold);
}

.map-wrap {
  margin: 0 auto 1.25rem;
  width: min(860px, 100%);
  border: 2px solid hsl(39 34% 78%);
  box-shadow: 0 10px 28px rgba(70, 56, 39, 0.1);
  overflow: hidden;
}

.map-wrap iframe {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 340px));
  justify-content: center;
  gap: 1rem;
}

.card {
  border: 1px solid var(--line);
  background: #fffdf9;
  padding: 1rem;
  text-align: center;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  font-weight: 500;
}

.card p {
  margin: 0.55rem 0 0.95rem;
  color: var(--muted);
  font-size: clamp(0.87rem, 1.28vw, 1rem);
}

.ghost-btn {
  align-self: center;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  font-family: var(--arabic-font);
  font-size: clamp(0.72rem, 1.05vw, 0.84rem);
  padding: 0.42rem 0.95rem 0.34rem;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.ghost-btn:hover {
  background: hsl(39 60% 92%);
}

.rsvp-section {
  padding: 0 0 5rem;
  margin-top: -2.6rem;
  background: var(--bg);
}

.rsvp-icon {
  width: min(132px, 30vw);
  margin: 0 auto 1rem;
}

.rsvp-section .title-wrap p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.rsvp-section .title-wrap small {
  display: block;
  margin-top: 0.65rem;
  color: hsl(25 12% 55%);
  font-size: clamp(0.72rem, 1.05vw, 0.88rem);
}

.rsvp-form {
  width: min(640px, 100%);
  margin: 2rem auto 0;
  border: 1px solid var(--line);
  background: #fffefb;
  padding: 1.15rem;
}

.rsvp-form label {
  display: block;
  margin: 0.7rem 0 0.3rem;
  font-size: 0.93rem;
  color: var(--fg);
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea,
.submit-btn {
  width: 100%;
  border: 1px solid hsl(37 24% 79%);
  background: #fff;
  border-radius: 0;
  padding: 0.65rem 0.72rem;
  font-family: var(--arabic-font);
  color: var(--fg);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.attendance-options {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.option-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin: 0;
}

.option-item input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--gold);
}

.option-item span {
  font-size: 0.92rem;
}

.consent-row {
  margin-top: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.consent-row input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  accent-color: var(--gold);
}

.consent-row span {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.rsvp-form textarea {
  resize: vertical;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus,
.submit-btn:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(200, 165, 112, 0.16);
}

.submit-btn {
  margin-top: 0.9rem;
  background: hsl(39 44% 62%);
  border-color: hsl(39 44% 62%);
  color: #fff;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.submit-btn:hover {
  background: hsl(39 44% 58%);
}

.submit-btn:active {
  transform: scale(0.99);
}

.submit-btn[disabled] {
  opacity: 0.75;
  cursor: wait;
}

.form-message {
  margin: 0.8rem auto 0;
  width: min(760px, 100%);
  text-align: center;
  min-height: 1.4em;
  color: var(--muted);
}

.form-message.ok {
  color: #0f7a4d;
}

.form-message.error {
  color: #9f2b2b;
}

.thank-you-block {
  width: min(640px, 100%);
  margin: 1rem auto 0;
  border: 1px solid var(--line);
  background: #fffefb;
  padding: 1rem 1.1rem;
  text-align: center;
}

.thank-you-block h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.thank-you-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

/* Utility-style classes used in local HTML for Quran quote block */
[class~="relative"] {
  position: relative;
}

[class~="text-center"] {
  text-align: center;
}

[class~="flex"] {
  display: flex;
}

[class~="flex-col"] {
  flex-direction: column;
}

[class~="items-center"] {
  align-items: center;
}

[class~="px-8"] {
  padding-left: 2rem;
  padding-right: 2rem;
}

[class~="py-10"] {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

[class~="w-full"] {
  width: 100%;
}

[class~="max-w-md"] {
  max-width: 28rem;
}

[class~="object-contain"] {
  object-fit: contain;
}

[class~="-mt-10"] {
  margin-top: -2.5rem;
}

[class~="-mb-6"] {
  margin-bottom: -1.5rem;
}

.countdown-section img[src*="quran-quote"] {
  width: min(560px, 92vw);
  filter: drop-shadow(0 10px 20px rgba(74, 58, 38, 0.12));
}

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

@media (max-width: 767px) {
  [class~="px-8"] {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-content {
    padding-top: 6rem;
    padding-bottom: 2.6rem;
  }

  .hero-arabic-block {
    transform: translateY(-0.35rem);
  }

  .hero-arabic-block .line-top {
    margin-top: -1.4rem;
  }

  .sons-below {
    gap: 4rem;
  }

  .countdown-section {
    padding-top: 5rem;
  }

  .countdown-row {
    column-gap: 0.45rem;
  }

  .dot {
    margin-top: -0.75rem;
  }

  .branch {
    transform: translateY(-18%);
  }

  .quran-content {
    padding: 2rem 1rem;
  }

  .quran-quote-wrap {
    margin: 1.2rem auto 1.5rem;
  }

  .quran-frame {
    width: calc(100% + 5rem);
    height: calc(100% + 5rem);
  }

  .quran-quote {
    max-width: 24rem;
    margin-top: -2.1rem;
    margin-bottom: -1.15rem;
  }

  .separator {
    width: min(180px, 44vw);
  }

  .venue-wrap {
    padding: 0.5rem;
    border-radius: 14px;
    margin-top: 0.6rem;
    margin-bottom: 1.2rem;
  }

  .venue-image {
    border-radius: 10px;
  }

  .map-wrap iframe {
    height: 280px;
  }

  .cards {
    gap: 0.8rem;
  }

  .rsvp-section {
    margin-top: -1.1rem;
  }

  .details-section {
    padding-bottom: 5.5rem;
  }

  .rsvp-section {
    padding-bottom: 3.6rem;
    margin-top: -0.4rem;
  }
}

@media (min-width: 768px) {
  [class~="md:px-16"] {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  [class~="md:py-16"] {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  [class~="md:max-w-lg"] {
    max-width: 32rem;
  }

  [class~="md:-mt-14"] {
    margin-top: -3.5rem;
  }

  [class~="md:-mb-10"] {
    margin-bottom: -2.5rem;
  }

  .quran-content {
    padding: 4rem 4rem;
  }

  .quran-frame {
    width: calc(100% + 16rem);
    height: calc(100% + 16rem);
  }

  .quran-quote {
    max-width: 32rem;
    margin-top: -3.5rem;
    margin-bottom: -2.5rem;
  }
}
