@charset "utf-8";

/* ==========================================================================
   Abou Ali Electric — one stylesheet, shared by /index.html and /ar/index.html
   Layout is written with logical properties so the Arabic page mirrors
   rather than flips.
   ========================================================================== */

:root {
  --bg: #f2f6f5;
  --surface: #ffffff;
  --ink: #1e2b29;
  --muted: #758682;          /* hairlines, decoration, large type only */
  --muted-ink: #5f706c;      /* small supporting text — AA on --bg */
  --brand: #1f5e4e;
  --accent: #c8843c;          /* rules, nodes, marks */
  --accent-ink: #a8641f;      /* the same warmth, dark enough to set type in */

  --rule: #d3dbd9;            /* --muted, laid down thin over --bg */

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --step: clamp(3.5rem, 8vw, 6.5rem);   /* vertical rhythm between bands */

  --font-latin: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-latin);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="ar"] body { font-family: var(--font-arabic); line-height: 1.85; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.3; }

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Numerals and latin fragments stay left-to-right inside Arabic text. */
.num {
  unicode-bidi: isolate;
  direction: ltr;
  font-family: var(--font-latin);
  font-variant-numeric: tabular-nums;
}

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  inset-block-start: 0;
  z-index: 10;
  padding: 0.75rem 1.25rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
}
.skip:focus { inset-inline-start: 0; }

/* --------------------------------------------------------------- shell -- */

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: var(--step); }

.band + .band { border-block-start: 1px solid var(--rule); }

/* Two-column editorial grid: a standing label, then the content. */
.band__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}

@media (min-width: 56rem) {
  .band__grid {
    grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
  }
}

.label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

html[lang="ar"] .label { letter-spacing: 0; font-size: 0.875rem; }

.label__rule {
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-block-end: 0.9rem;
  background: var(--accent);
}

/* -------------------------------------------------------------- header -- */

.site-header {
  border-block-end: 1px solid var(--rule);
  background: var(--bg);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.15rem;
}

.wordmark {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.wordmark span { color: var(--brand); }

.lang {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  color: var(--brand);
  background: var(--surface);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.lang:hover { border-color: var(--brand); background: #fff; }

/* ---------------------------------------------------------------- hero -- */

.hero { padding-block: clamp(3.5rem, 10vw, 7rem) clamp(3rem, 8vw, 5.5rem); }

.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  grid-template-columns: 1fr;
  align-items: end;
}

@media (min-width: 62rem) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) auto; }
}

.hero__eyebrow {
  margin-block-end: 1.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

html[lang="ar"] .hero__eyebrow { letter-spacing: 0; font-size: 0.9375rem; }

.hero h1 {
  font-size: clamp(2.75rem, 9.5vw, 5.25rem);
  letter-spacing: -0.035em;
}

html[lang="ar"] .hero h1 { font-size: clamp(2.5rem, 8.5vw, 4.75rem); letter-spacing: 0; }

.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--brand);
}

.hero__lede {
  max-width: var(--measure);
  margin-block-start: 1.75rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.45;
  text-wrap: pretty;
}

html[lang="ar"] .hero__lede { line-height: 1.7; }

.hero__note {
  max-width: var(--measure);
  margin-block-start: 1rem;
  color: var(--muted-ink);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-block-start: 2.25rem;
}

.hero__where {
  font-size: 0.9375rem;
  color: var(--muted-ink);
}

/* Decorative conduit run — pure drawing, no photograph, no meaning lost. */
.hero__figure {
  display: none;
  color: var(--muted);
}

@media (min-width: 62rem) {
  .hero__figure { display: block; }
}

.hero__figure svg { display: block; width: 17rem; height: auto; }

/* the run reads the other way round on the mirrored page */
html[dir="rtl"] .hero__figure svg { transform: scaleX(-1); }

/* -------------------------------------------------------------- button -- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: #17493c; }
.btn:active { transform: translateY(1px); }

.btn svg { flex: none; }

.btn--ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}
.btn--ghost:hover { background: var(--surface); }

.btn--light {
  background: var(--surface);
  color: var(--brand);
}
.btn--light:hover { background: #fff; }

/* ------------------------------------------------------------ services -- */

.services {
  margin: 0;
  padding: 0;
  list-style: none;
  border-block-start: 1px solid var(--rule);
}

.service {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.35rem 1rem;
  padding-block: clamp(1.6rem, 3.5vw, 2.25rem);
  border-block-end: 1px solid var(--rule);
}

@media (min-width: 46rem) {
  .service {
    grid-template-columns: 2.75rem minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: clamp(1rem, 3vw, 2.5rem);
  }
}

.service__num {
  grid-column: 1;
  position: relative;
  padding-block-start: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted-ink);
}

/* the small node on the run */
.service__num::before {
  content: "";
  position: absolute;
  inset-block-start: 0.9rem;
  inset-inline-start: 1.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 45.999rem) {
  .service__num::before { display: none; }
}

.service__body { grid-column: 2; }

.service h3 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.service p {
  max-width: var(--measure);
  margin-block-start: 0.6rem;
  color: var(--muted-ink);
}

.service__price {
  grid-column: 2;
  align-self: start;
  font-size: clamp(1.5rem, 3.2vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent-ink);
  white-space: nowrap;
}

.service__price--words {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted-ink);
}

@media (min-width: 46rem) {
  .service__price { grid-column: 3; text-align: end; }
}

@media (max-width: 45.999rem) {
  .service__price { margin-block-start: 0.75rem; }
}

/* ---------------------------------------------------------------- list -- */

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
  max-width: 48rem;
}

@media (min-width: 46rem) {
  .checks { grid-template-columns: 1fr 1fr; gap: 1rem 2.5rem; }
}

.checks li {
  position: relative;
  padding-inline-start: 1.6rem;
  padding-block-end: 0.9rem;
  border-block-end: 1px solid var(--rule);
}

.checks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.72em;
  width: 0.5rem;
  height: 0.5rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.section-intro {
  max-width: var(--measure);
  margin-block-end: 2rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted-ink);
}

/* --------------------------------------------------------------- quote -- */

.quote {
  background: var(--brand);
  color: #fff;
}

.quote__inner { padding-block: clamp(3.5rem, 8vw, 6rem); }

.label--light { color: #fff; }

.quote figure { margin: 2rem 0 0; }

.quote blockquote {
  margin: 0;
  max-width: 46rem;
}

.quote__mark {
  display: block;
  width: 3rem;
  height: 2px;
  margin-block-end: 1.75rem;
  background: var(--accent);
}

.quote__en {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.quote__ar {
  margin-block-start: 1.25rem;
  font-family: var(--font-arabic);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.82);
}

html[lang="ar"] .quote__ar {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  margin-block-start: 0;
}

.quote figcaption {
  margin-block-start: 1.75rem;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

html[lang="ar"] .quote figcaption { letter-spacing: 0; text-transform: none; font-size: 1rem; }

/* ----------------------------------------------------------------- faq -- */

.faq { max-width: 48rem; }

.faq details {
  border-block-end: 1px solid var(--rule);
}

.faq details:first-of-type { border-block-start: 1px solid var(--rule); }

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  color: var(--brand);
}

.faq details[open] summary::after { content: "–"; }

.faq details[open] summary { color: var(--brand); }

.faq__answer {
  max-width: var(--measure);
  padding-block-end: 1.5rem;
  color: var(--muted-ink);
}

/* ------------------------------------------------------------- contact -- */

.contact__card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(1.75rem, 5vw, 3rem);
}

.contact h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
}

.contact__lede {
  max-width: var(--measure);
  margin-block-start: 1rem;
  color: var(--muted-ink);
}

.contact .btn { margin-block-start: 2rem; }

.facts {
  margin: 2.5rem 0 0;
  padding-block-start: 2rem;
  border-block-start: 1px solid var(--rule);
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 40rem) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
}

.facts dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

html[lang="ar"] .facts dt { letter-spacing: 0; font-size: 0.9375rem; }

.facts dd {
  margin: 0.4rem 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
}

.facts a { text-decoration-color: var(--rule); text-underline-offset: 3px; }
.facts a:hover { text-decoration-color: var(--brand); }

/* -------------------------------------------------------------- footer -- */

.site-footer {
  border-block-start: 1px solid var(--rule);
  padding-block: 2.5rem 3rem;
  font-size: 0.9375rem;
  color: var(--muted-ink);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.site-footer p { margin: 0; }
