/* ==========================================================================
   Junk Removal Team Dubai — frontend styles
   Colours sampled from docs/design-reference/homepage-desktop.png.png
   Logical properties used throughout so the Arabic RTL build needs no fork.
   ========================================================================== */

:root {
  /* Brand — sampled from the approved design */
  --navy-900: #052841;
  --navy-850: #062A44;
  --navy-800: #072E4A;
  --navy-700: #073458;
  --navy-600: #0A3F63;
  --teal: #03717E;
  --teal-dark: #05606B;
  --green: #098065;
  --green-dark: #07745B;
  --whatsapp: #117D42;
  --whatsapp-dark: #0D6836;
  --gold: #FFC631;
  --star: #FEBA1D;

  --text: #16202B;
  --text-muted: #55636F;
  --on-dark: #FFFFFF;
  --on-dark-muted: #B9C7D4;
  --surface: #FFFFFF;
  --bg-light: #F6F9FB;
  --border: #E1E8ED;
  --border-input: #CBD5DD;

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;
  --font-head-ar: "Tajawal", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-body-ar: "Tajawal", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgb(6 42 68 / .08);
  --shadow: 0 6px 20px rgb(6 42 68 / .10);
  --shadow-lg: 0 18px 40px rgb(6 42 68 / .18);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  overflow-x: hidden;
}
img, svg, video { display: block; max-inline-size: 100%; }
img { block-size: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .75rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 1rem; inset-block-start: -5rem; z-index: 200; background: #fff; color: var(--navy-800); padding: .75rem 1.25rem; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { inset-block-start: 1rem; }
.container { max-inline-size: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.icon { inline-size: 1.15em; block-size: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-block-size: 48px; padding: .7rem 1.4rem; border: 2px solid transparent;
  border-radius: var(--radius); font-family: var(--font-head); font-weight: 600; font-size: .975rem;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-phone { background: var(--green-dark); color: #fff; }
.btn-phone:hover { background: var(--green); color: #fff; }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: var(--whatsapp-dark); color: #fff; }
.btn-ghost { border-color: rgb(255 255 255 / .8); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgb(255 255 255 / .12); color: #fff; }
.btn-white { background: #fff; color: var(--navy-800); }
.btn-white:hover { background: var(--bg-light); color: var(--navy-800); }
.btn-block { inline-size: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-800); color: var(--on-dark-muted); font-size: .825rem; }
.topbar .container { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; min-block-size: 40px; }
.topbar a { color: var(--on-dark-muted); display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: #fff; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: .4rem; }
.topbar .tb-right { margin-inline-start: auto; display: inline-flex; align-items: center; gap: .5rem; }
.topbar .lang a.is-active { color: #fff; font-weight: 600; }
.topbar .sep { opacity: .45; }
/* Top bar carries social icons + language switch only, on every screen */
.topbar .tb-social { display: inline-flex; gap: .4rem; }
.topbar .tb-social a {
  inline-size: 30px; block-size: 30px; border-radius: 50%;
  display: grid; place-items: center; color: var(--on-dark-muted);
  border: 1px solid rgb(255 255 255 / .22); background: transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.topbar .tb-social a:hover { background: rgb(255 255 255 / .12); color: #fff; border-color: rgb(255 255 255 / .45); }
.topbar .tb-social .icon { inline-size: .95rem; block-size: .95rem; fill: currentColor; stroke: none; }
@media (max-width: 767px) { .topbar .container { min-block-size: 46px; gap: .75rem; } }

/* ---------- Header ---------- */
.site-header { position: sticky; inset-block-start: 0; z-index: 100; background: #fff; border-block-end: 1px solid var(--border); }
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-block-size: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; margin-inline-end: auto; color: var(--navy-800); }
/* Desktop: equal side columns put the nav in the true centre */
@media (min-width: 1024px) {
  .brand { flex: 1 1 0; margin-inline-end: 0; }
  .main-nav { flex: 0 0 auto; }
  .header-cta { flex: 1 1 0; justify-content: flex-end; }
}
.brand-mark { inline-size: 46px; block-size: 46px; flex: none; }
.brand-logo { block-size: 60px; inline-size: auto; max-inline-size: 290px; object-fit: contain; }
.site-footer .brand-logo { block-size: 68px; max-inline-size: 320px; }
@media (max-width: 1279px) { .brand-logo { block-size: 50px; max-inline-size: 230px; } }
@media (max-width: 480px) { .brand-logo { block-size: 44px; max-inline-size: 200px; } }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.05; letter-spacing: .01em; color: var(--navy-800); }
.brand-text span { display: block; color: var(--green); }
.brand-text small { display: block; font-size: .5rem; font-weight: 500; letter-spacing: .12em; color: var(--text-muted); margin-block-start: .25rem; }

.main-nav > ul { display: flex; align-items: center; gap: .25rem; }
.main-nav a { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .7rem; color: var(--navy-800); font-weight: 500; font-size: .94rem; border-radius: var(--radius-sm); white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .main-nav a { padding: .5rem .45rem; font-size: .86rem; }
  .brand-text { font-size: .95rem; }
  .brand-text small { display: none; }
}
.main-nav a:hover { color: var(--teal); background: var(--bg-light); }
.main-nav a.is-active { color: var(--navy-800); font-weight: 600; position: relative; }
.main-nav a.is-active::after { content: ""; position: absolute; inset-block-end: .15rem; inset-inline: .7rem; block-size: 3px; border-radius: 2px; background: var(--gold); }
.main-nav .caret { inline-size: .7em; block-size: .7em; }
.header-cta { display: inline-flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; inline-size: 48px; block-size: 48px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--navy-800); cursor: pointer; }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; inset-inline: 0; inset-block-start: 100%; background: #fff; border-block: 1px solid var(--border); box-shadow: var(--shadow); padding: .75rem var(--gutter) 1.25rem; display: none; }
  .main-nav[data-open="true"] { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { min-block-size: 50px; font-size: 1rem; }
  .main-nav a.is-active::after { inset-inline: .7rem auto; inline-size: 22px; }
  /* Design shows the full green call button on mobile, not just an icon.
     min-inline-size:0 lets it shrink instead of pushing the page wider. */
  .header-cta { min-inline-size: 0; flex: 1 1 auto; justify-content: flex-end; }
  .header-cta .btn-phone.header-desktop-only {
    display: inline-flex; min-block-size: 44px; padding-inline: .8rem; font-size: .88rem;
    min-inline-size: 0; flex: 0 1 auto; overflow: hidden;
  }
  .header-actions a.icon-btn.header-mobile-only { display: none; }
  .brand { margin-inline-end: .5rem; min-inline-size: 0; flex: 0 1 auto; }
  .site-header .container { position: relative; }
}
@media (max-width: 420px) {
  .header-cta .btn-phone.header-desktop-only { padding-inline: .6rem; font-size: .76rem; gap: .3rem; }
  .brand-logo { block-size: 38px; max-inline-size: 150px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy-850); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(6 42 68 / .97) 0%, rgb(6 42 68 / .92) 32%, rgb(6 42 68 / .55) 58%, rgb(6 42 68 / .15) 100%),
    linear-gradient(180deg, rgb(6 42 68 / .35) 0%, transparent 35%);
}
.hero-inner { padding-block: clamp(3rem, 7vw, 5.5rem); max-inline-size: 640px; }
.hero .eyebrow { display: block; font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-block-end: .9rem; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.5rem); font-weight: 700; margin-block-end: 1rem; }
.hero p.lead { font-size: clamp(1rem, .97rem + .2vw, 1.1rem); color: #DCE6EE; max-inline-size: 34rem; margin-block-end: 1.6rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-block-start: 2rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: .55rem; font-size: .92rem; font-weight: 500; }
.hero-trust .icon { inline-size: 1.4rem; block-size: 1.4rem; color: var(--gold); }

/* Social proof under the hero buttons */
.hero-proof { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; margin-block-start: 1.6rem; }
.hero-proof img { block-size: 46px; inline-size: auto; }
.hero-proof strong { display: block; font-family: var(--font-head); font-size: 1rem; color: #fff; line-height: 1.3; }
.hero-proof .rating-row { display: flex; align-items: center; gap: .45rem; }
.hero-proof .stars-inline { display: inline-flex; gap: .1rem; color: var(--star); }
.hero-proof .stars-inline .icon { inline-size: 1rem; block-size: 1rem; fill: currentColor; stroke: none; }
.hero-proof .rating { font-size: .88rem; color: var(--on-dark-muted); }

/* Google review card — sits at the hero's bottom corner, opposite the customer rating */
.hero-google {
  position: absolute; inset-block-end: clamp(4.5rem, 9vw, 6.5rem); inset-inline-end: var(--gutter);
  z-index: 4; inline-size: clamp(230px, 22vw, 290px);
}
.hero-google img { inline-size: 100%; block-size: auto; filter: drop-shadow(0 10px 24px rgb(6 42 68 / .35)); }
@media (max-width: 1100px) {
  /* Not enough room beside the truck: drop it under the rating instead */
  .hero-google { position: static; inline-size: 230px; margin-block-start: 1.25rem; }
  .hero-google img { filter: none; }
}

/* Feature bar: sits half over the hero, half over the services section */
.feature-bar { position: relative; z-index: 5; margin-block-start: -3.25rem; }
.feature-list { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.35rem 1.6rem; }
.feature-item { display: flex; align-items: center; gap: .7rem; }
.feature-icon { inline-size: 42px; block-size: 42px; border-radius: 50%; background: #E8F5EF; color: var(--green); display: grid; place-items: center; flex: none; }
.feature-icon .icon { inline-size: 1.25rem; block-size: 1.25rem; }
.feature-item strong { display: block; font-family: var(--font-head); font-size: .97rem; color: var(--navy-800); line-height: 1.25; }
.feature-item span { font-size: .85rem; color: var(--text-muted); }
@media (max-width: 1100px) { .feature-list { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; } }
@media (max-width: 720px) { .feature-list { grid-template-columns: repeat(2, 1fr); padding: 1.1rem; } .feature-bar { margin-block-start: -2rem; } }
@media (max-width: 460px) {
  .feature-list { grid-template-columns: repeat(2, 1fr); gap: .85rem; padding: .95rem; }
  .feature-bar { margin-block-start: -1.25rem; }
  .feature-icon { inline-size: 34px; block-size: 34px; }
  .feature-icon .icon { inline-size: 1.05rem; block-size: 1.05rem; }
  .feature-item strong { font-size: .82rem; }
  .feature-item span { font-size: .72rem; }
}
.hero-script { position: absolute; inset-block-start: 2.2rem; inset-inline-end: 3rem; font-family: var(--font-script); font-size: 2rem; line-height: 1.1; color: #fff; text-align: center; text-shadow: 0 2px 10px rgb(0 0 0 / .35); }
.hero-script::after { content: ""; display: block; block-size: 4px; border-radius: 3px; background: #2BA84A; margin-block-start: .35rem; }
@media (max-width: 1100px) { .hero-script { font-size: 1.2rem; inset-block-start: 1.1rem; inset-inline-end: 1rem; } }
@media (max-width: 480px) { .hero-script { font-size: .95rem; inset-block-start: .9rem; inset-inline-end: .7rem; } }

/* ---------- Service cards strip ---------- */
.services { background: var(--bg-light); padding-block: clamp(2.25rem, 4.5vw, 3.25rem); }
/* Services heading stacks (no side button), unlike the projects/reviews heads */
.services .section-head { display: block; max-inline-size: 46rem; margin-block-end: clamp(1.25rem, 3vw, 1.75rem); }
.services .section-head h2 { margin-block-end: .5rem; }
.services .section-head p { color: var(--text-muted); font-size: var(--fs-400); margin: 0; }

/* Continuously scrolling services slider.
   The track holds two identical groups, so shifting it by exactly 50% loops seamlessly.
   Track gap and group gap must stay equal for the seam to line up. */
.marquee {
  overflow: hidden; padding-block: .5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.marquee-track { display: flex; gap: 1rem; inline-size: max-content; animation: marquee-ltr 90s linear infinite; will-change: transform; }
.marquee-group { display: flex; gap: 1rem; flex: none; }
.marquee .service-card { inline-size: 250px; flex: none; }
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee-ltr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 640px) {
  .marquee .service-card { inline-size: 215px; }
  .marquee-track { animation-duration: 64s; }
}
/* Owner's decision: the slider keeps moving for everyone (no scrollbar fallback).
   Reduced-motion users get a slower pass instead of a stop; hover/focus still
   pauses it, which is the escape hatch for reading or clicking a card. */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow: hidden; }
  .marquee-track { animation: marquee-ltr 140s linear infinite; }
}
.service-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s, border-color .2s; }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #CFE0E4; }
/* Service photos are cut-outs on white, so show the whole item instead of cropping it */
.service-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.service-card .thumb img { inline-size: 100%; block-size: 100%; object-fit: contain; }
.service-card .body { padding: .85rem .95rem 1rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.service-card .title-row { display: flex; align-items: center; gap: .5rem; }
.service-card .title-row .icon { inline-size: 1.35rem; block-size: 1.35rem; color: var(--teal); }
.service-card h3 { font-size: .98rem; margin: 0; color: var(--navy-800); }
.service-card p { font-size: .8rem; color: var(--text-muted); margin: 0 0 .7rem; }
.card-go { margin-block-start: auto; inline-size: 34px; block-size: 34px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; }
.card-go:hover { background: var(--teal-dark); color: #fff; }
.card-go .icon { inline-size: 1rem; block-size: 1rem; }
[dir="rtl"] .flip, .card-go[data-flip] { }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* ---------- Why choose + quote form ---------- */
/* Tighter than the other sections: the figure and form already add visual height */
.why { background: #0A2C46; color: #fff; padding-block: clamp(1.5rem, 3vw, 2.25rem); position: relative; }
.why-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .why-grid { grid-template-columns: 1fr .8fr 1fr; gap: 2rem; } }
.why h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem); color: #fff; }
.why p { color: var(--on-dark-muted); }
.why-list { display: grid; gap: .7rem; margin-block: 1.4rem; }
.why-list li { display: flex; align-items: flex-start; gap: .65rem; font-size: .96rem; }
.why-list .tick { inline-size: 1.4rem; block-size: 1.4rem; border-radius: 50%; background: var(--gold); color: var(--navy-850); display: grid; place-items: center; flex: none; margin-block-start: .15rem; }
.why-list .tick .icon { inline-size: .85rem; block-size: .85rem; stroke-width: 3; }
.why-figure { position: relative; text-align: center; }
.why-figure::before { content: ""; position: absolute; inset-block: 6% 4%; inset-inline: 8%; background: #0C3C5C; border-radius: 45% 45% 40% 40% / 40%; z-index: 0; }
.why-figure img { position: relative; z-index: 1; margin-inline: auto; }
.why-badge { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .6rem; background: #fff; color: var(--navy-800); border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem 1rem; box-shadow: var(--shadow); font-family: var(--font-head); font-weight: 600; font-size: .9rem; line-height: 1.2; margin-block-start: -1.5rem; }
.why-badge .icon { inline-size: 1.6rem; block-size: 1.6rem; color: var(--green); }

/* Quote form sits on the white section, so the card itself carries the brand navy */
/* Card and section share #0A2C46, so a hairline edge and deeper shadow keep it readable */
.quote-card { background: #0A2C46; color: #fff; border: 1px solid rgb(255 255 255 / .16); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: 0 18px 44px rgb(0 0 0 / .38); }
.quote-card h2 { font-size: 1.5rem; color: #fff; margin-block-end: .25rem; }
.quote-card .sub { font-size: .88rem; color: var(--on-dark-muted); margin-block-end: 1.1rem; }
.form-row { display: grid; gap: .75rem; margin-block-end: .75rem; }
@media (min-width: 480px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field-label { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
.input, .select, .textarea {
  inline-size: 100%; min-block-size: 48px; padding: .7rem .85rem; font: inherit; font-size: .95rem;
  color: var(--text); background: #fff; border: 1px solid var(--border-input); border-radius: var(--radius-sm);
}
.input::placeholder, .textarea::placeholder { color: #8A97A3; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline-color: var(--teal); border-color: var(--teal); }
.textarea { min-block-size: 92px; resize: vertical; }
.form-note { font-size: .78rem; color: var(--text-muted); margin-block-start: .6rem; }
.quote-card .form-note { color: var(--on-dark-muted); }
.quote-card .form-note a { color: #7FD3C4; text-decoration: underline; }
.quote-card .form-note a:hover { color: #fff; }
.form-success { margin-block-start: .75rem; padding: .75rem 1rem; border-radius: var(--radius-sm); background: #E8F5EF; color: #0B5D3B; font-size: .9rem; }

/* ---------- Section headings ---------- */
.section { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section-dark { background: var(--navy-850); color: #fff; }
.section-light { background: var(--bg-light); }
.section-navy { background: #0A2C46; color: #fff; }
.section-navy .section-head h2 { color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-block-end: 1.75rem; }
.section-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); margin: 0; }
.section-dark .section-head h2 { color: #fff; }
.head-actions { display: inline-flex; align-items: center; gap: .5rem; }
/* Default suits light sections; dark sections flip it */
.circle-btn { inline-size: 40px; block-size: 40px; border-radius: 50%; border: 1px solid #C9D6DF; background: transparent; color: var(--navy-800); display: grid; place-items: center; cursor: pointer; }
.circle-btn:hover { background: var(--bg-light); }
.section-navy .circle-btn, .section-dark .circle-btn { border-color: rgb(255 255 255 / .35); color: #fff; }
.section-navy .circle-btn:hover, .section-dark .circle-btn:hover { background: rgb(255 255 255 / .12); }

/* ---------- Projects ---------- */
.project-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.project-card h3 { font-size: 1.05rem; color: var(--navy-800); margin-block-start: .85rem; }
.section-navy .project-card h3, .section-dark .project-card h3 { color: #fff; }
/* Supplied project photos already contain the before/after split, the labels
   and the centre badge, so the card just frames one image. */
.project-photo { border-radius: var(--radius); overflow: hidden; background: var(--bg-light); line-height: 0; }
.project-photo img { inline-size: 100%; block-size: auto; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.review-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.stars { display: inline-flex; gap: .15rem; color: var(--star); margin-block-end: .6rem; }
.stars .icon { inline-size: 1.05rem; block-size: 1.05rem; fill: currentColor; stroke: none; }
.review-card blockquote { margin: 0 0 1rem; font-size: .95rem; color: var(--text); }
.reviewer { display: flex; align-items: center; gap: .7rem; }
.avatar { inline-size: 40px; block-size: 40px; border-radius: 50%; background: var(--navy-700); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: .85rem; flex: none; }
.reviewer strong { display: block; font-size: .92rem; color: var(--navy-800); }
.reviewer span { font-size: .82rem; color: var(--text-muted); }
.review-source { font-size: .75rem; color: var(--text-muted); margin-block-start: .75rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: #fff; color: var(--text); padding-block: clamp(2.5rem, 5vw, 3.25rem); }
.cta-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-inner h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); color: var(--navy-800); margin-block-end: .25rem; }
.cta-inner p { color: var(--text-muted); margin: 0; }
/* Decorative leaf accents in the top corners */
.cta-leaf { position: absolute; inset-block-start: 0; z-index: 0; color: #2BA84A; opacity: .15; inline-size: clamp(110px, 13vw, 185px); pointer-events: none; }
.cta-leaf-start { inset-inline-start: -16px; }
.cta-leaf-end { inset-inline-end: -16px; transform: scaleX(-1); }
@media (max-width: 720px) { .cta-leaf { opacity: .1; inline-size: 92px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-800); color: var(--on-dark-muted); padding-block: clamp(2.5rem, 5vw, 3.5rem) 0; font-size: .9rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.site-footer h3 { color: #fff; font-size: 1rem; margin-block-end: 1rem; }
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: #fff; }
.site-footer .brand-text, .site-footer .brand { color: #fff; }
.site-footer .brand-text small { color: var(--on-dark-muted); }
/* Single column so every link stays on one line */
.footer-links { display: grid; grid-template-columns: 1fr; gap: 0; }
.footer-links li a { display: inline-block; padding-block: .15rem; white-space: nowrap; }
.site-footer ul { gap: 0; }
.site-footer a { min-block-size: 30px; }
.footer-contact li { display: flex; gap: .6rem; margin-block-end: .6rem; align-items: flex-start; }
.footer-contact .icon { inline-size: 1.05rem; block-size: 1.05rem; margin-block-start: .25rem; color: #7FD3C4; }
.footer-about { margin-block-start: var(--space-4); max-inline-size: 22rem; line-height: 1.7; }
.socials { display: flex; gap: .55rem; }
.socials a { inline-size: 36px; block-size: 36px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.socials .fb { background: #1877F2; } .socials .ig { background: linear-gradient(45deg, #F9CE34, #EE2A7B, #6228D7); }
.socials .li { background: #0A66C2; } .socials .yt { background: #FF0000; }
.socials .icon { inline-size: 1.2rem; block-size: 1.2rem; fill: currentColor; stroke: none; }
.footer-skyline { color: #12466B; }
.footer-skyline p { font-family: var(--font-script); font-size: 1.25rem; color: #fff; text-align: center; margin: .5rem 0 0; line-height: 1.2; }
.footer-bottom { margin-block-start: 2.5rem; background: var(--navy-900); }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; padding-block: 1rem; font-size: .82rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .75rem; }
.footer-bottom .tagline { color: #7FD3C4; }

/* ---------- Mobile sticky actions ---------- */
/* Two solid buttons rather than two pale text links — this bar is the main way
   a phone visitor gets in touch, so it should read as something to press. */
.mobile-bar {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 90; display: none;
  grid-template-columns: repeat(2, 1fr); gap: .5rem;
  /* No white strip — the buttons float straight over the page. The bar itself
     ignores taps so the content behind the gaps stays scrollable and clickable. */
  background: transparent; border: 0; box-shadow: none; pointer-events: none;
  padding: .35rem .6rem calc(.35rem + env(safe-area-inset-bottom));
}
.mobile-bar a {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  min-block-size: 44px; border-radius: var(--radius);
  font-family: var(--font-head); font-size: .875rem; font-weight: 600;
  color: #fff; letter-spacing: .01em;
  /* Stands the button off whatever happens to scroll underneath it */
  box-shadow: 0 6px 18px rgb(6 42 68 / .28);
}
.mobile-bar a:active { transform: scale(.98); }
.mobile-bar .m-call { background: var(--green-dark); }
.mobile-bar .m-wa { background: var(--whatsapp); }
.mobile-bar .m-quote { background: var(--teal); }
.mobile-bar .icon { inline-size: 1.05rem; block-size: 1.05rem; stroke-width: 2; }
@media (max-width: 767px) {
  .mobile-bar { display: grid; }
  body { padding-block-end: calc(56px + env(safe-area-inset-bottom)); }

  /* Angled gradient keeps the truck visible instead of washing the hero dark */
  .hero::after {
    background:
      linear-gradient(100deg, rgb(6 42 68 / .97) 0%, rgb(6 42 68 / .93) 42%, rgb(6 42 68 / .62) 68%, rgb(6 42 68 / .3) 100%),
      linear-gradient(180deg, rgb(6 42 68 / .35) 0%, transparent 28%);
  }
  .hero-media img { object-position: 74% 50%; }
  .hero-inner { padding-block: var(--space-5) var(--space-6); }
  .hero h1 { max-inline-size: 13ch; }
  .hero p.lead { font-size: .95rem; max-inline-size: 30ch; }

  /* Call sits in the header and the fixed bottom bar, so the hero buttons
     would be a third copy of the same actions */
  .hero .btn-group { display: none; }

  /* Rating and Google card share one row */
  .hero-proof-row { display: flex; align-items: center; gap: .55rem; }
  .hero-proof { margin-block-start: 1.1rem; gap: .5rem; flex: 1 1 auto; min-inline-size: 0; }
  .hero-proof img { block-size: 34px; }
  .hero-proof strong { font-size: .8rem; }
  .hero-proof .stars-inline .icon { inline-size: .8rem; block-size: .8rem; }
  .hero-proof .rating { font-size: .72rem; }
  .hero-google { position: static; inline-size: 148px; flex: none; margin-block-start: 1.1rem; }
  .hero-google img { filter: none; }

  /* No overlap on small screens: the bar was clipping the rating row */
  .feature-bar { margin-block-start: 1rem; }
  .hero-inner { padding-block-end: var(--space-5); }

  /* Final CTA reads better centred on a phone */
  .cta-inner { flex-direction: column; text-align: center; align-items: center; }
  .cta-inner .btn-group { flex-direction: column; align-items: stretch; inline-size: 100%; max-inline-size: 320px; }

  /* Feature bar becomes a continuous slider (right to left) */
  .feature-bar .container { padding-inline: 0; }
  .feature-list {
    display: flex; inline-size: max-content; gap: 1.6rem; padding: 1.1rem 1.6rem;
    border-radius: 0; animation: marquee-rtl 26s linear infinite;
  }
  .feature-list .feature-item { flex: none; }
  .feature-bar .marquee:hover .feature-list,
  .feature-bar .marquee:focus-within .feature-list { animation-play-state: paused; }

  /* Reviews become a continuous slider (left to right) */
  .review-grid { display: flex; inline-size: max-content; gap: 1rem; animation: marquee-ltr 40s linear infinite; }
  .review-grid .review-card { flex: none; inline-size: 280px; }
  .review-marquee { overflow: hidden; }
  .review-marquee:hover .review-grid,
  .review-marquee:focus-within .review-grid { animation-play-state: paused; }
  .section-navy .section-head .head-actions { display: none; }
}
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* RTL mirrors of the two loops.
   In an RTL page the flex track is anchored to the RIGHT edge and extends left,
   so a NEGATIVE translate slides the cards off the right of the screen and leaves
   a growing empty strip there. The Arabic marquees therefore need the positive
   halves of the same loop — the motion is mirrored, the seam still lands exactly
   one group along. Keep these after every rule that sets `animation:` shorthand,
   otherwise the shorthand resets animation-name back to the LTR keyframes. */
@keyframes marquee-ltr-flip { from { transform: translateX(50%); } to { transform: translateX(0); } }
@keyframes marquee-rtl-flip { from { transform: translateX(0); } to { transform: translateX(50%); } }
[dir="rtl"] .marquee-track { animation-name: marquee-ltr-flip; animation-direction: normal; }
[dir="rtl"] .feature-list { animation-name: marquee-rtl-flip; }
[dir="rtl"] .review-grid { animation-name: marquee-ltr-flip; }

/* The duplicate sets exist only so the mobile marquee can loop seamlessly.
   On desktop there is no marquee, so they must not render twice. */
.feature-item[aria-hidden="true"],
.review-card[aria-hidden="true"] { display: none; }
@media (max-width: 767px) {
  .feature-item[aria-hidden="true"] { display: flex; }
  .review-card[aria-hidden="true"] { display: block; }
}

/* ==========================================================================
   Inner pages (services, about, contact)
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; background: #0A2C46; color: #fff; padding-block: clamp(2.5rem, 6vw, 4.25rem); }
.page-hero::after {
  content: ""; position: absolute; inset-block: -20%; inset-inline-end: -10%; inline-size: 50%;
  background: radial-gradient(closest-side, rgb(43 168 74 / .16), transparent); pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .breadcrumb ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; color: var(--on-dark-muted); }
.page-hero .breadcrumb li + li::before { content: "›"; margin-inline-end: .5rem; opacity: .7; }
[dir="rtl"] .page-hero .breadcrumb li + li::before { content: "‹"; }
.page-hero .breadcrumb a { color: #fff; }
.page-hero .eyebrow { display: block; font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-block-end: .75rem; }
html[lang="ar"] .page-hero .eyebrow { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); color: #fff; max-inline-size: 22ch; margin-block-end: .75rem; }
.page-hero .lead { color: #DCE6EE; max-inline-size: 40rem; font-size: clamp(1rem, .96rem + .2vw, 1.1rem); margin-block-end: 1.5rem; }

.section-intro { max-inline-size: 46rem; margin-block-end: 2rem; }
.section-intro h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); color: var(--navy-800); }
.section-intro p { color: var(--text-muted); }

/* Service detail rows, alternating image side */
.svc-row { display: grid; gap: clamp(1.25rem, 4vw, 3rem); align-items: center; padding-block: clamp(1.75rem, 4vw, 2.75rem); border-block-end: 1px solid var(--border); scroll-margin-block-start: calc(var(--header-h) + 1rem); }
.svc-row:first-child { padding-block-start: 0; }
.svc-row:last-child { border-block-end: 0; padding-block-end: 0; }
@media (min-width: 900px) {
  .svc-row { grid-template-columns: 1fr 1.1fr; }
  .svc-row:nth-child(even) .svc-media { order: 2; }
}
.svc-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 10; background: #fff; }
.svc-media img { inline-size: 100%; block-size: 100%; object-fit: contain; }
.svc-media.is-photo img { object-fit: cover; }
.svc-body h2 { display: flex; align-items: center; gap: .6rem; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); color: var(--navy-800); }
.svc-body h2 .icon { inline-size: 1.6rem; block-size: 1.6rem; color: var(--teal); }
.svc-body p { color: var(--text-muted); }
.svc-note { font-size: .9rem; background: var(--bg-light); border-inline-start: 3px solid var(--gold); padding: .6rem .9rem; border-radius: var(--radius-sm); color: var(--text) !important; }

.tick-list { display: grid; gap: .5rem; margin-block: 1rem 1.4rem; }
@media (min-width: 520px) { .tick-list.cols { grid-template-columns: 1fr 1fr; } }
.tick-list li { display: flex; gap: .55rem; align-items: flex-start; }
.tick-list .icon { flex: none; inline-size: 1rem; block-size: 1rem; margin-block-start: .3rem; color: var(--green); stroke-width: 2.5; }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: step; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; inline-size: 2.4rem; block-size: 2.4rem; border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--font-head); font-weight: 600; margin-block-end: .9rem; }
.step h3 { font-size: 1.05rem; color: var(--navy-800); margin-block-end: .35rem; }
.step p { font-size: .93rem; color: var(--text-muted); margin: 0; }

/* Cards */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; }
.info-card h3 { font-size: 1.05rem; color: var(--navy-800); margin-block-end: .35rem; }
.info-card p { color: var(--text-muted); font-size: .93rem; margin: 0; }
.icon-tile { inline-size: 48px; block-size: 48px; border-radius: 12px; background: #E8F5EF; color: var(--green); display: grid; place-items: center; flex: none; }
.icon-tile .icon { inline-size: 1.35rem; block-size: 1.35rem; }
.info-card .icon-tile { margin-block-end: .9rem; }

/* Two-column layouts */
.split { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1.05fr .95fr; }
  .split.center { align-items: center; }
}
.split .section-intro { margin-block-end: 0; }
.about-figure { position: relative; text-align: center; }
.about-figure::before { content: ""; position: absolute; inset-block: 10% 0; inset-inline: 12%; background: #0A2C46; border-radius: 45% 45% 24px 24px / 38% 38% 24px 24px; }
.about-figure img { position: relative; margin-inline: auto; max-inline-size: 400px; }

/* Contact */
.contact-list { display: grid; gap: .85rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; }
.contact-item h3 { font-size: 1rem; color: var(--navy-800); margin: 0 0 .2rem; }
.contact-item p { color: var(--text-muted); margin: 0 0 .2rem; }
.contact-item a { color: var(--teal); font-weight: 600; overflow-wrap: anywhere; }
.faster-quote { margin-block-start: 1.25rem; background: var(--bg-light); }
.faster-quote .tick-list { margin-block-end: 0; }

.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; min-block-size: 42px; padding-inline: 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: .93rem; color: var(--navy-800); }
.chip .icon { inline-size: 1rem; block-size: 1rem; color: var(--green); }
.area-ask { margin-block-start: 1.25rem; }
.area-ask a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }

/* ---------- Header dropdown ---------- */
.has-sub { position: relative; }
.submenu { list-style: none; margin: 0; padding: .4rem; display: none; position: absolute; inset-block-start: 100%; inset-inline-start: 0; min-inline-size: 15.5rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 60; }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .submenu[data-open="true"] { display: block; }
.submenu a { display: block; padding: .55rem .75rem; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500; white-space: nowrap; color: var(--navy-800); }
.submenu a:hover { background: var(--bg-light); color: var(--teal); }
.submenu .sub-all a { font-weight: 600; color: var(--teal); }
@media (min-width: 1024px) {
  /* Long menus are split into columns so they never run off the screen */
  .submenu-2col, .submenu-3col { display: none; }
  .has-sub:hover > .submenu-2col, .has-sub:focus-within > .submenu-2col,
  .has-sub:hover > .submenu-3col, .has-sub:focus-within > .submenu-3col { display: grid; }
  .submenu-2col { grid-template-columns: repeat(2, minmax(11rem, 1fr)); }
  .submenu-3col { grid-template-columns: repeat(3, minmax(10rem, 1fr)); }
  .submenu-2col .sub-all, .submenu-3col .sub-all { grid-column: 1 / -1; border-block-start: 1px solid var(--border); margin-block-start: .25rem; padding-block-start: .25rem; }
  .main-nav > ul > li:nth-last-child(-n+3) .submenu-2col,
  .main-nav > ul > li:nth-last-child(-n+3) .submenu-3col { inset-inline-start: auto; inset-inline-end: 0; }
}
@media (max-width: 1023px) {
  .submenu { position: static; box-shadow: none; border: 0; padding: 0 0 .35rem .6rem; min-inline-size: 0; }
  .has-sub:hover > .submenu, .has-sub:focus-within > .submenu { display: none; }
  .submenu[data-open="true"] { display: block; }
  .submenu a { min-block-size: 44px; display: flex; align-items: center; }
}

/* ---------- FAQs and item lists (service pages) ---------- */
.faq-list { max-inline-size: 52rem; }
.faq { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-block-end: .75rem; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-block-size: 56px; padding: .85rem 1.25rem; font-family: var(--font-head); font-weight: 600; color: var(--navy-800); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--teal); flex: none; }
.faq[open] summary::after { content: "−"; }
.faq-body { padding: 0 1.25rem 1.15rem; color: var(--text-muted); }
.faq-body p { margin: 0; }
.items-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.items-grid li { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem 1rem; font-weight: 500; color: var(--navy-800); }
.items-grid .icon { flex: none; inline-size: 1.05rem; block-size: 1.05rem; color: var(--green); stroke-width: 2.5; }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: #E8F1F3; color: var(--teal-dark); }

/* ---------- Areas band (homepage) ----------
   Brand gradient plus a faint skyline outline, rather than a photo. */
.areas-band {
  position: relative; overflow: hidden; text-align: center; padding-block: clamp(2.75rem, 6vw, 4rem);
  /* Photo shown as-is; the headline sits over the bright sky so it stays legible */
  background: url("/assets/images/areas-bg.jpg") center / cover no-repeat;
}
.areas-band .skyline-bg { display: none; }
.areas-band .container { position: relative; z-index: 1; }
.areas-eyebrow { display: inline-block; background: #E8F5EF; color: var(--green); font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding: .4rem .95rem; border-radius: 999px; }
html[lang="ar"] .areas-eyebrow { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.areas-band h2 { margin-block: 1rem .5rem; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); color: var(--navy-800); }
.areas-band h2 .accent { color: var(--green); }
.areas-sub { color: var(--text-muted); margin-block-end: 1.75rem; }
.areas-chips { list-style: none; margin: 0 auto 1.75rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; max-inline-size: 62rem; }
.areas-chips li { display: inline-flex; }
.areas-chips a, .areas-chips span {
  display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: .6rem 1.1rem; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--navy-800); box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s;
}
.areas-chips a:hover { border-color: var(--green); color: var(--navy-800); transform: translateY(-1px); }
.areas-chips .icon { inline-size: 1rem; block-size: 1rem; color: var(--green); flex: none; }
.areas-band .areas-sub { color: #3F5566; }
/* On a phone the centred flex rows come out ragged — each row a different
   width, chips half-hanging off both edges. A two-column grid lines them up
   instead, and the chip fills its cell so every row is the same shape. */
@media (max-width: 640px) {
  .areas-chips { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-inline: 0; }
  .areas-chips li { display: block; }
  .areas-chips a, .areas-chips span {
    inline-size: 100%; justify-content: center; text-align: center;
    padding: .6rem .5rem; font-size: .84rem; line-height: 1.25; min-block-size: 46px;
  }
  .areas-chips .icon { inline-size: .9rem; block-size: .9rem; }
}

/* ---------- Area cards ---------- */
.area-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: box-shadow .2s, border-color .2s, transform .2s; }
.area-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.area-card .more { margin-block-start: auto; padding-block-start: .85rem; display: inline-flex; align-items: center; gap: .35rem; color: var(--teal); font-weight: 600; font-size: .9rem; }
/* Uploaded photos have no width/height attributes (the size is only known at
   upload time), so the box reserves its own space — without this the page
   reflows as each photo arrives, which is exactly what CLS measures. */
.project-photo-single { line-height: 0; background: var(--bg-light); aspect-ratio: 16 / 10; }
.project-photo-single img { inline-size: 100%; block-size: 100%; object-fit: cover; }

/* ---------- Reviews page ---------- */
.review-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-block-end: 1.75rem; }
.review-summary p { margin: 0; color: var(--text-muted); }
.review-summary strong { color: var(--navy-800); font-size: 1.15rem; }
.stars .icon.is-empty { color: #D8DEE4; }
.review-card blockquote { white-space: pre-line; }
.empty-state { background: var(--bg-light); border: 1px dashed var(--border-input); border-radius: var(--radius-lg); padding: 2rem; text-align: center; color: var(--text-muted); }
.empty-state p { margin-block-end: 1rem; }

/* Star picker */
.rating-input { border: 0; padding: 0; margin: 0 0 1rem; }
.rating-input legend { font-weight: 600; font-size: .88rem; margin-block-end: .4rem; color: #fff; }
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input label {
  display: inline-flex; align-items: center; gap: .25rem; cursor: pointer;
  padding: .4rem .7rem; margin-inline-end: .4rem; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .35); color: #fff; font-weight: 600; font-size: .9rem;
}
.rating-input label .icon { inline-size: .95rem; block-size: .95rem; fill: currentColor; stroke: none; }
.rating-input input:checked + label { background: var(--star); border-color: var(--star); color: var(--navy-800); }
.rating-input input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Projects page ----------
   Three cards to a row on a desktop container (~1160px of content): the 320px
   minimum plus the gap lets a fourth column never fit, and the same rule drops
   to two columns on a tablet and one on a phone without extra breakpoints. */
.project-list { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: start; }
.project-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.project-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
/* Before and after stay side by side even in a narrow card — that pairing is
   the point of the photo, and splitting it across two rows loses the comparison. */
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); }
.ba-pair figure { position: relative; margin: 0; aspect-ratio: 4 / 3; background: var(--bg-light); }
.ba-pair img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.ba-pair figcaption { position: absolute; inset-block-end: .45rem; inset-inline-start: .45rem; background: #14212B; color: #fff; font-size: .68rem; font-weight: 600; padding: .18rem .5rem; border-radius: 4px; }
.ba-pair figcaption.is-after { background: var(--green); }
.project-body { padding: .95rem 1.1rem 1.15rem; }
.project-body h2 { font-size: 1.05rem; color: var(--navy-800); margin-block-end: .3rem; }
.project-meta { color: var(--text-muted); font-size: .82rem; margin-block-end: .45rem; }
.project-body p { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* ---------- Admin sign-in (uses the public header and footer) ---------- */
/* The sign-in page holds one small card, so on a tall phone the document ended
   above the bottom of the screen and the browser painted a band of white under
   the footer. Pushing the footer down with `margin-block-start: auto` fills the
   screen. Scoped with :has() so no other page's layout changes. */
body:has(.admin-login) { display: flex; flex-direction: column; min-block-size: 100svh; }
body:has(.admin-login) .site-footer { margin-block-start: auto; }
@media (max-width: 767px) {
  /* Give the card some breathing room instead of the full desktop section padding */
  body:has(.admin-login) main > .section { padding-block: 2rem; }
}
.admin-login { max-inline-size: 30rem; margin-inline: auto; }
.admin-login .quote-card h2 { font-size: 1.5rem; }
.admin-login .form-note { text-align: center; }
.admin-login .field-label { position: static; inline-size: auto; block-size: auto; clip-path: none; display: block; color: #fff; font-weight: 600; font-size: .9rem; margin-block-end: .35rem; }

/* ---------- Form states ---------- */
.hp { position: absolute !important; inset-inline-start: -10000px; inline-size: 1px; block-size: 1px; overflow: hidden; }
.field-error { display: block; color: #FFB4A8; font-size: .8rem; margin-block-start: .3rem; }
.quote-card [aria-invalid="true"] { border-color: #E5484D; box-shadow: 0 0 0 2px rgb(229 72 77 / .3); }
.form-status { margin-block-start: .75rem; padding: .75rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; }
.form-status.is-error { background: #FDECEC; color: #8A1C1C; }
button[aria-busy="true"] { opacity: .75; cursor: progress; }

/* Phone numbers, emails and Latin text inside Arabic copy stay left-to-right */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ==========================================================================
   Arabic / RTL
   The layout mirrors itself because every rule above uses logical properties.
   Only the physical details need an override: gradient direction, photo focus
   point, fonts and line-height.
   ========================================================================== */
:root:lang(ar) {
  --font-head: var(--font-head-ar);
  --font-body: var(--font-body-ar);
  --font-script: var(--font-head-ar);
}
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.45; letter-spacing: 0; }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .95rem; }
html[lang="ar"] .brand-text { font-family: var(--font-head); }
html[lang="ar"] .brand-text small { letter-spacing: .1em; font-size: .5rem; }
html[lang="ar"] .hero-script { font-size: 1.7rem; font-weight: 700; line-height: 1.7; }
html[lang="ar"] .footer-skyline p { font-size: 1.05rem; line-height: 1.6; }
html[lang="ar"] .btn { font-size: 1rem; }
html[lang="ar"] .avatar { font-size: 1rem; }

/* Hero text sits on the right in RTL, so the dark end of the gradient flips */
[dir="rtl"] .hero::after {
  background:
    linear-gradient(270deg, rgb(6 42 68 / .97) 0%, rgb(6 42 68 / .92) 32%, rgb(6 42 68 / .55) 58%, rgb(6 42 68 / .15) 100%),
    linear-gradient(180deg, rgb(6 42 68 / .35) 0%, transparent 35%);
}
/* The hero photo is wider than it is tall, so on a desktop screen `cover` scales it
   to the full width and object-position has nothing left to crop horizontally — the
   truck stays where the photographer put it, at about 65% across. In Arabic the
   headline sits on the right, so the truck is slid physically to the left instead;
   the strip it leaves behind on the right is the hero's own navy, which the mirrored
   gradient above already fades into. Flipping the photo is not an option: the truck
   carries the company name and it would read backwards. */
[dir="rtl"] .hero-media img { object-position: 30% 50%; transform: translateX(-26%); }
[dir="rtl"] .flip { transform: scaleX(-1); }
[dir="rtl"] .input[dir="ltr"] { text-align: right; }
[dir="rtl"] .topbar .lang { direction: rtl; }

@media (max-width: 767px) {
  [dir="rtl"] .hero::after { background: linear-gradient(180deg, rgb(6 42 68 / .82) 0%, rgb(6 42 68 / .92) 55%, rgb(6 42 68 / .97) 100%); }
  /* On a phone the mobile crop is already tall and centred — no shift there */
  [dir="rtl"] .hero-media img { object-position: 40% 50%; transform: none; }
}

/* ---------- Legal pages (privacy, terms, cookies) ---------- */
.legal-doc { max-inline-size: 48rem; }
.legal-doc h2 { font-size: 1.15rem; color: var(--navy-800); margin-block: 1.75rem .6rem; }
.legal-doc h2:first-child { margin-block-start: 0; }
.legal-doc p { color: var(--text-muted); margin-block-end: .7rem; }
.legal-updated { margin-block-start: 2rem; font-size: .88rem; font-style: italic; }
