/* ============================================================================
   polish.css — light UI polish (additive only)
   Loaded AFTER main.css. Does NOT alter existing layout/markup; only enhances
   accessibility + interaction feedback per ui-ux-pro-max priority rules.
   Applied to the Home page (index.php).
   ============================================================================ */

/* --- 1. Higher-contrast focus ring (WCAG 2.4.11 — needs >=3:1 on ANY bg) ---
   The base gold ring is only ~2.1:1 on light backgrounds. A dual ring (dark
   core + gold halo) stays clearly visible on both light and dark surfaces. */
:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(94,199,184, 0.55);
  border-radius: 4px;
}
/* On dark sections the dark core would vanish — lead with gold there. */
.hero-section :focus-visible,
.footer :focus-visible,
footer :focus-visible,
.chatbot-window :focus-visible {
  outline-color: var(--gold);
  box-shadow: 0 0 0 5px rgba(0,71,63, 0.55);
}

/* --- 2. Touch targets >=44x44 (ui-ux-pro-max Touch rule, CRITICAL) ---
   Expand small controls' hit area without changing their visual weight. */
.lang-toggle-btn,
#lang-toggle,
#lang-toggle-mob {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#back-to-top {
  min-width: 44px;
  min-height: 44px;
}
.pwa-banner-dismiss {
  /* keep the 32px visual circle but pad the clickable area out to ~44px */
  padding: 6px;
  box-sizing: content-box;
}

/* --- 3. Consistent, smooth interaction feedback (no instant 0ms changes) --- */
.btn-gold,
.btn-outline,
.nav-link,
.lang-toggle-btn,
.filter-btn {
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn-gold:hover,
.btn-outline:hover {
  transform: translateY(-2px);
}
.btn-gold:active,
.btn-outline:active {
  transform: translateY(0);
}

/* --- 4. Respect reduced-motion: disable the lift/transition above --- */
@media (prefers-reduced-motion: reduce) {
  .btn-gold, .btn-outline, .nav-link, .lang-toggle-btn, .filter-btn { transition: none; }
  .btn-gold:hover, .btn-outline:hover, .btn-gold:active, .btn-outline:active { transform: none; }
  .civic-hero { scroll-behavior: auto; }
}

/* ============================================================================
   Editorial video trust hero — reference-driven redesign
   ============================================================================ */
.civic-hero.editorial-hero {
  --hero-x: 78%;
  --hero-y: 24%;
  min-height: max(720px, calc(100svh - 92px));
  padding: clamp(88px, 11vh, 132px) 0 clamp(64px, 8vh, 92px);
  justify-content: center;
  background: #000D0B;
}
.civic-hero.editorial-hero .civic-hero__video {
  transform: scale(1.025);
  filter: saturate(.82) contrast(1.04) brightness(.86);
}
.civic-hero.editorial-hero .civic-hero__scrim {
  background:
    linear-gradient(90deg, rgba(0,28,25, .82) 0%, rgba(0,28,25, .68) 36%, rgba(0,28,25, .24) 68%, rgba(0,28,25, .48) 100%),
    linear-gradient(180deg, rgba(0,28,25, .12), rgba(0,28,25, .03) 62%, rgba(0,28,25, .62));
}
.civic-hero.editorial-hero .civic-hero__glow {
  opacity: .72;
  background:
    radial-gradient(44rem 35rem at var(--hero-x) var(--hero-y), rgba(94,199,184, .17), transparent 62%),
    radial-gradient(26rem 24rem at 12% 72%, rgba(0,122,107, .13), transparent 70%);
}
.civic-hero .editorial-hero__layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: clamp(38px, 5vw, 78px);
}
.civic-hero .editorial-hero__content {
  grid-column: span 7;
  max-width: 820px;
  padding-top: 18px;
}
.civic-hero .civic-hero__badge {
  gap: 9px;
  padding: 7px 12px;
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .055);
  color: rgba(255, 255, 255, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.civic-hero .civic-hero__badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #66d78f;
  box-shadow: 0 0 0 4px rgba(102, 215, 143, .12);
}
.civic-hero .civic-hero__badge .fa-star { color: #009383; font-size: .7rem; }
.civic-hero .civic-hero__title {
  max-width: 10.8ch;
  margin: clamp(25px, 4vh, 42px) 0 24px;
  color: #fff;
  font-size: clamp(4rem, 6.15vw, 5.9rem);
  font-weight: 550;
  letter-spacing: -.035em;
  line-height: .91;
  text-wrap: balance;
}
.civic-hero .civic-hero__title strong {
  display: inline-block;
  color: #009383;
  font-weight: 620;
}
.civic-hero .civic-hero__lead {
  max-width: 590px;
  margin: 0 0 30px;
  color: rgba(235, 241, 237, .72);
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.7;
}
.civic-hero .civic-hero__actions { gap: 13px; }
.civic-hero .civic-hero__cta {
  min-height: 50px;
  padding: 13px 25px;
  border-radius: 999px;
  font-size: .875rem;
  letter-spacing: .01em;
}
.civic-hero .civic-hero__cta--primary {
  color: #001714;
  background: #fff;
  border-color: #fff;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .24);
}
.civic-hero .civic-hero__cta--primary:hover { background: #f5f2e9; box-shadow: 0 14px 42px rgba(0, 0, 0, .32); }
.civic-hero .civic-hero__cta--secondary { background: rgba(255, 255, 255, .055); border-color: rgba(255, 255, 255, .16); }
.civic-hero .editorial-hero__aside {
  grid-column: span 5;
  display: grid;
  gap: 18px;
  min-width: 0;
}
.civic-hero .editorial-trust-card,
.civic-hero .editorial-services-marquee {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 16px;
  background: rgba(255, 255, 255, .11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px) saturate(118%);
  -webkit-backdrop-filter: blur(18px) saturate(118%);
}
.civic-hero .editorial-trust-card { padding: clamp(24px, 2.5vw, 34px); }
.civic-hero .editorial-trust-card__glow {
  position: absolute; width: 260px; height: 260px; top: -150px; right: -100px;
  border-radius: 50%; background: rgba(255, 255, 255, .08); filter: blur(44px); pointer-events: none;
}
.civic-hero .editorial-trust-card__header { position: relative; display: flex; align-items: center; gap: 14px; }
.civic-hero .editorial-trust-card__icon {
  width: 50px; height: 50px; flex: 0 0 50px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .15); border-radius: 16px;
  color: #009383; background: rgba(255, 255, 255, .08); font-size: 1.15rem;
}
.civic-hero .editorial-trust-card__header p { margin: 0 0 4px; color: rgba(255, 255, 255, .55); font-size: max(.75rem, var(--fs-min, 12px)); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.civic-hero .editorial-trust-card__header h2 { margin: 0; color: #fff; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.15; }
.civic-hero .editorial-trust-card__feature {
  position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px; align-items: center; gap: 13px;
  min-height: 74px; margin: 28px 0 23px; padding: 13px 15px;
  border: 1px solid rgba(0,47,31, .23); border-radius: 18px;
  color: #fff; text-decoration: none; background: rgba(94,199,184, .085);
}
.civic-hero .editorial-trust-card__feature:hover { color: #fff; transform: translateY(-2px); background: rgba(94,199,184, .14); }
.civic-hero .editorial-trust-card__feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #009383; background: rgba(94,199,184, .12); }
.civic-hero .editorial-trust-card__feature-copy { display: grid; gap: 2px; min-width: 0; }
.civic-hero .editorial-trust-card__feature-copy small { color: #76d99a; font-size: max(.75rem, var(--fs-min, 12px)); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.civic-hero .editorial-trust-card__feature-copy strong { font-size: .9375rem; line-height: 1.3; }
.civic-hero .editorial-trust-card__feature > .fa-arrow-right { color: rgba(255, 255, 255, .62); }
.civic-hero .editorial-trust-card__rollout { display: grid; gap: 9px; color: rgba(255, 255, 255, .63); font-size: max(.75rem, var(--fs-min, 12px)); }
.civic-hero .editorial-trust-card__track { height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .09); }
.civic-hero .editorial-trust-card__track span { display: block; width: 34%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5EC7B8, #009383); box-shadow: 0 0 16px rgba(94,199,184, .38); }
.civic-hero .editorial-trust-card__pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.civic-hero .editorial-trust-card__pills > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; color: rgba(255, 255, 255, .65); background: rgba(255, 255, 255, .045); font-size: max(.75rem, var(--fs-min, 12px)); font-weight: 650; }
.civic-hero .editorial-trust-card__pills i { color: #8FD8CC; }
.civic-hero .editorial-services-marquee { padding: 22px 0 24px; }
.civic-hero .editorial-services-marquee > p { margin: 0 0 17px; padding: 0 25px; color: rgba(255, 255, 255, .5); font-size: max(.75rem, var(--fs-min, 12px)); font-weight: 650; }
.civic-hero .editorial-services-marquee__viewport {
  overflow: hidden;
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.civic-hero .editorial-services-marquee__track { display: flex; width: max-content; gap: 34px; padding-inline: 22px; direction: ltr; animation: editorialMarquee 34s linear infinite; }
.civic-hero .editorial-services-marquee__track > span { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; color: rgba(255, 255, 255, .52); }
.civic-hero .editorial-services-marquee__track i { color: #8FD8CC; font-size: .9rem; }
.civic-hero .editorial-services-marquee__track b { color: inherit; font-size: max(.75rem, var(--fs-min, 12px)); font-weight: 700; }
@keyframes editorialMarquee { to { transform: translateX(-50%); } }
body.lang-ar .civic-hero .editorial-hero__content,
body.lang-ar .civic-hero .editorial-hero__aside { text-align: right; }
body.lang-ar .civic-hero .civic-hero__title { max-width: 11.5ch; line-height: 1.08; letter-spacing: 0; }
body.lang-ar .civic-hero .editorial-trust-card__feature { grid-template-columns: 42px minmax(0, 1fr) 18px; }
body.lang-ar .civic-hero .editorial-services-marquee__track > span { direction: rtl; }
body.lang-ar .civic-hero .editorial-trust-card__feature > .fa-arrow-right,
body.lang-ar .civic-hero .civic-hero__cta--primary > .fa-arrow-right { transform: scaleX(-1); }
@supports not (backdrop-filter: blur(1px)) {
  .civic-hero .editorial-trust-card,
  .civic-hero .editorial-services-marquee { background: rgba(0,26,23, .96); }
}
@media (max-width: 991.98px) {
  .civic-hero.editorial-hero { min-height: auto; padding: 104px 0 76px; }
  .civic-hero .editorial-hero__layout { grid-template-columns: 1fr; gap: 42px; }
  .civic-hero .editorial-hero__content,
  .civic-hero .editorial-hero__aside { grid-column: 1; max-width: 760px; width: 100%; }
  .civic-hero .editorial-hero__aside { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: stretch; max-width: none; }
  .civic-hero .editorial-services-marquee { min-width: 0; }
}
@media (max-width: 700px) {
  html,
  body { max-width: 100%; overflow-x: clip; }
  .civic-hero.editorial-hero { min-height: 100svh; padding: max(82px, calc(68px + env(safe-area-inset-top))) 0 calc(54px + env(safe-area-inset-bottom)); }
  .civic-hero .editorial-hero__layout { width: min(100% - 28px, 1320px); gap: 30px; }
  .civic-hero .editorial-hero__content { padding-top: 8px; }
  .civic-hero .civic-hero__title { max-width: 11ch; margin: 21px 0 18px; font-size: clamp(3rem, 14vw, 4.4rem); line-height: .95; }
  .civic-hero .civic-hero__lead { margin-bottom: 24px; font-size: .9375rem; line-height: 1.6; }
  .civic-hero .civic-hero__actions { display: grid; grid-template-columns: 1fr; }
  .civic-hero .civic-hero__cta { width: 100%; justify-content: center; }
  .civic-hero .editorial-hero__aside { grid-template-columns: 1fr; gap: 14px; }
  .civic-hero .editorial-trust-card { padding: 20px; }
  .civic-hero .editorial-trust-card__feature { margin-block: 22px 19px; }
  .civic-hero .editorial-trust-card,
  .civic-hero .editorial-services-marquee { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .civic-hero .editorial-services-marquee__track { animation: none !important; transform: none !important; }
}

/* ============================================================================
   Story heading — "The Story of Bickfaya"
   Base color was --primary-dark (dark green) on the dark Story section, so the
   title was nearly invisible. Lift it to a soft cream, keep the accent gold,
   and add a slow gold/green glow pulse.
   ============================================================================ */
#story .section-title-main { color: #EDE6D4; }
#story .section-title-main .display-en,
#story .section-title-main .display-fr,
#story .section-title-main .display-ar { color: #EDE6D4; }
#story .section-title-main .accent { color: var(--gold, #5EC7B8); }

@keyframes storyGlow {
  0%, 100% { text-shadow: 0 0 8px rgba(94,199,184, 0.25); }
  50%      { text-shadow: 0 0 22px rgba(94,199,184, 0.70),
                          0 0 40px rgba(0,107,94, 0.50); }
}
@media (prefers-reduced-motion: no-preference) {
  #story .section-title-main .display-en,
  #story .section-title-main .display-fr {
    animation: storyGlow 3s ease-in-out infinite;
  }
}

/* ============================================================================
   Civic Gateway hero — premium, accessible municipal entry point
   ============================================================================ */
.civic-hero {
  --hero-x: 72%;
  --hero-y: 24%;
  position: relative;
  isolation: isolate;
  min-height: max(760px, 100svh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(112px, 13vh, 160px) 0 clamp(118px, 13vh, 154px);
  color: var(--white, #fff);
  background: var(--primary-deep, #00302A);
}
.civic-hero .civic-hero__media,
.civic-hero .civic-hero__scrim,
.civic-hero .civic-hero__glow { position: absolute; inset: 0; pointer-events: none; }
.civic-hero .civic-hero__media { z-index: -3; background: #00302A; }
.civic-hero .civic-hero__video {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center;
  filter: saturate(.82) contrast(1.04);
}
.civic-hero .civic-hero__scrim {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0,17,15, .94) 0%, rgba(0,32,28, .79) 43%, rgba(0,32,28, .42) 72%, rgba(0,15,13, .62) 100%),
    linear-gradient(180deg, rgba(0,14,12, .7) 0%, transparent 30%, transparent 62%, rgba(0,15,13, .9) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(0,12,11, .52) 100%);
}
.civic-hero .civic-hero__glow {
  z-index: -1;
  background: radial-gradient(circle at var(--hero-x) var(--hero-y), rgba(0,47,31, .2), rgba(94,199,184, .055) 22%, transparent 48%);
  mix-blend-mode: screen;
}
.civic-hero .civic-hero__layout {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center; gap: clamp(28px, 4vw, 64px);
  width: min(100% - 32px, 1320px);
}
.civic-hero .civic-hero__content { grid-column: span 7; min-width: 0; max-width: 780px; }
.civic-hero .civic-gateway { grid-column: span 5; min-width: 0; }
.civic-hero .civic-hero__badge {
  width: fit-content; display: inline-flex; align-items: center; gap: 10px;
  min-height: 36px; padding: 7px 14px;
  border: 1px solid rgba(0,47,31, .48); border-radius: 999px;
  background: rgba(0,32,28, .56); color: var(--gold-light, #009383);
  font-size: max(.75rem, var(--fs-min, 12px)); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
}
.civic-hero .civic-hero__title {
  margin: clamp(18px, 2.4vh, 28px) 0 18px;
  max-width: 11ch; color: #fff;
  font-family: var(--font-en-head, 'Montserrat', 'Inter', 'Cairo', sans-serif);
  font-size: clamp(3.5rem, 6.15vw, 5.5rem);
  font-weight: 800; line-height: .98; letter-spacing: -.035em;
  text-wrap: balance; text-shadow: 0 6px 36px rgba(0, 0, 0, .48);
}
.civic-hero .civic-hero__title strong { color: var(--gold-light, #009383); font-weight: 800; }
.civic-hero .civic-hero__lead {
  max-width: 62ch; margin: 0 0 28px;
  color: rgba(255, 255, 255, .88); font-size: clamp(1rem, 1.45vw, 1.25rem);
  line-height: 1.65; text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}
.civic-hero .civic-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.civic-hero .civic-hero__cta {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border: 1px solid transparent; border-radius: 999px;
  font-size: .9375rem; font-weight: 750; line-height: 1.2; cursor: pointer;
  transition: transform .2s ease;
}
.civic-hero .civic-hero__cta--primary {
  color: #00302A; background: linear-gradient(135deg, #009383, var(--gold, #5EC7B8));
  border-color: rgba(255, 255, 255, .28); box-shadow: 0 10px 32px rgba(94,199,184, .3);
}
.civic-hero .civic-hero__cta--secondary { color: #fff; background: rgba(0,32,28, .64); border-color: rgba(255, 255, 255, .36); }
.civic-hero .civic-hero__cta:hover { transform: translateY(-2px); }
.civic-hero .civic-hero__cta--primary:hover { box-shadow: 0 14px 38px rgba(94,199,184, .42); }
.civic-hero .civic-hero__cta--secondary:hover { background: rgba(0,107,94, .82); border-color: rgba(0,47,31, .7); }
.civic-hero .civic-hero__cta:active { transform: translateY(0) scale(.98); }

.civic-hero .civic-gateway,
.civic-hero .civic-trust {
  background: rgba(0,32,28, .68);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  backdrop-filter: blur(24px) saturate(1.25);
  box-shadow: 0 28px 75px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .09), 0 0 0 1px rgba(94,199,184, .07);
}
.civic-hero .civic-gateway { padding: clamp(22px, 2.6vw, 34px); }
.civic-hero .civic-gateway__header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.civic-hero .civic-gateway__icon {
  flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 15px; color: var(--gold-light, #009383);
  background: rgba(94,199,184, .13); border: 1px solid rgba(0,47,31, .28);
}
.civic-hero .civic-gateway__kicker { margin: 0 0 2px; color: var(--gold-light, #009383); font-size: max(.75rem, var(--fs-min, 12px)); font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.civic-hero .civic-gateway h2 { margin: 0; color: #fff; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.2; }
.civic-hero .civic-gateway__nav { display: grid; gap: 10px; }
.civic-hero .civic-gateway__link {
  min-height: 52px; min-width: 0; display: grid; grid-template-columns: 24px minmax(0, 1fr) 18px;
  align-items: center; gap: 12px; padding: 12px 14px;
  color: rgba(255, 255, 255, .91); background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .13); border-radius: 14px;
  font-size: .875rem; font-weight: 650; line-height: 1.35;
  transition: transform .2s ease;
}
.civic-hero .civic-gateway__link > i:first-child { color: var(--gold-light, #009383); text-align: center; }
.civic-hero .civic-gateway__link > i:last-child { color: rgba(255, 255, 255, .64); transition: transform .2s ease; }
.civic-hero .civic-gateway__link:hover { transform: translateY(-2px); background: rgba(94,199,184, .115); border-color: rgba(0,47,31, .4); box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.civic-hero .civic-gateway__link:hover > i:last-child { transform: translateX(3px); color: var(--gold-light, #009383); }
.civic-hero .civic-gateway__link:active { transform: translateY(0) scale(.985); }
.civic-hero .civic-gateway__status { display: flex; align-items: center; gap: 9px; margin-top: 17px; color: rgba(255, 255, 255, .72); font-size: max(.75rem, var(--fs-min, 12px)); }
.civic-hero .civic-gateway__status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #65d58b; box-shadow: 0 0 0 4px rgba(101, 213, 139, .12); }

.civic-hero .civic-trust {
  grid-column: 1 / -1;
  width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 15px 18px;
}
.civic-hero .civic-trust__item { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px 16px; text-align: center; }
.civic-hero .civic-trust__item + .civic-trust__item { border-inline-start: 1px solid rgba(255, 255, 255, .18); }
.civic-hero .civic-trust__item strong { color: var(--gold-light, #009383); font-size: 1.125rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.civic-hero .civic-trust__item > span { color: rgba(255, 255, 255, .72); font-size: max(.75rem, var(--fs-min, 12px)); line-height: 1.3; }
.civic-hero .civic-hero__scroll {
  position: absolute; z-index: 3; right: 32px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: rgba(255, 255, 255, .7); font-size: max(.75rem, var(--fs-min, 12px)); letter-spacing: .08em; text-transform: uppercase;
  transition: transform .2s ease;
}
.civic-hero .civic-hero__scroll:hover { color: var(--gold-light, #009383); transform: translateY(2px); }
.civic-hero .civic-hero__scroll i { animation: civicScrollCue 1.8s ease-in-out infinite; }
@keyframes civicScrollCue { 0%, 100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(5px); opacity: 1; } }

/* Content stays visible without JavaScript; readiness only enhances its arrival. */
.civic-hero.is-ready .civic-reveal { animation: civicReveal .38s ease-out both; }
.civic-hero.is-ready .civic-reveal:nth-child(2) { animation-delay: 50ms; }
.civic-hero.is-ready .civic-reveal:nth-child(3) { animation-delay: 100ms; }
.civic-hero.is-ready .civic-reveal:nth-child(4) { animation-delay: 150ms; }
@keyframes civicReveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.civic-hero .civic-hero__cta:focus-visible,
.civic-hero .civic-gateway__link:focus-visible,
.civic-hero .civic-hero__scroll:focus-visible {
  outline: 3px solid var(--gold-light, #009383); outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(0,32,28, .9);
}

body.lang-ar .civic-hero .civic-hero__content,
body.lang-ar .civic-hero .civic-gateway { text-align: right; }
body.lang-ar .civic-hero .civic-hero__title { font-family: var(--font-ar, 'Cairo', sans-serif); letter-spacing: 0; }
body.lang-ar .civic-hero .civic-hero__badge { letter-spacing: 0; }
body.lang-ar .civic-hero .civic-gateway__link { grid-template-columns: 24px minmax(0, 1fr) 18px; }
body.lang-ar .civic-hero .civic-gateway__link > i:last-child { transform: scaleX(-1); }
body.lang-ar .civic-hero .civic-gateway__link:hover > i:last-child { transform: scaleX(-1) translateX(3px); }
body.lang-ar .civic-hero .civic-hero__cta--primary i { transform: scaleX(-1); }
body.lang-ar .civic-hero .civic-hero__scroll { right: auto; left: 24px; }

@supports not (backdrop-filter: blur(1px)) {
  .civic-hero .civic-gateway,
  .civic-hero .civic-trust { background: rgba(0,32,28, .94); }
}

@media (max-width: 991.98px) {
  .civic-hero { min-height: auto; padding: 118px 0 96px; }
  .civic-hero .civic-hero__layout { grid-template-columns: 1fr; gap: 32px; }
  .civic-hero .civic-hero__content, .civic-hero .civic-gateway { grid-column: 1; max-width: none; }
  .civic-hero .civic-hero__title { max-width: 12ch; font-size: clamp(3rem, 9vw, 5rem); }
  .civic-hero .civic-trust { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .civic-hero .civic-trust__item:nth-child(3) { border-inline-start: 0; }
  .civic-hero .civic-trust__item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 8px; margin-top: 7px; }
  .civic-hero .civic-hero__scroll { display: none; }
}

@media (max-width: 575.98px) {
  .civic-hero {
    min-height: 100svh; padding: max(90px, calc(72px + env(safe-area-inset-top))) 0 calc(72px + env(safe-area-inset-bottom));
    overflow-x: clip;
  }
  .civic-hero .civic-hero__layout { width: min(100% - 24px, 1320px); gap: 24px; }
  .civic-hero .civic-hero__title { margin-top: 16px; font-size: clamp(2.5rem, 13vw, 4rem); line-height: 1.02; }
  .civic-hero .civic-hero__lead { margin-bottom: 22px; font-size: 1rem; }
  .civic-hero .civic-hero__actions { display: grid; grid-template-columns: 1fr; }
  .civic-hero .civic-hero__cta { width: 100%; min-width: 0; padding-inline: 16px; }
  .civic-hero .civic-gateway { padding: 14px; }
  .civic-hero .civic-gateway__header { margin-bottom: 15px; }
  .civic-hero .civic-gateway__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .civic-hero .civic-gateway__link {
    min-width: 0; min-height: 52px;
    grid-template-columns: 18px minmax(0, 1fr) 12px; gap: 6px;
    padding: 8px; font-size: .8125rem; line-height: 1.25;
    overflow-wrap: anywhere; white-space: normal;
  }
  .civic-hero .civic-gateway__link > i:first-child { width: 18px; display: grid; place-items: center; }
  .civic-hero .civic-gateway__link > i:last-child { width: 12px; justify-self: end; text-align: center; }
  body.lang-ar .civic-hero .civic-gateway__link { grid-template-columns: 18px minmax(0, 1fr) 12px; }
  .civic-hero .civic-trust { width: 100%; padding: 12px 8px; }
  .civic-hero .civic-trust__item { padding-inline: 7px; }
  .civic-hero .civic-trust__item strong { font-size: .9375rem; }
  .civic-hero .civic-trust__item > span { font-size: max(.75rem, var(--fs-min, 12px)); }
}

@media (prefers-reduced-motion: reduce) {
  .civic-hero *,
  .civic-hero *::before,
  .civic-hero *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .civic-hero .civic-reveal,
  .civic-hero.is-ready .civic-reveal { opacity: 1 !important; transform: none !important; }
  .civic-hero .civic-hero__video { filter: saturate(.82) contrast(1.04); }
  .civic-hero .civic-hero__scroll:hover,
  .civic-hero .civic-hero__cta:hover,
  .civic-hero .civic-gateway__link:hover { transform: none; }
}
