/* ── THEME VARIABLES ── */
:root {
  --bg:          #FBFAF6;
  --surface:     #FFFFFF;
  --text:        #15181F;
  --text-muted:  #6B7480;
  --border:      #E4E7EB;
  --nav-bg:      #FFFFFF;
  --sec-label:   #AEB6BF;
  --accent:      #CE1126;
  --teal:        #5FC2D4;
  --sea:         #073B4C;
  --icon-bg:     #FFF0F2;
  --nav-shadow:  rgba(7,59,76,0.06);
  --card-shadow: rgba(206,17,38,.08);
  --work-light:  #F0F4F7;
}
[data-theme="dark"] {
  --bg:          #0F172A;
  --surface:     #1E293B;
  --text:        #E2E8F0;
  --text-muted:  #94A3B8;
  --border:      rgba(255,255,255,0.10);
  --nav-bg:      #1A2844;
  --sec-label:   #64748B;
  --icon-bg:     rgba(206,17,38,0.15);
  --nav-shadow:  rgba(0,0,0,0.4);
  --card-shadow: rgba(0,0,0,0.25);
  --work-light:  #1E293B;
}

*, *::before, *::after { box-sizing: border-box; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; margin: 0; padding: 0; }
body { background: var(--bg); font-family: 'IBM Plex Sans', sans-serif; color: var(--text); transition: background .3s, color .3s; }
a { text-decoration: none; color: inherit; }

/* Arabic font override */
html[dir="rtl"] *:not(svg, svg *) { font-family: 'Tajawal', sans-serif !important; letter-spacing: 0 !important; }

/* ── NAV ── */
nav { position: sticky; top: 0; z-index: 100; background: var(--nav-bg); border-bottom: 1px solid var(--border); box-shadow: 0 2px 16px var(--nav-shadow); transition: background .3s, border-color .3s; }
.nav-inner { max-width: 1080px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 13px; }
.nav-wordmark { display: flex; align-items: baseline; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 23px; letter-spacing: -0.035em; }
.nav-wordmark .w { color: var(--text); }
.nav-wordmark .r { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-weight: 500; font-size: 15px; color: var(--text-muted); transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
[data-theme="dark"] .nav-links a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* ── HAMBURGER ── */
.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid var(--border); background: transparent; cursor: pointer; padding: 0; flex-shrink: 0; transition: border-color .2s; }
.hamburger:hover { border-color: var(--accent); }
.hamburger span { display: block; width: 16px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu { display: flex; flex-direction: column; gap: 0; background: var(--nav-bg); border-top: 1px solid var(--border); padding: 0 20px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s ease, padding .35s ease, opacity .25s; }
.mobile-menu.open { max-height: 500px; padding: 12px 20px 24px; opacity: 1; }
.mobile-link { font-size: 16px; font-weight: 600; color: var(--text-muted); padding: 14px 4px; border-bottom: 1px solid var(--border); transition: color .2s; }
.mobile-link:hover { color: var(--accent); }
.mobile-cta { margin-top: 14px; justify-content: center; width: 100%; }

/* Theme toggle button */
.theme-btn { width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .2s, color .2s; flex-shrink: 0; }
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }

/* EN / AR segmented toggle */
.lang-toggle { display: flex; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; flex-shrink: 0; transition: border-color .3s; }
.lang-opt { background: transparent; color: var(--text-muted); font-weight: 700; font-size: 12px; padding: 7px 11px; border: none; cursor: pointer; transition: background .2s, color .2s; font-family: 'IBM Plex Mono', monospace; letter-spacing: .04em; }
.lang-opt.active { background: var(--accent); color: #fff; }
.lang-opt:not(.active):hover { background: var(--border); color: var(--text); }

/* CTA button */
.btn-cta { background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; padding: 10px 20px; border-radius: 9px; box-shadow: 0 4px 14px rgba(206,17,38,.28); transition: opacity .2s, transform .2s; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.btn-cta:hover { opacity: .88; transform: translateY(-1px); }

/* ── HERO ── */
.hero { max-width: 1080px; margin: 0 auto; padding: 100px 40px 88px; }
.hero-tag { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 30px; }
.hero h1 { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 70px; letter-spacing: -.04em; line-height: 1.22; color: var(--text); max-width: 720px; margin-bottom: 28px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.tw-cursor { display: inline-block; width: 3px; height: .85em; background: var(--accent); margin-left: 3px; vertical-align: middle; border-radius: 2px; animation: twBlink 1s step-end infinite; }
@keyframes twBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-sub { font-size: 19px; line-height: 1.65; color: var(--text-muted); max-width: 520px; margin-bottom: 44px; }
.hero-btns { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* AL Thaabet-style buttons */
.btn-primary { background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; padding: 12px 26px; border-radius: 9px; box-shadow: 0 6px 20px rgba(206,17,38,.28); transition: opacity .2s, transform .2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-outline { color: var(--text); font-weight: 600; font-size: 15px; padding: 11px 26px; border-radius: 9px; border: 1.5px solid var(--border); transition: border-color .2s, color .2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 60px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--text-muted); font-weight: 500; transition: background .3s, border-color .3s; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

/* ── SHARED ── */
.divider { height: 1px; background: var(--border); max-width: 1080px; margin: 0 auto; transition: background .3s; }
.section { max-width: 1080px; margin: 0 auto; padding: 80px 40px; }
.sec-label { font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--sec-label); margin-bottom: 14px; }
.sec-title { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 38px; letter-spacing: -.03em; color: var(--text); margin-bottom: 12px; }
.sec-sub { font-size: 17px; line-height: 1.65; color: var(--text-muted); max-width: 520px; margin-bottom: 48px; }

/* ── SERVICES ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.svc-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px 28px; transition: border-color .2s, box-shadow .2s, background .3s; }
.svc-card:hover { border-color: var(--accent); box-shadow: 0 8px 30px var(--card-shadow); }
.svc-icon { width: 48px; height: 48px; background: var(--icon-bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 20px; }
.svc-card h3 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 9px; }
.svc-card p { font-size: 14px; line-height: 1.65; color: var(--text-muted); }

/* ── WORK ── */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.work-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: border-color .2s, box-shadow .2s, background .3s; }
.work-card:hover { border-color: #1B92B0; box-shadow: 0 8px 32px rgba(7,59,76,.10); }
.work-thumb { background: #073B4C; padding: 52px 40px; display: flex; align-items: center; justify-content: center; min-height: 200px; }
.work-thumb.light { background: var(--work-light); }
.work-body { padding: 28px; }
.work-tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 9px; }
.work-tag.muted { color: var(--sec-label); }
.work-body h3 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 19px; color: var(--text); margin-bottom: 8px; }
.work-body p { font-size: 14px; line-height: 1.65; color: var(--text-muted); margin-bottom: 20px; }
.work-link { font-weight: 600; font-size: 14px; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.work-link:hover { opacity: .78; }

/* ── WHY ── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.why-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px 28px; transition: background .3s, border-color .3s; }
.why-num { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .16em; color: var(--teal); margin-bottom: 16px; }
.why-card h3 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 9px; }
.why-card p { font-size: 14px; line-height: 1.65; color: var(--text-muted); }

/* ── CTA BAND ── */
.cta-band { background: #073B4C; padding: 88px 40px; text-align: center; }
.cta-band-inner { max-width: 600px; margin: 0 auto; }
.cta-mono { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #5FC2D4; margin-bottom: 24px; }
.cta-band h2 { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 44px; letter-spacing: -.03em; color: #fff; margin-bottom: 14px; }
.cta-band p { font-size: 17px; color: #C7EBF0; margin-bottom: 40px; line-height: 1.6; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-cta-main { background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; padding: 12px 26px; border-radius: 9px; box-shadow: 0 6px 20px rgba(206,17,38,.40); display: inline-flex; align-items: center; gap: 8px; transition: opacity .2s; }
.btn-cta-main:hover { opacity: .88; }
.btn-cta-ghost { color: #C7EBF0; font-weight: 600; font-size: 15px; padding: 11px 26px; border-radius: 9px; border: 1.5px solid rgba(199,235,240,.30); display: inline-flex; align-items: center; gap: 8px; transition: border-color .2s, color .2s; }
.btn-cta-ghost:hover { border-color: #5FC2D4; color: #fff; }

/* ── FOOTER ── */
footer { background: #073B4C; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 52px 48px 0; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; }
.footer-desc { font-size: 15px; line-height: 1.65; color: #C7EBF0; max-width: 380px; margin-top: 18px; }
.footer-col-label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #5FC2D4; margin-bottom: 16px; }
.footer-contact a { display: block; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 17px; color: #fff; margin-bottom: 10px; transition: color .2s; direction: ltr; }
.footer-contact a:hover { color: #5FC2D4; }
.footer-badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; padding: 5px 12px; border: 1px solid rgba(199,235,240,.22); border-radius: 999px; }
.footer-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #5FC2D4; display: inline-block; flex-shrink: 0; }
.footer-badge-text { font-size: 12px; letter-spacing: .04em; color: #C7EBF0; }
.footer-appt { font-size: 13px; color: #8FB8C4; margin-top: 12px; line-height: 1.5; }
.footer-hr { height: 1px; background: rgba(199,235,240,.14); margin: 44px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 22px 0 26px; }
.footer-bottom span { font-size: 13px; color: #8FB8C4; }

/* ── RTL TWEAKS ── */
[dir="rtl"] .footer-right-col { display:flex; flex-direction:column; align-items:flex-start; }
[dir="rtl"] .footer-right-col .footer-contact { display:flex; flex-direction:column; align-items:flex-start; width:100%; }
[dir="rtl"] .footer-right-col .footer-email { text-align:right; width:100%; }
[dir="rtl"] .footer-right-col .footer-col-label { text-align:right; width:100%; }
[dir="rtl"] .footer-right-col .footer-appt { text-align:right; }
[dir="rtl"] .footer-right-col .footer-badge { align-self:flex-start; }
[dir="rtl"] .hero h1 { font-size: 62px; }
[dir="rtl"] .sec-label { letter-spacing: 0; }

/* ── TABLET (≤ 860px) ── */
@media (max-width: 860px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-inner { padding: 0 24px; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { padding: 72px 32px 60px; }
  .hero h1 { font-size: 46px; }
  [dir="rtl"] .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 17px; }

  /* Sections */
  .section { padding: 64px 32px; }
  .sec-title { font-size: 32px; }

  /* Grids → single column */
  .work-grid { grid-template-columns: 1fr; }
  .why-grid  { grid-template-columns: 1fr 1fr; }

  /* CTA band */
  .cta-band { padding: 72px 32px; }
  .cta-band h2 { font-size: 36px; }

  /* Footer */
  .footer-inner { padding: 44px 32px 0; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-desc { max-width: 100%; }
}

/* ── MOBILE (≤ 600px) ── */
@media (max-width: 600px) {
  /* Nav — keep logo + theme + lang only */
  .nav-inner { padding: 0 16px; height: 62px; gap: 8px; }
  .btn-cta { display: none; }

  /* Hero */
  .hero { padding: 48px 20px 40px; }
  .hero h1 { font-size: 34px; line-height: 1.18; }
  [dir="rtl"] .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 15px; max-width: 100%; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-outline { justify-content: center; width: 100%; }
  .hero-pills { margin-top: 36px; gap: 8px; }
  .pill { font-size: 12px; padding: 6px 12px; }

  /* Sections */
  .section { padding: 48px 20px; }
  .sec-title { font-size: 26px; }
  .sec-sub { font-size: 15px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .svc-card { padding: 24px 20px; }

  /* Work */
  .work-thumb { padding: 36px 24px; min-height: 160px; }
  .work-body { padding: 20px; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 24px 20px; }

  /* CTA band */
  .cta-band { padding: 56px 20px; }
  .cta-band h2 { font-size: 26px; }
  .cta-band p { font-size: 15px; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .btn-cta-main, .btn-cta-ghost { justify-content: center; width: 100%; }

  /* Footer */
  .footer-inner { padding: 36px 20px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ── SMALL MOBILE (≤ 400px) ── */
@media (max-width: 400px) {
  .nav-wordmark { font-size: 19px; }
  .lang-opt { padding: 6px 8px; font-size: 11px; }
  .hero h1 { font-size: 28px; }
  [dir="rtl"] .hero h1 { font-size: 26px; }
  .sec-title { font-size: 22px; }
  .cta-band h2 { font-