/* ============================================================
   Khalid Majid Contracting — Modern Stylesheet
   ============================================================ */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
html, body { max-width: 100%; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- TOKENS ---------- */
:root {
  --navy:       #0b1e3a;
  --navy-700:   #12294d;
  --navy-500:   #1c3a68;
  --gold:       #c9a227;
  --gold-600:   #b48f1c;
  --gold-100:   #f6edcf;
  --ink:        #0f172a;
  --muted:      #64748b;
  --line:       #e5e8ef;
  --bg:         #ffffff;
  --bg-soft:    #f7f8fb;
  --bg-dark:    #0a1729;
  --white:      #ffffff;
  --success:    #16a34a;
  --danger:     #dc2626;

  --radius-sm:  10px;
  --radius:     16px;
  --radius-lg:  24px;

  --shadow-sm:  0 1px 2px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.04);
  --shadow:     0 4px 12px rgba(15,23,42,.07), 0 12px 30px rgba(15,23,42,.06);
  --shadow-lg:  0 10px 30px rgba(15,23,42,.10), 0 30px 60px rgba(15,23,42,.10);

  --container:  1200px;
  --gap:        24px;

  --font-body:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head:  'Manrope', 'Inter', system-ui, sans-serif;

  --transition: .28s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- BASE ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; font-weight: 700; }
h5 { font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

p { color: #334155; }
.muted { color: var(--muted); font-size: .9rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

section {
  padding: 88px 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  box-shadow: 0 -20px 40px rgba(15,23,42,.08);
}
section.tight { padding: 56px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-dark { background: var(--bg-dark); color: #e5ecf6; }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark p { color: #b8c5db; }

/* ---------- SECTION HEADS ---------- */
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.section-head p { margin-top: 14px; color: var(--muted); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(201,162,39,.28);
}
.btn--primary:hover {
  background: var(--gold-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201,162,39,.36);
}
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn--outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 34px; font-size: 1rem; }

/* ============================================================
   TOPBAR + NAV
   ============================================================ */
.topbar {
  background: var(--navy);
  color: #cfd9ea;
  font-size: .82rem;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.topbar__wedge {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 48px 10px 24px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 34px) 100%, 0 100%);
  margin-right: -30px;
  white-space: nowrap;
}
.topbar__right-wrap { flex: 1; display: flex; justify-content: flex-end; padding-right: 24px; }
.topbar__right { display: flex; align-items: center; gap: 14px; padding: 10px 0 10px 46px; }
.topbar__sep { color: rgba(255,255,255,.25); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 78px;
}
.nav__links { justify-self: center; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { max-height: 44px; width: auto; }
.brand__mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: 12px;
  letter-spacing: .02em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy); font-weight: 800; }
.brand__text small { font-size: .74rem; color: var(--muted); }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 10px 14px;
  font-size: .92rem;
  font-weight: 500;
  color: #334155;
  border-radius: 8px;
  transition: var(--transition);
}
.nav__links a:hover { color: var(--navy); background: var(--bg-soft); }
.nav__links a.is-active { color: var(--navy); font-weight: 700; }
.nav__links a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  width: 18px;
  background: var(--gold);
  margin: 4px auto -2px;
  border-radius: 2px;
}

.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__cta { padding: 11px 20px; font-size: .88rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--navy);
  margin: 0 auto;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  padding: 120px 0 100px;
  background: var(--navy);
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .38;
  transform: scale(1.02);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(11,30,58,.92) 0%, rgba(11,30,58,.65) 55%, rgba(11,30,58,.35) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 780px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .accent { color: var(--gold); }
.hero p { color: #cbd6ea; font-size: 1.1rem; margin-bottom: 34px; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 620px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero__stats .stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}
.hero__stats .stat span {
  font-size: .82rem;
  color: #a9b8d1;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 6px;
  display: block;
}

/* ---------- Split hero (text left, animation right) ---------- */
.hero--split .hero__inner {
  max-width: 1180px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}
.hero--split .hero__col-text { max-width: 560px; }
.hero--split .hero h1 { font-size: clamp(1.5rem, 2.6vw, 2.35rem); margin-bottom: 16px; }
.hero--split .hero p { font-size: .96rem; margin-bottom: 24px; }
.hero--split .hero__actions { gap: 12px; margin-bottom: 32px; }
.hero--split .hero__stats { max-width: 100%; padding-top: 22px; gap: 14px; }
.hero--split .hero__stats .stat strong { font-size: 1.5rem; }
.hero--split .hero__stats .stat span { font-size: .72rem; }
.hero--split .hero__col-visual { display: flex; justify-content: center; }

@media (max-width: 960px) {
  .hero--split .hero__inner { grid-template-columns: 1fr; }
  .hero--split .hero__col-text { max-width: 100%; }
  .hero--split .hero__col-visual { margin-top: 36px; }
}

/* ============================================================
   CARDS / GRIDS
   ============================================================ */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--gold-100);
  color: var(--navy);
  border-radius: 14px;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.card p { color: var(--muted); font-size: .95rem; }

/* Feature list */
.feature-list { display: grid; gap: 14px; }
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #334155;
}
.feature-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: var(--gold-100);
  color: var(--navy);
  border-radius: 50%;
  font-weight: 700;
  font-size: .8rem;
  margin-top: 2px;
}

/* ============================================================
   SPLIT SECTIONS
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background: var(--bg-soft);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body h2 { margin-bottom: 18px; }
.split__body > p { margin-bottom: 24px; }

/* ============================================================
   PROJECTS
   ============================================================ */
.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tab {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
}
.tab:hover { color: var(--navy); border-color: var(--navy); }
.tab.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.project-card__media {
  aspect-ratio: 4/3;
  background: var(--bg-soft);
  overflow: hidden;
  position: relative;
}
.project-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.project-card:hover .project-card__media img { transform: scale(1.06); }
.project-card__tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(11,30,58,.92);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  backdrop-filter: blur(6px);
}
.project-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.project-card__body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.project-card__meta {
  display: flex;
  gap: 14px;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.project-card__meta span { display: inline-flex; gap: 6px; align-items: center; }
.project-card__link {
  margin-top: auto;
  color: var(--navy);
  font-weight: 600;
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.project-card__link:hover { color: var(--gold-600); }

/* ============================================================
   PROCESS (diagonal-cut cards)
   ============================================================ */
.process-timeline {
  position: relative;
  display: grid;
  gap: 22px;
}
.step {
  display: grid;
  grid-template-columns: 1fr 160px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.step:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.step__body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.step__side {
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
}
.step__num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2rem;
  color: var(--navy);
}
.step h3 { margin-bottom: 8px; font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--line);
  position: relative;
  transition: var(--transition);
}
.testimonial:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.testimonial::before {
  content: "“";
  position: absolute;
  top: -10px; left: 24px;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--gold);
  opacity: .35;
}
.testimonial p { color: #334155; font-size: 1rem; margin-bottom: 22px; font-style: italic; }
.testimonial__author {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.testimonial__avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: grid; place-items: center;
  font-weight: 800;
  font-family: var(--font-head);
}
.testimonial__author strong { display: block; font-size: .95rem; color: var(--navy); }
.testimonial__author small { color: var(--muted); font-size: .82rem; }

/* ============================================================
   FAQ (accordion)
   ============================================================ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  padding: 22px 26px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-head);
}
.faq-q::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
  transition: var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a__inner { padding: 0 26px 24px; color: #475569; font-size: .95rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: .95rem;
  color: var(--ink);
  transition: var(--transition);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(11,30,58,.08);
}
.field .error { color: var(--danger); font-size: .82rem; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert--success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert--error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert--info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: flex-start;
}
.contact-info { display: grid; gap: 22px; }
.contact-info__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info__icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--gold-100);
  color: var(--navy);
  border-radius: 12px;
  font-size: 1.2rem;
}
.contact-info__item h4 { font-size: .95rem; margin-bottom: 4px; }
.contact-info__item p, .contact-info__item a {
  color: var(--muted);
  font-size: .92rem;
}
.contact-info__item a:hover { color: var(--navy); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-500) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(201,162,39,.28), transparent 70%);
  border-radius: 50%;
}
.cta-banner h2 { color: #fff; margin-bottom: 14px; position: relative; }
.cta-banner p { color: #cbd6ea; margin-bottom: 28px; max-width: 560px; margin-inline: auto; position: relative; }
.cta-banner .btn { position: relative; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-head {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-500) 100%);
  color: #fff;
  padding: 100px 0 70px;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  bottom: -80px; left: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(201,162,39,.22), transparent 70%);
  border-radius: 50%;
}
.page-head__inner { position: relative; max-width: 780px; }
.page-head h1 { color: #fff; margin-bottom: 14px; }
.page-head p { color: #cbd6ea; font-size: 1.05rem; }
.page-head .breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: .85rem; color: #a9b8d1;
  margin-bottom: 18px;
}
.page-head .breadcrumb a:hover { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  background: var(--bg-dark);
  color: #b8c5db;
  padding: 72px 0 0;
  margin-top: 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
}
.footer__grid h4 { color: #fff; margin-bottom: 16px; }
.footer__grid h5 { color: #fff; margin-bottom: 18px; }
.footer__grid p { color: #8fa2c0; font-size: .92rem; margin-bottom: 10px; }
.footer__grid ul { display: grid; gap: 10px; }
.footer__grid a { color: #b8c5db; font-size: .92rem; transition: var(--transition); }
.footer__grid a:hover { color: var(--gold); }
.contact-list li { display: flex; gap: 8px; font-size: .92rem; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
  font-size: .85rem;
}
.footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer__bottom a { color: #8fa2c0; }
.footer__bottom a:hover { color: var(--gold); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  z-index: 999;
  transition: var(--transition);
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 30px rgba(37,211,102,.55); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split__media { aspect-ratio: auto; height: auto; }
  .split__media img { object-fit: contain; height: auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; position: static; box-shadow: none; }
  .topbar { font-size: .75rem; }
  .topbar__wedge { padding: 8px 30px 8px 16px; clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%); }
  .topbar__right { display: none; }
  .hide-sm { display: none; }

  .nav { grid-template-columns: auto auto; justify-content: space-between; height: 68px; gap: 10px; }
  .nav__right { gap: 8px; }
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    width: 82%;
    max-width: 340px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 90px 22px 40px;
    box-shadow: -12px 0 40px rgba(0,0,0,.12);
    transform: translateX(100%);
    transition: transform .35s ease;
    overflow-y: auto;
    z-index: 1001;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { padding: 14px 16px; font-size: 1rem; }
  .nav__links a.is-active::after { display: none; }
  .nav__toggle { display: flex; z-index: 1002; }
  .nav__cta { display: none; }

  .hero { min-height: auto; padding: 80px 0 60px; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero__stats .stat strong { font-size: 1.6rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 48px 26px; }

  .step { grid-template-columns: 1fr; }
  .step__body { padding: 22px 22px 6px; }
  .step__side { order: -1; clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); padding: 16px; }
  .step__num { font-size: 1.5rem; }

  .wa-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .brand__text small { display: none; }
  .hero__stats { grid-template-columns: 1fr; }
}

/* ============================================================
   ADMIN (shared base — admin-specific styles in Part 4)
   ============================================================ */
/* Mobile top bar and off-canvas drawer trigger — hidden on desktop,
   switched on in the @media (max-width: 900px) block below */
.admin-mobile-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: var(--navy);
  color: #fff;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px 0 14px;
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(60px + env(safe-area-inset-top, 0px));
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.admin-mobile-bar__toggle {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.admin-mobile-bar__toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }
.admin-mobile-bar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-family: var(--font-head);
  font-size: .95rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.admin-mobile-bar__brand .brand__mark { width: 34px; height: 34px; font-size: .8rem; flex-shrink: 0; }
.admin-mobile-bar__view {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  color: #cfd9ea;
  font-size: 1.15rem;
  border-radius: 10px;
}
.admin-mobile-bar__view:hover { background: rgba(255,255,255,.1); }

.admin-drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(8,16,30,.55);
  z-index: 1001;
  opacity: 0;
  transition: opacity .25s ease;
}
.admin-drawer-overlay.is-open { display: block; opacity: 1; }

/* Mobile bottom tab bar — app-style primary navigation */
.admin-bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: 1000;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -6px 20px rgba(15,23,42,.08);
}
.admin-bottom-nav a, .admin-bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: .68rem;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 7px 2px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.admin-bottom-nav a:active, .admin-bottom-nav button:active { background: var(--bg-soft); }
.admin-bottom-nav span { font-size: 1.3rem; line-height: 1; position: relative; }
.admin-bottom-nav a.is-active, .admin-bottom-nav button.is-active { color: var(--navy); }
.admin-bottom-nav__dot {
  position: absolute;
  top: -3px; right: -6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid #fff;
}

/* Upload progress bar — shown while a form with a file input is submitting */
.upload-progress {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 32px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  z-index: 2000;
  animation: page-fade-in .2s ease both;
}
.upload-progress__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: var(--navy);
  font-weight: 700;
  font-size: .9rem;
}
.upload-progress__pct { color: var(--gold-600); font-family: var(--font-head); }
.upload-progress__track {
  width: 100%; height: 8px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
}
.upload-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-600));
  border-radius: 999px;
  transition: width .15s ease;
}
.upload-progress.is-error .upload-progress__fill { background: var(--danger); width: 100% !important; }
.upload-progress.is-error .upload-progress__label { color: var(--danger); }
.upload-progress.is-error .upload-progress__pct { display: none; }

.admin-body {
  background: var(--bg-soft);
  min-height: 100vh;
  font-family: var(--font-body);
}
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--navy);
  color: #cbd6ea;
  padding: 26px 20px;
}
.admin-side__brand {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 22px; margin-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
}
.admin-side__brand .brand__mark { width: 38px; height: 38px; font-size: .9rem; }
.admin-side nav { display: grid; gap: 4px; }
.admin-side nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #cbd6ea;
  font-size: .92rem;
  transition: var(--transition);
}
.admin-side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-side nav a.is-active { background: var(--gold); color: var(--navy); font-weight: 700; }

.admin-main { padding: 34px 40px; }
.admin-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 30px; gap: 20px; flex-wrap: wrap;
}
.admin-topbar h1 { font-size: 1.6rem; }
.admin-topbar .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 24px;
}
.admin-card h2 { font-size: 1.15rem; margin-bottom: 18px; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
  vertical-align: middle;
}
.admin-table th { font-weight: 700; color: var(--navy); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.admin-table tr:hover td { background: var(--bg-soft); }
.admin-table img.thumb { width: 60px; height: 45px; object-fit: cover; border-radius: 6px; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge--res { background: #e0f2fe; color: #075985; }
.badge--com { background: var(--gold-100); color: var(--gold-600); }
.badge--unread { background: #fee2e2; color: #991b1b; }
.badge--read { background: #dcfce7; color: #166534; }

.btn-sm { padding: 8px 14px; font-size: .82rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }

.admin-login {
  max-width: 420px;
  margin: 8vh auto;
  background: #fff;
  padding: 42px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.admin-login h1 { font-size: 1.5rem; margin-bottom: 8px; text-align: center; }
.admin-login p.sub { text-align: center; color: var(--muted); margin-bottom: 28px; font-size: .92rem; }

@media (max-width: 900px) {
  .admin-shell { display: block; }

  .admin-mobile-bar { display: flex; }
  .admin-bottom-nav { display: flex; }

  /* Sidebar becomes a slide-in drawer instead of a static column */
  .admin-side {
    position: fixed;
    top: 0; left: 0;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    z-index: 1002;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .3s ease;
    box-shadow: 12px 0 40px rgba(0,0,0,.25);
  }
  .admin-side.is-open { transform: translateX(0); }
  .admin-side nav { display: grid; grid-template-columns: 1fr; gap: 4px; }
  .admin-side nav a { padding: 14px 14px; font-size: .98rem; }

  /* Main content: clear the fixed top bar and bottom tab bar */
  .admin-main {
    padding: calc(60px + env(safe-area-inset-top, 0px) + 18px) 16px calc(78px + env(safe-area-inset-bottom, 0px));
  }

  /* Tables scroll horizontally instead of squeezing/breaking layout */
  .admin-card:has(> table.admin-table),
  .admin-card:has(.admin-table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-table { font-size: .85rem; min-width: 560px; }
  .admin-table th, .admin-table td { padding: 10px 8px; }

  /* Touch-friendlier form controls and buttons */
  .btn { padding: 13px 22px; }
  .field input, .field textarea, .field select { padding: 13px 14px; font-size: 1rem; }
}

/* ============================================================
   SETTINGS — categorised tab layout (Site Settings page)
   ============================================================ */
.settings-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 90px; /* room for the sticky save bar */
}
.settings-tabs {
  display: grid;
  gap: 6px;
  position: sticky;
  top: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.settings-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  transition: var(--transition);
}
.settings-tab:hover { background: var(--bg-soft); }
.settings-tab.is-active { background: var(--navy); color: #fff; }
.settings-tab.is-active small { color: #b9c6dd; }
.settings-tab__icon { font-size: 1.15rem; flex-shrink: 0; width: 24px; text-align: center; }
.settings-tab__text { display: grid; gap: 2px; min-width: 0; }
.settings-tab__text strong { font-size: .9rem; }
.settings-tab__text small { font-size: .74rem; color: var(--muted); line-height: 1.3; }

.settings-panels { min-width: 0; }
.settings-panel { display: none; margin-bottom: 0; animation: page-fade-in .25s ease both; }
.settings-panel.is-active { display: block; }
.settings-panel h2 { display: flex; align-items: center; gap: 10px; }
.settings-panel__icon { font-size: 1.2rem; }

.settings-savebar {
  position: fixed;
  left: 260px; right: 0; bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 16px 40px;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(15,23,42,.06);
}
.settings-savebar__hint { color: var(--muted); font-size: .85rem; margin-right: auto; }

@media (max-width: 900px) {
  .settings-shell { grid-template-columns: 1fr; padding-bottom: 100px; }
  .settings-tabs { position: static; max-height: none; grid-template-columns: repeat(2, 1fr); display: grid; }
  .settings-savebar { left: 0; padding: 14px 22px; }
  .settings-savebar__hint { display: none; }
}

/* ============================================================
   NAVIGATION MENU — page list with toggle switches
   ============================================================ */
.navmenu-list { display: grid; gap: 10px; }
.navmenu-row {
  display: grid;
  grid-template-columns: 20px 32px 1.4fr 1fr 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: var(--transition);
}
.navmenu-row:hover { border-color: var(--navy-500); background: #fff; box-shadow: var(--shadow-sm); }
.navmenu-row__handle { color: var(--muted); font-size: 1.1rem; text-align: center; cursor: grab; }
.navmenu-row__icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  font-size: 1rem;
}
.navmenu-row__page { display: grid; gap: 2px; min-width: 0; }
.navmenu-row__page strong { font-size: .92rem; }
.navmenu-row__page small { font-size: .74rem; }
.navmenu-row__field { display: grid; gap: 4px; min-width: 0; }
.navmenu-row__field label { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.navmenu-row__field input {
  width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line);
  font-size: .86rem; background: #fff;
}
.navmenu-row__field input:focus { outline: none; border-color: var(--navy-500); }
.navmenu-row__reorder { display: grid; gap: 2px; }
.navmenu-move {
  width: 26px; height: 20px;
  border: 1px solid var(--line); background: #fff; border-radius: 5px;
  cursor: pointer; font-size: .6rem; color: var(--navy); line-height: 1;
  transition: var(--transition);
}
.navmenu-move:hover:not(:disabled) { background: var(--navy); color: #fff; border-color: var(--navy); }
.navmenu-move:disabled { opacity: .3; cursor: not-allowed; }

/* Toggle switch (replaces plain checkboxes) */
.toggle-switch { position: relative; display: inline-block; cursor: pointer; }
.toggle-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.toggle-switch__track {
  display: block; width: 44px; height: 26px; border-radius: 999px;
  background: #cbd5e1; transition: var(--transition); position: relative;
}
.toggle-switch__thumb {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: var(--transition);
}
.toggle-switch input:checked + .toggle-switch__track { background: var(--success); }
.toggle-switch input:checked + .toggle-switch__track .toggle-switch__thumb { transform: translateX(18px); }
.toggle-switch input:focus-visible + .toggle-switch__track { outline: 2px solid var(--navy-500); outline-offset: 2px; }

@media (max-width: 900px) {
  .navmenu-row { grid-template-columns: 1fr; text-align: left; }
  .navmenu-row__reorder { flex-direction: row; display: flex; }
}

/* ============================================================
   DASHBOARD — visitor counter widget
   ============================================================ */
.visitors-card__head { margin-bottom: 18px; }
.visitors-card__totals { display: flex; gap: 40px; margin-bottom: 24px; flex-wrap: wrap; }
.visitors-total { display: grid; gap: 2px; }
.visitors-total strong { font-family: var(--font-head); font-size: 2.1rem; color: var(--navy); line-height: 1; }
.visitors-total span { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 4px; }
.visitors-chart {
  display: flex; align-items: flex-end; gap: 14px;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.visitors-chart__bar { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.visitors-chart__count { font-size: .72rem; font-weight: 700; color: var(--navy); }
.visitors-chart__fill {
  width: 100%; max-width: 34px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-600) 100%);
  border-radius: 6px 6px 3px 3px;
  transition: var(--transition);
}
.visitors-chart__label { font-size: .72rem; color: var(--muted); text-transform: uppercase; }

@media (max-width: 640px) {
  .visitors-card__totals { gap: 24px; }
  .visitors-chart { gap: 6px; }
}
/* ============================================================
   LANGUAGE SWITCHER — single square box, shows the OTHER language
   ============================================================ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--navy);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.lang-toggle:hover { border-color: var(--navy); }

/* Variant used inside the dark navy topbar wedge area */
.lang-toggle--topbar {
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
}
.lang-toggle--topbar:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.4); }

/* ============================================================
   TEAM CARD PHOTO (about.php)
   ============================================================ */
.team-card__photo {
  width: 110px; height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  border: 3px solid var(--gold-100);
  transition: var(--transition);
}
.team-card:hover .team-card__photo {
  border-color: var(--gold);
  transform: scale(1.05);
}

/* Gallery thumbnails (project.php) — zoom on hover like project cards */
.gallery-thumb { cursor: zoom-in; }
.gallery-thumb img { transition: transform .6s ease; }
.gallery-thumb:hover img { transform: scale(1.08); }

/* ============================================================
   EXTRA MICRO-INTERACTIONS
   ============================================================ */

/* Underline-sweep on footer/inline text links that don't already have a hover treatment */
.footer__grid a,
.contact-info__item a {
  position: relative;
}

/* Buttons: subtle press feedback */
.btn:active { transform: translateY(0) scale(.98); }

/* Brand mark: gentle tilt on hover for a bit of personality */
.brand__mark { transition: var(--transition); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.05); }

/* Section eyebrow underline flourish */
.section-head .eyebrow { position: relative; }

/* Smooth page-load fade-in */
body { animation: page-fade-in .5s ease both; }
@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* WhatsApp float: soft pulse to draw the eye without being obnoxious */
.wa-float { animation: wa-pulse 2.6s ease-in-out infinite; }
.wa-float:hover { animation: none; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.35); }
  50%      { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 10px rgba(37,211,102,0); }
}

/* ============================================================
   ARABIC / RTL SUPPORT
   ============================================================ */
body.lang-ar {
  font-family: 'Tajawal', 'Cairo', var(--font-body);
}
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3,
body.lang-ar h4, body.lang-ar h5 {
  font-family: 'Cairo', var(--font-head);
  letter-spacing: 0;
}

html[dir="rtl"] .nav__links a.is-active::after { margin: 4px auto -2px; }

html[dir="rtl"] .topbar { flex-direction: row-reverse; }
html[dir="rtl"] .topbar__wedge {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 34px 100%);
  margin-right: 0;
  margin-left: -30px;
  padding: 10px 24px 10px 48px;
}
html[dir="rtl"] .topbar__right { padding: 10px 46px 10px 0; }
html[dir="rtl"] .topbar__right-wrap { justify-content: flex-start; padding-right: 0; padding-left: 24px; }

html[dir="rtl"] .step__side {
  clip-path: polygon(0 0, 75% 0, 100% 100%, 0 100%);
}

html[dir="rtl"] .hero__inner { text-align: right; }
html[dir="rtl"] .hero p { margin-inline: 0; }

html[dir="rtl"] .feature-list li::before { order: 2; }
html[dir="rtl"] .contact-info__item,
html[dir="rtl"] .testimonial__author,
html[dir="rtl"] .step,
html[dir="rtl"] .card__icon { direction: rtl; }

html[dir="rtl"] .project-card__tag { left: auto; right: 14px; }
html[dir="rtl"] .breadcrumb { flex-direction: row-reverse; justify-content: flex-end; }
html[dir="rtl"] .faq-q { text-align: right; }
html[dir="rtl"] .cta-banner::before { right: auto; left: -100px; }
html[dir="rtl"] .page-head::before { left: auto; right: -80px; }
html[dir="rtl"] .testimonial::before { left: auto; right: 24px; }
html[dir="rtl"] .wa-float { right: auto; left: 24px; }
@media (max-width: 768px) {
  html[dir="rtl"] .nav__links {
    right: auto; left: 0;
    box-shadow: 12px 0 40px rgba(0,0,0,.12);
    transform: translateX(-100%);
  }
  html[dir="rtl"] .nav__links.open { transform: translateX(0); }
  html[dir="rtl"] .wa-float { left: 18px; right: auto; }
}

/* ============================================================
   HOMEPAGE BUILD ANIMATION (embedded in the hero, right column)
   Line-art style: no card, sits directly on the navy hero background
   ============================================================ */
.build-scene {
  max-width: 460px;
  margin: 0 auto;
  padding: 8px;
}
.build-scene svg { width: 100%; height: auto; display: block; }

/* Scene colors — gold/white line-art tuned for the dark navy hero */
.build-ground { stroke: rgba(255,255,255,.28); }
.build-shadow { fill: rgba(0,0,0,.3); }
.build-sun { fill: var(--gold); stroke: var(--gold-100); }
.build-bush circle { fill: rgba(255,255,255,.14); }
.build-foundation { fill: rgba(255,255,255,.35); }
.build-walls { fill: rgba(255,255,255,.05); stroke: #fff; }
.build-window rect { fill: rgba(201,162,39,.18); stroke: var(--gold); }
.build-window line { stroke: var(--gold); }
.build-door rect { fill: rgba(201,162,39,.92); }
.build-door circle { fill: var(--navy); }
.build-roof { fill: rgba(201,162,39,.88); stroke: #fff; }
.build-chimney { fill: rgba(255,255,255,.32); }
.build-smoke { fill: rgba(255,255,255,.55); }
.build-badge circle { fill: var(--gold); }
.build-badge path { stroke: var(--navy); }

/* Parts start hidden/offset; JS adds .is-building to run the sequence,
   then loops it continuously — see the build-animation block in main.js */
.build-part,
.build-ground,
.build-shadow,
.build-sun,
.build-bush {
  opacity: 0;
  transition: opacity .6s ease, transform .6s cubic-bezier(.34,1.4,.64,1);
}
.build-ground,
.build-shadow,
.build-sun,
.build-bush { transform: translateY(6px); transition-delay: .05s; }

.build-foundation { transform: translateY(22px); transition-delay: .3s; }
.build-walls       { transform: translateY(55px); transition-delay: 1.0s; transition-duration: .8s; }
.build-window       { transform: translateY(18px); transition-delay: 1.8s; }
.build-window + .build-window { transition-delay: 1.95s; }
.build-door         { transform: translateY(28px); transition-delay: 2.1s; }
.build-roof         { transform: translateY(-70px); transition-delay: 2.3s; transition-duration: .8s; }
.build-chimney      { transform: translateY(18px); transition-delay: 3.15s; }
.build-badge {
  transform: translateY(10px) scale(.5);
  transform-box: fill-box;
  transform-origin: center;
  transition-delay: 3.4s;
  transition-duration: .7s;
}

.build-scene.is-building .build-part,
.build-scene.is-building .build-ground,
.build-scene.is-building .build-shadow,
.build-scene.is-building .build-sun,
.build-scene.is-building .build-bush {
  opacity: 1;
  transform: translate(0) scale(1);
}
.build-scene.is-building .build-badge { transform: translate(0) scale(1); }

/* Used briefly between loops to snap parts back to their hidden state
   without animating the "undo" — see resetScene() in main.js */
.build-scene.resetting .build-part,
.build-scene.resetting .build-ground,
.build-scene.resetting .build-shadow,
.build-scene.resetting .build-sun,
.build-scene.resetting .build-bush {
  transition: none !important;
}

/* Chimney smoke — only loops once the chimney has appeared */
.build-smoke { opacity: 0; }
.build-scene.smoke-on .build-smoke {
  animation: smoke-rise 3s ease-out infinite;
}
.build-scene.smoke-on .build-smoke--2 { animation-delay: 1.1s; }
@keyframes smoke-rise {
  0%   { opacity: 0; transform: translate(0,0) scale(.8); }
  20%  { opacity: .7; }
  100% { opacity: 0; transform: translate(6px,-30px) scale(1.4); }
}

@media (max-width: 600px) {
  .build-scene { padding: 4px; max-width: 340px; }
}

/* Respect reduced-motion preference: show the finished house, static, no loop */
@media (prefers-reduced-motion: reduce) {
  .build-part, .build-ground, .build-shadow, .build-sun, .build-bush {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .build-smoke { animation: none !important; opacity: 0 !important; }
}

/* (img-cover wipe effect removed — replaced by section pin/cover, see below) */
/* ============================================================
   ADMIN: QUOTATION BUILDER
   ============================================================ */

/* Language picker: two big buttons, pick one for the whole quotation */
.lang-picker { display: flex; gap: 14px; flex-wrap: wrap; }
.lang-picker__btn {
  flex: 1;
  min-width: 220px;
  padding: 18px 20px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: var(--transition);
}
.lang-picker__btn:hover { border-color: var(--gold); }
.lang-picker__btn.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }

/* Labels: only the label matching the chosen language is shown.
   Defaults to English until JS sets the mode on page load. */
.lbl-ar { display: none; }
.lang-mode-ar .lbl-en { display: none; }
.lang-mode-ar .lbl-ar { display: revert; }

.quote-item-row {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 44px 16px 16px;
  margin-bottom: 14px;
  background: var(--bg-soft);
}
.quote-item-row__grid {
  display: grid;
  grid-template-columns: 2fr 1fr .8fr 1fr 1fr;
  gap: 12px;
}
.quote-item-row__grid .field { margin-bottom: 0; }
.item-total { background: #fff; font-weight: 700; color: var(--navy); }
.quote-item-row__remove {
  position: absolute;
  top: 10px; right: 10px;
  width: 28px; height: 28px;
  border: none;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.quote-item-row__remove:hover { background: #fecaca; }

.quote-grand-total {
  text-align: right;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
  color: var(--muted);
}
.quote-grand-total strong { color: var(--navy); font-family: var(--font-head); font-size: 1.3rem; margin-left: 8px; }

@media (max-width: 700px) {
  .quote-item-row__grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PROJECT DETAIL — cover photo (normal contained banner, not
   the old full-viewport sticky "pinned image" treatment)
   ============================================================ */
.project-cover {
  width: 100%;
  height: 380px;
  overflow: hidden;
}
.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) {
  .project-cover { height: 240px; }
}
