/* ==========================================================================
   Faida Wealth AI — main stylesheet (bilingual ur/en, RTL-first).
   Layouts use CSS logical properties so one stylesheet serves both
   directions; a small [dir="rtl"] layer handles the few physical cases.
   ========================================================================== */

/* --- Fonts (bundled locally, no CDN at runtime) -------------------------- */
@font-face {
  font-family: 'Noto Naskh Arabic';
  src: url('../fonts/noto-naskh-arabic-arabic-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Noto Naskh Arabic';
  src: url('../fonts/noto-naskh-arabic-arabic-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Noto Nastaliq Urdu';
  src: url('../fonts/noto-nastaliq-urdu-arabic-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  --bg: #f6f5ef;
  --surface: #fffefb;
  --surface-2: #efece1;
  --border: #e0dcc9;
  --text: #1a2620;
  --text-muted: #55645b;
  --accent: #0d7a43;
  --accent-hover: #0a6336;
  --accent-tint: #e5f0e8;
  --accent-deep: #0e3b26;
  --ink-inverse: #f3f8f4;
  --muted-inverse: #b9cfc0;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(24, 44, 33, .07);
  --shadow-md: 0 1px 2px rgba(24, 44, 33, .06), 0 8px 24px rgba(24, 44, 33, .09);
  --shadow-lg: 0 2px 6px rgba(24, 44, 33, .08), 0 18px 44px rgba(24, 44, 33, .14);

  --font-body: 'Archivo', 'Segoe UI', Tahoma, sans-serif;
  --font-display: 'Archivo', 'Segoe UI', Tahoma, sans-serif;
  --lh-body: 1.6;
}

html[lang='ur'] {
  --font-body: 'Noto Naskh Arabic', 'Archivo', Tahoma, sans-serif;
  --font-display: 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', Tahoma, serif;
  --lh-body: 1.95;
  font-size: 17px;
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-align: start;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}
html[lang='ur'] h1, html[lang='ur'] h2, html[lang='ur'] h3, html[lang='ur'] h4 {
  font-weight: 400;               /* Nastaliq ships one weight */
  line-height: 1.9;
}
h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img, svg, iframe, video, canvas { max-width: 100%; }
img { height: auto; }
ul, ol { padding-inline-start: 1.4em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-tint); }

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 200;
  background: var(--surface); color: var(--text);
  padding: 10px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
}
.skip-link:focus { inset-inline-start: 8px; }

.icon { width: 22px; height: 22px; flex: none; }
.icon--inline { width: 17px; height: 17px; vertical-align: -3px; color: var(--accent); }

/* --- Container & sections ------------------------------------------------ */
.container {
  width: 100%; max-width: 1200px; margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.section { padding-block: clamp(44px, 6vw, 76px); }
.section--tint { background: var(--surface-2); }
.section--tint-green { background: linear-gradient(180deg, var(--accent-tint), #f0f5ef); }
.section__head { max-width: 760px; margin-bottom: clamp(20px, 3vw, 34px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__lead { color: var(--text-muted); font-size: 1.05rem; }
.lede { font-size: 1.1rem; color: var(--text-muted); }
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose--wide { max-width: 900px; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  line-height: 1.3; cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease;
}
html[lang='ur'] .btn { font-weight: 700; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--ghost:hover { background: var(--accent-tint); color: var(--accent-hover); }
.btn--sm { padding: 9px 18px; font-size: .92rem; }
.btn--inverse { background: var(--ink-inverse); color: var(--accent-deep); }
.btn--inverse:hover { background: #fff; color: var(--accent); }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(246, 245, 239, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); background: var(--bg); }
.header__inner {
  display: flex; align-items: center; gap: clamp(10px, 2vw, 26px);
  min-height: 72px; position: relative;
}
.logo { display: inline-flex; align-items: center; flex: none; }
.logo__lockup { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 42px; height: 42px; }
.logo__word { font-family: 'Archivo', sans-serif; font-size: 1.12rem; letter-spacing: .01em; color: var(--text); }
.logo__word b { color: var(--accent); font-weight: 700; }
.logo--footer .logo__mark { width: 46px; height: 46px; }

.main-nav { margin-inline-start: auto; }
.main-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav__trigger {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: .98rem; font-weight: 500; color: var(--text);
  padding: 10px 12px; border-radius: var(--radius-sm);
  transition: background-color .15s ease, color .15s ease;
}
html[lang='ur'] .main-nav__trigger { font-size: .95rem; }
.main-nav__trigger:hover { background: var(--accent-tint); color: var(--accent); }
.icon--nav { width: 18px; height: 18px; color: var(--accent); }
.icon--caret { width: 14px; height: 14px; transition: transform .16s ease; }
.main-nav__item { position: relative; }
.main-nav__item.is-open .icon--caret { transform: rotate(180deg); }

.submenu {
  position: absolute; inset-inline-start: 0; top: calc(100% + 6px); z-index: 120;
  min-width: 264px; max-width: min(320px, calc(100vw - 32px));
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 8px;
  opacity: 0; transform: translateY(4px); visibility: hidden; pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.main-nav__item.is-open .submenu { opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto; }
.submenu ul { list-style: none; margin: 0; padding: 0; max-height: min(430px, 62vh); overflow-y: auto; }
.submenu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text);
  font-size: .95rem; transition: background-color .14s ease, color .14s ease;
}
.submenu a:hover { background: var(--accent-tint); color: var(--accent-hover); }
.icon--menu-item { width: 17px; height: 17px; color: var(--accent); }

.header__actions { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.main-nav + .header__actions { margin-inline-start: 0; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--border); border-radius: 999px; padding: 3px;
  background: var(--surface);
}
.lang-switch a {
  padding: 5px 12px; border-radius: 999px; font-size: .88rem; color: var(--text-muted);
  font-family: 'Archivo', sans-serif;
}
.lang-switch a[aria-current='true'] { background: var(--accent); color: #fff; }
.lang-switch a:hover { color: var(--accent-hover); }
.lang-switch a[aria-current='true']:hover { color: #fff; }
.lang-switch--footer { margin-top: 10px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; color: var(--text);
  padding: 8px; border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: var(--accent-tint); color: var(--accent); }
.icon--toggle { width: 26px; height: 26px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded='true'] .icon--open { display: none; }
.nav-toggle[aria-expanded='true'] .icon--close { display: block; }

.mobile-nav {
  display: none; border-top: 1px solid var(--border);
  padding: 18px clamp(16px, 4vw, 40px) 26px;
  background: var(--bg); max-height: calc(100vh - 72px); overflow-y: auto;
}
.mobile-nav__group { margin-bottom: 18px; }
.mobile-nav__title {
  font-family: 'Archivo', sans-serif; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--accent);
  margin: 0 0 8px;
}
.mobile-nav__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mobile-nav__group a {
  display: block; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text);
}
.mobile-nav__group a:hover, .mobile-nav__group a[aria-current='true'] { background: var(--accent-tint); color: var(--accent-hover); }
.mobile-nav__cta { width: 100%; margin-top: 6px; }

/* --- Ticker row (beacon-injected) ---------------------------------------- */
.tv-ticker-wrapper {
  margin-block: 0;
  padding-top: 0px !important;
  height: 80px !important;
}

.iti__selected-country,
.iti__selected-dial-code {
  color: rgb(24, 33, 47) !important;
}
main { display: block; }

/* --- Breadcrumbs ---------------------------------------------------------- */
.breadcrumbs { border-bottom: 1px solid var(--border); background: var(--surface); }
.breadcrumbs__list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 12px 0; font-size: .88rem;
}
.breadcrumbs__list li:not(:last-child)::after {
  content: '›'; margin-inline-start: 6px; color: var(--text-muted);
}
[dir='rtl'] .breadcrumbs__list li:not(:last-child)::after { content: '‹'; }
.breadcrumbs__list a { color: var(--text-muted); }
.breadcrumbs__list a:hover { color: var(--accent); }
.breadcrumbs__list [aria-current='page'] { color: var(--text); font-weight: 500; }

/* --- Hero (home) ---------------------------------------------------------- */
.hero--home {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(80, 168, 118, .28), transparent 60%),
    linear-gradient(160deg, #10321f 0%, var(--accent-deep) 45%, #0a2c1b 100%);
  color: var(--ink-inverse);
  padding-block: clamp(48px, 7vw, 96px) clamp(88px, 9vw, 128px);
}
.hero--home h1 { color: #fff; max-width: 13em; }
html[lang='en'] .hero--home h1 { max-width: 11em; }
.hero__skyline {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center; pointer-events: none;
}
.hero--home::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgb(7 28 25 / .77), rgb(7 28 25 / .38) 53%, rgb(7 28 25 / .7)),
              linear-gradient(0deg, rgb(7 28 25 / .72), transparent 62%);
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 2; pointer-events: none;
}
.hero__inner { position: relative; z-index: 3; display: grid; gap: clamp(22px, 3vw, 44px); grid-template-columns: minmax(0, 1.25fr) minmax(300px, .95fr); align-items: start; }
.hero__copy .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: #ffd98d; font-weight: 500; font-size: .95rem; margin: 0 0 14px;
}
html[lang='en'] .hero__copy .eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.hero__copy .eyebrow .icon { color: #ffd98d; }
.hero__lead { color: var(--muted-inverse); font-size: 1.08rem; max-width: 34em; }
.hero__form { position: relative; }
.hero__form .form-block { background: var(--surface); color: var(--text); }

.home-hero-details { margin-top: clamp(18px, 3vw, 30px); display: grid; gap: 16px; }
.hero__flags { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: var(--muted-inverse); font-size: .95rem; }
.hero__flags-label { font-weight: 500; }
.flag { display: inline-flex; align-items: center; gap: 7px; color: #eef5ee; }
.flag img { width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); display: block; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22);
  color: #eef5ee; padding: 9px 15px; border-radius: 999px; font-size: .92rem;
  transition: background-color .16s ease, border-color .16s ease;
}
.badge-link .icon { color: #8fd3a8; width: 18px; height: 18px; }
.badge-link:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); color: #fff; }
.hero__kicker-index { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__kicker-index a {
  color: #bfe3cc; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px;
}
.hero__kicker-index a:hover { color: #fff; }

/* --- Page hero (inner pages) ---------------------------------------------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 12% -20%, rgba(13, 122, 67, .16), transparent 62%),
    linear-gradient(180deg, var(--accent-tint), var(--bg));
  border-bottom: 1px solid var(--border);
  padding-block: clamp(36px, 5vw, 64px);
}
.page-hero::after {
  content: ''; position: absolute; inset-block: 0; inset-inline: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cpath d='M0 70h140M70 0v140' stroke='%230d7a43' stroke-opacity='.06' stroke-width='1'/%3E%3Ccircle cx='70' cy='70' r='3' fill='%230d7a43' fill-opacity='.07'/%3E%3C/svg%3E");
}
.page-hero__inner { position: relative; z-index: 1; display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: minmax(0, 1.15fr) minmax(300px, .9fr); align-items: start; }
.page-hero__lead { color: var(--text-muted); font-size: 1.05rem; max-width: 38em; }
.page-hero .form-block { background: var(--surface); }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* --- Form block ------------------------------------------------------------ */
.form-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
  padding: clamp(20px, 2.6vw, 30px);
  max-width: 560px;
}
.hero__form .form-block, .page-hero .form-block { max-width: none; }
.form-block__title { font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; margin: 0 0 10px; color: var(--text); }
.form-block__intro { color: var(--text-muted); font-size: .95rem; margin: 0 0 12px; }
.form-legal { font-size: .82rem; color: var(--text-muted); margin: 10px 0 0; }
.form-legal a { text-decoration: underline; text-underline-offset: 3px; }
.form-block__note {
  margin: 10px 0 0; padding: 9px 12px; border-radius: var(--radius-sm);
  background: var(--accent-tint); color: var(--accent-deep); font-size: .88rem;
  display: flex; align-items: center; gap: 8px;
}
.form-block__note .icon { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* --- Cards, grids, icon badges -------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: clamp(18px, 2.4vw, 26px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfe0d3; }
.card > h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--text-muted); }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 50px; height: 50px; border-radius: 13px;
  background: var(--accent-tint); color: var(--accent);
}
.icon-badge .icon { width: 25px; height: 25px; }
.card-grid { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid--asym { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid--asym .card:first-child { grid-column: 1 / -1; }
.split { display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }

/* --- Steps ------------------------------------------------------------------ */
.steps { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.step__num {
  grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 1.02rem;
}
.step h3 { margin: 4px 0 4px; font-size: 1.12rem; }
.step p { grid-column: 2; color: var(--text-muted); margin: 0; font-size: .96rem; }

/* --- Tables ------------------------------------------------------------------ */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-sm); margin-block: 18px;
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
caption { text-align: start; padding: 14px 16px 4px; font-weight: 700; color: var(--text); }
th, td { padding: 13px 16px; text-align: start; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(239, 236, 225, .4); }
.table-note { font-size: .85rem; color: var(--text-muted); margin-top: -8px; }

.tick { color: var(--accent); font-weight: 700; }
.cross { color: #b3401f; font-weight: 700; }

/* --- Exchange chips ----------------------------------------------------------- */
.exchanges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 164px; height: 58px; border-radius: 12px; border: 1px solid var(--border);
  background: #ffffff; box-shadow: var(--shadow-sm);
}
.chip--dark { background: #0f172a; }
.chip img { height: 27px; width: auto; max-width: 130px; }

/* --- Reviews --------------------------------------------------------------------- */
.reviews { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: minmax(0, 1fr); }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: transform .18s ease, box-shadow .18s ease; }
.review:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.review__head { display: flex; align-items: center; gap: 12px; }
.review__photo {
  flex: none; width: 52px; height: 52px; object-fit: cover;
  border-radius: 50%; border: 1px solid #cfe0d3;
}
.review__name { font-weight: 700; margin: 0; font-family: var(--font-body); }
html[lang='ur'] .review__name { font-family: var(--font-body); }
.review__job { margin: 0; color: var(--text-muted); font-size: .86rem; }
.review__stats { display: flex; flex-wrap: wrap; gap: 8px; }
.review__stat {
  font-size: .82rem; background: var(--surface-2); border-radius: 999px; padding: 4px 11px;
  color: var(--text); font-family: 'Archivo', sans-serif;
}
.review__stat b { color: var(--accent); font-weight: 700; }
.review__text { margin: 0; color: var(--text-muted); font-size: .95rem; }
.reviews-disclaimer { margin-top: 18px; font-size: .84rem; color: var(--text-muted); text-align: center; }

/* --- Company block ------------------------------------------------------------------ */
.company-block { display: grid; gap: clamp(18px, 3vw, 36px); grid-template-columns: minmax(260px, .9fr) minmax(300px, 1.1fr); align-items: start; }
.company-facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.company-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.company-facts .icon { color: var(--accent); margin-top: 3px; }
.company-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.company-cards a {
  display: grid; gap: 10px; padding: 18px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  color: var(--text); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.company-cards a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #cfe0d3; color: var(--text); }
.company-cards .icon-badge { width: 44px; height: 44px; }
.company-cards .icon-badge .icon { width: 21px; height: 21px; }
.company-cards span { font-weight: 700; }

/* --- Map embed ------------------------------------------------------------------------ */
.map-embed {
  margin-block: 18px; max-width: 860px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  background: var(--surface);
}
.map-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; min-height: 320px; border: 0; }

/* --- FAQ --------------------------------------------------------------------------------- */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq-list details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-list summary {
  cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; font-family: 'Archivo', sans-serif; font-size: 1.4rem; color: var(--accent);
  line-height: 1; transition: transform .16s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 20px 18px; margin: 0; color: var(--text-muted); }

/* --- Calculator shell ---------------------------------------------------------------------- */
.calc-shell {
  background: linear-gradient(150deg, #10321f, var(--accent-deep));
  border-radius: var(--radius-xl); padding: clamp(18px, 2.6vw, 34px);
  box-shadow: var(--shadow-lg); max-width: 980px; margin-inline: auto;
}
.calc-note { font-size: .86rem; color: var(--text-muted); text-align: center; max-width: 640px; margin-inline: auto; }
.deco-chart { display: block; width: 100%; max-width: 980px; margin-inline: auto; }

/* --- Advantage list -------------------------------------------------------------------------- */
.advantage { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: start; padding: 18px; }
.advantage .icon-badge { grid-row: 1 / span 2; }
.advantage h3 { margin: 2px 0 6px; }
.advantage p { grid-column: 2; margin: 0; color: var(--text-muted); }

/* --- History timeline -------------------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline li {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.timeline .tl-year { font-family: 'Archivo', sans-serif; font-weight: 700; color: var(--accent); }
.timeline p { margin: 0; color: var(--text-muted); }

/* --- Vacancies ------------------------------------------------------------------------------------ */
.vacancy { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px; display: grid; gap: 8px; }
.vacancy h3 { margin: 0; }
.vacancy__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.vacancy__tag { font-size: .8rem; background: var(--surface-2); border-radius: 999px; padding: 4px 11px; color: var(--text); font-family: 'Archivo', sans-serif; }
.vacancy p { color: var(--text-muted); margin: 0; }
.vacancy .btn { justify-self: start; }

/* --- Articles -------------------------------------------------------------------------------------- */
.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(20px, 2.6vw, 30px); margin-bottom: 22px; }
.article-card h2, .article-card h3 { margin-top: 0; }
.article-card .icon-badge { margin-bottom: 12px; }

/* --- Footer ------------------------------------------------------------------------------------------ */
.site-footer { background: #10241a; color: #cfdcd2; padding-block: clamp(40px, 5vw, 64px) 24px; margin-top: 0; }
.footer__grid { display: grid; gap: clamp(24px, 3vw, 44px); grid-template-columns: minmax(280px, 1.3fr) repeat(4, minmax(150px, .8fr)); }
.footer__brand .logo__word { color: #f0f6f1; }
.footer__brand .logo__word b { color: #8fd3a8; }
.footer__about { color: #a9bcae; font-size: .93rem; margin: 14px 0 16px; }
.footer__line { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin: 0 0 8px; color: #cfdcd2; }
.footer__line .icon { color: #79b893; }
.footer__line a { color: #cfdcd2; }
.footer__line a:hover { color: #fff; }
.lang-switch--footer { background: transparent; border-color: #2c4433; }
.lang-switch--footer a { color: #cfdcd2; }
.lang-switch--footer a:hover { color: #ffffff; }
.footer__title { font-family: 'Archivo', sans-serif; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #8fd3a8; margin: 0 0 12px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer__col a { color: #cfdcd2; font-size: .9rem; }
.footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__disclaimer { border-top: 1px solid #2c4433; margin-top: 34px; padding-top: 24px; }
.footer__disclaimer-title { font-weight: 700; color: #e9f2ea; margin: 0 0 8px; }
.footer__disclaimer p { font-size: .82rem; color: #93a89a; margin: 0; }
.footer__bottom { margin-top: 22px; font-size: .82rem; color: #7d937f; }

/* --- Special offer page -------------------------------------------------------------------------------- */
.offer-strip { background: #0a2c1b; color: #d8ecdd; font-size: .88rem; }
.offer-strip .container { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; padding-block: 9px; }
.offer-strip span { display: inline-flex; align-items: center; gap: 6px; }
.offer-strip span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ffd98d; }
.countdown { display: inline-flex; gap: 8px; margin-block: 18px; }
.countdown__cell {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  background: #10241a; border: 1px solid #2c4433; border-radius: var(--radius-md);
  padding: 10px 12px; min-width: 74px;
}
.countdown__num { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 1.7rem; color: #ffd98d; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__label { font-size: .68rem; letter-spacing: .05em; color: #9fb8a6; text-transform: uppercase; }
.countdown--dark .countdown__cell { background: var(--surface); border-color: var(--border); }
.countdown--dark .countdown__num { color: var(--accent); }
.countdown--dark .countdown__label { color: var(--text-muted); }
.offer-benefits { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cta-band { background: linear-gradient(140deg, #10321f, #0a2c1b); color: var(--ink-inverse); padding-block: clamp(36px, 5vw, 56px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--muted-inverse); max-width: 34em; margin-inline: auto; }
.offer-modal { position: fixed; inset: 0; z-index: 300; display: none; }
.offer-modal.is-open { display: block; }
.offer-modal__overlay { position: absolute; inset: 0; background: rgba(10, 20, 14, .66); backdrop-filter: blur(2px); }
.offer-modal__card {
  position: relative; z-index: 1; max-width: 430px; margin: 10vh auto 0;
  background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: 30px 26px; text-align: center; max-height: 82vh; overflow-y: auto;
}
.offer-modal__close {
  position: absolute; inset-inline-end: 12px; inset-block-start: 10px;
  background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--text-muted);
}
.offer-modal__close:hover { color: var(--text); }
.offer-modal__art { width: 150px; height: auto; margin-bottom: 6px; }

/* --- 404 ------------------------------------------------------------------------------------------------- */
.notfound { padding-block: clamp(60px, 9vw, 120px); text-align: center; }
.notfound__code { font-family: 'Archivo', sans-serif; font-size: clamp(4rem, 10vw, 7rem); font-weight: 700; color: var(--accent-tint); -webkit-text-stroke: 2px var(--accent); margin: 0; line-height: 1; }

/* --- Scroll reveal ------------------------------------------------------------------------------------------ */
.reveal { opacity: 1; }
.js-on .reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.js-on .reveal.is-visible { opacity: 1; transform: none; }

/* --- Decorative section bands ----------------------------------------------------------------------------------- */
.deco {
  background:
    radial-gradient(620px 300px at 88% 10%, rgba(13, 122, 67, .07), transparent 60%),
    var(--bg);
}
.band-dots {
  background-image: radial-gradient(rgba(13, 122, 67, .13) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
}

/* --- RTL overrides (few — logical properties carry most of the mirroring) -------------------------------------- */
[dir='rtl'] .step__num, [dir='rtl'] .countdown__num { font-family: 'Archivo', sans-serif; }
[dir='rtl'] .logo__lockup { flex-direction: row-reverse; }
[dir='rtl'] .lang-switch a { font-family: var(--font-body); }
[dir='rtl'] .lang-switch a[hreflang='en'] { font-family: 'Archivo', sans-serif; }
[dir='rtl'] .timeline { text-align: start; }
[dir='rtl'] .table-wrap { direction: rtl; }
html[lang='en'] .table-wrap { direction: ltr; }

/* --- Responsive ------------------------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(200px, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav.is-open { display: block; }
  .hero__inner, .page-hero__inner { grid-template-columns: 1fr; }
  .hero__form, .page-hero .form-block { max-width: 560px; }
  .company-block { grid-template-columns: 1fr; }
  #hero-canvas { display: none; }   /* static skyline fallback below 768px (design.md §13) */
}
@media (max-width: 640px) {
  .header__cta { display: none; }
  .lang-switch a { padding: 4px 9px; font-size: .82rem; }
  .steps { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; }
  .hero--home { padding-bottom: clamp(64px, 14vw, 90px); }
  .hero__skyline { object-position: 10% center; }
  .countdown__cell { min-width: 62px; padding: 8px 9px; }
  .countdown__num { font-size: 1.35rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* --- Reduced motion ------------------------------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js-on .reveal { opacity: 1; transform: none; }
  #hero-canvas { display: none; }
}


@media (min-width: 640px) {
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Homepage hero. Source order also drives the single-column layout. */
.hero--home .home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "headline registration" "details registration";
  align-items: start;
  gap: 18px clamp(28px, 5vw, 82px);
}
.hero--home .home-hero-heading { grid-area: headline; min-width: 0; margin: 0; padding: 0; }
.hero--home .home-hero-layout > .hero__form {
  grid-area: registration; position: relative; z-index: 4; min-width: 0; width: 100%; max-width: none; order: 0;
}
.hero--home .home-hero-details {
  grid-area: details; display: grid; min-width: 0; gap: 18px; margin: 0; order: 0;
}
.hero--home .home-hero-heading h1 { margin: 0; text-wrap: balance; }
.hero--home .home-hero-details .hero__lead { margin: 0; line-height: 1.6; }
.hero--home .home-hero-layout .form-block { width: 100%; max-width: none; margin: 0; }
.hero--home .home-hero-layout .form-legal { font-size: .78rem; line-height: 1.5; }
.hero--home .home-hero-layout :is(input, button, a):focus-visible { outline: 2px solid var(--hero-focus); outline-offset: 3px; }

@media (max-width: 900px) {
  .hero--home .home-hero-layout {
    grid-template-columns: minmax(0, 580px);
    grid-template-rows: auto;
    grid-template-areas: "headline" "registration" "details";
    justify-content: center;
    row-gap: 20px;
  }
}

.hero--home {
  --hero-focus: #13794f;
  padding-block: clamp(32px, 5.3vw, 76px) clamp(34px, 5vw, 70px);
  background: #0a211c;
}
.hero--home::before {
  background: linear-gradient(90deg, #071d19f5, #071d19ab 46%, #071d1929 76%, #071d1952),
              linear-gradient(0deg, #091f17c2, transparent 64%);
}
.hero--home .hero__skyline { object-position: 58% 50%; }
.hero--home .home-hero-layout { direction: ltr; }
html[dir="rtl"] .hero--home .home-hero-layout > * { direction: rtl; }
.hero--home .home-hero-heading h1,
html[lang="en"] .hero--home .home-hero-heading h1 {
  max-width: 15ch; color: #fcf9ef; font-size: clamp(2rem, 4.5vw, 4.2rem); line-height: 1.07;
}
html[dir="rtl"] .hero--home .home-hero-heading h1 {
  max-width: 13em; font-size: clamp(2.2rem, 4.5vw, 4.4rem); line-height: 1.4;
}
.hero--home .home-hero-heading em { font-style: normal; color: #f2d48e; }
.hero--home .home-hero-details .hero__lead { color: #eaf4e9; max-width: 48ch; }
html[dir="rtl"] .hero--home .home-hero-details .hero__lead { max-width: none; line-height: 1.85; }
.hero--home .hero__kicker-index { padding-block: 12px; border-block: 1px solid #dbce9d68; }
.hero--home .hero__kicker-index a { background: #0a2d25cf; border-color: #9fc2a86e; }
.hero--home .hero__flags { gap: 7px 12px; }
.hero--home .hero__flags-label { flex-basis: 100%; }
.hero--home .hero__badges { gap: 8px; }
.hero--home .hero__badges .badge-link { padding: 6px 10px; }
.hero--home .home-hero-layout > .hero__form {
  padding: 6px;
  background: #e7cb91; border: 1px solid #f5deb0;
  border-radius: 55px 55px 17px 17px;
  box-shadow: 0 20px 50px #041613ad;
}
.hero--home .home-hero-layout .form-block {
  background: #fffaf0; color: #122a1e; padding: clamp(18px, 2.5vw, 29px);
  border: 1px solid #c9b27a; border-radius: 49px 49px 11px 11px; box-shadow: none;
}
.hero--home .home-hero-layout .form-block__title {
  margin: 0 0 12px; padding-bottom: 11px; text-align: center;
  color: #153c26; border-bottom: 1px solid #dccb9e; font-size: clamp(1.08rem, 1.9vw, 1.5rem);
}
.hero--home .home-hero-layout .form-block__note { color: #285739; }
@media (max-width: 900px) {
  .hero--home .home-hero-heading h1,
  html[lang="en"] .hero--home .home-hero-heading h1 { max-width: 19ch; font-size: clamp(1.78rem, 6.2vw, 3.25rem); }
  html[dir="rtl"] .hero--home .home-hero-heading h1 { max-width: none; font-size: clamp(2rem, 7vw, 3.3rem); }
  .hero--home .hero__skyline { object-position: 48% center; }
  .hero--home .home-hero-layout > .hero__form { border-radius: 34px 34px 16px 16px; }
  .hero--home .home-hero-layout .form-block { border-radius: 28px 28px 10px 10px; }
}

@media (min-width: 901px) {
  .hero--home .home-hero-layout { grid-template-columns: minmax(0, 1.35fr) minmax(335px, .85fr); }
}
@media (min-width: 981px) and (max-width: 1120px) {
  body:has(.hero--home) .site-header .main-nav { display: none; }
  body:has(.hero--home) .site-header .nav-toggle { display: inline-flex; }
  body:has(.hero--home) .site-header .mobile-nav.is-open { display: block; }
}
@media (max-width: 375px) {
  body:has(.hero--home) .header__inner,
  body:has(.hero--home) .header__actions,
  body:has(.hero--home) .header__inner .logo__lockup { gap: 5px; }
  body:has(.hero--home) .header__inner .logo__word { font-size: .84rem; }
  body:has(.hero--home) .header__inner .logo__mark { width: 30px; height: 30px; }
  body:has(.hero--home) .header__inner .lang-switch a { padding-inline: 5px; }
}


/* Registration banner and primary header action. */
.registration-banner { background: #fff6e3; color: #214334; }
.registration-banner__inner { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding-block: 8px; }
.registration-banner__item {
  display: flex; align-items: center; gap: clamp(7px,1vw,15px);
  min-width: 0; padding: 5px clamp(7px,1.4vw,20px); line-height: 1.3;
}
.registration-banner__symbol { flex: none; display: grid; place-items: center; width: 34px; height: 34px; }
.registration-banner__symbol svg { width: 19px; height: 19px; }
.registration-banner__item strong { display: block; font-size: clamp(.86rem,1.24vw,1.1rem); }
.registration-banner__detail { display: block; margin-block-start: 2px; font-size: .78rem; color: #5b614c; }
.site-header .header__cta {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  gap: 9px; min-height: 42px; padding: 6px 14px; border: 1px solid #194d37;
  background: #194d37; color: #fff9e9; border-radius: 20px 6px; font-weight: 700;
  transition: box-shadow .18s, transform .18s;
}
.site-header .header__cta-glyph { display: grid; place-items: center; }
.site-header .header__cta-glyph svg { width: 20px; height: 20px; }
.site-header .header__cta:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .site-header .header__cta:hover { transform: translateY(-2px); box-shadow: 0 4px 10px #0003; }
}
.registration-banner { border-block: 1px solid #d7c59d; }
.registration-banner__symbol { border: 1px solid #cab27e; border-radius: 50% 50% 5px 5px; }
.registration-banner__item strong { font-family: Georgia,var(--font-body),serif; }
[dir="rtl"] .registration-banner__item strong { font-family: var(--font-body); }
@media(max-width:430px) { .site-header .logo__word { display:none; } }
@media (min-width:981px) and (max-width:1120px), (max-width:580px) {
  .site-header .header__cta-label { display: none; }
  .site-header .header__inner .header__cta { width: 36px; min-width: 36px; padding: 3px; }
  .site-header .header__cta-glyph { border: 0; padding: 0; }
}
@media (max-width: 640px) {
  .registration-banner__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-block: 3px;
  }
  .registration-banner .registration-banner__item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 29px;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .registration-banner .registration-banner__item + .registration-banner__item {
    border-block-start: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  }
  .registration-banner__symbol {
    width: 18px;
    height: 18px;
    border: 0;
    background: transparent;
  }
  .registration-banner__symbol svg { width: 15px; height: 15px; }
  .registration-banner__item > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: baseline;
    column-gap: 10px;
  }
  .registration-banner__item strong { font: 650 .83rem/1.35 var(--font-body, sans-serif); }
  .registration-banner__detail { margin: 0; font-size: .78rem; line-height: 1.4; text-align: end; }
  [dir="rtl"] .registration-banner__item strong,
  [dir="rtl"] .registration-banner__detail { line-height: 1.65; }
}

@media (max-width: 980px) {
  .site-header .container.header__inner { padding-right: 8px; }
  .site-header .header__inner > .header__actions { margin-left: auto; margin-right: 0; }
}
@media (max-width: 980px) {
  html[dir="rtl"] .header__inner,
  html[dir="rtl"] .header__actions { flex-direction: row-reverse; }
}
@media (min-width: 981px) and (max-width: 1120px) {
  body:has(.hero--home) .site-header .header__inner { padding-right: 8px; }
  body:has(.hero--home) .header__inner > .header__actions { margin-left: auto; margin-right: 0; }
  html[dir="rtl"] body:has(.hero--home) .header__inner,
  html[dir="rtl"] body:has(.hero--home) .header__actions { flex-direction: row-reverse; }
}
