/* Ever Going Global — corridor design system.
   Logical properties throughout (margin-inline, padding-inline, border-inline-start)
   so the Arabic RTL mirror needs dir="rtl" and nothing else. */

:root{
  color-scheme:light;   /* one palette; form controls must not self-darken */
  --deep:#062E2A;          /* darkest green-teal — section bands, headings */
  --primary:#0E4F47;       /* brand green-teal */
  --primary-soft:#14675C;
  --sand:#C3A15A;          /* Gulf sand gold — the second brand colour, not an accent */
  --sand-soft:#E4D4B0;
  --ground:#FAF7F1;        /* warm off-white page */
  --card:#FFFFFF;
  --text:#1E2422;
  --muted:#5B6B68;
  --rule:rgba(14,79,71,.15);
  --tint:rgba(14,79,71,.05);
  --shadow:0 1px 2px rgba(6,46,42,.05), 0 8px 24px rgba(6,46,42,.06);
  --on-dark:#FFFFFF;       /* text on --deep / on the hero */
  --on-sand:#241C08;       /* text on --sand buttons */
  --scrim-1:rgba(6,46,42,.93);   /* hero overlay, near edge */
  --scrim-2:rgba(6,46,42,.82);
  --scrim-3:rgba(6,46,42,.50);   /* hero overlay, far edge — lower = more photo */
  --on-dark-soft:rgba(255,255,255,.84);
  --on-dark-mute:rgba(255,255,255,.60);
  --on-dark-line:rgba(255,255,255,.14);
  --on-dark-fill:rgba(255,255,255,.06);
  --ok-bg:rgba(14,79,71,.10); --ok-fg:#0E4F47;
  --err-bg:rgba(190,60,40,.09); --err-fg:#A33A26; --err-line:rgba(190,60,40,.25);
  --measure:66ch;
  --gutter:20px;
  --radius:14px;
}


*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}
body{
  margin:0;background:var(--ground);color:var(--text);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  font-size:17px;line-height:1.7;-webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
html[lang^="zh"] body{font-family:Inter,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Source Han Sans SC",sans-serif;line-height:1.85}
html[dir="rtl"] body{font-family:"Noto Kufi Arabic","Noto Sans Arabic",Inter,system-ui,sans-serif;line-height:1.95}

img{max-width:100%;height:auto;display:block}
a{color:var(--primary)}
:where(a,button,input,textarea,select,summary):focus-visible{
  outline:3px solid var(--sand);outline-offset:2px;border-radius:4px;
}

.wrap{width:100%;max-width:1120px;margin-inline:auto;padding-inline:var(--gutter)}
.narrow{max-width:800px}
.skip{position:absolute;inset-inline-start:-9999px}
.skip:focus{inset-inline-start:var(--gutter);top:10px;z-index:100;background:var(--card);padding:10px 16px;border-radius:8px}

/* ---------- type ---------- */
h1,h2,h3,.ff{font-family:Montserrat,system-ui,sans-serif}
html[lang^="zh"] h1,html[lang^="zh"] h2,html[lang^="zh"] h3,html[lang^="zh"] .ff{font-family:Montserrat,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Source Han Sans SC",sans-serif}
html[dir="rtl"] h1,html[dir="rtl"] h2,html[dir="rtl"] h3,html[dir="rtl"] .ff{font-family:"Noto Kufi Arabic",Montserrat,sans-serif}
h1{font-size:clamp(30px,5.2vw,50px);line-height:1.15;font-weight:700;letter-spacing:-.01em;margin:0 0 18px;color:var(--deep)}
h2{font-size:clamp(23px,3.6vw,34px);line-height:1.25;font-weight:600;margin:0 0 16px;color:var(--deep)}
h3{font-size:clamp(17px,2.2vw,20px);line-height:1.35;font-weight:600;margin:0 0 8px;color:var(--primary)}
p{margin:0 0 16px;max-width:var(--measure)}
.lede{font-size:clamp(18px,2.3vw,21px);line-height:1.6;color:var(--text)}
.eyebrow{
  font-family:Montserrat,sans-serif;font-size:12px;font-weight:600;
  letter-spacing:.14em;text-transform:uppercase;color:var(--sand);margin:0 0 12px;
}
html[dir="rtl"] .eyebrow{letter-spacing:0}
.muted{color:var(--muted)}

/* ---------- header ---------- */
.site-head{
  position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--ground) 92%,transparent);
  backdrop-filter:blur(10px);border-block-end:1px solid var(--rule);
}
.head-in{display:flex;align-items:center;gap:16px;min-height:66px}
.brand{
  font-family:Montserrat,sans-serif;font-weight:700;font-size:15px;letter-spacing:.07em;
  text-transform:uppercase;color:var(--deep);text-decoration:none;white-space:nowrap;
  margin-inline-end:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;
}
.brand:hover{color:var(--primary)}
.nav{display:flex;align-items:center;gap:6px}
.nav a{
  font-size:15px;color:var(--text);text-decoration:none;padding:8px 12px;border-radius:8px;white-space:nowrap;
}
.nav a:hover{background:var(--card);color:var(--primary)}
.nav a[aria-current="page"]{color:var(--primary);font-weight:500;box-shadow:inset 0 -2px 0 var(--sand)}

/* language flags */
.lang{position:relative;margin-inline-start:6px}
.lang-btn{
  display:flex;align-items:center;gap:6px;font:inherit;font-size:13px;cursor:pointer;
  background:var(--card);color:var(--muted);border:1px solid var(--rule);
  border-radius:999px;padding:6px 10px;flex:0 0 auto;
}
.lang-btn:hover{border-color:var(--sand)}
.flag{font-size:17px;line-height:1}
.lang-menu{
  position:absolute;inset-inline-end:0;top:calc(100% + 8px);min-width:172px;
  background:var(--card);border:1px solid var(--rule);border-radius:12px;
  box-shadow:var(--shadow);padding:6px;margin:0;list-style:none;
}
.lang-menu[hidden]{display:none}
.lang-menu a{
  display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:8px;
  text-decoration:none;color:var(--text);font-size:15px;
}
.lang-menu a:hover{background:var(--ground);color:var(--primary)}
.lang-menu a[aria-current="true"]{font-weight:600;color:var(--primary)}
.burger{display:none;background:none;border:1px solid var(--rule);border-radius:8px;padding:6px 10px;cursor:pointer;color:var(--text);flex:0 0 auto;line-height:1}

@media (max-width:860px){
  /* Grid, not flex: with flex-wrap the browser wraps the burger onto its own row
     rather than shrinking the wordmark, which made the header 103px tall on a
     phone. minmax(0,1fr) lets the wordmark truncate and keeps all three on one row. */
  .head-in{
    display:grid;grid-template-columns:minmax(0,1fr) auto auto;
    gap:10px;align-items:center;min-height:58px;padding-block:8px;
  }
  .brand{margin-inline-end:0}
  .burger{display:block}
  .nav{
    grid-column:1 / -1;flex-direction:column;align-items:stretch;gap:2px;
    padding-block:6px 12px;border-block-start:1px solid var(--rule);
  }
  .nav[hidden]{display:none}
  .nav a{padding:12px 10px;font-size:16px}
}

/* ---------- hero ---------- */
.hero{position:relative;isolation:isolate;color:var(--on-dark);background:var(--deep)}
.hero>picture>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.hero::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(105deg,var(--scrim-1) 0%,var(--scrim-2) 45%,var(--scrim-3) 100%);
}
html[dir="rtl"] .hero::after{background:linear-gradient(255deg,var(--scrim-1) 0%,var(--scrim-2) 45%,var(--scrim-3) 100%)}
.hero .wrap{padding-block:clamp(64px,11vw,124px)}
.hero h1{color:var(--on-dark);max-width:17ch}
html[lang^="zh"] .hero h1{max-width:14em}
html[dir="rtl"] .hero h1{max-width:22ch}
html[dir="rtl"] .hero .lede{max-width:70ch}
.hero .lede{color:var(--on-dark-soft);max-width:56ch}
.hero .eyebrow{color:var(--sand-soft)}
.hero-rule{width:60px;height:3px;background:var(--sand);border-radius:2px;margin-block-end:22px}

/* ---------- buttons ---------- */
.btns{display:flex;flex-wrap:wrap;gap:12px;margin-block-start:28px}
.btn{
  display:inline-flex;align-items:center;gap:9px;font-family:Montserrat,sans-serif;font-weight:600;
  font-size:15px;text-decoration:none;padding:13px 24px;border-radius:999px;border:1.5px solid transparent;
  transition:transform .15s ease,background .15s ease,color .15s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--sand);color:var(--on-sand);border-color:var(--sand)}
.btn-primary:hover{background:var(--sand-soft)}
.btn-ghost{border-color:var(--on-dark-mute);color:var(--on-dark)}
.btn-ghost:hover{background:var(--on-dark-fill)}
.btn-dark{background:var(--primary);color:var(--card);border-color:var(--primary)}
.btn-dark:hover{background:var(--deep)}
.btn-line{border-color:var(--rule);color:var(--primary);background:var(--card)}
.btn-line:hover{border-color:var(--sand)}
html[dir="rtl"] .arr{display:inline-block;transform:scaleX(-1)}

/* ---------- sections ---------- */
section{padding-block:clamp(48px,7vw,84px)}
.band{background:var(--deep);color:var(--on-dark)}
.band h2,.band h3{color:var(--on-dark)}
.band p{color:var(--on-dark-soft)}
.band .eyebrow{color:var(--sand-soft)}
.tint{background:linear-gradient(180deg,var(--tint),transparent)}
.head-block{max-width:var(--measure);margin-block-end:34px}

/* ---------- cards ---------- */
.grid{display:grid;gap:20px}
.g2{grid-template-columns:repeat(auto-fit,minmax(290px,1fr))}
.g3{grid-template-columns:repeat(auto-fit,minmax(292px,1fr))}
.card{
  background:var(--card);border:1px solid var(--rule);border-radius:var(--radius);
  padding:26px;box-shadow:var(--shadow);
}
.card p:last-child{margin-block-end:0}
.card .num{
  font-family:Montserrat,sans-serif;font-weight:700;font-size:13px;letter-spacing:.1em;
  color:var(--sand);display:block;margin-block-end:10px;
}
html[dir="rtl"] .card .num{letter-spacing:0;font-family:"Noto Kufi Arabic","Noto Sans Arabic",sans-serif}
.band .card{background:var(--on-dark-fill);border-color:var(--on-dark-line);box-shadow:none}
.card-img{border-radius:var(--radius) var(--radius) 0 0;margin:-26px -26px 22px;width:calc(100% + 52px);max-width:none;aspect-ratio:16/9;object-fit:cover}

/* choice band on the home page — one full-width strip cut in two.
   Deep green beside warm white, so the two audiences read as a visible fork
   rather than two identical cards the eye must read before it can choose. */
.paths-sec{padding-block:clamp(48px,7vw,84px) 0;background:linear-gradient(180deg,var(--tint),transparent)}
.paths-sec .head-block{margin-block-end:30px}
.split{
  display:grid;grid-template-columns:1fr 1fr;width:100%;
  /* the band is full bleed, but its text must sit on the same left edge as the
     section heading above it, so the outer padding tracks the .wrap gutter */
  --edge:max(var(--gutter),calc((100vw - 1120px) / 2 + var(--gutter)));
}
.half{
  display:flex;flex-direction:column;text-decoration:none;
  padding-block:clamp(34px,4.6vw,56px);
  padding-inline:clamp(24px,3.4vw,46px);
  transition:background .2s ease;
}
.half:first-child{padding-inline-start:var(--edge)}
.half:last-child{padding-inline-end:var(--edge)}
.half h3{font-size:clamp(19px,2.5vw,24px);line-height:1.3;margin-block-end:12px;max-width:20ch}
.half p{max-width:40ch;margin-block-end:26px}
.half .go{
  margin-block-start:auto;display:inline-flex;align-items:center;gap:10px;
  font-family:Montserrat,sans-serif;font-weight:600;font-size:15px;
}
.half .arr{transition:transform .2s ease}
.half:hover .arr{transform:translateX(5px)}
html[dir="rtl"] .half:hover .arr{transform:scaleX(-1) translateX(5px)}

.half-dark{background:var(--deep);color:var(--on-dark)}
.half-dark h3{color:var(--on-dark)}
.half-dark p{color:var(--on-dark-soft)}
.half-dark .go{color:var(--sand)}
.half-dark:hover{background:var(--primary)}

.half-light{background:var(--card);color:var(--text)}
.half-light h3{color:var(--deep)}
.half-light .go{color:var(--primary)}
.half-light:hover{background:var(--ground)}

@media (max-width:760px){.split{grid-template-columns:1fr}}

/* ---------- lists ---------- */
.ticks{list-style:none;padding:0;margin:0 0 16px;max-width:var(--measure)}
.ticks li{position:relative;padding-inline-start:26px;margin-block-end:9px}
.ticks li::before{
  content:"";position:absolute;inset-inline-start:0;top:.62em;width:9px;height:9px;
  border-radius:2px;background:var(--sand);
}
.tags{display:flex;flex-wrap:wrap;gap:9px;padding:0;margin:0;list-style:none}
.tags li{
  font-family:Montserrat,sans-serif;font-size:12.5px;font-weight:500;letter-spacing:.06em;
  text-transform:uppercase;color:var(--primary);background:var(--card);
  border:1px solid var(--rule);border-radius:999px;padding:7px 15px;
}
html[dir="rtl"] .tags li{letter-spacing:0}
.band .tags li{background:var(--on-dark-fill);border-color:var(--on-dark-line);color:var(--on-dark)}

/* stepped ladder */
.ladder{list-style:none;padding:0;margin:0;counter-reset:step}
.ladder li{
  counter-increment:step;position:relative;padding-inline-start:54px;padding-block-end:26px;
  border-inline-start:2px solid var(--rule);margin-inline-start:15px;
}
.ladder li:last-child{border-color:transparent;padding-block-end:0}
.ladder li::before{
  content:counter(step);position:absolute;inset-inline-start:-16px;top:-2px;
  width:32px;height:32px;border-radius:50%;background:var(--primary);color:var(--card);
  font-family:Montserrat,sans-serif;font-weight:600;font-size:14px;
  display:grid;place-items:center;
}
.band .ladder li::before{background:var(--sand);color:var(--on-sand)}
.ladder h3{margin-block-end:4px}

/* figure/diagram */
figure{margin:0}
figure svg{width:100%;height:auto;display:block}

/* ---------- forms ---------- */
.field{margin-block-end:16px}
label{display:block;font-size:14px;font-weight:500;margin-block-end:6px;color:var(--text)}
input,select,textarea{
  width:100%;font:inherit;font-size:16px;color:var(--text);background:var(--card);
  border:1px solid var(--rule);border-radius:10px;padding:12px 14px;
}
textarea{min-height:130px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:var(--primary);outline-offset:1px}
.form-note{font-size:14px;color:var(--muted)}
.formmsg{border-radius:10px;padding:13px 16px;margin-block-end:16px;font-size:15px}
.formmsg.ok{background:var(--ok-bg);color:var(--ok-fg);border:1px solid var(--rule)}
.formmsg.err{background:var(--err-bg);color:var(--err-fg);border:1px solid var(--err-line)}

/* ---------- footer ---------- */
.site-foot{background:var(--deep);color:var(--on-dark-soft);padding-block:52px 34px;font-size:15px}
.site-foot a{color:var(--on-dark);text-decoration:none}
.site-foot a:hover{color:var(--sand)}
.foot-grid{display:grid;gap:30px;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));margin-block-end:34px}
.foot-grid h4{font-family:Montserrat,system-ui,sans-serif;font-size:12px;font-weight:600;letter-spacing:.13em;text-transform:uppercase;color:var(--sand);margin:0 0 13px}
html[dir="rtl"] .foot-grid h4{letter-spacing:0}
.foot-grid ul{list-style:none;padding:0;margin:0}
.foot-grid li{margin-block-end:8px}
.foot-brand{font-family:Montserrat,sans-serif;font-weight:700;font-size:17px;letter-spacing:.06em;text-transform:uppercase;color:var(--on-dark);margin:0 0 11px}
.legal{border-block-start:1px solid var(--on-dark-line);padding-block-start:22px;font-size:13.5px;line-height:1.7;color:var(--on-dark-mute)}
.legal p{max-width:none;margin:0 0 3px}

/* ---------- consent banner (built by analytics.js) ---------- */
.consent{
  position:fixed;inset-inline:16px;bottom:16px;z-index:80;max-width:620px;margin-inline:auto;
  background:var(--card);border:1px solid var(--rule);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:18px 20px;
}
.consent p{margin:0 0 14px;font-size:15px;line-height:1.6;max-width:none}
.consent a{color:var(--primary)}
.consent-btns{display:flex;gap:10px;flex-wrap:wrap}
.consent-btns .btn{padding:10px 20px;font-size:14px}

/* ---------- visually hidden (honeypot, RTL-safe) ---------- */
.hp{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
  clip-path:inset(50%);white-space:nowrap;border:0}

html[dir="rtl"] .eyebrow,html[dir="rtl"] .card .num,html[dir="rtl"] .foot-grid h4{font-size:14px}

.hero:not(:has(picture)) .wrap{padding-block:clamp(44px,6vw,76px)}
