:root {
  --font-kufi: "Noto Kufi Arabic", Tahoma, sans-serif;
  --font-plex: "IBM Plex Sans Arabic", Tahoma, sans-serif;

  --athar-950: #04211D;
  --athar-900: #06322F;
  --athar-850: #083530;
  --athar-800: #0A3E38;
  --athar-700: #034E49;
  --athar-600: #0C5E56;
  --athar-500: #2C7A6C;
  --athar-300: #9FCABB;
  --athar-200: #CFE6DD;
  --athar-100: #E7F1EC;
  --athar-50: #F6F4EE;

  --paper: #051D19;
  --paper-warm: #0A2B25;

  --shadow-deep-3d:
    0 60px 120px -30px rgba(4, 33, 29, 0.38),
    0 24px 48px -16px rgba(4, 33, 29, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.6) inset;
  --shadow-card-soft: 0 2px 14px rgba(4, 33, 29, 0.07);
  --shadow-card-lift: 0 30px 60px -24px rgba(4, 33, 29, 0.28), 0 8px 20px -8px rgba(4, 33, 29, 0.14);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--athar-100);
  font-family: var(--font-plex);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

::selection { background-color: var(--athar-700); color: #fff; }

:focus-visible {
  outline: 2px solid var(--athar-700);
  outline-offset: 3px;
  border-radius: 4px;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

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

/* ============================================================
   Ambient art direction — soft gradients, glow, abstract shapes
   ============================================================ */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -30;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -26;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 560px at 82% -6%, rgba(44, 122, 108, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 520px at -8% 18%, rgba(3, 78, 73, 0.10), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 55%, var(--paper) 100%);
}

.bg-glow {
  position: fixed;
  top: -180px;
  right: 50%;
  transform: translateX(50%);
  z-index: -25;
  pointer-events: none;
  width: 640px;
  height: 640px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(44, 122, 108, 0.22), rgba(44, 122, 108, 0) 70%);
  filter: blur(10px);
}

.bg-shape {
  position: fixed;
  z-index: -24;
  pointer-events: none;
  border-radius: 9999px;
  filter: blur(70px);
}
.bg-shape-1 {
  top: 8%;
  left: -12%;
  width: 46vw;
  height: 46vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, rgba(3, 78, 73, 0.14), transparent 70%);
}
.bg-shape-2 {
  bottom: -6%;
  right: -14%;
  width: 42vw;
  height: 42vw;
  max-width: 480px;
  max-height: 480px;
  background: radial-gradient(circle, rgba(12, 94, 86, 0.13), transparent 70%);
}

.bg-shield {
  position: absolute;
  top: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  max-width: 140vw;
  color: var(--athar-300);
  opacity: 0.06;
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 640px) { .bg-shield { top: -2rem; width: 520px; } }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.reveal-delay-1 { transition-delay: 0.12s; }
.reveal.reveal-delay-2 { transition-delay: 0.2s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Hero / Section 1 — the brochure is the centerpiece
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem 4rem;
  min-height: 100svh;
  justify-content: center;
}
@media (min-width: 640px) {
  .hero { padding: 4rem 1.5rem 5rem; }
}
@media (min-width: 1024px) {
  .hero { padding: 4.5rem 1.5rem 6rem; }
}

.hero-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}
@media (min-width: 640px) { .hero-intro { margin-bottom: 2.75rem; } }

.logo-mark {
  position: relative;
  width: 3.75rem;
  height: 3.75rem;
  margin-bottom: 1.1rem;
  animation: float 7s ease-in-out infinite;
  filter: drop-shadow(0 10px 22px rgba(4, 33, 29, 0.18));
}
@media (min-width: 640px) { .logo-mark { width: 4.25rem; height: 4.25rem; } }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.eyebrow-mini {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--athar-300);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.hero-intro h1 {
  font-family: var(--font-kufi);
  font-weight: 800;
  font-size: 1.7rem;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0;
}
@media (min-width: 640px) { .hero-intro h1 { font-size: 2.15rem; } }

.hero-intro .subtitle {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  color: rgba(231, 241, 236, 0.78);
  max-width: 26rem;
  line-height: 1.6;
}
@media (min-width: 640px) { .hero-intro .subtitle { font-size: 1.02rem; } }

.hero-rule {
  width: 3.25rem;
  height: 2px;
  margin-top: 1.15rem;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--athar-500), transparent);
}

/* ============================================================
   Brochure viewer — cinematic 3D card stack
   ============================================================ */
.brochure-outer {
  position: relative;
  display: flex;
  justify-content: center;
}

.brochure-glow {
  position: absolute;
  inset-inline: -3.5rem;
  top: 2rem;
  bottom: -1rem;
  z-index: 0;
  pointer-events: none;
  border-radius: 3.5rem;
  background: radial-gradient(circle at 50% 8%, rgba(44, 122, 108, 0.22), transparent 62%);
  filter: blur(36px);
}

.perspective-container { perspective: 2400px; perspective-origin: 50% 38%; }

.brochure-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}
@media (min-width: 480px) { .brochure-wrap { max-width: 420px; } }
@media (min-width: 640px) { .brochure-wrap { max-width: 460px; } }
@media (min-width: 768px) { .brochure-wrap { max-width: 500px; } }
@media (min-width: 1024px) { .brochure-wrap { max-width: 540px; } }

.brochure-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1655 / 2340;
}

.stack-page {
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-card-soft);
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.stack-page .stack-inner { position: relative; width: 100%; height: 100%; }
.stack-page img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.stack-1 { transform: translateY(9px) scale(0.965) rotateY(-2.2deg); opacity: 0.32; z-index: 10; }
.stack-2 { transform: translateY(17px) scale(0.93) rotateY(-3.6deg); opacity: 0.17; z-index: 9; }

.active-page-frame {
  position: absolute;
  inset: 0;
  z-index: 20;
  transform-style: preserve-3d;
}

.active-page {
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-deep-3d);
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  outline: 1px solid rgba(255, 255, 255, 0.5);
  outline-offset: -1px;
}
.active-page:active { cursor: grabbing; }
.active-page.leaving { cursor: default; }

.active-page img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: calc(100% + 0.9rem);
  transform: none;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.55);
  color: var(--athar-700);
  box-shadow: var(--shadow-card-soft);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease-spring), border-color 0.25s ease;
  z-index: 30;
}
.nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--athar-300);
  box-shadow: var(--shadow-card-lift);
  transform: scale(1.06);
}
.nav-btn:active:not(:disabled) { transform: scale(0.96); }
.nav-btn:disabled { opacity: 0.28; cursor: not-allowed; }
.nav-prev { right: calc(50% - 3.55rem); }
.nav-next { left: calc(50% - 3.55rem); }
.chev-rotate { transform: rotate(180deg); }

.brochure-outer { padding-bottom: 3.65rem; }

@media (min-width: 768px) {
  .brochure-outer { padding-bottom: 0; }
  .nav-btn {
    top: 50%;
    right: auto;
    left: auto;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
  }
  .nav-btn:hover:not(:disabled) { transform: translateY(-50%) scale(1.06); }
  .nav-btn:active:not(:disabled) { transform: translateY(-50%) scale(0.96); }
  .nav-prev { right: -3.75rem; }
  .nav-next { left: -3.75rem; }
}
@media (min-width: 1024px) {
  .nav-prev { right: -4.5rem; }
  .nav-next { left: -4.5rem; }
}

/* ============================================================
   Page indicator
   ============================================================ */
.indicator {
  margin-top: 1.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.indicator-numbers {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-kufi);
  color: #fff;
}
.indicator-numbers #pageCurrent {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.indicator-numbers .sep { color: var(--athar-300); font-size: 0.85rem; }
.indicator-numbers #pageTotal {
  font-size: 0.85rem;
  color: rgba(231, 241, 236, 0.55);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  width: 9rem;
  height: 2px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--athar-500), var(--athar-700));
  width: 14.2857%;
  transition: width 0.55s var(--ease-out-expo);
}

.dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.15rem;
}
@media (min-width: 768px) { .dots { display: none; } }

.dots button {
  height: 0.4rem;
  border-radius: 9999px;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  width: 0.4rem;
  padding: 0;
  transition: width 0.3s var(--ease-spring), background-color 0.25s ease;
}
.dots button.active { width: 1.4rem; background: var(--athar-300); }

/* ============================================================
   Hint
   ============================================================ */
.hint {
  margin-top: 2.25rem;
  color: rgba(231, 241, 236, 0.6);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  opacity: 0.85;
}
@media (min-width: 640px) { .hint { font-size: 0.86rem; } }

/* ============================================================
   Section 2 — free consultation, luxury form
   ============================================================ */
.consultation {
  position: relative;
  background:
    radial-gradient(ellipse 900px 600px at 15% 0%, rgba(44, 122, 108, 0.30), transparent 55%),
    radial-gradient(ellipse 800px 700px at 90% 100%, rgba(12, 94, 86, 0.22), transparent 55%),
    linear-gradient(160deg, var(--athar-950) 0%, var(--athar-900) 45%, var(--athar-850) 100%);
  color: #fff;
  padding: 4.5rem 1.25rem;
  overflow: hidden;
}
@media (min-width: 640px) { .consultation { padding: 6.5rem 1.5rem; } }

.consultation-fade-top {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 6rem;
  transform: translateY(-100%);
  background: linear-gradient(to bottom, transparent, var(--athar-950));
  pointer-events: none;
}

.consultation-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(44, 122, 108, 0.4), transparent 52%),
    radial-gradient(circle at 88% 88%, rgba(44, 122, 108, 0.28), transparent 48%);
}

.consultation-inner {
  position: relative;
  max-width: 46rem;
  margin: 0 auto;
}

.consultation-heading { text-align: center; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .consultation-heading { margin-bottom: 3.25rem; } }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--athar-300);
  margin-bottom: 1.1rem;
  text-transform: uppercase;
}

.consultation-heading h2 {
  font-family: var(--font-kufi);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
}
@media (min-width: 640px) { .consultation-heading h2 { font-size: 2.5rem; } }

.consultation-heading p {
  color: rgba(231, 241, 236, 0.78);
  max-width: 27rem;
  margin: 0 auto;
  line-height: 1.75;
  font-size: 0.98rem;
}

/* ---------- Glass form card ---------- */
.consult-card, .success-card {
  width: 100%;
  max-width: 27rem;
  margin: 0 auto;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  color: #fff;
  padding: 2.1rem 1.5rem;
  box-shadow: var(--shadow-card-lift);
  position: relative;
}
@media (min-width: 640px) { .consult-card, .success-card { padding: 2.75rem 2.25rem; } }

.field { margin-bottom: 1.35rem; }
.field:last-of-type { margin-bottom: 0; }

.field label, .field-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(231, 241, 236, 0.75);
  margin-bottom: 0.55rem;
  font-weight: 500;
}

.field input {
  width: 100%;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.85rem 1.05rem;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.field input::placeholder { color: rgba(207, 230, 221, 0.45); }
.field input:focus {
  border-color: rgba(159, 202, 187, 0.75);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(44, 122, 108, 0.28);
}
.field input.phone-input { text-align: right; }

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
@media (max-width: 380px) { .option-grid { grid-template-columns: 1fr; } }

.option-card {
  text-align: right;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.92);
  padding: 1.1rem 1rem;
  transition:
    border-color 0.28s var(--ease-out-expo),
    background-color 0.28s var(--ease-out-expo),
    color 0.2s ease,
    box-shadow 0.28s var(--ease-out-expo),
    transform 0.28s var(--ease-spring);
}
.option-card:hover { border-color: rgba(159, 202, 187, 0.55); transform: translateY(-2px); }
.option-card:active { transform: translateY(0) scale(0.985); }

.option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.4rem;
  width: 2.4rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--athar-300);
  margin-bottom: 0.6rem;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.35s var(--ease-spring);
}

.option-title {
  display: block;
  font-family: var(--font-kufi);
  font-weight: 700;
  font-size: 0.9rem;
}

.option-desc {
  display: block;
  font-size: 0.76rem;
  margin-top: 0.3rem;
  line-height: 1.5;
  color: rgba(231, 241, 236, 0.55);
}

.option-card.selected {
  border-color: rgba(159, 202, 187, 0.85);
  background: linear-gradient(160deg, rgba(44, 122, 108, 0.55), rgba(3, 78, 73, 0.55));
  color: #fff;
  box-shadow: 0 16px 32px -14px rgba(3, 78, 73, 0.55);
}
.option-card.selected .option-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: scale(1.1) rotate(-4deg);
}
.option-card.selected .option-desc { color: rgba(255, 255, 255, 0.78); }

.form-error {
  color: #ff9d9d;
  font-size: 0.85rem;
  margin: 1.35rem 0 0;
}

.submit-btn {
  position: relative;
  width: 100%;
  margin-top: 1.5rem;
  border-radius: 0.9rem;
  border: none;
  background: linear-gradient(135deg, var(--athar-600), var(--athar-700) 60%, var(--athar-800));
  color: #fff;
  font-family: var(--font-kufi);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 1.05rem 1.5rem;
  box-shadow: 0 16px 34px -14px rgba(3, 78, 73, 0.7);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, opacity 0.2s ease;
  overflow: hidden;
}
.submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.22) 42%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out-expo);
}
.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px -14px rgba(3, 78, 73, 0.8);
}
.submit-btn:hover:not(:disabled)::before { transform: translateX(120%); }
.submit-btn:active:not(:disabled) { transform: translateY(0) scale(0.985); }
.submit-btn:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }

.success-card {
  text-align: center;
  animation: fade-up 0.55s var(--ease-out-expo) forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-icon {
  margin: 0 auto 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.75rem;
  width: 3.75rem;
  border-radius: 9999px;
  background: rgba(159, 202, 187, 0.16);
  color: var(--athar-300);
  border: 1px solid rgba(159, 202, 187, 0.35);
}

.success-card h3 {
  font-family: var(--font-kufi);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  margin: 0 0 0.55rem;
}
.success-card p { color: rgba(231, 241, 236, 0.72); line-height: 1.75; margin: 0; }

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: var(--athar-950);
  color: rgba(207, 230, 221, 0.6);
  text-align: center;
  font-size: 0.74rem;
  padding: 1.5rem 1.25rem;
  position: relative;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}


#brochureStage {
    touch-action: pan-y pinch-zoom;
}