/* ═══════════════ Service sub-page ═══════════════
   Shared by the eight service sub-pages (/services/* and /ar/services/*), and
   loaded after style.css by them only. Bump its ?v= in all eight on any change.
   Solid colours use the role tokens
   (--bg-dark, --silver, --bg-card…); the only exceptions are the rgba() fade
   stops (tokens can't carry alpha) and #dde3ea, the soft off-white emphasis
   over navy that has no token. Every surface/text colour has a dark counterpart.
   Spacing is deliberately tighter than the live pages (owner: "compress"). */

.svc-page section { padding: 44px 0; }
.svc-page .svc-intro { padding-top: 112px; padding-bottom: 40px; }
.svc-page .alt { background: var(--bg-alt); }

/* ── Breadcrumb ── */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 14px;
  list-style: none;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--orange); }
.crumbs li + li::before { content: '‹'; margin-inline-end: 8px; color: var(--orange); }
html[dir="ltr"] .crumbs li + li::before { content: '›'; }   /* English twin: the trail reads left → right */
.crumbs [aria-current] { color: var(--heading); font-weight: 600; }

/* ── Hero banner: photo melting into navy (owner-approved 23 Sep 2026) ──
   Three layers: the photo, a navy→clear gradient over it, and a faint
   network globe on the seam. Text sits on the solid navy side. On phones
   the same layers stack: photo on top, fading downward into the navy. */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-dark);
  color: var(--silver);
}
/* Offsets are written longhand (top/right/bottom/left), never as `inset`: browsers
   before Safari 14.1 (old iPhones, old Macs) ignore `inset`, and this photo then
   lands on the wrong side, under the text, with no fade. Same for every layer below. */
.hero-photo {
  position: absolute;
  top: 0; right: auto; bottom: 0; left: 0;
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 78%;
}
.hero-fade {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to left,
    var(--bg-dark) 0%, var(--bg-dark) 40%,
    rgba(13,27,42,.88) 50%, rgba(13,27,42,.45) 64%, rgba(13,27,42,0) 80%);
}
.hero-net {
  position: absolute;
  top: 50%;
  left: 22%;
  width: 400px;
  height: 400px;
  transform: translateY(-50%);
  opacity: .3;
  pointer-events: none;
}
.hero-body { position: relative; width: 52%; padding: 44px 48px; }
.hero h1 { font-size: 2rem; color: var(--orange); line-height: 1.35; margin-bottom: 16px; }
.hero p { font-size: .98rem; line-height: 1.85; margin-bottom: 22px; }
.hero p.hero-def { font-size: .9rem; color: #dde3ea; opacity: .85; margin-top: -10px; }
.hero-icons { display: flex; gap: 26px; margin-bottom: 26px; list-style: none; }
.hero-icons:last-child { margin-bottom: 0; }
.hero-icons li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: var(--on-dark);
}
.hero-icons svg { width: 34px; height: 34px; }

/* ── Section headings ── */
.block-head { text-align: center; margin-bottom: 24px; }
.block-head h2 {
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  color: var(--heading);
  margin-bottom: 6px;
}
.block-head p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: .95rem; }

/* ── Scope: three cards (two or four with a modifier), photo on top ── */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.scope-grid.two { grid-template-columns: repeat(2, 1fr); }
.scope-grid.four { grid-template-columns: repeat(4, 1fr); }
.scope-grid.four .scope-card img { aspect-ratio: 4 / 3; }
/* The truck photo (truck-road, quarry page) arrives with a white drop-shadow frame baked in;
   a slight zoom pushes it outside the card (display-only, file untouched). */
.scope-card img.trim { transform: scale(1.08); }
/* Cards share the hub's blend look (owner, 27 Sep 2026): one navy card, the
   photo melting into the text through a 70px gradient that reaches solid
   navy exactly at the photo's last pixel. */
.scope-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.scope-card img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.scope-text {
  position: relative;
  flex: 1;
  margin-top: -70px;
  padding: 88px 20px 20px;
  background: linear-gradient(to bottom, rgba(13,27,42,0) 0, rgba(13,27,42,.2) 28px, rgba(13,27,42,.55) 46px, rgba(13,27,42,.85) 60px, var(--bg-dark) 70px);
}
.scope-card h3 { font-size: 1.1rem; color: var(--orange); margin-bottom: 6px; }
/* Long titles: reserve two lines so the text below starts level in all three cards (desktop only) */
.scope-grid.two-line h3 { line-height: 1.5; min-height: 3em; }
.scope-card p { color: var(--silver); font-size: .92rem; line-height: 1.75; }

/* ── Method: numbered steps on a line ── */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  list-style: none;
  counter-reset: step;
  position: relative;
}
.steps::before {                 /* the connecting line behind the dots */
  content: '';
  position: absolute;
  top: 19px;
  inset-inline: 10%;
  height: 2px;
  background: rgba(249,115,22,.35);
}
.steps li { text-align: center; position: relative; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--on-dark);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  position: relative;
}
.steps h3 { font-size: 1rem; color: var(--heading); margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: .86rem; line-height: 1.65; }

/* ── Method strip: full-width orange band, like the homepage counters ──
   Colours invert inside it: white dots/line/text over orange. The orange
   stays fully saturated in dark mode too (owner decision for the counters). */
.svc-page .method { padding-bottom: 44px; }
/* An orange rectangle as wide as the content (owner, 27 Sep 2026), not a full-width band */
.method-strip > .container {
  max-width: min(1152px, calc(100% - 48px));
  background: var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 24px;
}
.method-strip .steps::before { background: rgba(255,255,255,.45); }
.method-strip .steps li::before { background: var(--on-dark); color: var(--orange); }
.method-strip .steps h3 { color: var(--on-dark); }
.method-strip .steps p { color: var(--on-dark); opacity: .92; }

/* ── Photo strip under the method ── */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.photo-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* ── Experience + eligibility, side by side ── */
.duo {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.exp-band {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 28px 30px;
  color: var(--silver);
}
.exp-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.exp-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}
.exp-band h2 { color: var(--on-dark); font-size: 1.2rem; line-height: 1.5; }
.exp-band p { line-height: 1.85; font-size: .93rem; }

/* ── Fleet band (quarry): the hero's blend, mirrored — photo on the right,
   text on the solid navy left. Phones stack photo over text. ── */
.fleet-band {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 340px;
  border-radius: var(--radius);
  background: var(--bg-dark);
  color: var(--silver);
}
.fleet-photo {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: auto;
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 60%;
}
.fleet-fade {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to right,
    var(--bg-dark) 0%, var(--bg-dark) 40%,
    rgba(13,27,42,.88) 50%, rgba(13,27,42,.45) 64%, rgba(13,27,42,0) 80%);
}
.fleet-body {
  position: relative;
  width: 52%;
  margin-inline-start: auto;   /* RTL: pushes the text block to the left */
  padding: 40px 44px;
}
.fleet-body h2 { color: var(--on-dark); font-size: 1.5rem; line-height: 1.4; }
.fleet-body h2::after { content: ''; display: block; width: 48px; height: 3px; margin-top: 10px; background: var(--orange); border-radius: 2px; }
.fleet-body p { font-size: .95rem; line-height: 1.85; margin: 16px 0 26px; }
.fleet-icons { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: center; }
.fleet-icons svg { display: block; width: 38px; height: 38px; margin: 0 auto 8px; color: var(--orange); }
.fleet-icons span { font-size: .82rem; font-weight: 600; color: var(--on-dark); }
/* Civil variant: the +25 counter sits beside a smaller heading (the counter is the star) */
.fleet-body .exp-head h2 { font-size: 1.2rem; line-height: 1.5; }
@media (max-width: 900px) {
  .fleet-band { display: block; min-height: 0; }
  .fleet-photo { position: relative; top: auto; right: auto; bottom: auto; left: auto; width: 100%; height: 220px; }
  .fleet-fade { top: 0; right: 0; bottom: auto; left: 0; height: 220px; background: linear-gradient(to top, var(--bg-dark) 0%, rgba(13,27,42,0) 45%); }
  .fleet-body { width: auto; margin: 0; padding: 4px 20px 26px; }
  .fleet-icons { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
}

/* Eligibility card — dark, paired with the experience band (like the
   mission/vision pair on the Why page; owner decision 23 Sep 2026) */
.elig-card {
  background: var(--bg-dark);
  border-radius: var(--radius);
  border-top: 4px solid var(--orange);
  padding: 24px 26px;
  color: var(--silver);
}
.elig-card h2 { font-size: 1.2rem; color: var(--on-dark); margin-bottom: 12px; }
.elig-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.elig-list li {
  position: relative;
  padding-inline-start: 22px;
  color: var(--silver);
  font-size: .92rem;
  line-height: 1.7;
}
.elig-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}
/* Emphasis stays soft: a few key words only, off-white at 600 — full white
   bold lines glared against the navy (owner, 23 Sep 2026). */
.elig-list strong { color: #dde3ea; font-weight: 600; }

/* ── Contact bar: orange rectangle — icon at the start, sentence in the
      middle, button at the end (right → left in Arabic) ──
   ⚠️ Copied into services-grid.css for the hub (the two files stay separate
      on purpose): change it in BOTH files. */
.cta-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  background: var(--orange);
  border-radius: var(--radius);
  padding: 22px 28px;
  color: var(--on-dark);
}
.cta-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-icon svg { width: 36px; height: 36px; }
.cta-bar p {
  flex: 1;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
}
.cta-btn {
  flex-shrink: 0;
  background: var(--on-dark);
  color: var(--orange);
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform var(--trans), box-shadow var(--trans);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }

/* ── Rental page ── */
.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.opt-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  align-items: start;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.opt-card svg {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  padding: 9px;
  border-radius: 12px;
  background: rgba(249,115,22,.12);
  color: var(--orange);
}
/* Same white background as the "how to rent" section below: drop the doubled gap */
.svc-page .opt-sec { padding-bottom: 0; }
.opt-card h3 { font-size: 1.05rem; color: var(--heading); margin-bottom: 2px; }
.opt-card p { color: var(--muted); font-size: .9rem; line-height: 1.7; }

/* «اطلب آلية الآن» jumps here: stop the box below the fixed header (86px desktop, 109px phone)
   instead of under it — the section's 44px padding + 82px lands it 40px / 17px clear */
#rent-request { scroll-margin-top: 82px; }

/* Request box: navy, photo on the right melting into the form («أسلوب الدمج», owner, 27 Sep 2026) */
.rent-box {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--orange);
}
.rent-media { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 50%; }
.rent-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; display: block; }
.rent-fade { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(to right, var(--bg-dark) 0%, var(--bg-dark) 6%, rgba(13,27,42,0) 60%); }
.rent-main { position: relative; width: 56%; margin-inline-start: auto; padding: 32px 32px 32px 36px; }
.rent-intro { margin-bottom: 18px; }
.rent-intro h2 { font-size: 1.4rem; color: var(--on-dark); margin-bottom: 10px; }
.rent-intro p { color: var(--silver); line-height: 1.85; margin-bottom: 12px; }
.rent-alt { font-size: .9rem; }
.rent-alt a { color: var(--orange); font-weight: 600; }
.rent-form { padding: 0; box-shadow: none; gap: 14px; background: transparent; }   /* sits inside .rent-box, not a card of its own */
/* main.js fades in every .contact-form; this one sits inside a static navy box, so it stays put */
.rent-form.fade-up { opacity: 1; transform: none; transition: none; }
.rent-form label { display: block; font-size: .85rem; font-weight: 600; color: var(--on-dark); }
.rent-form label > select,
.rent-form label > input,
.rent-form label > textarea { margin-top: 6px; }
/* Nothing picked yet: the prompt («اختر الآلية») reads as a hint, not an answer — same grey as
   the contact page's service list. Pure CSS (a required select is :invalid while empty), so it
   needs no script; the real choices keep the normal text colour inside the open list. */
.rent-form select:invalid { color: var(--muted); }
.rent-form select option:not([disabled]) { color: var(--text); }
.rent-btn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.rent-btn svg { width: 20px; height: 20px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .scope-grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; }
  /* Hero: photo on top, fading down into the navy */
  .hero-photo { position: relative; width: 100%; height: 230px; display: block; object-position: 50% 80%; }
  .hero-fade { background: linear-gradient(to bottom, rgba(13,27,42,0) 0, rgba(13,27,42,0) 120px, rgba(13,27,42,.7) 185px, var(--bg-dark) 230px); }
  .hero-net { top: 150px; left: -60px; width: 260px; height: 260px; transform: none; opacity: .22; }
  .hero-body { width: auto; padding: 0 20px 24px; margin-top: -10px; }
  .hero h1 { font-size: 1.45rem; }
  .hero p { font-size: .92rem; }
  .hero-icons { justify-content: space-between; gap: 6px; }
  .hero-icons svg { width: 30px; height: 30px; }
  .hero-icons li { font-size: .72rem; }
  .scope-grid, .scope-grid.two, .scope-grid.four { grid-template-columns: 1fr; }
  .scope-grid.two-line h3 { min-height: 0; }
  .scope-grid.four .scope-card img { aspect-ratio: 16 / 9; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps::before { top: 0; bottom: 0; inset-inline-start: 19px; inset-inline-end: auto; width: 2px; height: auto; }
  .steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; text-align: start; }
  .steps li::before { margin: 0; grid-row: span 2; }
  .exp-band { padding: 24px 20px; }
  .opt-grid { grid-template-columns: 1fr; }
  .rent-media { position: relative; width: 100%; height: 220px; }
  .rent-fade { background: linear-gradient(to top, var(--bg-dark) 0%, rgba(13,27,42,0) 55%); }
  .rent-main { width: auto; margin: 0; padding: 4px 20px 24px; }
  .cta-bar { flex-direction: column; text-align: center; gap: 14px; padding: 24px 20px; }
}
@media (max-width: 768px) {
  .svc-page .svc-intro { padding-top: 132px; }   /* taller mobile header */
}

/* ── English twin (LTR): every block keeps its Arabic position — only the text changes ──
   Owner rule (28 Sep 2026, as on the live site: «مواضع البطاقات مقفلة بين اللغتين»).
   The layout boxes stay RTL, so cards, steps, icons and the blend sections sit exactly
   where they do in Arabic; only the text inside them reads LTR. Replaces the earlier
   mirroring of the hero / fleet band / rent box (cancelled by the owner the same day).
   html[dir] (not [dir]) because the header carries dir="ltr" on Arabic pages. */
html[dir="ltr"] :is(.hero, .hero-icons, .scope-grid, .steps, .photo-strip, .duo,
                    .fleet-band, .fleet-icons, .opt-grid, .rent-box, .cta-bar) { direction: rtl; }
html[dir="ltr"] :is(.hero-body, .hero-icons > li, .scope-card, .steps h3, .steps p, .duo > *,
                    .fleet-body > :not(.fleet-icons), .fleet-icons span, .opt-card h3, .opt-card p,
                    .rent-main > *, .cta-bar p, .cta-btn) { direction: ltr; }

/* ── Dark mode ── */
@media (prefers-color-scheme: dark) {
  .hero { box-shadow: 0 0 0 1px rgba(255,255,255,.07); }
  .hero-photo, .scope-card img, .photo-strip img { filter: brightness(.9); }
  .opt-card svg { background: rgba(249,115,22,.16); }
  .exp-band, .elig-card, .fleet-band { box-shadow: 0 0 0 1px rgba(255,255,255,.07); }
  .fleet-photo { filter: brightness(.9); }
  .rent-box { background: var(--bg-card); box-shadow: 0 0 0 1px rgba(255,255,255,.07); }
  .rent-fade { background: linear-gradient(to right, var(--bg-card) 0%, var(--bg-card) 6%, rgba(26,46,68,0) 60%); }
  .rent-media img { filter: brightness(.9); }
  /* The fields took the box's own colour (#1a2e44 on #1a2e44) and all but vanished:
     sink them to the deeper navy with a clearer edge, so each one reads as a field */
  .rent-form :is(input, select, textarea) { background: var(--bg-dark); border-color: rgba(255,255,255,.22); }
  .rent-form select:invalid { color: #9fadbd; }   /* same hint grey as the notes box's placeholder */
  .scope-card { background: var(--bg-card); box-shadow: 0 0 0 1px rgba(255,255,255,.07); }
  .scope-text { background: linear-gradient(to bottom, rgba(26,46,68,0) 0, rgba(26,46,68,.2) 28px, rgba(26,46,68,.55) 46px, rgba(26,46,68,.85) 60px, var(--bg-card) 70px); }
}
@media (prefers-color-scheme: dark) and (max-width: 900px) {
  .rent-fade { background: linear-gradient(to top, var(--bg-card) 0%, rgba(26,46,68,0) 55%); }
}
