/* Rightway for Clearance & Assistance Services
   right-way.site */

:root {
  --navy: #0e2436;
  --navy-soft: #163349;
  --teal: #0f6e73;
  --amber: #e8a317;
  --ink: #14232e;
  --body: #46596a;
  --muted: #7d8fa0;
  --line: #dfe6ec;
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --radius: 10px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 14px;
  font-weight: 700;
}

h1 { font-size: 2.5rem; letter-spacing: -0.5px; }
h2 { font-size: 1.75rem; letter-spacing: -0.3px; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 16px; }

a { color: var(--teal); }

/* ---------- Header ---------- */

header.site {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--amber);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.5px;
  flex: 0 0 auto;
}

/* SVG logo carries its own rounded corners and colours */
img.mark { background: none; border-radius: 0; }

.brand-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

nav.main {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav.main a {
  color: var(--body);
  text-decoration: none;
  font-size: 0.94rem;
}

nav.main a:hover { color: var(--teal); }

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity .15s ease;
}

.btn:hover { opacity: .88; }

.btn-primary { background: var(--teal); color: #fff; }
.btn-dark    { background: var(--navy); color: #fff; }
.btn-ghost   { background: #fff; color: var(--navy); border-color: var(--line); }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #cbd8e2;
  padding: 76px 0 68px;
}

.hero h1 { color: #fff; max-width: 17ch; }

.hero .lead {
  font-size: 1.13rem;
  max-width: 58ch;
  margin-bottom: 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.34);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- Sections ---------- */

section { padding: 64px 0; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { max-width: 62ch; margin-bottom: 36px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 { margin-bottom: 8px; }
.card p  { margin: 0; font-size: 0.96rem; }

.card .ico {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #e7f1f1;
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.card .ico svg { width: 20px; height: 20px; }

/* ---------- Facts / contact table ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.fact {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact dt {
  font-size: 0.74rem;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
}

.fact dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
}

.fact dd a { color: var(--ink); text-decoration: none; }
.fact dd a:hover { color: var(--teal); }

.fact dd .note {
  display: block;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 3px;
}

/* ---------- Opt-in / WhatsApp notice ---------- */

.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  background: #fffdf7;
  border-radius: var(--radius);
  padding: 24px 26px;
}

.notice h3 { margin-bottom: 10px; }
.notice p:last-child { margin-bottom: 0; }
.notice ul { margin: 0 0 16px; padding-left: 20px; }
.notice li { margin-bottom: 7px; }

/* ---------- Legal pages ---------- */

.legal { max-width: 760px; }
.legal h2 { font-size: 1.32rem; margin-top: 38px; }
.legal h2:first-of-type { margin-top: 24px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }

.updated {
  font-size: 0.9rem;
  color: var(--muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Footer ---------- */

footer.site {
  background: var(--navy);
  color: #93a8b8;
  padding: 48px 0 30px;
  font-size: 0.93rem;
}

footer.site h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  margin: 0 0 12px;
}

footer.site a { color: #cbd8e2; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 30px;
}

.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.13);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.86rem;
}

footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 8px; }

/* ---------- Language switcher ---------- */

a.lang {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 0.9rem;
  color: var(--navy) !important;
  text-decoration: none;
  white-space: nowrap;
}

a.lang:hover { background: var(--bg-alt); }

footer.site a.lang {
  border-color: rgba(255,255,255,.28);
  color: #cbd8e2 !important;
}

/* ---------- Arabic / RTL ---------- */

html[dir="rtl"] body {
  font-family: "Segoe UI", "Tahoma", "Noto Naskh Arabic", "Traditional Arabic", Arial, sans-serif;
  line-height: 1.85;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 { letter-spacing: 0; line-height: 1.45; }

html[dir="rtl"] .legal ul,
html[dir="rtl"] .notice ul { padding-left: 0; padding-right: 20px; }

html[dir="rtl"] .fact { border-right: none; border-left: 1px solid var(--line); }

html[dir="rtl"] .notice { border-left: 1px solid var(--line); border-right: 4px solid var(--amber); }

html[dir="rtl"] .fact dt { letter-spacing: 0; }

html[dir="rtl"] .eyebrow { letter-spacing: 0; }

html[dir="rtl"] footer.site h4 { letter-spacing: 0; }

/* Keep latin-script data (phone, email, domain) rendering left-to-right inside RTL text */
.ltr {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.45rem; }
  .hero { padding: 54px 0 48px; }
  nav.main { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .fact { border-right: none; }
  html[dir="rtl"] .fact { border-left: none; }
}
