/* ============================================================
   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%; }
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; }
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;
  padding: 8px 0;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar__left, .topbar__right { display: flex; gap: 20px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.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__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 {
  position: relative;
  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;
}

/* ============================================================
   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 (timeline)
   ============================================================ */
.process-timeline {
  position: relative;
  display: grid;
  gap: 28px;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: flex-start;
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: var(--transition);
}
.step:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.step__num {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  border-radius: 16px;
}
.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;
  position: relative;
  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 {
  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: 16/10; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .topbar__inner { font-size: .75rem; }
  .topbar__right { display: none; }
  .hide-sm { display: none; }

  .nav { height: 68px; }
  .nav__links {
    position: fixed;
    top: 0; right: -100%;
    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);
    transition: right .35s ease;
    overflow-y: auto;
    z-index: 1001;
  }
  .nav__links.open { right: 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; gap: 16px; padding: 24px; }
  .step__num { width: 48px; height: 48px; font-size: 1.1rem; }

  .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)
   ============================================================ */
.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 { grid-template-columns: 1fr; }
  .admin-side { padding: 18px; }
  .admin-side nav { grid-template-columns: repeat(2, 1fr); }
  .admin-main { padding: 22px; }
  .admin-table { font-size: .85rem; }
  .admin-table th, .admin-table td { padding: 10px 8px; }
}
/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-switch a {
  color: #cfd9ea;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 4px;
  transition: var(--transition);
}
.lang-switch a:hover { color: #fff; }
.lang-switch a.is-active { color: var(--gold); }
.lang-switch__sep { color: rgba(255,255,255,.3); }
.nav__lang-mobile { display: none; }

/* ============================================================
   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"] .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: -100%;
    box-shadow: 12px 0 40px rgba(0,0,0,.12);
  }
  html[dir="rtl"] .nav__links.open { left: 0; right: auto; }
  html[dir="rtl"] .wa-float { left: 18px; right: auto; }
  .nav__lang-mobile {
    display: block;
    margin-top: 14px;
    padding: 14px 16px !important;
    border-top: 1px solid var(--line);
    font-weight: 700 !important;
    color: var(--gold-600) !important;
  }
}
