/* ============================================================
   "Dyno sheet" design system — dark instrument-panel aesthetic.
   Near-black ground · hairline graph grids · gauge-amber accent.
   WhatsApp green is reserved for booking actions only.
   ============================================================ */

:root {
  --bg: #0C0D10;
  --bg-raised: #121419;
  --bg-hover: #171A21;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(242, 163, 60, 0.35);
  --accent: #F2A33C;
  --accent-dim: rgba(242, 163, 60, 0.14);
  --text: #F4F5F7;
  --subtext: #9BA1AD;
  --wa: #25D366;
  --wa-ink: #06220F;
  --font-display: "Changa", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --radius: 2px;
  --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  counter-reset: sec;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

/* graph-paper texture — the dyno-sheet motif */
.graph-bg {
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 48px);
}

/* ---------- demo badge ---------- */
.demo-badge {
  background: var(--accent);
  color: #1A1204;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.4em 1em;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 13, 16, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.mono {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.15em 0.5em;
  line-height: 1.6;
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.3; }
.brand-txt b { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.brand-txt small { color: var(--subtext); font-size: 0.72rem; }
.site-nav { display: none; margin-inline-start: auto; gap: 1.75rem; }
.site-nav a {
  font-size: 0.95rem;
  color: var(--subtext);
  transition: color 140ms ease;
}
.site-nav a:hover { color: var(--text); }
.site-header .btn-sm { margin-inline-start: auto; }
@media (min-width: 900px) {
  .site-nav { display: flex; }
  .site-header .btn-sm { margin-inline-start: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75em 1.6em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.btn .ic { width: 1.2em; height: 1.2em; flex: none; }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: #2fe273; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--accent-dim); }
.btn-sm { font-size: 0.9rem; padding: 0.5em 1.1em; }
.btn-lg { font-size: 1.15rem; padding: 0.85em 2.2em; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(94svh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 42%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 4%, rgba(12,13,16,0.72) 34%, rgba(12,13,16,0.18) 62%, rgba(12,13,16,0.55) 100%);
}
@media (min-width: 900px) {
  .hero-scrim {
    background:
      linear-gradient(to top, var(--bg) 2%, rgba(12,13,16,0.55) 30%, rgba(12,13,16,0.08) 60%, rgba(12,13,16,0.5) 100%),
      linear-gradient(to left, rgba(12,13,16,0.72) 0%, rgba(12,13,16,0.25) 45%, transparent 70%);
  }
}
.hero-curve {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  width: 100%;
  height: clamp(90px, 16vw, 200px);
  pointer-events: none;
}
.hero-content {
  position: relative;
  width: 100%;
  padding-block: clamp(3.5rem, 9vw, 6rem);
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  color: var(--accent);
  text-transform: uppercase;
  direction: ltr;
  text-align: end; /* right edge — aligns with the RTL Arabic headings */
}
.sec-head .eyebrow::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero) " / ";
  color: var(--subtext);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 9vw, 4.4rem);
  line-height: 1.16;
  margin-block: 0.35em 0.25em;
  white-space: pre-line;
  max-width: 13ch;
}
.hero-sub {
  color: var(--subtext);
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  max-width: 52ch;
  margin-block-end: 1.75rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-block-start: 2rem;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.3em 0.9em;
  font-size: 0.85rem;
  color: var(--subtext);
  background: rgba(12, 13, 16, 0.55);
}
.chips li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  flex: none;
}

/* ---------- sections ---------- */
.sec { padding-block: clamp(4rem, 10vw, 6.5rem); }
.sec-alt { background: var(--bg-raised); border-block: 1px solid var(--line); }
.sec-head { margin-block-end: clamp(2.25rem, 6vw, 3.5rem); max-width: 62ch; }
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 5.5vw, 2.5rem);
  line-height: 1.25;
  margin-block-start: 0.3em;
}
.sec-sub { color: var(--subtext); margin-block-start: 0.4em; }

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  background: var(--bg);
  padding: clamp(1.5rem, 4vw, 2rem);
  position: relative;
  transition: background 160ms ease;
}
.sec-alt .svc-card { background: var(--bg-raised); }
.svc-card:hover { background: var(--bg-hover); }
.svc-card::before {
  /* gauge tick */
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 34px;
  height: 2px;
  background: var(--accent);
}
.card-ic { width: 30px; height: 30px; color: var(--accent); margin-block-end: 1rem; }
.svc-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.4;
}
.svc-en {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--subtext);
  margin-block: 0.15em 0.75em;
  text-align: start;
}
.svc-card p { color: var(--subtext); font-size: 0.95rem; }

/* ---------- process ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { border-top: 1px solid var(--line); padding-block-start: 1.25rem; }
.step-n {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  text-align: end; /* keep digits LTR but align with RTL titles */
  margin-block-end: 0.5rem;
}
@supports not (-webkit-text-stroke: 1px black) {
  .step-n { color: var(--line-strong); }
}
.steps h3 { font-size: 1.05rem; font-weight: 700; margin-block-end: 0.25em; }
.steps p { color: var(--subtext); font-size: 0.92rem; }

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.6rem, 1.6vw, 1rem);
}
.gallery-grid figure { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery-grid figure:first-child,
.gallery-grid figure:last-child { grid-column: 1 / -1; }
.gallery-grid figure:first-child img,
.gallery-grid figure:last-child img { aspect-ratio: 16 / 9; }
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid figure:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery-grid figure:last-child { grid-column: auto; }
  .gallery-grid figure:first-child img { aspect-ratio: auto; }
  .gallery-grid figure:last-child img { aspect-ratio: 4 / 3; }
}
.gallery-grid figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.5rem 1rem 0.7rem;
  font-size: 0.85rem;
  color: var(--text);
  background: linear-gradient(to top, rgba(5, 6, 8, 0.85), transparent);
}

/* ---------- why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.25rem);
}
@media (min-width: 720px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
.why-item { border-inline-start: 2px solid var(--accent); padding-inline-start: 1.25rem; }
.why-item h3 { font-size: 1.1rem; font-weight: 700; margin-block-end: 0.2em; }
.why-item p { color: var(--subtext); font-size: 0.95rem; }

/* ---------- location ---------- */
.loc-card {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 800px) { .loc-card { grid-template-columns: 1.15fr 1fr; } }
.loc-info { padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.4rem; align-content: start; }
.loc-row { display: grid; gap: 0.3rem; border-bottom: 1px solid var(--line); padding-block-end: 1.1rem; }
.loc-row:last-child { border-bottom: 0; padding-block-end: 0; }
.loc-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.hours-row { display: flex; justify-content: space-between; gap: 1rem; color: var(--subtext); }
.hours-row span:last-child { color: var(--text); }
.hours-note { color: var(--subtext); font-size: 0.85rem; margin-block-start: 0.4rem; }
.phone-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  display: inline-block;
  text-align: end; /* digits stay LTR (dir attr) but align with RTL labels */
}
.phone-link:hover { color: var(--accent); }
.loc-map {
  border-inline-start: 1px solid var(--line);
  background-color: var(--bg-raised);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 260px;
  padding: 2rem;
}
.loc-map .pin { width: 56px; height: 56px; color: var(--accent); }
@media (max-width: 799px) { .loc-map { border-inline-start: 0; border-top: 1px solid var(--line); } }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background-color: var(--bg-raised);
  text-align: center;
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  line-height: 1.25;
}
.cta-band p {
  color: var(--subtext);
  max-width: 46ch;
  margin: 0.5em auto 1.75em;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-block: clamp(2.5rem, 6vw, 3.5rem) 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-block-end: 2rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr; } }
.footer-brand { display: flex; gap: 0.9rem; align-items: flex-start; }
.footer-brand b { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.footer-note { color: var(--subtext); font-size: 0.88rem; margin-block-start: 0.3em; }
.socials { list-style: none; display: grid; gap: 0.5rem; align-content: start; }
.socials a {
  color: var(--subtext);
  font-size: 0.92rem;
  transition: color 140ms ease;
}
.socials a:hover { color: var(--accent); }
@media (min-width: 720px) { .socials { text-align: end; } }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block-start: 1.25rem;
  color: var(--subtext);
  font-size: 0.8rem;
}

/* ---------- mobile bottom bar ---------- */
.mobile-bar {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.mobile-bar .ic { width: 1.3em; height: 1.3em; }
.mb-wa { background: var(--wa); color: var(--wa-ink); }
.mb-call { background: var(--bg-raised); color: var(--accent); padding-inline: 1.4em; }
body { padding-bottom: 3.6rem; }
@media (min-width: 768px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}
