/* ==========================================================================
   Maham Alarabia — Automatic Doors & Garages
   Main stylesheet (shared by English and Arabic pages)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy: #0A2540;
  --navy-hover: #12355A;
  --navy-deep: #061A2E;
  --navy-mid: #0F2D4A;
  --line-dark: #1C3A57;
  --line-dark-2: #24476A;
  --accent: #FF7A1A;          /* signal orange — always pair with navy text */
  --accent-tint: #FFF1E6;
  --bg: #F4F7FA;
  --bg-alt: #E8EEF4;
  --white: #FFFFFF;
  --text: #0A2540;
  --body: #3A4F66;
  --muted: #556579;
  --border: #D8E1EA;
  --divider: #E4EBF2;
  --faq-line: #C6D2DE;
  --input: #B5C3D1;
  --dash: #9FB0C2;
  --on-dark: #C5D3E0;
  --on-dark-2: #DCE6EF;
  --on-dark-muted: #A9BCCE;
  --btn-line: #8FA3B8;

  --font-display: 'Archivo', 'Segoe UI', sans-serif;
  --font-body: 'Public Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --font-arabic: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;

  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 12px 28px rgba(10, 37, 64, 0.12);
}

/* Arabic pages swap the type families; everything else is shared */
:root[lang="ar"] {
  --font-display: 'Cairo', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
:root[lang="ar"] body { font-size: 17px; line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }   /* responsive <picture> wrappers don't affect layout */
a { color: var(--navy); }
a:hover { color: var(--body); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.icon { flex-shrink: 0; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.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;
}
.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 12px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 10px 14px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { inset-inline-start: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 8px; border: 1px solid transparent;
  font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, filter .15s;
}
.btn-lg { min-height: 54px; padding: 15px 26px; font-size: 17px; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { color: var(--navy); filter: brightness(1.06); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-hover); color: var(--white); }
.btn-ghost-light { color: var(--white); border-color: var(--btn-line); }
.btn-ghost-light:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-outline { color: var(--navy); border-color: var(--input); background: transparent; }
.btn-outline:hover { color: var(--navy); background: var(--white); }
.btn-whatsapp { background: #25D366; color: var(--navy); }   /* navy on WhatsApp green: 7.6:1 contrast */
.btn-whatsapp:hover { color: var(--navy); filter: brightness(1.05); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-deep); color: var(--on-dark); font-size: 14px; }
.topbar .container {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
  padding-top: 10px; padding-bottom: 10px;
}
.topbar a { color: var(--white); font-weight: 600; text-decoration: none; }
.topbar-right { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  display: inline-block; margin-inline-end: 8px; vertical-align: middle;
}

/* ---------- Header / navigation ---------- */
.site-header { background: var(--navy); border-bottom: 1px solid var(--line-dark); position: sticky; top: 0; z-index: 50; }
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 8px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: -0.01em; }
.brand-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--on-dark-muted); margin-top: 3px; }
:root[lang="ar"] .brand-name { font-size: 24px; letter-spacing: 0; }
:root[lang="ar"] .brand-tag { font-size: 12px; letter-spacing: 0; }

.nav-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--on-dark); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px;
  color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px;
  border: 1px solid var(--line-dark-2); border-radius: 8px;
}
.lang-switch:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.lang-switch[lang="ar"] { font-family: var(--font-arabic); }
.lang-switch[lang="en"] { font-family: 'Public Sans', sans-serif; }
.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; color: var(--white); border: 1px solid var(--line-dark-2); border-radius: 8px; cursor: pointer;
}

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; order: 3; width: 100%; flex-direction: column; gap: 0; padding: 4px 0 8px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 0; border-top: 1px solid var(--line-dark); font-size: 16px; }
}
.nav-links .nav-lang { display: none; }
@media (max-width: 600px) {
  .nav-actions .btn-accent,
  .nav-actions .lang-switch { display: none; }   /* the sticky bar carries the CTA; language moves into the menu */
  .nav-links .nav-lang { display: block; color: var(--accent); font-weight: 700; }
  .brand-name { font-size: 19px; }
}

/* ---------- Hero slider ---------- */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1; position: relative; min-height: 640px;
  opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[dir="rtl"] .slide-img { transform: scaleX(-1); }   /* keeps the technician clear of right-aligned text */
.scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,26,46,.94) 0%, rgba(6,26,46,.8) 36%, rgba(6,26,46,.25) 70%, rgba(6,26,46,.1) 100%);
}
[dir="rtl"] .scrim {
  background: linear-gradient(270deg, rgba(6,26,46,.94) 0%, rgba(6,26,46,.8) 36%, rgba(6,26,46,.25) 70%, rgba(6,26,46,.1) 100%);
}
.slide-content {
  position: relative; display: flex; flex-direction: column; gap: 22px;
  padding-top: 104px; padding-bottom: 156px;
}
.hero-title {
  margin: 0; max-width: 680px; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(38px, 5.4vw, 70px); line-height: 1.03; letter-spacing: -0.025em;
}
:root[lang="ar"] .hero-title { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.3; letter-spacing: 0; }
.hero-text { margin: 0; max-width: 540px; font-size: 19px; color: var(--on-dark-2); }

.slider-controls { position: absolute; left: 0; right: 0; bottom: 28px; }
.slider-controls .container { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.dots { display: flex; align-items: center; gap: 4px; }
.dot {
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.dot span { display: block; width: 10px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.6); transition: width .3s, background .3s; }
.dot[aria-current="true"] span { width: 32px; background: var(--accent); }
.counter { font-family: var(--font-mono); font-size: 13px; color: var(--on-dark); margin-inline-start: 8px; direction: ltr; }
.ctrl-group { display: flex; gap: 8px; }
.ctrl {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--btn-line);
  background: rgba(6,26,46,.6); color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ctrl:hover { background: rgba(6,26,46,.85); }
.ctrl--accent { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.ctrl--accent:hover { background: var(--accent); filter: brightness(1.06); }
.ctrl .icon-play { display: none; }
.ctrl.is-paused .icon-play { display: block; }
.ctrl.is-paused .icon-pause { display: none; }

@media (max-width: 760px) {
  .slide { min-height: 600px; }
  .slide-content { padding-top: 64px; padding-bottom: 132px; }
  .hero-text { font-size: 17px; }
  .scrim, [dir="rtl"] .scrim { background: rgba(6,26,46,.8); }
}

/* ---------- Trust bar ---------- */
.trustbar { background: var(--accent); color: var(--navy); }
.trustbar ul {
  list-style: none; margin: 0 auto; max-width: 1200px; padding: 16px 24px;
  display: flex; flex-wrap: wrap; gap: 10px 40px; font-size: 15px; font-weight: 700;
}
.trustbar li { display: flex; align-items: center; gap: 8px; }

/* ---------- Eyebrows & headings ---------- */
.eyebrow {
  margin: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow--accent { color: var(--accent); }
:root[lang="ar"] .eyebrow { font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.h2 {
  margin: 12px 0 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.02em;
}
:root[lang="ar"] .h2 { font-size: clamp(28px, 3.8vw, 46px); line-height: 1.3; letter-spacing: 0; margin-top: 6px; }
.section { padding-top: 80px; padding-bottom: 80px; }
.section + .section { padding-top: 16px; }   /* avoid a double gap between stacked sections */
.section-head {
  display: flex; flex-wrap: wrap; gap: 16px 48px; justify-content: space-between; align-items: flex-end; margin-bottom: 40px;
}
.section-head > div { max-width: 640px; }
.section-intro { margin: 0; max-width: 420px; color: var(--body); }

/* ---------- AdSense units ----------
   Rendered by src/_includes/partials/ad-slot.njk. The min-heights reserve space so
   ads loading in don't push the content around (layout shift). */
.ad-unit { margin: 40px auto; max-width: 970px; }
.ad-unit--display { min-height: 120px; }
.ad-unit--inArticle { min-height: 180px; }
.ad-unit--multiplex { min-height: 280px; margin-bottom: 64px; }
.ad-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-align: center; margin-bottom: 6px;
}
:root[lang="ar"] .ad-label { font-size: 12px; letter-spacing: 0; }
.ad-box {   /* dev-server preview only */
  min-height: inherit; padding: 0 12px; border: 1px dashed var(--dash); border-radius: 6px; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); font-family: var(--font-mono); font-size: 12px;
}
.ad-unit--display .ad-box { height: 100px; }
.ad-unit--inArticle .ad-box { height: 160px; }
.ad-unit--multiplex .ad-box { height: 260px; }

/* ---------- Service cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-img { width: 100%; height: 210px; object-fit: cover; }
.card-body { padding: 0 28px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-icon {
  width: 56px; height: 56px; margin-top: -28px; position: relative;
  border: 3px solid var(--white); border-radius: 12px; background: var(--navy); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.card { position: relative; }
.card-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.25; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }   /* whole card is clickable */
.card-title a:focus-visible { outline: none; }
.card:has(.card-title a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
:root[lang="ar"] .card-title { line-height: 1.4; }
.card-text { margin: 0; color: var(--body); }
.card-tags { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--divider); font-size: 14px; color: var(--muted); }
.card-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: none; }
.card--dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.card--dark .card-icon { background: var(--accent); color: var(--navy); border-color: var(--navy); }
.card--dark .card-text { color: var(--on-dark); }
.card--dark .card-tags { color: var(--on-dark-muted); border-color: var(--line-dark-2); }
.card--dark .card-link, .card--dark .card-link:hover { color: var(--accent); }

/* ---------- Why us ---------- */
.about { background: var(--white); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.about .container { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.about-media { flex: 1 1 440px; min-width: 0; position: relative; padding-bottom: 48px; padding-inline-end: 48px; }
.about-main { width: 100%; height: 420px; object-fit: cover; border-radius: 14px; }
.about-inset {
  position: absolute; inset-inline-end: 0; bottom: 0; width: 46%; height: 190px; object-fit: cover;
  border-radius: 12px; border: 6px solid var(--white); box-shadow: 0 12px 32px rgba(10,37,64,.18);
}
.about-badge {
  position: absolute; top: 20px; inset-inline-start: 20px; background: var(--navy); color: var(--white);
  border-radius: 10px; padding: 14px 18px; display: flex; flex-direction: column; line-height: 1.25;
}
.about-badge strong { font-family: var(--font-display); font-weight: 900; font-size: 30px; color: var(--accent); }
.about-badge span { font-size: 14px; color: var(--on-dark); }
.about-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-copy .h2 { margin-top: 0; }
.lead { margin: 0; color: var(--body); font-size: 17px; }
:root[lang="ar"] .lead { font-size: 18px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: var(--accent-tint); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.feature strong { display: block; }
.feature span { font-size: 15px; color: var(--muted); }
@media (max-width: 600px) {
  .about-main { height: 300px; }
  .about-inset { height: 140px; }
  .about-media { padding-inline-end: 24px; }
}

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.step { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white);
  font-family: var(--font-display); font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.step-num--accent { background: var(--accent); color: var(--navy); }
.step h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.step p { margin: 0; color: var(--body); }

/* ---------- Maintenance plans ---------- */
.plans {
  color: var(--white); background-color: var(--navy);
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.plans .container { padding-top: 88px; padding-bottom: 88px; }
.plans .section-intro { color: var(--on-dark); }
.plan {
  background: var(--navy-mid); border: 1px solid var(--line-dark-2); border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan-name { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.plan-for { color: var(--on-dark-muted); font-size: 15px; }
.price { font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1.2; }
.price small { font-size: 16px; font-weight: 500; color: var(--on-dark-muted); }
:root[lang="ar"] .price { font-size: 36px; line-height: 1.3; }
.plan ul { margin: 0; padding-inline-start: 20px; color: var(--on-dark-2); display: flex; flex-direction: column; gap: 8px; }
.plan .btn { margin-top: auto; }
.plan--featured { background: var(--white); color: var(--navy); border: 3px solid var(--accent); }
.plan--featured .plan-for, .plan--featured .price small { color: var(--muted); }
.plan--featured ul { color: var(--body); }
.badge {
  background: var(--accent); color: var(--navy); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  padding: 4px 8px; border-radius: 4px; white-space: nowrap;
}
:root[lang="ar"] .badge { font-size: 13px; font-weight: 700; letter-spacing: 0; padding: 2px 10px; }

/* ---------- Guide cards ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 24px; margin-top: 32px; }
.guide-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.guide-card:hover { border-color: var(--input); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.guide-card img { width: 100%; height: 180px; object-fit: cover; }
.guide-card-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.guide-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
:root[lang="ar"] .guide-meta { font-size: 13px; font-weight: 600; letter-spacing: 0; }
.guide-title { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.25; color: var(--navy); }
:root[lang="ar"] .guide-title { line-height: 1.5; }
.guide-text { color: var(--body); font-size: 15px; }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.emergency-card {
  background: var(--navy); color: var(--white); border-radius: var(--radius); border-top: 6px solid var(--accent);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.emergency-card h2 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 1.2; }
:root[lang="ar"] .emergency-card h2 { line-height: 1.4; }
.emergency-card p { margin: 0; color: var(--on-dark); }
.side-list { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; display: flex; flex-direction: column; }
.side-list h2 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.side-list a {
  display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; min-height: 44px;
  border-top: 1px solid var(--divider); font-weight: 600; text-decoration: none;
}

/* ---------- Request form ---------- */
.request-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.request-intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.request-intro .h2 { margin-top: 0; }
.request-intro > p { margin: 0; color: var(--body); }
.contact-list { margin: 0; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 16px; }
.contact-list div { display: flex; gap: 14px; }
.contact-list dt { width: 72px; flex-shrink: 0; font-family: var(--font-mono); font-size: 13px; color: var(--muted); padding-top: 2px; }
:root[lang="ar"] .contact-list dt { width: 96px; font-size: 14px; font-weight: 600; }
.contact-list dd { margin: 0; }
.contact-list a { font-weight: 700; text-decoration: none; }

.form-card {
  flex: 2 1 560px; min-width: 0; background: var(--white); border: 1px solid var(--border); border-top: 6px solid var(--accent);
  border-radius: 14px; padding: clamp(20px, 4vw, 40px); box-shadow: 0 8px 24px rgba(10,37,64,.06);
}
.request-form { display: flex; flex-direction: column; gap: 24px; }
.chips { border: 0; margin: 0; padding: 0; }
.chips legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--input); background: var(--white); color: var(--navy); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.chip input:hover + span { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.field {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--input); border-radius: 8px;
  font: inherit; font-size: 16px; color: var(--navy); background: var(--white);
}
.field:focus { outline: 3px solid var(--navy); outline-offset: 1px; }
textarea.field { min-height: 112px; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--body); }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--navy); }
.form-footer {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding-top: 20px; border-top: 1px solid var(--divider);
}
.form-note { font-size: 14px; color: var(--muted); }
.form-error { margin: 0; padding: 12px 14px; border-radius: 8px; background: #FDECEC; color: #8A1C1C; font-size: 15px; }
.hp-field { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 24px 0; }
.form-success:focus { outline: none; }
.form-success h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 30px; }
.form-success p { margin: 0; color: var(--body); max-width: 480px; }
.success-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- FAQ ---------- */
.faq { background: var(--bg-alt); border-top: 1px solid var(--border); }
.faq .container { max-width: 900px; padding-top: 80px; padding-bottom: 80px; }
.faq-list { margin-top: 32px; border-top: 1px solid var(--faq-line); }
.faq details { border-bottom: 1px solid var(--faq-line); padding: 20px 0; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px;
  font-weight: 700; font-size: 18px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.plus { flex-shrink: 0; font-size: 26px; font-weight: 400; transition: transform .2s; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--body); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-dark-muted); font-size: 15px; border-top: 4px solid var(--accent); }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px 64px; padding-top: 64px; padding-bottom: 32px; }
.footer-about { flex: 2 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-about p { margin: 0; max-width: 360px; }
.footer-col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { margin: 0; color: var(--white); font-family: var(--font-body); font-size: 16px; font-weight: 700; }
.footer-about address { font-style: normal; line-height: 1.8; }
.footer-bottom { border-top: 1px solid var(--line-dark); }
.footer-bottom .container {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding-top: 20px; padding-bottom: 32px; font-size: 13px;
}

/* ---------- Sticky mobile call bar ---------- */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px; background: var(--navy-deep); border-top: 1px solid var(--line-dark);
  }
  .mobile-cta .btn { flex: 1; }
  .footer-bottom .container { padding-bottom: 96px; }
}

/* ---------- Inner page headers ---------- */
.page-head, .article-head, .page-hero { background: var(--navy); color: var(--white); }
.page-head { border-bottom: 4px solid var(--accent); }
.page-head .container, .article-head .container-narrow {
  padding-top: 36px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 14px;
}
.page-title {
  margin: 0; max-width: 900px; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.02em;
}
:root[lang="ar"] .page-title { line-height: 1.4; letter-spacing: 0; }
.page-title--sm { font-size: clamp(24px, 3vw, 32px); }
.page-lead { margin: 0; max-width: 720px; font-size: 18px; color: var(--on-dark-2); }
.page-updated { margin: 0; font-size: 14px; color: var(--on-dark-muted); }

.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; font-size: 14px; }
.breadcrumbs li { display: flex; align-items: center; color: var(--on-dark-muted); }
.breadcrumbs li + li::before { content: "/"; margin-inline: 10px; color: var(--btn-line); }
.breadcrumbs a { color: var(--on-dark); text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--white); }

/* Service page hero: copy + photo */
.page-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center;
  padding-top: 36px; padding-bottom: 56px;
}
.page-hero-copy { display: flex; flex-direction: column; gap: 16px; }
.page-hero-copy .btn-row { margin-top: 8px; }
.page-hero-media img { width: 100%; height: 380px; object-fit: cover; border-radius: 14px; }
@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-hero-media img { height: 240px; }
}

/* ---------- Long-form text (articles, services, legal) ---------- */
.container-narrow { max-width: 820px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.page-body { padding-top: 48px; padding-bottom: 80px; }
.prose { color: var(--body); font-size: 17px; line-height: 1.75; }
:root[lang="ar"] .prose { font-size: 18px; line-height: 1.95; }
.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 1.1em; }
.prose h2 {
  margin: 1.9em 0 0.6em; font-family: var(--font-display); font-weight: 800; color: var(--navy);
  font-size: clamp(24px, 2.6vw, 30px); line-height: 1.25; scroll-margin-top: 100px;
}
.prose h3 { margin: 1.5em 0 0.5em; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--navy); }
:root[lang="ar"] .prose h2, :root[lang="ar"] .prose h3 { line-height: 1.55; }
.prose > :first-child, .prose > .ad-unit:first-child + h2 { margin-top: 0; }
.prose strong { color: var(--navy); }
.prose a { color: var(--navy); font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: start; vertical-align: top; }
.prose th { background: var(--bg-alt); color: var(--navy); }
.prose blockquote {
  margin: 1.4em 0; padding: 16px 20px; background: var(--accent-tint); border-inline-start: 4px solid var(--accent);
  border-radius: 8px; color: var(--navy);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .ad-unit { margin: 2.2em 0; }

/* Text column + sticky sidebar (service pages) */
.content-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start;
  padding-top: 64px; padding-bottom: 64px;
}
.content-layout .sidebar { position: sticky; top: 96px; }
@media (max-width: 960px) {
  .content-layout { grid-template-columns: 1fr; gap: 40px; }
  .content-layout .sidebar { position: static; }
}

/* ---------- Articles ---------- */
.article-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--on-dark-muted); }
.article-figure { margin: 32px 0; }
.article-figure img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow-md); }
.toc { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.toc h2 { margin: 0 0 10px; font-family: var(--font-body); font-size: 16px; font-weight: 700; color: var(--navy); }
.toc ol { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 6px; }
.toc a { color: var(--body); text-decoration: none; }
.toc a:hover { color: var(--navy); text-decoration: underline; }
.help-card {
  margin-top: 48px; background: var(--navy); color: var(--white); border-radius: 14px; border-top: 6px solid var(--accent);
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.help-card h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 900; font-size: 24px; }
.help-card p { margin: 0; color: var(--on-dark); }
.related { padding-top: 56px; padding-bottom: 24px; }

/* ---------- Riyadh conditions tiles ---------- */
.section--tight { padding-top: 16px; }
.tile {
  background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 12px; color: var(--navy); text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}
.tile:hover { color: var(--navy); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tile-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.tile-text { color: var(--body); }
.tile .card-link { margin-top: auto; }

.content-layout--flush { padding-top: 0; padding-bottom: 0; }
.container .container-narrow { padding-left: 0; padding-right: 0; }

/* ---------- Service areas ---------- */
.areas-intro { margin-bottom: 48px; }
.areas-heading { margin-bottom: 24px; }
.areas-note { margin: 20px 0 0; color: var(--muted); }
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.area-group { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.area-group h3 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.area-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.area-list li { padding: 6px 12px; border-radius: 999px; background: var(--bg-alt); font-size: 14px; font-weight: 600; color: var(--navy); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.contact-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.contact-card h2 { margin: 0; font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
:root[lang="ar"] .contact-card h2 { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.contact-card .contact-value { font-family: var(--font-display); font-size: 21px; font-weight: 800; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.contact-card .contact-value--email { font-size: 17px; }
.contact-card p { margin: 0; color: var(--body); font-size: 15px; }
.map-embed { margin-top: 20px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }
@media (max-width: 600px) { .map-embed iframe { height: 300px; } }

/* ---------- 404 ---------- */
.notfound { padding-top: 64px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 16px; }
.notfound p { margin: 0; color: var(--body); }
.notfound-code { font-family: var(--font-display); font-size: 96px; font-weight: 900; line-height: 1; color: var(--accent) !important; }
.notfound hr { width: 100%; margin: 32px 0 16px; border: 0; border-top: 1px solid var(--border); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
