/* ==========================================================================
   MADAAR — stylesheet
   Operated by Sama Digital Innovation.

   Layout uses CSS logical properties (margin-inline, padding-inline, inset-inline)
   throughout, so the Arabic pages mirror correctly from `dir="rtl"` alone with
   no separate RTL stylesheet.
   ========================================================================== */

/* ------------------------------------------------------------------ TOKENS */
:root {
  /* Brand palette — do not add colours without checking contrast */
  --teal: #123d3a;          /* Primary — Midnight Teal */
  --teal-soft: #1b534f;
  --ivory: #f7f3ea;         /* Background — Warm Ivory */
  --ivory-dim: #efe9dc;
  --ivory-line: #e2dacaff;
  --gold: #c89b55;          /* Accent — Dawn Gold */
  --gold-soft: #ddbb86;
  --gold-deep: #8a6428;     /* the only gold that passes contrast as text on ivory */
  --sage: #a9b9aa;
  --night: #091d24;         /* Dark background — Deep Night */

  --font-display: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-arabic: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', system-ui, sans-serif;

  --shell: 76rem;
  --prose: 46rem;
  --radius: 1.25rem;
  --pill: 999px;

  --shadow-card: 0 1px 2px rgba(9, 29, 36, 0.04), 0 12px 32px -20px rgba(9, 29, 36, 0.28);
  --shadow-lift: 0 24px 60px -30px rgba(9, 29, 36, 0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

/* -------------------------------------------------------------------- BASE */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--teal);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern' 1, 'liga' 1;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/* Arabic pages: one face for the whole document, with the extra leading that
   Arabic needs for comfortable long-form reading. */
html[lang='ar'] body,
html[lang='ar'] h1,
html[lang='ar'] h2,
html[lang='ar'] h3,
html[lang='ar'] .brand-name {
  font-family: var(--font-arabic);
  letter-spacing: 0;
}
html[lang='ar'] body { line-height: 1.95; }
html[lang='ar'] h1,
html[lang='ar'] h2,
html[lang='ar'] h3 { line-height: 1.45; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

a { color: inherit; }

::selection { background: var(--gold); color: var(--night); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--gold-soft); }

.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;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--teal);
  color: var(--ivory);
  padding: 0.6rem 1.1rem;
  border-radius: var(--pill);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.75rem; }

/* ------------------------------------------------------------------ LAYOUT */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 640px) { .shell { padding-inline: 2rem; } }

main { flex: 1; }

section { position: relative; }

.section-pad { padding-block: 5rem; }
@media (min-width: 640px) { .section-pad { padding-block: 6rem; } }

.rule-gold {
  height: 1px;
  border: 0;
  background: linear-gradient(to right, transparent, rgba(200, 155, 85, 0.45), transparent);
  margin: 0;
}

/* --------------------------------------------------------------- TYPOGRAPHY */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
html[lang='ar'] .eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
}
.on-dark .eyebrow { color: var(--gold-soft); }

.display {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
html[lang='ar'] .display { line-height: 1.3; letter-spacing: 0; }

.headline {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
}
html[lang='ar'] .headline { line-height: 1.45; letter-spacing: 0; }

.title {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
html[lang='ar'] .title { letter-spacing: 0; }

.prose {
  max-width: var(--prose);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(18, 61, 58, 0.85);
}
html[lang='ar'] .prose { line-height: 2; }
.prose p + p { margin-top: 1rem; }
.on-dark .prose { color: rgba(247, 243, 234, 0.7); }

.lead { font-size: 1.125rem; }
.muted { color: rgba(18, 61, 58, 0.74); font-size: 0.875rem; }
.on-dark .muted { color: rgba(247, 243, 234, 0.66); }

/* ----------------------------------------------------------------- BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: var(--pill);
  padding: 0.8rem 1.5rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }

.btn-primary { background: var(--teal); color: var(--ivory); }
.btn-primary:hover { background: var(--teal-soft); }

.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-soft); }

.btn-outline {
  border-color: rgba(18, 61, 58, 0.25);
  color: var(--teal);
  background: transparent;
}
.btn-outline:hover { border-color: rgba(18, 61, 58, 0.74); background: rgba(18, 61, 58, 0.05); }
.on-dark .btn-outline { border-color: rgba(247, 243, 234, 0.25); color: var(--ivory); }
.on-dark .btn-outline:hover { border-color: var(--gold); background: rgba(247, 243, 234, 0.05); }

/* Disabled "coming soon" store button — deliberately not a link */
.btn-idle {
  border-color: rgba(18, 61, 58, 0.2);
  color: rgba(18, 61, 58, 0.74);
  background: transparent;
  cursor: not-allowed;
}
.on-dark .btn-idle { border-color: rgba(247, 243, 234, 0.2); color: rgba(247, 243, 234, 0.66); }

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.store-badges { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .store-badges { flex-direction: row; } }
.store-badges.center { justify-content: center; }

/* ------------------------------------------------------------------- CARDS */
.card {
  border: 1px solid var(--ivory-line);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.on-dark .card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .split-hero { grid-template-columns: 1.05fr 0.95fr; }
  .split-orbit { grid-template-columns: 0.9fr 1.1fr; }
}

/* ------------------------------------------------------------------ HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 234, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(247, 243, 234, 0.92);
  border-bottom-color: var(--ivory-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}

.logo { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo svg { width: 2.25rem; height: 2.25rem; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--teal);
}
.brand-name-ar {
  font-family: var(--font-arabic);
  font-size: 0.8rem;
  margin-top: 0.3rem;
  color: var(--gold-deep);
}
.on-dark .brand-name { color: var(--ivory); }
.on-dark .brand-name-ar { color: var(--gold-soft); }

.nav-desktop { display: none; align-items: center; gap: 1.75rem; }
.nav-desktop a {
  font-size: 0.875rem;
  color: rgba(18, 61, 58, 0.75);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav-desktop a:hover { color: var(--teal); }

.header-actions { display: none; align-items: center; gap: 0.75rem; }

.lang-switch {
  border: 1px solid rgba(18, 61, 58, 0.2);
  border-radius: var(--pill);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(18, 61, 58, 0.8);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-switch:hover { border-color: var(--gold); color: var(--teal); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(18, 61, 58, 0.15);
  border-radius: 50%;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
}
.menu-toggle svg { width: 1.25rem; height: 1.25rem; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded='true'] .icon-open { display: none; }
.menu-toggle[aria-expanded='true'] .icon-close { display: block; }

.nav-mobile { border-top: 1px solid var(--ivory-line); background: var(--ivory); }
.nav-mobile[hidden] { display: none; }
.nav-mobile ul { display: flex; flex-direction: column; padding-block: 0.5rem; }
.nav-mobile ul a {
  display: block;
  padding-block: 0.9rem;
  border-bottom: 1px solid rgba(226, 218, 202, 0.7);
  color: rgba(18, 61, 58, 0.85);
  text-decoration: none;
}
.nav-mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 1.25rem;
}
.nav-mobile-actions .btn { flex: 1; }

@media (min-width: 1024px) {
  .nav-desktop, .header-actions { display: flex; }
  .menu-toggle, .nav-mobile { display: none; }
}

/* -------------------------------------------------------------------- HERO */
.hero { overflow: hidden; }
.hero-inner { padding-block: 4rem; }
@media (min-width: 1024px) { .hero-inner { padding-block: 6rem; } }

.hero-backdrop {
  position: absolute;
  left: 50%;
  top: -14rem;
  width: 46rem;
  height: 46rem;
  transform: translateX(-50%);
  opacity: 0.4;
  pointer-events: none;
}
.hero-veil {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 38rem;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--ivory), rgba(247, 243, 234, 0.7), var(--ivory));
}
.hero-content { position: relative; }
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; align-items: center; } }

/* -------------------------------------------------------------- PHONE MOCK */
.phone {
  width: 248px;
  margin-inline: auto;
  position: relative;
}
@media (min-width: 640px) { .phone { width: 272px; } }

.phone-frame {
  border: 1px solid rgba(9, 29, 36, 0.15);
  background: var(--night);
  border-radius: 2.6rem;
  padding: 0.625rem;
  box-shadow: var(--shadow-lift);
}
.phone-screen {
  aspect-ratio: 9 / 19.5;
  border-radius: 2.1rem;
  overflow: hidden;
  background: #0e3230;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  color: var(--ivory);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

.phone-notch { width: 2.5rem; height: 0.25rem; border-radius: var(--pill); background: rgba(247, 243, 234, 0.25); margin: 0.5rem auto 0; }
.phone-next { text-align: center; margin-top: 1.5rem; }
.phone-next span { font-size: 0.55rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-soft); }
.phone-time { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; margin-top: 0.5rem; }
.phone-hr { width: 4rem; height: 1px; background: rgba(200, 155, 85, 0.4); margin: 0.75rem auto 0; }
.phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; margin-top: 1.5rem; }
.phone-cell {
  border: 1px solid rgba(247, 243, 234, 0.1);
  background: rgba(247, 243, 234, 0.03);
  border-radius: 0.5rem;
  padding: 0.5rem 0.35rem;
  text-align: center;
  font-size: 0.5rem;
  color: rgba(247, 243, 234, 0.7);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.phone-cell.active { border-color: rgba(200, 155, 85, 0.6); background: rgba(200, 155, 85, 0.1); }
.phone-compass {
  margin-top: 1.25rem;
  border: 1px solid rgba(247, 243, 234, 0.1);
  background: rgba(247, 243, 234, 0.03);
  border-radius: 0.75rem;
  padding: 0.75rem;
}
.phone-compass span { display: block; width: 4rem; height: 4rem; border: 1px solid rgba(200, 155, 85, 0.4); border-radius: 50%; margin-inline: auto; }
.phone-lines { margin-top: auto; display: flex; flex-direction: column; gap: 0.375rem; padding-bottom: 0.25rem; }
.phone-lines i { display: block; height: 0.25rem; border-radius: var(--pill); background: rgba(247, 243, 234, 0.1); }
.phone-lines i:last-child { width: 66%; }

.phone-caption { text-align: center; margin-top: 1rem; }
.phone-tag {
  display: inline-block;
  border: 1px solid rgba(200, 155, 85, 0.45);
  background: var(--ivory);
  border-radius: var(--pill);
  padding: 0.25rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
html[lang='ar'] .phone-tag { letter-spacing: 0; text-transform: none; }
.phone-note {
  display: block;
  max-width: 16rem;
  margin: 0.5rem auto 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(18, 61, 58, 0.74);
}

/* ---------------------------------------------------------------- SECTIONS */
.band-dim { background: rgba(239, 233, 220, 0.5); border-top: 1px solid var(--ivory-line); }
.band-teal { background: var(--teal); color: var(--ivory); }
.band-night { background: var(--night); color: var(--ivory); }
.band-line { border-top: 1px solid var(--ivory-line); }

.feature-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(200, 155, 85, 0.4);
  border-radius: 50%;
  color: var(--gold-deep);
}
.feature-icon svg { width: 1.25rem; height: 1.25rem; }

.numbered li { border-top: 1px solid rgba(247, 243, 234, 0.1); padding-block: 1.25rem; }
.numbered li:first-child { border-top: 0; padding-top: 0; }
.numbered .row { display: flex; gap: 1.25rem; }
.numbered .num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--gold-soft);
  padding-top: 0.25rem;
}

.shield-list li {
  display: flex;
  gap: 1rem;
  border: 1px solid var(--ivory-line);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.shield-list li + li { margin-top: 1rem; }
.shield-list svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--gold-deep); margin-top: 0.15rem; }

.rule-item { border-top: 1px solid rgba(200, 155, 85, 0.35); padding-top: 1.25rem; }

/* ------------------------------------------------------------- PRAYER ORBIT */
.orbit {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  margin-inline: auto;
}
.orbit > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit-centre {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.orbit-core { width: 1rem; height: 1rem; border-radius: 50%; background: var(--gold); }
.orbit-note { max-width: 9rem; margin-top: 1rem; font-size: 0.75rem; line-height: 1.4; color: rgba(18, 61, 58, 0.74); }
.orbit-dot {
  position: absolute;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--ivory);
  transform: translate(-50%, -50%);
}
.orbit-label {
  position: absolute;
  width: 6rem;
  text-align: center;
  transform: translate(-50%, -50%);
}
.orbit-label b { display: block; font-size: 0.8rem; font-weight: 600; color: var(--teal); }
.orbit-label span { display: block; font-size: 0.65rem; line-height: 1.3; color: rgba(18, 61, 58, 0.74); }

/* ------------------------------------------------------------------- LEGAL */
.legal-head { max-width: var(--prose); }
.legal-meta {
  display: grid;
  gap: 0.75rem 2.5rem;
  border-block: 1px solid var(--ivory-line);
  padding-block: 1.25rem;
  margin-top: 2rem;
  font-size: 0.875rem;
}
@media (min-width: 640px) { .legal-meta { grid-template-columns: repeat(2, 1fr); } }
.legal-meta div { display: flex; gap: 0.5rem; }
.legal-meta dt { font-weight: 600; }
.legal-meta dd { margin: 0; color: rgba(18, 61, 58, 0.7); }

.legal-body { display: grid; gap: 3rem; margin-top: 3rem; }
@media (min-width: 1024px) {
  .legal-body { grid-template-columns: 15rem 1fr; gap: 4rem; }
  .legal-toc { position: sticky; top: 6rem; align-self: start; }
}
.legal-toc ol { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.legal-toc a {
  display: flex;
  gap: 0.6rem;
  color: rgba(18, 61, 58, 0.74);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.legal-toc a:hover { color: var(--gold-deep); }
.legal-toc .num { color: var(--gold-deep); font-variant-numeric: tabular-nums; }

.legal-section {
  border-top: 1px solid var(--ivory-line);
  padding-block: 2.25rem;
  scroll-margin-top: 6rem;
}
.legal-section:first-child { border-top: 0; padding-top: 0; }
.legal-section h2 { display: flex; gap: 0.75rem; }
.legal-section h2 .num { color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.legal-section .prose { margin-top: 1rem; }

.bullets { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.625rem; }
.bullets li { display: flex; gap: 0.75rem; }
.bullets li::before {
  content: '';
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
  margin-top: 0.7rem;
}

.note {
  margin-top: 1.25rem;
  border: 1px solid rgba(200, 155, 85, 0.4);
  background: rgba(200, 155, 85, 0.07);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: rgba(18, 61, 58, 0.8);
}

.table-wrap { margin-top: 1.25rem; overflow-x: auto; }
table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.875rem; }
th {
  text-align: start;
  font-weight: 600;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(200, 155, 85, 0.4);
}
td {
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--ivory-line);
  color: rgba(18, 61, 58, 0.75);
}

address { font-style: normal; }
.legal-contact { margin-top: 1.25rem; }
.legal-contact a { color: var(--gold-deep); font-weight: 600; text-underline-offset: 4px; }

/* ----------------------------------------------------------------- SUPPORT */
.chips { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.25rem; }
.chips span {
  border: 1px solid var(--ivory-line);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--pill);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: rgba(18, 61, 58, 0.75);
}

.faq { border-block: 1px solid var(--ivory-line); }
.faq details { border-top: 1px solid var(--ivory-line); }
.faq details:first-child { border-top: 0; }
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
  cursor: pointer;
  list-style: none;
  text-align: start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 600; }
.faq .plus {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  margin-top: 0.25rem;
  border: 1px solid rgba(200, 155, 85, 0.4);
  border-radius: 50%;
  color: var(--gold-deep);
  transition: transform 0.3s var(--ease);
}
.faq .plus svg { width: 0.875rem; height: 0.875rem; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq .answer { padding-bottom: 1.5rem; }
.faq .after {
  margin-top: 1rem;
  border-inline-start: 2px solid rgba(200, 155, 85, 0.5);
  padding-inline-start: 1rem;
  color: rgba(18, 61, 58, 0.7);
}

.callout {
  border: 1px solid rgba(200, 155, 85, 0.45);
  background: rgba(200, 155, 85, 0.07);
  border-radius: var(--radius);
  padding: 1.5rem;
}
@media (min-width: 640px) { .callout { padding: 2rem; } }

/* -------------------------------------------------------------------- FORM */
/* Honeypot: hidden from people, offered to bots. Clipped rather than pushed
   off-screen, which would create a horizontal scroll on the RTL pages. */
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form { display: grid; gap: 1.25rem; max-width: 48rem; }
@media (min-width: 640px) { .form { grid-template-columns: repeat(2, 1fr); } }
.field-full { grid-column: 1 / -1; }

.form label.label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 600; }
.form .req { color: var(--gold-deep); }

.form input[type='text'],
.form input[type='email'],
.form input[type='file'],
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--ivory-line);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--teal);
}
.form textarea { resize: vertical; min-height: 9rem; }
.form input::placeholder, .form textarea::placeholder { color: rgba(18, 61, 58, 0.55); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); outline: none; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.form [aria-invalid='true'] { border-color: rgba(153, 27, 27, 0.6); background: rgba(254, 242, 242, 0.6); }
.error-text { margin-top: 0.5rem; font-size: 0.875rem; color: #7f1d1d; }
.error-text:empty { display: none; }

.consent { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: rgba(18, 61, 58, 0.8); cursor: pointer; }
.consent input { width: 1rem; height: 1rem; margin-top: 0.3rem; flex: none; accent-color: #123d3a; }
.consent a { color: var(--gold-deep); font-weight: 600; text-underline-offset: 4px; }

.form-message { border-radius: var(--radius); padding: 1.5rem; }
.form-message[hidden] { display: none; }
.form-message.success { border: 1px solid rgba(200, 155, 85, 0.4); background: rgba(200, 155, 85, 0.06); }
.form-message.failure { border: 1px solid rgba(153, 27, 27, 0.3); background: #fef2f2; color: #7f1d1d; }

/* ------------------------------------------------------------------ FOOTER */
.site-footer { background: var(--night); color: var(--ivory); }
.footer-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
html[lang='ar'] .footer-grid h2 { letter-spacing: 0; text-transform: none; font-size: 0.85rem; }
.footer-grid ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-grid a { font-size: 0.875rem; color: rgba(247, 243, 234, 0.7); text-decoration: none; }
.footer-grid a:hover { color: var(--gold-soft); }
.footer-about { max-width: 20rem; margin-top: 1.25rem; font-size: 0.875rem; line-height: 1.7; color: rgba(247, 243, 234, 0.66); }
.footer-company { margin-top: 1.25rem; font-size: 0.875rem; font-weight: 600; color: rgba(247, 243, 234, 0.85); }

.footer-bottom { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.footer-lang .label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247, 243, 234, 0.66); }
html[lang='ar'] .footer-lang .label { letter-spacing: 0; text-transform: none; }
.footer-lang .current { background: rgba(247, 243, 234, 0.1); border-radius: var(--pill); padding: 0.35rem 0.75rem; font-size: 0.75rem; font-weight: 600; }
.footer-lang .alt { border: 1px solid rgba(247, 243, 234, 0.2); border-radius: var(--pill); padding: 0.35rem 0.75rem; font-size: 0.75rem; font-weight: 600; color: rgba(247, 243, 234, 0.7); text-decoration: none; }
.footer-lang .alt:hover { border-color: var(--gold); color: var(--ivory); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { font-size: 0.875rem; text-transform: capitalize; color: rgba(247, 243, 234, 0.66); text-decoration: none; }
.footer-notice { max-width: 48rem; margin-top: 2.5rem; font-size: 0.75rem; line-height: 1.7; color: rgba(247, 243, 234, 0.66); }
.footer-rights { margin-top: 1rem; font-size: 0.75rem; color: rgba(247, 243, 234, 0.66); }

/* ------------------------------------------------------------------ MOTION */
@keyframes orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes glow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

.spin { transform-origin: 50% 50%; animation: orbit-spin 90s linear infinite; }
.pulse { animation: glow 6s ease-in-out infinite; }

/* Content is visible by default; the hidden state is only added by JS once we
   know the observer can run and motion is welcome. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

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

/* ------------------------------------------------------------------- UTILS */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }
.mt-6 { margin-top: 3rem; }
.mt-8 { margin-top: 4rem; }
.center { text-align: center; }
.stack-sm > * + * { margin-top: 0.75rem; }
.flex-1 { flex: 1; }
.narrow { max-width: var(--prose); }
