/* ==========================================================================
   Oustad Connect | أستاذ — Design system
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Sans Arabic";
  src: url("../fonts/noto-sans-arabic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF,
    U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
  --green-950: #0f392e;
  --green-900: #0f4c3f;
  --green-800: #176b55;
  --green-600: #2e9e77;
  --green-100: #e3f1ea;
  --green-50: #f0f8f4;
  --navy: #142d40;
  --navy-800: #0f2433;
  --navy-600: #2b4456;
  --gold: #d6aa55;
  --gold-600: #b58a37;
  --gold-100: #f6ecd7;
  --bg: #f7f9f7;
  --white: #ffffff;
  --ink: #172a2f;
  --muted: #566a63;
  --muted-strong: #3d524b;
  --border: #dce7e1;
  --border-strong: #c9d9d1;
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --pill: 999px;
  --shadow-xs: 0 1px 2px rgba(20, 45, 64, 0.05);
  --shadow-sm: 0 10px 30px -22px rgba(20, 45, 64, 0.45);
  --shadow: 0 24px 60px -36px rgba(20, 45, 64, 0.4);
  --shadow-lg: 0 44px 90px -48px rgba(20, 45, 64, 0.5);
  --container: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 78px;
  --font-body: "Inter", "Noto Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Arial, sans-serif;
  --font-display: "Inter", "Noto Sans Arabic", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus-ring: 0 0 0 3px rgba(214, 170, 85, 0.6);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
}

strong {
  font-weight: 650;
  color: var(--navy);
}

::selection {
  background: rgba(46, 158, 119, 0.24);
  color: var(--navy);
}

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

:target {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(calc(100% - (var(--gutter) * 2)), 860px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(64px, 8vw, 108px);
  position: relative;
}

.section--tight {
  padding-block: clamp(48px, 6vw, 76px);
}

.section--top {
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: 0;
}

.section--muted {
  background: linear-gradient(180deg, rgba(231, 243, 237, 0.55), rgba(247, 249, 247, 0));
}

.section--white {
  background: var(--white);
}

.section--pattern {
  background-color: var(--bg);
  background-image: url("../images/pattern-zellige.svg");
  background-size: 120px 120px;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.65rem);
  margin-top: 0.85rem;
}

.section-lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  margin-top: 1.1rem;
  max-width: 66ch;
}

.section-head--center .section-lead {
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--green-800);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  flex: none;
}

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

.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: fixed;
  inset-block-start: -100px;
  inset-inline-start: 16px;
  z-index: 200;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-xs);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  transition: inset-block-start 0.2s var(--ease);
}

.skip-link:focus {
  inset-block-start: 14px;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.icon-sm {
  width: 18px;
  height: 18px;
  flex: none;
}

.icon-lg {
  width: 30px;
  height: 30px;
  flex: none;
}

.icon-arrow {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.icon-invert {
  filter: brightness(0) invert(1);
}

.text-green {
  color: var(--green-800);
}

.text-gold {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--green-800);
  --btn-fg: var(--white);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  --btn-bg: var(--green-800);
  --btn-fg: var(--white);
  box-shadow: 0 16px 30px -18px rgba(23, 107, 85, 0.9);
}

.btn--primary:hover {
  --btn-bg: var(--green-900);
}

.btn--secondary {
  --btn-bg: var(--white);
  --btn-fg: var(--navy);
  --btn-border: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn--secondary:hover {
  --btn-border: var(--green-600);
  --btn-fg: var(--green-800);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--green-800);
}

.btn--ghost:hover {
  --btn-bg: var(--green-100);
}

.btn--gold {
  --btn-bg: var(--gold);
  --btn-fg: var(--navy);
  box-shadow: 0 16px 30px -18px rgba(214, 170, 85, 0.9);
}

.btn--gold:hover {
  --btn-bg: #e2bb6d;
}

.btn--light {
  --btn-bg: var(--white);
  --btn-fg: var(--green-900);
}

.btn--light:hover {
  --btn-bg: var(--green-50);
}

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-border: rgba(255, 255, 255, 0.42);
}

.btn--outline-light:hover {
  --btn-bg: rgba(255, 255, 255, 0.1);
}

.btn--sm {
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
}

.btn--lg {
  min-height: 54px;
  padding: 0.95rem 1.65rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn:hover .icon-arrow {
  transform: translateX(3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--green-800);
  font-weight: 600;
  font-size: 0.94rem;
  border-bottom: 1.5px solid rgba(23, 107, 85, 0.25);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.text-link:hover {
  border-color: var(--green-800);
  color: var(--green-900);
}

.text-link:hover .icon-arrow {
  transform: translateX(3px);
}

.text-link--light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.text-link--light:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: rgba(247, 249, 247, 0.86);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -28px rgba(20, 45, 64, 0.55);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  border-radius: var(--radius-xs);
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-radius: var(--pill);
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 550;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-link:hover {
  background: var(--green-100);
  color: var(--green-900);
}

.nav-link[aria-current="page"] {
  background: var(--green-100);
  color: var(--green-900);
  font-weight: 650;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.22rem;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: var(--white);
  direction: ltr;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 0.28rem 0.42rem;
  border-radius: var(--pill);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-link:hover {
  color: var(--green-800);
}

.lang-link.is-active {
  background: var(--navy);
  color: var(--white);
}

.lang-divider {
  color: var(--border-strong);
  font-size: 0.7rem;
  user-select: none;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--green-600);
}

.nav-toggle-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.nav-toggle-lines span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 92px) clamp(56px, 8vw, 100px);
  background:
    radial-gradient(60% 70% at 82% 18%, rgba(46, 158, 119, 0.13), transparent 70%),
    radial-gradient(50% 60% at 8% 88%, rgba(214, 170, 85, 0.12), transparent 70%),
    linear-gradient(180deg, #fbfdfb 0%, var(--bg) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/pattern-zellige.svg");
  background-size: 120px 120px;
  opacity: 0.55;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(70% 70% at 68% 35%, #000 0%, transparent 78%);
  mask-image: radial-gradient(70% 70% at 68% 35%, #000 0%, transparent 78%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.85rem 0.42rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-xs);
  color: var(--muted-strong);
  font-size: 0.79rem;
  font-weight: 600;
}

.hero-badge-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

.hero-badge-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(214, 170, 85, 0.5);
  animation: pulse-ring 2.8s var(--ease) infinite;
}

@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.2;
  }
}

.hero-title {
  margin-top: 1.35rem;
  font-size: clamp(2.25rem, 4.8vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-title .accent {
  color: var(--green-800);
  position: relative;
  white-space: nowrap;
}

.hero-title .accent::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0.06em;
  height: 0.16em;
  border-radius: var(--pill);
  background: linear-gradient(90deg, rgba(214, 170, 85, 0.55), rgba(214, 170, 85, 0.15));
  z-index: -1;
}

.hero-lead {
  margin-top: 1.4rem;
  max-width: 55ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.6rem;
  margin-top: 2.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-strong);
  font-size: 0.83rem;
  font-weight: 550;
}

.hero-trust img {
  width: 18px;
  height: 18px;
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #ffffff 0%, #f2faf6 100%);
  box-shadow: var(--shadow-lg);
}

.hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block-start: -8%;
  inset-inline-end: -7%;
  width: 58%;
  height: 58%;
  border-radius: 48% 52% 60% 40% / 52% 44% 56% 48%;
  background: linear-gradient(135deg, rgba(214, 170, 85, 0.35), rgba(46, 158, 119, 0.22));
  filter: blur(32px);
}

.hero-art > img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-xl) - 10px);
}

.hero-art-chip {
  position: absolute;
  inset-block-end: 6%;
  inset-inline-start: -4%;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-art-chip-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--green-100);
  flex: none;
}

.hero-art-chip-icon img {
  width: 20px;
  height: 20px;
}

.hero-art-chip-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.hero-art-chip-text strong {
  font-size: 0.82rem;
  color: var(--navy);
}

.hero-art-chip-text span {
  font-size: 0.72rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  box-shadow: var(--shadow-sm);
}

.stat {
  padding: 1.4rem 1.5rem;
  background: var(--white);
}

.stat-value {
  display: block;
  color: var(--green-800);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stat-label {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.grid--auto-sm {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 198px), 1fr));
}

.u-mt-sm {
  margin-top: 1rem;
}

.u-mt {
  margin-top: 2rem;
}

.u-mt-lg {
  margin-top: 3rem;
}

.u-mt-xl {
  margin-top: 4rem;
}

.card {
  position: relative;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 158, 119, 0.45);
  box-shadow: var(--shadow);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--green-100);
  border-radius: 15px;
  background: var(--green-50);
}

.card-icon img {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin-top: 1.25rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.card p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--green-800);
  font-size: 0.85rem;
  font-weight: 650;
}

.card-link .icon-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.card-link:hover .icon-arrow {
  transform: translateX(3px);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.6rem;
  border: 1px solid rgba(214, 170, 85, 0.45);
  border-radius: var(--pill);
  background: var(--gold-100);
  color: #7f5f1e;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-600);
}

.status-tag--navy {
  border-color: rgba(20, 45, 64, 0.2);
  background: rgba(20, 45, 64, 0.06);
  color: var(--navy-600);
}

.status-tag--navy::before {
  background: var(--navy-600);
}

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */

.feature-card {
  display: flex;
  flex-direction: column;
}

.feature-card .status-tag {
  align-self: flex-start;
  margin-top: 1.1rem;
}

.feature-card h3 {
  margin-top: 0.6rem;
}

.feature-card p {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Split sections
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split--top {
  align-items: start;
}

.split-copy .section-title {
  margin-top: 0.85rem;
}

.split-copy p {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.2vw, 1.05rem);
}

.split-copy .btn,
.split-copy .text-link {
  margin-top: 1.75rem;
}

.quote-card {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--green-900), var(--green-800));
  color: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.quote-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/pattern-zellige-light.svg");
  background-size: 120px 120px;
  opacity: 0.6;
}

.quote-card > * {
  position: relative;
}

.quote-mark {
  display: block;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 0.8;
  margin-bottom: 0.6rem;
}

.quote-card blockquote {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.quote-card figcaption {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 500;
}

.quote-card figcaption strong {
  color: var(--gold);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Checklists & mini lists
   -------------------------------------------------------------------------- */

.check-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--muted-strong);
  font-size: 0.94rem;
  line-height: 1.6;
}

.check-list li img {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
}

.check-list--light li {
  color: rgba(255, 255, 255, 0.82);
}

.check-list--light li img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: var(--white);
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 550;
}

.chip img {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   Values & principles
   -------------------------------------------------------------------------- */

.value-card {
  padding: clamp(1.35rem, 2.4vw, 1.75rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.value-card:hover {
  border-color: rgba(46, 158, 119, 0.45);
  transform: translateY(-3px);
}

.value-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--gold-100);
}

.value-icon img {
  width: 23px;
  height: 23px;
}

.value-card h3 {
  margin-top: 1rem;
  font-size: 1.02rem;
}

.value-card p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  counter-reset: step;
}

.step {
  position: relative;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  display: block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.step h3 {
  margin-top: 0.7rem;
  font-size: 1.1rem;
}

.step p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Callouts & banners
   -------------------------------------------------------------------------- */

.callout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
  border: 1px solid rgba(214, 170, 85, 0.45);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(246, 236, 215, 0.7), rgba(255, 255, 255, 0.9));
}

.callout-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--white);
  border: 1px solid rgba(214, 170, 85, 0.35);
  flex: none;
}

.callout-icon img {
  width: 21px;
  height: 21px;
}

.callout h2,
.callout h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.callout p {
  margin-top: 0.3rem;
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.callout--green {
  border-color: rgba(46, 158, 119, 0.35);
  background: linear-gradient(135deg, rgba(227, 241, 234, 0.75), rgba(255, 255, 255, 0.92));
}

.callout--green .callout-icon {
  border-color: rgba(46, 158, 119, 0.3);
}

/* --------------------------------------------------------------------------
   Feature detail rows
   -------------------------------------------------------------------------- */

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}

.feature-row:first-of-type {
  border-top: 0;
}

.feature-row--reverse .feature-media {
  order: 2;
}

.feature-row--reverse .feature-copy {
  order: 1;
}

.feature-copy .feature-index {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold-600);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-copy .feature-index::after {
  content: "";
  width: 26px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--gold);
}

.feature-copy h2 {
  margin-top: 0.8rem;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.feature-copy > p {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 1rem;
}

.feature-copy .chip-list {
  margin-top: 1.1rem;
}

.feature-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 70% at 50% 42%, rgba(255, 255, 255, 0.9), transparent 75%),
    linear-gradient(155deg, var(--green-100), var(--green-50) 55%, #fdfbf4);
  overflow: hidden;
}

.feature-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/pattern-zellige.svg");
  background-size: 120px 120px;
  opacity: 0.65;
}

.feature-media::after {
  content: "";
  position: absolute;
  inset-block-end: -36%;
  inset-inline-start: 50%;
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid rgba(214, 170, 85, 0.35);
  border-radius: 50% 50% 0 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.feature-art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(100%, 300px);
  aspect-ratio: 1;
}

.feature-art-ring {
  position: absolute;
  inset: 6%;
  border: 1px dashed rgba(23, 107, 85, 0.25);
  border-radius: 50%;
}

.feature-art-ring--outer {
  inset: -6%;
  border-style: solid;
  border-color: rgba(214, 170, 85, 0.28);
}

.feature-art-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.feature-art-icon img {
  width: 52px;
  height: 52px;
}

.feature-art-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-xs);
}

.feature-art-dot--a {
  inset-block-start: 8%;
  inset-inline-end: 22%;
}

.feature-art-dot--b {
  inset-block-end: 16%;
  inset-inline-start: 8%;
  background: var(--green-600);
}

.feature-art-dot--c {
  inset-block-end: 8%;
  inset-inline-end: 26%;
  width: 10px;
  height: 10px;
  background: var(--navy);
}

.feature-art-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 650;
  white-space: nowrap;
}

.feature-art-tag img {
  width: 15px;
  height: 15px;
}

.feature-art-tag--top {
  inset-block-start: 12%;
  inset-inline-start: 0;
}

.feature-art-tag--bottom {
  inset-block-end: 12%;
  inset-inline-end: 0;
}

/* --------------------------------------------------------------------------
   CTA panel
   -------------------------------------------------------------------------- */

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--green-950) 0%, var(--green-800) 58%, #1d7f64 100%);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/pattern-zellige-light.svg");
  background-size: 120px 120px;
  opacity: 0.75;
}

.cta-panel::after {
  content: "";
  position: absolute;
  inset-block-start: -35%;
  inset-inline-end: -10%;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(214, 170, 85, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.03), 0 0 0 80px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.cta-copy {
  max-width: 620px;
}

.cta-copy .eyebrow {
  color: var(--gold);
}

.cta-copy .eyebrow::before {
  background: var(--gold);
}

.cta-copy h2 {
  margin-top: 0.8rem;
  color: var(--white);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

.cta-copy p {
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  max-width: 58ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-panel .btn--primary {
  --btn-bg: var(--gold);
  --btn-fg: var(--navy);
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.6);
}

.cta-panel .btn--primary:hover {
  --btn-bg: #e3bc6e;
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 6vw, 5rem) clamp(2.75rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(55% 80% at 88% 0%, rgba(46, 158, 119, 0.12), transparent 70%),
    linear-gradient(180deg, #fbfdfb, var(--bg));
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/pattern-zellige.svg");
  background-size: 120px 120px;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
  pointer-events: none;
}

[dir="rtl"] .page-hero::before {
  -webkit-mask-image: linear-gradient(-90deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(-90deg, transparent 35%, #000 100%);
}

.page-hero .container {
  position: relative;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.breadcrumb a {
  transition: color 0.2s var(--ease);
}

.breadcrumb a:hover {
  color: var(--green-800);
}

.breadcrumb .sep {
  color: var(--border-strong);
}

.breadcrumb [aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
}

.page-title {
  margin-top: 0.9rem;
  font-size: clamp(2.05rem, 4.3vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.038em;
  max-width: 20ch;
}

.page-lead {
  margin-top: 1.2rem;
  max-width: 65ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.7;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

/* --------------------------------------------------------------------------
   Info cards / participation
   -------------------------------------------------------------------------- */

.info-card {
  padding: clamp(1.35rem, 2.4vw, 1.8rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.info-card .card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.info-card .card-icon img {
  width: 23px;
  height: 23px;
}

.info-card h3 {
  margin-top: 1rem;
  font-size: 1.05rem;
}

.info-card p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: var(--white);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 550;
}

.meta-pill img {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   FAQ (native details/summary)
   -------------------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--green-800);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1;
  flex: none;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.faq-item[open] summary::after {
  content: "\2212";
  background: var(--green-100);
  transform: rotate(180deg);
}

.faq-item .faq-answer {
  padding: 0 1.3rem 1.25rem;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.faq-item[open] summary {
  color: var(--green-900);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
  min-width: 0;
}

.contact-card:hover {
  border-color: rgba(46, 158, 119, 0.45);
  transform: translateY(-3px);
}

.contact-card .card-icon {
  width: 54px;
  height: 54px;
}

.contact-label {
  margin-top: 1.3rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-value {
  margin-top: 0.4rem;
  color: var(--navy);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.contact-card p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-card .text-link {
  margin-top: 1.2rem;
}

.contact-aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.aside-card {
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--green-50);
}

.aside-card h3 {
  font-size: 1rem;
}

.aside-card p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.aside-card .text-link {
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(4rem, 8vw, 7rem);
  background: var(--navy-800);
  color: #c3d3cd;
}

.footer-main {
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.footer-brand .brand {
  color: var(--white);
}

.footer-brand .brand-mark {
  width: 46px;
  height: 46px;
}

.footer-brand .brand-name {
  color: var(--white);
  font-size: 1.1rem;
}

.footer-brand .brand-sub {
  color: #93aaa2;
}

.footer-desc {
  margin-top: 1.2rem;
  max-width: 42ch;
  color: #a7bcb4;
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-title {
  margin-bottom: 1.1rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #c3d3cd;
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
  width: fit-content;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact {
  display: grid;
  gap: 0.7rem;
}

.footer-contact a,
.footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #c3d3cd;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.footer-contact img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  flex: none;
}

.footer-contact a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.social-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.social-link img {
  width: 19px;
  height: 19px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.social-link:hover {
  border-color: rgba(214, 170, 85, 0.6);
  background: rgba(214, 170, 85, 0.14);
  transform: translateY(-2px);
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(214, 170, 85, 0.05);
}

.footer-note p {
  padding-block: 1.15rem;
  max-width: 980px;
  color: #a8bcb5;
  font-size: 0.8rem;
  line-height: 1.65;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.4rem;
  color: #8ba29a;
  font-size: 0.79rem;
}

.footer-bottom p {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-bottom .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Language gateway (root index.html)
   -------------------------------------------------------------------------- */

.gateway {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50% 60% at 85% 10%, rgba(46, 158, 119, 0.16), transparent 70%),
    radial-gradient(45% 55% at 10% 95%, rgba(214, 170, 85, 0.16), transparent 70%),
    linear-gradient(160deg, #fbfdfb, var(--bg));
}

.gateway::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/pattern-zellige.svg");
  background-size: 120px 120px;
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, transparent 0%, #000 100%);
  mask-image: radial-gradient(60% 60% at 50% 50%, transparent 0%, #000 100%);
}

.gateway-inner {
  position: relative;
  width: min(calc(100% - (var(--gutter) * 2)), 900px);
  margin-inline: auto;
  text-align: center;
}

.gateway-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.gateway-brand img {
  width: 54px;
  height: 54px;
}

.gateway-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: start;
}

.gateway-brand-name {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.gateway-brand-sub {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.gateway h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.9rem);
  letter-spacing: -0.035em;
}

.gateway-lead {
  margin: 1rem auto 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1rem;
}

.gateway-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  text-align: start;
}

.gateway-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.gateway-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-600);
  box-shadow: var(--shadow);
}

.gateway-card-lang {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.gateway-card:nth-child(2) .gateway-card-lang {
  background: var(--gold-100);
  color: #7f5f1e;
  font-family: "Noto Sans Arabic", sans-serif;
}

.gateway-card h2 {
  font-size: 1.15rem;
}

.gateway-card p {
  color: var(--muted);
  font-size: 0.88rem;
}

.gateway-card .gateway-go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  color: var(--green-800);
  font-size: 0.86rem;
  font-weight: 650;
}

.gateway-preferred {
  display: none;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
  color: var(--gold-600);
  font-size: 0.72rem;
  font-weight: 650;
}

.gateway-preferred::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.gateway-card.is-preferred .gateway-preferred {
  display: inline-flex;
}

.gateway-card .icon-arrow {
  width: 17px;
  height: 17px;
}

.gateway-card:hover .icon-arrow {
  transform: translateX(3px);
}

.gateway-foot {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.gateway-foot a {
  color: var(--green-800);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
