/* JEDRA website. Brand colors only (JEDRA brand guideline 2025). */
:root {
  --navy: #121e3b;      /* Growth: primary */
  --gold: #fdb72c;      /* Luxury: primary */
  --slate: #273a54;     /* Analysis: secondary */
  --steel: #aeb8be;     /* Steadfastness: secondary */
  --mist: #f3f5f6;      /* light tint of Steadfastness for quiet sections */
  --line: #e1e5e7;
  --white: #ffffff;
  --radius-l: 28px;
  --radius-m: 22px;
  --radius-s: 14px;
  --wrap: 1200px;
  --header-h: 60px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--navy); }
.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 { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 18px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 32px; }
.wide { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: 16px; }
.center { text-align: center; }

/* Type */
.h-xl, .h-l, .h-m, .h-s { font-weight: 900; letter-spacing: -0.01em; text-wrap: balance; }
.h-xl { font-size: clamp(44px, 6.4vw, 86px); line-height: 1.13; }
.h-l { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.18; }
.h-m { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.2; }
.h-s { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.7; max-width: 680px; }
.center .lead { margin-inline: auto; }
.muted { color: var(--slate); }
.dark .muted, .on-dark { color: var(--steel); }
.eyebrow { font-size: 17px; font-weight: 700; color: var(--gold); }
.light .eyebrow, .mist .eyebrow { color: var(--slate); }
.stack-s > * + * { margin-top: 12px; }
.stack-m > * + * { margin-top: 20px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 17px; border: 1.5px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #ffc85a; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--slate); }
.btn-outline { border-color: rgba(174, 184, 190, .6); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.light .btn-outline, .mist .btn-outline { border-color: var(--steel); color: var(--navy); }
.light .btn-outline:hover, .mist .btn-outline:hover { border-color: var(--navy); background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.center .btn-row { justify-content: center; }
.more { font-weight: 700; color: var(--gold); display: inline-flex; align-items: center; gap: 4px; }
.light .more, .mist .more { color: var(--navy); }
.more::after { content: '›'; font-size: 1.15em; line-height: 1; }
[dir="rtl"] .more::after { transform: scaleX(-1); }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Sections */
section { position: relative; }
.dark { background: var(--navy); color: var(--white); }
.light { background: var(--white); color: var(--navy); }
.mist { background: var(--mist); color: var(--navy); }
.gold { background: var(--gold); color: var(--navy); }
.pad { padding-block: clamp(80px, 10vw, 128px); }
.pad-s { padding-block: clamp(56px, 7vw, 88px); }
.bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg-img.dim { opacity: .16; }
.over { position: relative; }

/* A dark card inside a light section keeps dark styling */
.light .dark .eyebrow, .mist .dark .eyebrow, .dark .eyebrow { color: var(--gold); }
.light .dark .more, .mist .dark .more { color: var(--gold); }
.light .dark .btn-outline, .mist .dark .btn-outline { border-color: rgba(174, 184, 190, .6); color: var(--white); }
.light .mist .eyebrow { color: var(--slate); }
.light .mist .more { color: var(--navy); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18, 30, 59, .86); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid rgba(174, 184, 190, .18); color: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.logo img { height: 34px; width: auto; }
[lang="en"] .logo img { height: 26px; }
.nav { display: flex; gap: 30px; font-size: 15px; }
.nav a { opacity: .92; padding-block: 8px; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--gold); }
.header-tools { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.lang { color: var(--steel); padding: 8px 6px; }
.lang:hover { color: var(--white); }
.header-cta { min-height: 38px; padding: 7px 18px; font-size: 15px; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; color: var(--white); cursor: pointer; margin-inline-end: -10px; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .i-close, .menu-open .menu-btn .i-open { display: none; }
.menu-open .menu-btn .i-close { display: block; }
.mobile-nav { display: none; }

@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 60; background: var(--navy); padding: 24px 32px 120px; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
  .mobile-nav a { display: block; font-size: 24px; font-weight: 700; padding-block: 12px; border-bottom: 1px solid rgba(174, 184, 190, .15); color: var(--white); }
  .mobile-nav .btn { display: flex; margin-top: 28px; width: 100%; border: 0; font-size: 18px; }
  .menu-open { overflow: hidden; }
}

/* Sub navigation (developers page) */
.subnav { position: sticky; top: 0; z-index: 40; background: rgba(18, 30, 59, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(174, 184, 190, .18); color: var(--white); }
.subnav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 54px; }
.subnav-title { font-weight: 900; font-size: 20px; }
.subnav nav { display: flex; gap: 24px; font-size: 14px; color: var(--steel); }
.subnav nav a:hover { color: var(--white); }
.subnav .btn { min-height: 34px; padding: 5px 16px; font-size: 14px; }
.has-subnav .site-header { position: relative; }
@media (max-width: 760px) { .subnav nav { display: none; } }

/* Hero */
.hero { padding-top: clamp(72px, 9vw, 112px); overflow: hidden; }
.hero .lead { margin-top: 26px; }
.hero .btn-row { margin-top: 34px; }
.hero-media { margin-top: clamp(48px, 6vw, 76px); }
.hero-media img { width: 100%; height: clamp(280px, 44vw, 620px); object-fit: cover; border-radius: var(--radius-l) var(--radius-l) 0 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 64px; text-align: center; }
.stat-num { font-size: clamp(64px, 8vw, 112px); font-weight: 900; line-height: 1; font-variant-numeric: lining-nums; }
.stat-num small { font-size: .38em; font-weight: 800; margin-inline-start: 8px; }
.stat-label { margin-top: 14px; font-size: 19px; font-weight: 700; }
.dark .stat-num { color: var(--gold); }
.dark .stat-label { color: var(--steel); font-weight: 500; }
.gold .bg-img { opacity: .45; }
@media (max-width: 760px) { .stats { grid-template-columns: minmax(0, 1fr); gap: 44px; } }

/* Partners: a quiet wordmark wall until official logos arrive */
.partners { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 56px; margin-top: 52px; }
.partner { font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; color: var(--slate); white-space: nowrap; }
.partner img { height: 48px; width: auto; filter: grayscale(1); opacity: .8; }

/* Projects */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; flex-wrap: wrap; }
.section-head .lead { margin-top: 14px; max-width: 580px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3:not(.features) { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } .grid-4.features, .grid-3.features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px !important; } }

.project-feature { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--navy); color: var(--white); min-height: 360px; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.project-feature .bg-img { opacity: .3; }
.project-feature h3 { font-size: clamp(36px, 4vw, 52px); font-weight: 900; line-height: 1.1; }
.project-feature .meta { margin-top: 8px; color: var(--steel); font-size: 18px; }
.project-feature .btn-row { margin-top: 22px; }
.badge { white-space: nowrap; flex: none; align-self: flex-start; display: inline-block; border-radius: 999px; padding: 5px 14px; font-size: 14px; font-weight: 700; line-height: 1.6; position: relative; }
.badge-available { background: var(--gold); color: var(--navy); }
.badge-sold { background: var(--navy); color: var(--white); }
.dark .badge-sold { background: rgba(174, 184, 190, .18); color: var(--white); }

.sold-list { margin-top: 16px; }
.sold-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--line); transition: border-color .2s; }
a.sold-item:hover { border-color: var(--navy); }
.sold-item h3 { font-size: 22px; font-weight: 800; line-height: 1.3; }
.sold-item p { font-size: 15px; color: var(--slate); }
.dark .sold-item { background: rgba(18, 30, 59, .7); border-color: rgba(174, 184, 190, .28); }
.dark .sold-item p { color: var(--steel); }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius-l); min-height: 600px; padding: 64px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.tile.wide-tile { grid-column: 1 / -1; min-height: 640px; }
.tile .h-m { max-width: 600px; }
.tile p { max-width: 520px; }
.tile .btn-row { justify-content: center; margin-top: 4px; }
.tile-shade::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 30, 59, .92) 0%, rgba(18, 30, 59, .15) 58%); }
.tile > :not(.bg-img) { position: relative; z-index: 1; }
.tile-dev { background: var(--navy); color: var(--white); }
.tile-dev .pattern-band { position: absolute; inset: auto 0 0 0; height: 46%; background-size: cover; background-position: center; z-index: 0; }
@media (max-width: 760px) { .tiles { grid-template-columns: minmax(0, 1fr); } .tile, .tile.wide-tile { min-height: 520px; padding: 48px 24px; } }

/* Cards on dark imagery */
.glass { background: rgba(18, 30, 59, .82); border: 1px solid rgba(174, 184, 190, .26); border-radius: var(--radius-m); padding: 30px; }
.glass h3, .feature h3 { font-size: 21px; font-weight: 700; margin-top: 14px; }
.glass p { color: var(--steel); font-size: 16px; margin-top: 8px; line-height: 1.7; }
.icon { width: 34px; height: 34px; color: var(--gold); }
.light .icon, .mist .icon { color: var(--navy); }
.feature p { color: var(--slate); font-size: 16px; margin-top: 6px; }

/* Highlights rail */
.rail-wrap { position: relative; }
.rail { --rail-pad: max(32px, calc((100vw - var(--wrap)) / 2 + 32px)); display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--rail-pad); scroll-padding-inline: var(--rail-pad); padding-bottom: 8px; }
.rail::-webkit-scrollbar { display: none; }
.rail-card { position: relative; overflow: hidden; scroll-snap-align: start; flex: 0 0 min(380px, 82vw); min-height: 480px; border-radius: var(--radius-l); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.rail-card h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 900; line-height: 1.3; position: relative; }
.rail-card p { position: relative; font-size: 17px; }
.tone-navy { background: var(--navy); color: var(--white); }
.tone-gold { background: var(--gold); color: var(--navy); }
.tone-slate { background: var(--slate); color: var(--white); }
.tone-network { background: var(--navy); color: var(--white); }
.tone-network .bg-img { opacity: .6; }
.tone-navy p, .tone-slate p, .tone-network p { color: var(--steel); }
.rail-controls { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.rail-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--mist); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s, opacity .2s; }
.rail-btn:hover { background: var(--line); }
.rail-btn:disabled { opacity: .35; cursor: default; }
.rail-btn svg { width: 20px; height: 20px; }
[dir="rtl"] .rail-btn svg { transform: scaleX(-1); }

/* Journey */
.journey { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.journey li { border-top: 2px solid var(--navy); padding-top: 22px; counter-increment: step; }
.journey li:last-child { border-top-color: var(--gold); }
.journey li::before { content: counter(step); display: block; font-size: 44px; font-weight: 900; line-height: 1; color: var(--slate); }
.journey h3 { font-size: 21px; font-weight: 700; margin-top: 14px; }
.journey p { font-size: 16px; color: var(--slate); margin-top: 6px; }
@media (max-width: 960px) { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .journey { grid-template-columns: minmax(0, 1fr); } }

/* Facts list (licenses, project facts) */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 40px; }
.fact { padding: 26px; border-radius: var(--radius-m); background: var(--mist); }
.fact dt { font-size: 15px; color: var(--slate); }
.fact dd { margin: 6px 0 0; font-size: 22px; font-weight: 800; }
.dark .fact { background: rgba(174, 184, 190, .1); }
.dark .fact dt { color: var(--steel); }
@media (max-width: 760px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* Forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.form .full { grid-column: 1 / -1; }
.form .carrier { display: none !important; }
.field label, .field legend { display: block; font-size: 15px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.field .opt { font-weight: 400; color: var(--slate); }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid var(--steel); border-radius: 12px; background: var(--white); color: var(--navy); font-size: 17px; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(253, 183, 44, .45); }
.field input::placeholder, .field textarea::placeholder { color: #7b8794; }
.gold .field input, .gold .field textarea { border-color: var(--navy); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 46px; padding: 9px 20px; border: 1px solid var(--steel); border-radius: 999px; font-size: 16px; transition: background-color .2s, color .2s, border-color .2s; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.form .btn { width: 100%; min-height: 56px; font-size: 18px; }
.form-status { grid-column: 1 / -1; min-height: 1.6em; font-weight: 700; }
.form-status.ok { color: #1e6b3a; }
.form-status.err { color: #a12a1e; }
.hp { position: absolute; inset-inline-start: -9999px; }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* Contact channels */
.channels { display: grid; gap: 12px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius-m); background: var(--mist); font-weight: 700; font-size: 18px; transition: background-color .2s; }
.channel:hover { background: var(--line); }
.channel svg { width: 26px; height: 26px; flex: none; }
.channel small { display: block; font-weight: 400; font-size: 14px; color: var(--slate); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { background: var(--navy); color: var(--steel); font-size: 14px; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid h2 { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--white); }
.footer-logo img { height: 40px; width: auto; margin-bottom: 16px; }
[lang="en"] .footer-logo img { height: 30px; }
.footer-bottom { border-top: 1px solid rgba(174, 184, 190, .25); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 28px; }
.footer-bottom span + span { margin-inline-start: 0; }
.legal { display: flex; flex-wrap: wrap; gap: 6px 24px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer { padding-bottom: 104px; } }

/* WhatsApp button (desktop) and action bar (mobile) */
.wa-float { position: fixed; inset-inline-end: 24px; bottom: 24px; z-index: 45; width: 58px; height: 58px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(18, 30, 59, .28); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
.action-bar { display: none; }
@media (max-width: 860px) {
  .wa-float { display: none; }
  .action-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; inset: auto 0 0 0; z-index: 45; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(18, 30, 59, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid rgba(174, 184, 190, .2); }
  .action-bar a { min-height: 48px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; }
  .action-bar svg { width: 20px; height: 20px; }
  .action-call { color: var(--white); border: 1.5px solid rgba(174, 184, 190, .5); }
  .action-wa { background: var(--gold); color: var(--navy); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Brief additions ---------- */
[hidden] { display: none !important; }
.subnav-end { display: flex; align-items: center; gap: 20px; }
.sub-wa { font-size: 14px; }
@media (max-width: 760px) { .sub-wa { display: none; } }

/* Path chooser: one card per audience, equal weight */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.path { border-radius: var(--radius-l); padding: clamp(32px, 4vw, 52px); display: flex; flex-direction: column; gap: 18px; }
.path-dev { background: var(--navy); color: var(--white); }
.path-buyer { background: var(--mist); color: var(--navy); }
.path-buyer .eyebrow { color: var(--slate); }
.path-buyer .more { color: var(--navy); }
.path .h-m { max-width: 520px; }
.path .btn-row { margin-top: auto; padding-top: 10px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 18px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--gold); }
.path-buyer .checks svg { color: var(--navy); }
@media (max-width: 760px) { .paths { grid-template-columns: minmax(0, 1fr); } }

/* Challenge cards */
.problem { background: var(--white); border-radius: var(--radius-m); padding: 30px; border-top: 3px solid var(--gold); }
.problem h3 { font-size: 22px; font-weight: 800; }
.problem p { color: var(--slate); margin-top: 8px; }

/* Vision, mission, values */
.vm-card { background: var(--white); border-radius: var(--radius-l); padding: clamp(28px, 4vw, 48px); }
.vm-card .lead { margin-top: 14px; }
.value h3 { font-size: 24px; font-weight: 900; margin-top: 0; }
.value { border-top: 2px solid var(--navy); padding-top: 18px; }

/* Project filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter { min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 1px solid var(--steel); background: transparent; font-size: 16px; font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.filter[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Forms: select and consent */
.field select { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--steel); border-radius: 12px; background: var(--white); color: var(--navy); font-size: 17px; }
.field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(253, 183, 44, .45); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.6; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--navy); }
.consent a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

/* Footnotes and breadcrumb (Apple-style, above the footer map) */
.footnotes { margin: 0 0 28px; padding-inline-start: 18px; font-size: 13px; line-height: 1.7; color: var(--steel); }
sup.fn { font-size: .28em; font-weight: 700; vertical-align: super; margin-inline-start: 4px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 0; align-items: center; font-size: 14px; padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid rgba(174, 184, 190, .25); }
.crumbs > * + *::before { content: '›'; margin-inline: 10px; color: var(--steel); display: inline-block; }
[dir="rtl"] .crumbs > * + *::before { transform: scaleX(-1); }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: var(--white); }
.social { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.social p { margin-inline-end: 4px; }
.social a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(174, 184, 190, .35); }
.social a:hover { color: var(--white); border-color: var(--white); }
.social svg { width: 18px; height: 18px; }
.legal a:hover { color: var(--white); }

/* Legal pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; font-weight: 800; margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 10px; font-size: 18px; color: var(--slate); }
.channel svg { color: var(--navy); }
.light .path-dev .eyebrow, .light .path-dev .more { color: var(--gold); }

/* Partner logo wall: one color, heights balanced per logo */
.partners { align-items: center; gap: 28px 64px; }
.partner img { height: var(--h); width: auto; max-width: 100%; filter: none; opacity: 1; }
.on-dark-logos { justify-content: flex-start; margin-top: 28px; }
.on-dark-logos .partner img { filter: brightness(0) invert(1); opacity: .9; }
@media (max-width: 640px) {
  .partners { gap: 28px 36px; }
  .partner img { height: calc(var(--h) * .78); }
}
.partners { display: grid; grid-template-columns: repeat(6, auto); justify-content: center; justify-items: center; gap: 32px 44px; }
.on-dark-logos { justify-content: start; }
@media (max-width: 1100px) { .partners { grid-template-columns: repeat(3, auto); gap: 32px 56px; } }
@media (max-width: 640px) { .partners { grid-template-columns: repeat(2, auto); gap: 28px 36px; } }

/* Figures note (replaces footnote markers) */

/* Shared "Talk to JEDRA" block */
.contact-head { text-align: center; max-width: 760px; margin-inline: auto; }
.contact-head .lead { margin: 16px auto 0; color: var(--slate); }
.gold .contact-head .lead { color: var(--navy); }
.contact-split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 48px; }
.contact-form .form { margin-top: 0; }
.contact-aside { background: var(--navy); color: var(--white); border-radius: var(--radius-l); padding: 32px; position: sticky; top: calc(var(--header-h) + 72px); }
.contact-aside h3 { font-size: 22px; font-weight: 800; }
.contact-aside .channels { margin-top: 18px; }
.contact-aside .channel { background: rgba(255, 255, 255, .07); color: var(--white); font-size: 17px; }
.contact-aside .channel:hover { background: rgba(255, 255, 255, .13); }
.contact-aside .channel svg { color: var(--gold); width: 24px; height: 24px; }
.contact-aside .channel small { color: var(--steel); }
.aside-legal { margin-top: 20px; font-size: 13px; line-height: 1.8; color: var(--steel); }
.waitlist { margin-top: 24px; }
@media (max-width: 900px) { .contact-split { grid-template-columns: minmax(0, 1fr); } .contact-aside { position: static; } }

/* Project photos */
.project-feature.has-photo { min-height: 440px; }
.project-feature.has-photo .bg-img { opacity: 1; }
.project-feature.has-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 30, 59, .94) 0%, rgba(18, 30, 59, .6) 42%, rgba(18, 30, 59, .05) 78%); }
.project-feature.has-photo > :not(.bg-img) { position: relative; z-index: 1; }
.project-feature.has-photo .meta { color: var(--white); opacity: .85; }

/* Vision, mission and six values */
.vm-card .lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.75; }
.values { gap: 40px 32px; }
.values .value { border-top: 3px solid var(--gold); }
.values .value h3 { font-size: 22px; }
@media (max-width: 640px) { .values .value h3 { font-size: 19px; } }

/* Optional marketing consent and links in legal text */
.consent.optional { color: var(--slate); font-size: 14px; margin-top: -4px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }


/* Footer contact icons */
.contact-icons { margin-top: 0; }
.contact-icons svg { width: 18px; height: 18px; }
.contact-icons a[href*="wa.me"] svg { fill: currentColor; stroke: none; }

/* Careers tile on gold */
.tile.gold .eyebrow { color: var(--navy); }

/* Home hero: available projects, one photo at a time */
.hero-slides { position: relative; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; position: relative; display: block; overflow: hidden; border-radius: var(--radius-l) var(--radius-l) 0 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { transition: transform 6s ease; }
.slide.is-active img { transform: scale(1.03); }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 30, 59, .88) 0%, rgba(18, 30, 59, .35) 38%, rgba(18, 30, 59, 0) 65%); pointer-events: none; }
.slide-info { position: absolute; z-index: 1; inset-inline-start: clamp(20px, 4vw, 56px); bottom: clamp(24px, 4vw, 52px); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--white); text-align: start; }
.slide-name { font-size: clamp(34px, 5vw, 64px); font-weight: 900; line-height: 1.05; margin-top: 6px; }
.slide-meta { font-size: clamp(15px, 1.4vw, 19px); opacity: .85; }
.slide-more { margin-top: 10px; font-weight: 700; color: var(--gold); }
.slide-more::after { content: ' ›'; }
[dir="rtl"] .slide-more::after { content: ' ‹'; }
.slide:hover .slide-more, .slide:focus-visible .slide-more { text-decoration: underline; text-underline-offset: 4px; }
.slide-dots { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); bottom: 18px; display: flex; gap: 8px; }
.slide-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 5px; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .3s, background .3s; }
.slide-dots button[aria-current="true"] { width: 28px; background: var(--gold); }
@media (prefers-reduced-motion: reduce) { .slide, .slide img { transition: none; } .slide.is-active img { transform: none; } }

/* Forms-first contact: what happens next, single mobile button */
.after-steps { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.after-steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-m); background: rgba(255, 255, 255, .07); font-size: 16px; line-height: 1.6; }
.after-steps li::before { content: counter(step); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
@media (max-width: 760px) { .action-bar.single { grid-template-columns: 1fr; } }

/* Project details: nearby places and brochure */
.nearby { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nearby li { background: var(--mist); border-radius: var(--radius-m); padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.nearby-time { font-size: 34px; font-weight: 900; line-height: 1.1; }
.nearby-place { font-weight: 700; font-size: 17px; }
.nearby-note { color: var(--slate); font-size: 14px; }
@media (max-width: 760px) { .nearby { grid-template-columns: minmax(0, 1fr); } }
.brochure-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--mist); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 40px); }
.brochure-card .icon { width: 32px; height: 32px; color: var(--navy); }
.brochure-card h2 { margin-top: 10px; }
.brochure-card p { color: var(--slate); margin-top: 6px; }

/* Project bar: one line on phones */
.subnav-end a { white-space: nowrap; }
@media (max-width: 640px) { .subnav-end .more { display: none; } .subnav-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* Mobile: brand block on its own row in the footer, links in aligned columns */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .social { flex-wrap: wrap; }
  .social p { flex-basis: 100%; margin: 0; }
}
/* Mobile: taller slideshow photo so the project details have room */
@media (max-width: 640px) {
  .hero-slides .slide img { height: clamp(420px, 115vw, 520px); }
  .slide-info { inset-inline: 20px; bottom: 44px; }
  .slide-dots { bottom: 16px; }
}
@media (max-width: 860px) {
  .footer-bottom, .footer-bottom .legal { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Eight partners: two even rows of four, two per row on small screens */
.partners { grid-template-columns: repeat(4, auto); gap: 40px 72px; }
@media (max-width: 900px) { .partners { grid-template-columns: repeat(2, auto); gap: 32px 48px; } }

/* Careers */
.form .hint { display: block; margin-top: 6px; font-size: 13px; color: var(--slate); }
.form input[type=file] { padding: 12px; background: var(--white); border: 1px dashed var(--steel); border-radius: var(--radius-s, 12px); width: 100%; font: inherit; }
.role-card h3 { font-size: 26px; font-weight: 900; }
.role-card .role-meta { color: var(--steel); margin-top: 6px; }
.sent-note { background: var(--white); border-radius: var(--radius-l); padding: clamp(28px, 4vw, 44px); }
