/* ============================================================
   "Notebook" design system — calm, editorial, personal portfolio look.
   Warm ivory ground · soft rounded cards · quiet terracotta accent ·
   generous whitespace. Deliberately light where the garage/gym builds
   are dark, and quiet where they are loud.
   ============================================================ */

:root {
  --bg: #FAF7F1;
  --bg-raised: #F1EADC;
  --bg-hover: #E9DFCC;
  --line: rgba(34, 30, 26, 0.10);
  --line-strong: rgba(181, 80, 46, 0.35);
  --accent: #B5502E;
  --accent-ink: #FFFFFF;
  --text: #221E1A;
  --subtext: #7C7266;
  --wa: #25D366;
  --wa-ink: #0B2415;
  --font-display: "Changa", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --radius: 14px;
  --container: 980px;
}

* { 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: 1.02rem;
  line-height: 1.85;
  -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);
}

/* no texture in this build — flat, quiet surfaces only */
.graph-bg { background-image: none; }

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

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 241, 0.9);
  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: 72px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.mono {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.2em 0.65em;
  line-height: 1.6;
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.35; }
.brand-txt b { font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; }
.brand-txt small { color: var(--subtext); font-size: 0.74rem; }
.site-nav { display: none; margin-inline-start: auto; gap: 2rem; }
.site-nav a {
  font-size: 0.95rem;
  color: var(--subtext);
  transition: color 160ms ease;
}
.site-nav a:hover { color: var(--accent); }
.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 — soft pills, no shouting ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.75em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .ic { width: 1.15em; height: 1.15em; flex: none; }
.btn-wa { background: var(--wa); color: #06220F; }
.btn-wa:hover { background: #2fe273; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--bg-raised); border-color: var(--accent); }
.btn-sm { font-size: 0.88rem; padding: 0.5em 1.1em; }
.btn-lg { font-size: 1.08rem; padding: 0.85em 2.1em; }

/* ---------- hero — quiet, framed, no full-bleed cinema shot ---------- */
.hero {
  position: relative;
  min-height: auto;
  display: block;
  overflow: visible;
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3rem, 8vw, 5rem) clamp(2.5rem, 7vw, 4rem);
  background: var(--bg);
}
.hero-img {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: var(--radius);
  box-shadow: 0 20px 44px -22px rgba(34, 30, 26, 0.35);
}
.hero-scrim { display: none; }
.hero-curve { display: none; }
.hero-content {
  position: relative;
  width: 100%;
  padding-block: 0;
}
@media (min-width: 860px) {
  .hero {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 3.5rem);
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2rem);
  }
  .hero-img { order: 2; }
  .hero .hero-content { order: 1; padding-inline: 0; max-width: none; margin-inline: 0; }
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-transform: none;
  direction: rtl;
  text-align: start;
}
.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: 600;
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  line-height: 1.28;
  margin-block: 0.4em 0.35em;
  white-space: pre-line;
  max-width: 14ch;
  color: var(--text);
}
.hero-sub {
  color: var(--subtext);
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  max-width: 46ch;
  margin-block-end: 1.85rem;
}
.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: 2.25rem;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32em 0.95em;
  font-size: 0.82rem;
  color: var(--subtext);
  background: var(--bg-raised);
}
.chips li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---------- sections ---------- */
.sec { padding-block: clamp(4rem, 9vw, 6rem); }
.sec-alt { background: var(--bg-raised); border-block: 1px solid var(--line); }
.sec-head { margin-block-end: clamp(2.5rem, 6vw, 3.75rem); max-width: 60ch; }
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4.5vw, 2.1rem);
  line-height: 1.35;
  margin-block-start: 0.35em;
}
.sec-sub { color: var(--subtext); margin-block-start: 0.5em; }

/* ---------- services ("مهاراتي") ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  background: none;
  border: none;
}
@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);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 1.9rem);
  position: relative;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}
.sec-alt .svc-card { background: var(--bg); }
.svc-card:hover { box-shadow: 0 14px 30px -18px rgba(34, 30, 26, 0.28); border-color: var(--line-strong); }
.svc-card::before { content: none; }
.card-ic { width: 26px; height: 26px; color: var(--accent); margin-block-end: 1.1rem; }
.svc-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.45;
}
.svc-en {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--subtext);
  margin-block: 0.2em 0.75em;
  text-align: start;
}
.svc-card p { color: var(--subtext); font-size: 0.94rem; }

/* ---------- process ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 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.4rem; }
.step-n {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  color: var(--line-strong);
  text-align: end;
  margin-block-end: 0.6rem;
}
.steps h3 { font-size: 1.02rem; font-weight: 700; margin-block-end: 0.3em; }
.steps p { color: var(--subtext); font-size: 0.92rem; }

/* ---------- gallery / selected work ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.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: static;
  padding: 0.85rem 0.15rem 0;
  font-size: 0.88rem;
  color: var(--subtext);
  background: none;
}

/* ---------- why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}
@media (min-width: 720px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
.why-item { border-inline-start: 2px solid var(--line-strong); padding-inline-start: 1.35rem; }
.why-item h3 { font-size: 1.05rem; font-weight: 700; margin-block-end: 0.25em; }
.why-item p { color: var(--subtext); font-size: 0.95rem; }

/* ---------- location / contact ---------- */
.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.75rem, 4vw, 2.5rem); display: grid; gap: 1.5rem; align-content: start; }
.loc-row { display: grid; gap: 0.35rem; border-bottom: 1px solid var(--line); padding-block-end: 1.2rem; }
.loc-row:last-child { border-bottom: 0; padding-block-end: 0; }
.loc-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  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-body);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--text);
  display: inline-block;
  text-align: end;
}
.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: 240px;
  padding: 2rem;
}
.loc-map .pin { width: 48px; height: 48px; 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);
  border-radius: var(--radius);
  background-color: var(--bg-raised);
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  line-height: 1.35;
}
.cta-band p {
  color: var(--subtext);
  max-width: 44ch;
  margin: 0.6em auto 1.85em;
}

/* ---------- 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-body); font-weight: 700; font-size: 1.02rem; }
.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 160ms 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-body);
  font-weight: 600;
  font-size: 0.98rem;
  background: var(--bg);
}
.mobile-bar .ic { width: 1.25em; height: 1.25em; }
.mb-wa { background: var(--wa); color: #06220F; }
.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; }
}
