:root {
  --navy-950: #050D1C;
  --navy-900: #0A1A33;
  --navy-800: #102544;
  --navy-700: #1A3459;
  --gold: #C9A24B;
  --gold-light: #E8CD85;
  --gold-dark: #9C7A2E;
  --cream: #F7F2E7;
  --paper: #FBF9F4;
  --ink: #14213A;
  --muted: #5B6680;
  --line: #E4DCC8;
  --radius: 14px;
  --font: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --serif: "Cinzel", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }

.skip {
  position: absolute; top: -40px; right: 16px; z-index: 100;
  background: var(--gold); color: var(--navy-900); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 0;
  font: 600 1rem var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.button.gold {
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  box-shadow: 0 6px 20px rgba(201, 162, 75, .28);
}
.button.gold:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(201, 162, 75, .4); }
.button.outline { background: transparent; color: var(--navy-900); border: 1.5px solid var(--gold); }
.button.outline:hover { background: rgba(201, 162, 75, .1); }
.button.small { padding: 9px 20px; font-size: .95rem; }
.button.full { width: 100%; }
.arrow { font-size: 1.1em; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

.text-link {
  color: var(--gold-light); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(232, 205, 133, .4); padding-bottom: 2px;
}
.text-link:hover { border-color: var(--gold-light); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  color: var(--gold-light); font-weight: 600; font-size: .95rem; letter-spacing: .02em;
}
.eyebrow i { width: 28px; height: 2px; background: currentColor; display: inline-block; }
.eyebrow.dark { color: var(--gold-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 26, 51, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 75, .25);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: 52px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; direction: ltr; }
.brand-text b { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .08em; color: var(--gold-light); }
.brand-text small { font-family: var(--serif); font-size: .68rem; letter-spacing: .42em; color: #C8D2E3; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav > a:not(.button) { color: #DCE3EE; text-decoration: none; font-weight: 500; position: relative; }
.nav > a:not(.button)::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--gold); transition: width .2s;
}
.nav > a:not(.button):hover::after { width: 100%; }

.lang-switch {
  display: flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid rgba(201,162,75,.35); border-radius: 999px; margin-inline-start: -12px;
}
.lang-switch a {
  padding: 4px 11px; border-radius: 999px; font-size: .85rem; line-height: 1.5;
  color: #DCE3EE; text-decoration: none; transition: background .2s, color .2s;
}
.lang-switch a:hover { color: var(--gold-light); background: rgba(201,162,75,.1); }
.lang-switch a[aria-current="page"] { background: rgba(201,162,75,.22); color: var(--gold-light); font-weight: 600; }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--gold-light); margin: 5px 0; transition: .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(ellipse at 15% 20%, var(--navy-700), var(--navy-900) 55%, var(--navy-950));
  padding: 72px 0 0;
}
.hero-bg {
  position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image:
    repeating-radial-gradient(circle at 85% 110%, transparent 0 38px, rgba(201,162,75,.6) 39px 40px),
    linear-gradient(rgba(201,162,75,.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,75,.25) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; margin-bottom: 22px; }
.hero h1 span, .contact h2 span {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro { font-size: 1.15rem; color: #C8D2E3; max-width: 34em; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.services { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.services li {
  border: 1px solid rgba(201,162,75,.4); color: var(--gold-light);
  padding: 6px 16px; border-radius: 999px; font-size: .9rem; background: rgba(201,162,75,.06);
}

.hero-visual { position: relative; margin: 0; }
.photo {
  border-radius: 22px; overflow: hidden; aspect-ratio: 5 / 4;
  border: 1px solid rgba(201,162,75,.5);
  box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 10px rgba(201,162,75,.07);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; width: 190px; height: 190px; bottom: -48px; right: -36px;
  border-radius: 50%; filter: drop-shadow(0 18px 30px rgba(0,0,0,.55));
}
.hero-visual figcaption {
  position: absolute; top: 18px; left: 18px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(5,13,28,.72); backdrop-filter: blur(6px);
  border: 1px solid rgba(201,162,75,.35); color: #E3E8F0;
  padding: 7px 14px; border-radius: 999px; font-size: .85rem;
}
.pin { color: var(--gold); font-size: .7rem; }
.sep { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

.tagline {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 90px; padding: 22px 0; border-top: 1px solid rgba(201,162,75,.25);
  color: var(--gold-light); font-weight: 600;
}
.tagline em { font-family: var(--serif); font-style: normal; letter-spacing: .12em; direction: ltr; color: #AEB9CC; font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head p { color: var(--muted); margin: 0; max-width: 26em; font-size: 1.05rem; }

.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px 30px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card::before {
  content: ""; position: absolute; top: 0; right: 28px; left: 28px; height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark)); border-radius: 0 0 3px 3px;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16,37,68,.1); border-color: var(--gold); }
.num { position: absolute; top: 24px; left: 26px; font-family: var(--serif); font-size: 1.6rem; color: rgba(201,162,75,.45); }
.icon {
  width: 52px; height: 52px; padding: 12px; margin-bottom: 20px; border-radius: 12px;
  background: var(--navy-900); stroke: var(--gold-light); fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round;
}
.card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--navy-900); }
.card p { margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #fff; position: relative; overflow: hidden; }
.contact::after {
  content: ""; position: absolute; width: 520px; height: 520px; left: -160px; top: -160px; border-radius: 50%;
  border: 1px solid rgba(201,162,75,.18); box-shadow: 0 0 0 60px rgba(201,162,75,.03), 0 0 0 120px rgba(201,162,75,.02);
  pointer-events: none;
}
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact h2 { margin-bottom: 18px; }
.contact-copy > p { color: #C8D2E3; font-size: 1.08rem; max-width: 30em; }
.channels { display: grid; gap: 12px; margin-top: 30px; max-width: 360px; }
.channel {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px;
  border: 1px solid rgba(201,162,75,.35); background: rgba(255,255,255,.03);
  text-decoration: none; font-weight: 600; transition: background .2s, border-color .2s;
}
.channel:hover { background: rgba(201,162,75,.1); border-color: var(--gold); }
.channel svg { width: 22px; height: 22px; fill: var(--gold-light); flex: none; }

.form-card {
  background: var(--paper); color: var(--ink); border-radius: 20px; padding: 36px;
  box-shadow: 0 30px 70px rgba(0,0,0,.35); border-top: 4px solid var(--gold);
}
.form-card h3 { font-size: 1.45rem; margin-bottom: 22px; color: var(--navy-900); }
form { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--navy-800); }
label small { color: var(--muted); font-weight: 400; }
input, textarea {
  width: 100%; font: 400 1rem var(--font); color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,75,.18); }
textarea { resize: vertical; }
.hint { margin: 0; text-align: center; color: var(--muted); font-size: .9rem; }
#review { display: grid; gap: 14px; }
#review h4 { font-size: 1.25rem; color: var(--navy-900); }
.review-actions { display: flex; flex-wrap: wrap; gap: 12px; }
#feedback { margin: 0; color: #2E7D4F; font-weight: 600; min-height: 1.5em; }
.edit { background: none; border: 0; color: var(--gold-dark); font: 600 .95rem var(--font); cursor: pointer; text-decoration: underline; justify-self: start; padding: 0; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.faq-list { display: grid; gap: 14px; }
details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
details[open] { border-color: var(--gold); }
summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 1.08rem; color: var(--navy-900);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-900); color: var(--gold-light); font-size: 1.2rem; transition: transform .2s;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #AEB9CC; padding: 48px 0 24px; border-top: 2px solid var(--gold-dark); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .brand img { width: 64px; height: 64px; }
.site-footer p { margin: 0; text-align: center; }
.site-footer em { font-family: var(--serif); font-style: normal; letter-spacing: .1em; font-size: .85rem; color: var(--gold); }
.copy { margin-top: 32px !important; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .hero-badge { width: 140px; height: 140px; right: auto; left: 16px; bottom: -40px; }
  .cards { grid-template-columns: 1fr; }
  .contact-grid { gap: 40px; }
  .faq-grid { gap: 28px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); border-bottom: 1px solid rgba(201,162,75,.3);
    padding: 8px 16px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav > a:not(.button) { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav .button { margin-top: 14px; }
  .lang-switch { margin: 16px 0 0; align-self: center; }
  .lang-switch a { padding: 6px 16px; font-size: .95rem; }
  .hero { padding-top: 48px; }
  .tagline { margin-top: 70px; justify-content: center; text-align: center; }
  .section { padding: 72px 0; }
  .row { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ---------- Icons ---------- */
.ico-fill { fill: var(--gold-light); }
.ico-stroke { fill: none; stroke: var(--gold-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.channel svg.ico-stroke { fill: none; }
.num-ltr { opacity: .75; font-weight: 500; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: #C8D2E3; font-size: .85rem; border-bottom: 1px solid rgba(201,162,75,.18); }
.topbar-inner { display: flex; align-items: center; justify-content: flex-end; gap: 26px; min-height: 38px; flex-wrap: wrap; }
.topbar a, .topbar-hours { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--gold-light); }
.topbar svg { width: 16px; height: 16px; }
.topbar-hours .dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 3px rgba(61,220,132,.2); }

/* ---------- Office ---------- */
.office { background: var(--cream); }
.office-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.office h2 { margin-bottom: 30px; }
.office-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.office-list li { display: flex; gap: 16px; align-items: flex-start; }
.office-list svg { width: 46px; height: 46px; padding: 12px; border-radius: 12px; background: var(--navy-900); flex: none; }
.office-list div { display: grid; gap: 2px; }
.office-list b { color: var(--navy-900); font-size: 1.02rem; }
.office-list span { color: var(--muted); }
.office-list a { color: var(--navy-800); font-weight: 600; text-decoration: none; justify-self: start; }
.office-list a:hover { color: var(--gold-dark); }
.office-list .links { display: flex; gap: 18px; flex-wrap: wrap; }
.office-list .map-link { font-size: .9rem; color: var(--gold-dark); margin-top: 4px; }
.map {
  border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: #E8E4DA;
  border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(16,37,68,.12);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer contact ---------- */
.footer-contact { margin-top: 28px !important; font-size: .9rem; }
.footer-contact a { color: var(--gold-light); text-decoration: none; white-space: nowrap; }
.footer-contact > span { display: inline-block; }
.footer-contact a:hover { text-decoration: underline; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 20px; right: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,0,0,.3); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1;
  animation: wa-pulse 2.6s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.65); opacity: 0; } }

@media (max-width: 960px) {
  .office-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .topbar-email { display: none !important; }
  .topbar-inner { justify-content: center; gap: 18px; }
  .wa-float { bottom: 16px; right: 16px; width: 54px; height: 54px; }
  .site-footer { padding-bottom: 88px; } /* keep the floating WhatsApp button off the copyright line */
}

/* ---------- Services ---------- */
.svc-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
  position: relative; overflow: hidden; border-radius: 18px; padding: 34px 30px;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #fff;
  border: 1px solid rgba(201,162,75,.3); transition: transform .3s, box-shadow .3s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(10,26,51,.3); }
.svc-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(232,205,133,.16) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform .9s ease;
}
.svc-card:hover::after { transform: translateX(100%); }
.svc-card svg {
  width: 58px; height: 58px; padding: 14px; border-radius: 14px; margin-bottom: 22px;
  background: rgba(201,162,75,.1); border: 1px solid rgba(201,162,75,.35);
}
.svc-card h3 { font-size: 1.35rem; color: var(--gold-light); margin-bottom: 10px; }
.svc-card p { margin: 0; color: #C8D2E3; }

/* ---------- Route map ---------- */
.routes { background: var(--navy-950); color: #fff; position: relative; overflow: hidden; }
.routes .section-head p { color: #AEB9CC; }
.route-map {
  border-radius: 22px; border: 1px solid rgba(201,162,75,.25); padding: 6px;
  background: radial-gradient(ellipse at 52% 38%, rgba(26,52,89,.95), var(--navy-950) 72%);
}
.route-map svg { width: 100%; height: auto; display: block; }
.rm-grid path { fill: none; stroke: rgba(201,162,75,.1); stroke-width: .6; }
.rm-route { fill: none; stroke: url(#rmGold); stroke-width: 1.5; stroke-linecap: round; }
.rm-node circle { fill: var(--gold-light); }
.rm-node text, .rm-hub text { paint-order: stroke; stroke: #081429; stroke-width: 4px; stroke-linejoin: round; }
.rm-node text { fill: #DCE3EE; font: 500 11px var(--font); }
.rm-core { fill: var(--gold-light); }
.rm-pulse { fill: none; stroke: var(--gold-light); stroke-width: 1.2; }
.rm-hub text { fill: var(--gold-light); font: 700 13px var(--font); }
/* Arabic must never get letter-spacing: iPhone Safari breaks the joined letters apart */
html[lang="ar"] .eyebrow, html[lang="ar"] .route-map text { letter-spacing: 0; }
html[lang="ar"] .route-map text { direction: rtl; unicode-bidi: embed; }
.tagline em:lang(ar) { letter-spacing: 0; font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; font-size: 1rem; }
.rm-dots circle { fill: #fff; filter: drop-shadow(0 0 3px #E8CD85); }
.rm-legend { display: none; list-style: none; padding: 0; margin: 18px 0 0; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rm-legend li { border: 1px solid rgba(201,162,75,.35); color: var(--gold-light); padding: 4px 12px; border-radius: 999px; font-size: .85rem; }
.rm-note { text-align: center; color: #8C98AE; font-size: .9rem; margin: 18px 0 0; }

/* ---------- Process ---------- */
.process { background: var(--cream); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before, .steps::after {
  content: ""; position: absolute; top: 27px; height: 2px; inset-inline-start: 12.5%; width: 75%;
}
.steps::before { background: rgba(201,162,75,.25); }
.steps::after { background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark)); transform-origin: left; }
[dir="rtl"] .steps::after { transform-origin: right; }
.step { position: relative; z-index: 1; text-align: center; }
.step-dot {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  background: var(--navy-900); color: var(--gold-light); border: 2px solid var(--gold);
  font: 700 1.15rem var(--serif); box-shadow: 0 0 0 6px rgba(201,162,75,.15);
}
.step h3 { font-size: 1.15rem; color: var(--navy-900); margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: .98rem; }

@media (max-width: 960px) {
  .svc-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
}
@media (max-width: 700px) {
  .rm-node text { display: none; }
  .rm-legend { display: flex; }
  /* the map shrinks to about half size on phones, so thicken lines and enlarge the hub label */
  .rm-route { stroke-width: 2.6; }
  .rm-hub text { font-size: 24px; stroke-width: 6px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Motion (only for visitors who haven't asked for reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .photo img { animation: kenburns 26s ease-in-out infinite alternate; }
  @keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08) translate(-1%, -1%); } }
  .hero-badge { animation: badge-float 6s ease-in-out infinite; }
  @keyframes badge-float { 50% { translate: 0 -10px; } }

  /* fade-up as sections scroll into view */
  html.js :is(.section-head, .card, .svc-card, .faq-list details, .office-info, .map, .form-card, .contact-copy, .route-map, .step) {
    opacity: 0; transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease, box-shadow .3s, border-color .2s;
  }
  html.js :is(.section-head, .card, .svc-card, .faq-list details, .office-info, .map, .form-card, .contact-copy, .route-map, .step).in {
    opacity: 1; transform: none;
  }
  html.js .svc-card.in:hover { transform: translateY(-6px); }
  html.js .card.in:hover { transform: translateY(-4px); }
  html.js :is(.card, .svc-card, .step, details):nth-child(2) { transition-delay: .12s; }
  html.js :is(.card, .svc-card, .step, details):nth-child(3) { transition-delay: .24s; }
  html.js .step:nth-child(4) { transition-delay: .36s; }

  /* route map: lines draw out from Alexandria, then the destinations appear */
  html.js .rm-route { stroke-dasharray: 1; stroke-dashoffset: 1; }
  html.js .route-map.in .rm-route { animation: rm-draw 1.6s ease forwards; animation-delay: calc(var(--d) + .3s); }
  @keyframes rm-draw { to { stroke-dashoffset: 0; } }
  html.js .rm-node { opacity: 0; }
  html.js .route-map.in .rm-node { animation: rm-pop .5s ease forwards; animation-delay: calc(var(--d) + 1.6s); }
  @keyframes rm-pop { to { opacity: 1; } }
  .rm-pulse { transform-box: fill-box; transform-origin: center; animation: rm-hub 2.4s ease-out infinite; }
  @keyframes rm-hub { from { transform: scale(1); opacity: .9; } to { transform: scale(3.6); opacity: 0; } }

  /* process: the gold line fills, then each step lights up */
  html.js .steps::after { transform: scaleX(0); transition: transform 2s ease .4s; }
  html.js .steps.in::after { transform: scaleX(1); }
  html.js .step-dot { background: var(--paper); color: var(--navy-900); transition: background .4s, color .4s; }
  html.js .steps.in .step .step-dot { background: var(--navy-900); color: var(--gold-light); }
  html.js .steps.in .step:nth-child(1) .step-dot { transition-delay: .4s; }
  html.js .steps.in .step:nth-child(2) .step-dot { transition-delay: 1s; }
  html.js .steps.in .step:nth-child(3) .step-dot { transition-delay: 1.6s; }
  html.js .steps.in .step:nth-child(4) .step-dot { transition-delay: 2.2s; }
}

/* ---------- English & Chinese (left-to-right) ---------- */
html[lang="en"] { --font: "IBM Plex Sans", system-ui, sans-serif; }
html[lang="zh-Hans"] { --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
html[lang="zh-Hans"] .hero h1 { letter-spacing: .02em; font-size: clamp(2.3rem, 5vw, 4rem); word-break: keep-all; }
html[lang="zh-Hans"] .section h2 { word-break: keep-all; }
[dir="ltr"] .skip { right: auto; left: 16px; }
[dir="ltr"] .hero-badge { right: auto; left: -36px; }
[dir="ltr"] .hero-visual figcaption { left: auto; right: 18px; }
[dir="ltr"] .num { left: auto; right: 26px; }
[dir="ltr"] .contact::after { left: auto; right: -160px; }
[dir="ltr"] .nav { gap: 26px; }
@media (max-width: 960px) {
  [dir="ltr"] .hero-badge { left: auto; right: 16px; }
}
@media (max-width: 760px) {
  [dir="ltr"] .nav { gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .wa-float::before { animation: none; }
}
