/* =========================================================================
   Movers in Dubai — design system
   Rule 151/158: minimal CSS, no framework, no runtime JS for layout.
   One accent colour so the quote CTA is never competing with itself.
   ========================================================================= */

:root {
  /* Brand */
  --ink: #0c1e33;
  --ink-soft: #3d556e;
  --muted: #64748b;
  --primary: #14406b;
  --primary-dark: #0e2f4f;
  --primary-tint: #eaf1f8;
  --accent: #e4622a;
  --accent-dark: #c44e1c;
  --accent-tint: #fdf0e9;

  --surface: #ffffff;
  --surface-alt: #f6f9fc;
  --surface-deep: #0c1e33;
  --line: #dde5ee;
  --line-soft: #edf2f7;

  --ok: #0f7b52;
  --warn: #9a6b00;

  /* Type — system stack keeps LCP fast; Arabic falls back to native UI faces */
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-ar: 'Segoe UI', 'Noto Kufi Arabic', 'Dubai', 'Tahoma', sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(12, 30, 51, 0.06), 0 1px 3px rgba(12, 30, 51, 0.08);
  --shadow: 0 4px 6px -1px rgba(12, 30, 51, 0.07), 0 10px 22px -8px rgba(12, 30, 51, 0.16);
  --shadow-lg: 0 18px 40px -12px rgba(12, 30, 51, 0.24);

  --wrap: 1140px;
  --wrap-narrow: 760px;
  --space: 1rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[dir='rtl'] body {
  font-family: var(--font-ar);
  line-height: 1.9;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-dark);
}

/* ---------- headings ---------- */
h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
html[dir='rtl'] h1,
html[dir='rtl'] h2,
html[dir='rtl'] h3,
html[dir='rtl'] h4 {
  letter-spacing: 0;
  line-height: 1.4;
}

h1 {
  font-size: clamp(1.85rem, 1.35rem + 2.2vw, 3rem);
}
h2 {
  font-size: clamp(1.4rem, 1.15rem + 1.15vw, 2rem);
  margin-top: 2.2em;
}
h3 {
  font-size: clamp(1.13rem, 1.03rem + 0.5vw, 1.35rem);
  margin-top: 1.9em;
  font-weight: 700;
}
h4 {
  font-size: 1.05rem;
  margin-top: 1.5em;
  font-weight: 700;
}

p {
  margin: 0 0 1.1em;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.15rem;
}
.wrap-narrow {
  max-width: var(--wrap-narrow);
}
.section {
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
}
.section-alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--line-soft);
}
.stack > * + * {
  margin-top: 1rem;
}

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip:focus {
  inset-inline-start: 0.5rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.92rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  line-height: 1.3;
  text-align: center;
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--primary);
  background: var(--primary-tint);
  color: var(--primary);
}

.btn-on-dark {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}
.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.17);
  color: #fff;
  border-color: #fff;
}

.btn-block {
  width: 100%;
}

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.card {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  color: inherit;
}
.card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
  color: var(--primary);
}
.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.62;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}
.grid-tight {
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
}

/* ---------- eyebrow / pills ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}
html[dir='rtl'] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.85rem;
}

.pill {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--primary-tint);
  color: var(--primary);
}
.pill-sponsored {
  background: var(--accent-tint);
  color: var(--accent-dark);
  border: 1px solid #f2c9b3;
}

/* ---------- prose (article body) ---------- */
.prose {
  font-size: 1.075rem;
}
.prose > :first-child {
  margin-top: 0;
}
.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-inline-start: 1.35em;
}
.prose li {
  margin-bottom: 0.5em;
}
.prose li::marker {
  color: var(--accent);
  font-weight: 700;
}
.prose blockquote {
  margin: 1.6em 0;
  padding: 1.05rem 1.25rem;
  background: var(--primary-tint);
  border-inline-start: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.05rem;
  color: var(--ink);
}
html[dir='rtl'] .prose blockquote {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose strong {
  color: var(--ink);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  min-width: 480px;
}
th,
td {
  padding: 0.72rem 0.9rem;
  text-align: start;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
thead th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- notice / disclosure ---------- */
.notice {
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--primary);
  background: var(--surface-alt);
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  color: var(--ink-soft);
  margin: 1.4em 0;
}
.notice strong {
  color: var(--ink);
}
.notice-accent {
  border-inline-start-color: var(--accent);
  background: var(--accent-tint);
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  background: var(--surface);
  overflow: hidden;
}
.faq-item > summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 700;
  color: var(--primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.02rem;
}
.faq-item > summary::-webkit-details-marker {
  display: none;
}
.faq-item > summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] > summary::after {
  content: '\2212';
}
.faq-answer {
  padding: 0 1.15rem 1.05rem;
  color: var(--ink-soft);
  font-size: 1rem;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---------- utilities ---------- */
.muted {
  color: var(--muted);
  font-size: 0.93rem;
}
.lead {
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.22rem);
  color: var(--ink-soft);
  line-height: 1.68;
}
.center {
  text-align: center;
}
.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;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

/* ---------- focus ---------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}
