/* ==========================================================================
   Selara Foreign Employment Agent PLC
   Palette and type derived from the company mark: deep violet + amber.
   ========================================================================== */

:root {
  /* Brand — sampled directly from the Selara logo */
  --ink:          #241040;
  --ink-soft:     #3A2159;
  --violet:       #491A80;
  --violet-lift:  #6E3BB0;
  --violet-mist:  #EDE3F7;
  --amber:        #F9BD4A;
  --amber-deep:   #D9971F;
  --sand:         #FDF3E0;
  --paper:        #F7F3FB;
  --white:        #FFFFFF;

  --body-text:    #38295A;
  --muted:        #6B5C8A;

  /* Type */
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ethiopic: "Noto Sans Ethiopic", "Nyala", "Abyssinica SIL", var(--body);
  --arabic: "IBM Plex Sans Arabic", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;

  --step--1: clamp(0.86rem, 0.83rem + 0.15vw, 0.94rem);
  --step-0:  clamp(1.02rem, 0.98rem + 0.2vw, 1.14rem);
  --step-1:  clamp(1.22rem, 1.14rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.32rem + 0.9vw, 2.05rem);
  --step-3:  clamp(1.95rem, 1.6rem + 1.75vw, 3.1rem);
  --step-4:  clamp(2.4rem, 1.75rem + 3.2vw, 4.4rem);

  --shell: 1180px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --radius: 18px;
  --radius-sm: 10px;

  --shadow-soft: 0 2px 4px rgba(36, 16, 64, 0.04), 0 12px 32px rgba(36, 16, 64, 0.07);
  --shadow-lift: 0 4px 10px rgba(36, 16, 64, 0.08), 0 22px 50px rgba(36, 16, 64, 0.14);
}

/* Amharic and Arabic have no Bricolage Grotesque, so each locale gets a
   display face that actually covers its script. */
html[lang="am"] {
  --display: "Noto Sans Ethiopic", "Nyala", "Abyssinica SIL", system-ui, sans-serif;
  --body: "Noto Sans Ethiopic", "Nyala", "Abyssinica SIL", system-ui, sans-serif;
}
html[lang="am"] h1, html[lang="am"] h2, html[lang="am"] h3, html[lang="am"] h4 {
  letter-spacing: 0;
  line-height: 1.25;
}
html[lang="am"] body { line-height: 1.8; }

html[lang="ar"] {
  --display: var(--arabic);
  --body: var(--arabic);
  --ethiopic: var(--arabic);
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
  letter-spacing: 0;
  line-height: 1.3;
}
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] .eyebrow, html[lang="ar"] .stop-num,
html[lang="ar"] .mission h3, html[lang="ar"] .info-card h4,
html[lang="ar"] .footer-col h4, html[lang="ar"] .rail-track span {
  letter-spacing: 0;
  text-transform: none;
}

/* --------------------------------------------------------------- reset -- */

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body-text);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -0.022em;
  font-weight: 800;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--amber);
  color: var(--ink);
  padding: 0.7rem 1.3rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-family: var(--display);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--amber);
}
.eyebrow--onviolet { color: var(--amber); }
.eyebrow--onviolet::before { background: var(--amber); }

.am {
  font-family: var(--ethiopic);
  font-weight: 400;
  letter-spacing: 0;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
  max-width: 56ch;
}

.band { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.band--paper { background: var(--paper); }
.band--sand  { background: var(--sand); }
.band--white { background: var(--white); }

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--step-3); }

/* -------------------------------------------------------------- button -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.92rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease,
              color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--amber { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn--amber:hover { background: var(--amber-deep); border-color: var(--amber-deep); }

.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }

.btn--violet { background: var(--violet); color: var(--white); border-color: var(--violet); }
.btn--violet:hover { background: var(--violet-lift); border-color: var(--violet-lift); }

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

.btn .arrow { transition: transform 0.16s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* -------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(36, 16, 64, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(249, 189, 74, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 0.85rem;
}

.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  color: var(--white);
}
.nav-toggle span {
  display: block; width: 21px; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.site-nav a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.site-nav a:hover { color: var(--amber); border-bottom-color: var(--amber); }
.site-nav .btn { color: var(--ink); border-bottom: 2px solid transparent; }
.site-nav .btn:hover { color: var(--ink); border-bottom-color: transparent; }

/* ---------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  background: radial-gradient(120% 130% at 82% 8%, #5B2299 0%, var(--violet) 38%, var(--ink) 82%);
  color: var(--white);
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 8rem) clamp(3.5rem, 7vw, 6rem);
  isolation: isolate;
}

.hero-graticule {
  position: absolute;
  z-index: -1;
  top: 40%;
  right: -14%;
  translate: 0 -50%;
  width: min(700px, 74vw);
  opacity: 0.3;
  color: var(--amber);
  pointer-events: none;
}

.hero-inner { max-width: 40rem; }

.hero h1 {
  color: var(--white);
  font-size: var(--step-4);
  letter-spacing: -0.035em;
  margin-bottom: 0.55rem;
}
.hero h1 em { font-style: normal; color: var(--amber); }

.hero-am[dir="ltr"] { text-align: start; }
[dir="rtl"] .hero-am[dir="ltr"] { text-align: right; }
.stop-am[dir="ltr"] { text-align: start; }
[dir="rtl"] .stop-am[dir="ltr"] { text-align: right; }

.hero-am {
  font-family: var(--ethiopic);
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--amber);
  margin: 0 0 1.4rem;
}

.hero-lede { color: rgba(255, 255, 255, 0.82); font-size: var(--step-1); line-height: 1.55; max-width: 50ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.1rem; }

.hero-trust {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(249, 189, 74, 0.28);
}
.hero-trust ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem 2.5rem;
}
.hero-trust li { list-style: none; display: flex; gap: 0.8rem; align-items: flex-start; }
.hero-trust svg { flex: 0 0 22px; color: var(--amber); margin-top: 3px; }
.hero-trust b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  color: var(--white);
  font-size: 0.99rem;
  letter-spacing: -0.01em;
}
.hero-trust span { font-size: var(--step--1); color: rgba(255, 255, 255, 0.66); line-height: 1.45; }


/* ----------------------------------------------------- destination rail -- */

.rail {
  background: var(--amber);
  color: var(--ink);
  border-block: 3px solid var(--ink);
  padding-block: 0.9rem;
  overflow: hidden;
}
.rail-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: rail-scroll 42s linear infinite;
}
.rail:hover .rail-track { animation-play-state: paused; }
.rail-track span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
}
.rail-track span::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--violet);
}
@keyframes rail-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------- about -- */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about-copy h2 { font-size: var(--step-3); }
.about-copy p { font-size: var(--step-1); line-height: 1.6; color: var(--muted); }
.about-copy p strong { color: var(--ink); font-weight: 600; }

.mission {
  background: var(--violet);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3.5vw, 2.6rem);
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: hidden;
}
.mission::after {
  content: "";
  position: absolute;
  inset: auto -60px -70px auto;
  width: 200px; height: 200px;
  border: 2px solid rgba(249, 189, 74, 0.22);
  border-radius: 50%;
}
.mission h3 {
  color: var(--amber);
  font-size: 0.76rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.mission p { font-size: var(--step-1); line-height: 1.55; color: var(--white); }
.mission-list { list-style: none; margin: 1.7rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid rgba(249, 189, 74, 0.3); }
.mission-list li {
  display: flex; gap: 0.7rem; align-items: flex-start;
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}
.mission-list li + li { margin-top: 0.8rem; }
.mission-list li::before { content: "→"; color: var(--amber); font-weight: 700; }

/* ------------------------------------------------------------ services -- */
/* The corridor: one continuous line threading five stops in real order.     */

.corridor {
  position: relative;
  padding-inline-start: 108px;
}

.corridor-line {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 108px;
}
.corridor-line svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.corridor-path {
  fill: none;
  stroke: var(--violet);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.45;
}
.corridor-path--draw {
  stroke: var(--amber-deep);
  opacity: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.1s linear;
}

.stop {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  position: relative;
}
.stop + .stop { border-top: 1px solid var(--violet-mist); }

.stop-marker {
  position: absolute;
  inset-inline-start: -54px;
  top: clamp(1.6rem, 3vw, 2.4rem);
  width: 0;
  display: grid;
  place-items: center;
}
.stop-dot {
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--violet);
  box-shadow: 0 0 0 6px var(--paper);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.stop.is-live .stop-dot { background: var(--amber); border-color: var(--amber-deep); transform: scale(1.12); }

.stop-icon {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--violet-mist);
  color: var(--violet);
  flex-shrink: 0;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.stop:hover .stop-icon { background: var(--amber); color: var(--ink); }
.stop-icon img { width: 30px; height: 30px; }

.stop-num {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--amber-deep);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.45rem;
}
.stop h3 { font-size: var(--step-2); margin-bottom: 0.15rem; }
.stop-am { font-family: var(--ethiopic); color: var(--violet); font-size: 1rem; margin: 0 0 0.7rem; }
.stop p { color: var(--muted); max-width: 60ch; }
.stop ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.stop li {
  font-size: 0.83rem;
  font-family: var(--display);
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--violet-mist);
  color: var(--ink-soft);
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
}

/* ------------------------------------------------------------ audience -- */

.audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.audience-card {
  background: var(--white);
  border: 1px solid var(--violet-mist);
  border-radius: var(--radius);
  padding: clamp(1.7rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--amber); }
.audience-card h3 { font-size: var(--step-2); margin: 0; }
.audience-card p { color: var(--muted); margin: 0; }
.audience-card .btn { align-self: flex-start; margin-top: 0.4rem; }
.audience-card--dark { background: var(--ink); border-color: var(--ink); }
.audience-card--dark h3 { color: var(--white); }
.audience-card--dark p { color: rgba(255, 255, 255, 0.72); }

/* ----------------------------------------------------------------- faq -- */

.faq { max-width: 62rem; }
.faq details {
  border-bottom: 1px solid var(--violet-mist);
  padding: 1.15rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--amber-deep);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 0.9rem; color: var(--muted); max-width: 72ch; }

/* ------------------------------------------------------------- contact -- */

.contact { background: var(--ink); color: var(--white); }
.contact h2 { color: var(--white); }
.contact .lede { color: rgba(255, 255, 255, 0.72); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-lift);
}
.form-card h3 { font-size: var(--step-2); margin-bottom: 0.3rem; }
.form-card > p { color: var(--muted); font-size: var(--step--1); margin-bottom: 1.6rem; }

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.83rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--violet-mist);
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.9rem;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.field textarea { resize: vertical; min-height: 132px; }
.field input:focus, .field textarea:focus { border-color: var(--violet); background: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: #A093BC; }

.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.9rem; }
.form-status {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--violet);
  min-height: 1.3em;
}
.form-status[data-state="error"] { color: #B3261E; }

.contact-aside { display: flex; flex-direction: column; gap: 1rem; }

.info-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(249, 189, 74, 0.24);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.info-card h4 {
  color: var(--amber);
  font-size: 0.73rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}
.info-card a { color: var(--white); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(249, 189, 74, 0.5); word-break: break-word; }
.info-card a:hover { color: var(--amber); }
.info-card p { color: rgba(255, 255, 255, 0.75); font-size: var(--step--1); margin: 0; }

.map-wrap {
  margin-top: clamp(2rem, 4vw, 3.25rem);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(249, 189, 74, 0.28);
  background: var(--ink-soft);
}
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; filter: saturate(0.85); }
.map-caption {
  padding: 0.85rem 1.2rem;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.66);
  border-top: 1px solid rgba(249, 189, 74, 0.2);
}

/* -------------------------------------------------------------- footer -- */

.site-footer { background: #1A0B31; color: rgba(255, 255, 255, 0.7); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand img { height: 46px; width: auto; margin-bottom: 1.1rem; }
.footer-brand p { font-size: var(--step--1); max-width: 40ch; line-height: 1.6; }

.footer-col h4 {
  color: var(--amber);
  font-size: 0.73rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 0.55rem; }
.footer-col a { color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: var(--step--1); }
.footer-col a:hover { color: var(--amber); }

.socials { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.socials a:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.6rem;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------- reveal / rm -- */

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .rail-track { animation: none; }
  .corridor-path--draw { stroke-dashoffset: 0 !important; }
}

/* ------------------------------------------------------ right-to-left -- */

[dir="rtl"] .hero-graticule { right: auto; left: -14%; }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .mission-list li::before { content: "←"; }
[dir="rtl"] .mission::after { inset: auto auto -70px -60px; }
[dir="rtl"] .rail-track { animation-name: rail-scroll-rtl; }
[dir="rtl"] .skip-link { transform: translateX(50%); }

@keyframes rail-scroll-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

@media (max-width: 780px) {
  [dir="rtl"] .hero-graticule { left: -34%; }
}

/* ------------------------------------------------------ language menu -- */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}
.lang-switch a {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border-bottom: none;
  line-height: 1.4;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.lang-switch a:hover { color: var(--amber); border-bottom: none; }
.lang-switch a[aria-current="true"] { background: var(--amber); color: var(--ink); }
.lang-switch a[aria-current="true"]:hover { color: var(--ink); }

/* --------------------------------------------------------- licence bar -- */

.licence {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem 2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--violet-mist);
  border-radius: var(--radius);
}
.licence div { min-width: 0; }
.licence dt {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 0.3rem;
}
html[lang="ar"] .licence dt, html[lang="am"] .licence dt { letter-spacing: 0; text-transform: none; font-size: 0.8rem; }
.licence dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  overflow-wrap: break-word;
}
.licence dd small { display: block; font-family: var(--body); font-weight: 400; font-size: 0.83rem; color: var(--muted); margin-top: 0.2rem; }

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }

  .site-nav .lang-switch { margin-top: 1.1rem; align-self: flex-start; }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(249, 189, 74, 0.2);
    padding: 0.5rem var(--gutter) 1.4rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.05rem;
  }
  .site-nav .btn { margin-top: 1rem; justify-content: center; border-bottom: none; }

  .corridor { padding-inline-start: 34px; }
  .corridor-line { width: 34px; }
  .stop { grid-template-columns: 1fr; gap: 1rem; }
  .stop-marker { inset-inline-start: -25px; }
  .stop-icon { width: 52px; height: 52px; }
  .stop-icon img { width: 26px; height: 26px; }

  .hero-graticule { opacity: 0.2; right: -34%; }
  .map-wrap iframe { height: 320px; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .brand img { height: 34px; }
}

@media print {
  .site-header, .rail, .nav-toggle, .map-wrap { display: none; }
  body { background: #fff; color: #000; }
}
