/* Firows Tech — SEO/mobile build. Brand palette (Brand kit v2): navy #0B0F3B, blue #2D8FD6, grey #9AA3B2. Button fills use blue-dark so white text passes 4.5:1. */
:root {
  --navy: #0B0F3B;
  --navy-2: #161C4F;
  --blue: #2D8FD6;
  --blue-dark: #1F6FAE;
  --blue-hover: #1A5C92;
  --blue-text: #1a5f94;
  --grey: #9AA3B2;
  --text: #2f3748;
  --muted: #5b6375;
  --light: #f3f6fb;
  --border: #dfe5ef;
  --white: #ffffff;
  --radius: 12px;
  --wa: #1f8f4e;
  --tap: 44px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", Arial, system-ui, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  font-size: 1rem;
  overflow-wrap: break-word;
  padding-bottom: 72px; /* room for mobile action bar */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.25rem); }
p { margin: 0 0 1em; }
a { color: var(--blue-text); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.2em; }
.container { width: min(1140px, 100% - 40px); margin: 0 auto; }
section { padding: clamp(48px, 7vw, 76px) 0; }
.section-alt { background: var(--light); }
.skip-link { position: absolute; left: 8px; top: 8px; transform: translateY(-200%); background: var(--white); color: var(--navy); padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.eyebrow {
  display: inline-block; font-size: .75rem; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--white); background: var(--blue-dark); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; font-weight: 600;
}
.lead { font-size: clamp(1rem, 1.8vw, 1.1rem); color: var(--muted); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Header */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 2px solid var(--blue); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; position: relative; padding: 14px 0; }
.brand { padding: 4px 0; display: inline-flex; align-items: center; gap: 0; flex: 0 0 auto; color: var(--white); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: 1px; }
.brand-logo { height: 72px; width: auto; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 479px) { .brand-logo { height: 72px; } }
.brand em { font-style: normal; color: var(--grey); font-weight: 500; font-size: .66em; letter-spacing: 5px; margin-left: 6px; }
.nav-list { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; align-items: center; }
.nav-list a { color: var(--white); text-decoration: none; font-size: .9rem; font-weight: 500; padding: 8px 0; display: inline-block; white-space: nowrap; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: #9fd0f2; }
.nav-cta { background: var(--blue-dark); color: var(--white) !important; padding: 10px 16px !important; border-radius: 6px; font-weight: 600; }
.nav-cta:hover { background: var(--blue-hover); }
.menu-toggle {
  margin-inline-start: auto;
  display: none; background: none; border: 1px solid rgba(255,255,255,.3); color: var(--white);
  min-width: var(--tap); min-height: var(--tap); border-radius: 8px; font-size: 1.4rem; cursor: pointer; align-items: center; justify-content: center;
}

/* Buttons */
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.center .actions { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 12px 24px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: .9rem; border: 2px solid transparent; transition: background .2s, color .2s; cursor: pointer;
}
.btn-primary { background: var(--blue-dark); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: #17703c; color: var(--white); }

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: clamp(56px, 9vw, 104px) 0; position: relative; overflow: hidden; }
.hero h1 { color: var(--white); }
.hero h1 span { color: #9fd0f2; }
.hero p { color: #d3d9ea; font-size: clamp(1rem, 1.8vw, 1.1rem); max-width: 640px; }
.hero-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero-grid { gap: 40px; grid-template-columns: 1.25fr 1fr; } }
.hero-panel { background: var(--navy-2); border: 1px solid rgba(40,134,198,.45); border-radius: var(--radius); padding: 28px; }
.hero-panel h3 { color: var(--white); }
.eyebrow-light { background: transparent; border: 1px solid #5aa6d9; color: #9fd0f2; }

/* Breadcrumb */
.breadcrumb { font-size: .85rem; color: #c3cbe0; margin-bottom: 14px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--grey); }
.breadcrumb a { color: #c3cbe0; }

/* Page header */
.page-header { background: var(--navy); color: var(--white); padding: clamp(44px, 7vw, 72px) 0; border-bottom: 2px solid var(--blue); }
.page-header h1 { color: var(--white); }
.page-header p { color: #d3d9ea; margin: 0; max-width: 700px; font-size: clamp(1rem, 1.8vw, 1.1rem); }

/* Cards & grids */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 32px; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(3, 1fr); } .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; height: 100%; }
.card:hover { border-color: var(--blue); }
.card .icon { width: 48px; height: 48px; border-radius: 10px; background: var(--navy); color: #9fd0f2; display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card h3 a { color: var(--navy); }

/* Split */
.split { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; } }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.checklist.light li { color: #e1e7f5; }
.checklist.light li::before { color: #9fd0f2; }

/* Steps */
.steps { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 32px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { border-top: 3px solid var(--blue); padding-top: 16px; }
.step .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tags span { background: var(--white); border: 1px solid var(--border); padding: 8px 14px; border-radius: 999px; font-size: .88rem; color: var(--navy); font-weight: 500; }

/* FAQ (details/summary, AEO-friendly) */
.faq { margin-top: 28px; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; min-height: var(--tap); font-weight: 600; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* Project cards */
.project h3 { margin-bottom: 6px; }
.project .tag-line { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--blue-text); font-weight: 600; margin-bottom: 8px; }

/* CTA band */
.cta-band { background: var(--navy); padding: clamp(44px, 6vw, 64px) 0; text-align: center; color: var(--white); border-top: 4px solid var(--blue); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #d3d9ea; font-size: 1.05rem; max-width: 640px; margin-left: auto; margin-right: auto; }

/* Forms */
form .row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { form .row { grid-template-columns: 1fr 1fr; } }
label { display: block; font-size: .9rem; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
input, textarea, select {
  width: 100%; min-height: var(--tap); padding: 12px 14px; border: 1px solid #b9c3d6; border-radius: 8px;
  font: inherit; font-size: 16px; color: var(--text); margin-bottom: 16px; background: var(--white);
}
textarea { min-height: 140px; resize: vertical; }

/* Contact */
.info-item { display: flex; gap: 14px; margin-bottom: 20px; }
.info-item .icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 8px; background: var(--navy); color: #9fd0f2; display: grid; place-items: center; font-weight: 700; }
.info-item strong { color: var(--navy); display: block; }
.info-item a { word-break: break-word; }

/* Projects / prose */
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.2em; }
.prose ul { margin-bottom: 1em; }
.key-facts { background: var(--light); border-left: 4px solid var(--blue); padding: 16px 20px; border-radius: 8px; margin: 24px 0; }
.key-facts p { margin: 0 0 6px; }

/* Footer */
.site-footer { background: var(--navy); color: var(--grey); padding: 56px 0 24px; font-size: .92rem; border-top: 2px solid var(--blue); }
.site-footer h2 { font-size: 1rem; color: var(--white); margin: 0 0 12px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: #9fd0f2; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; font-size: .84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.socials a { color: #9fd0f2; }

/* Legal */
.legal .container { max-width: 860px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }

/* Mobile navigation: the full menu needs about 1200px, so the toggle takes over below that */
@media (max-width: 1279px) {
  .menu-toggle { display: inline-flex; }
  .nav-list {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--navy); padding: 8px 20px 20px; gap: 0; border-bottom: 2px solid var(--blue); box-shadow: 0 16px 30px rgba(0,0,0,.3);
  }
  .nav-list.open { display: flex; }
  .nav-list li a { display: flex; align-items: center; min-height: var(--tap); padding: 8px 0; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-list .nav-cta { justify-content: center; margin-top: 12px; border-bottom: 0; }
  .brand em { display: none; }
}
/* Arabic labels are wider, so the Arabic header uses the menu below 1400px */
@media (max-width: 1479px) {
  html[dir="rtl"] .menu-toggle { display: inline-flex; }
  html[dir="rtl"] .nav-list { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--navy); padding: 8px 20px 20px; gap: 0; border-bottom: 2px solid var(--blue); box-shadow: 0 16px 30px rgba(0,0,0,.3); }
  html[dir="rtl"] .nav-list.open { display: flex; }
  html[dir="rtl"] .nav-list li a { display: flex; align-items: center; min-height: var(--tap); padding: 8px 0; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  html[dir="rtl"] .nav-list .nav-cta { justify-content: center; margin-top: 12px; border-bottom: 0; }
}

/* Mobile sticky action bar */
.mobile-bar { display: none; }
@media (max-width: 899px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: var(--navy); border-top: 2px solid var(--blue); box-shadow: 0 -6px 18px rgba(0,0,0,.2);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; color: var(--white); text-decoration: none; font-size: .8rem; font-weight: 600; letter-spacing: .2px; gap: 5px; padding-bottom: env(safe-area-inset-bottom, 0); }
  .mobile-bar a + a { border-left: 1px solid rgba(255,255,255,.12); }
  .mobile-bar .bar-ico { display: inline-flex; line-height: 1; }
  .mobile-bar .bar-ico svg { width: 22px; height: 22px; color: #9fd0f2; }
  .mobile-bar a.bar-wa { background: var(--wa); border-left: 0; border-right: 0; }
  .mobile-bar a.bar-wa .bar-ico svg { color: var(--white); }
  .mobile-bar a.bar-quote { background: var(--blue); border-left: 0; }
  .mobile-bar a.bar-quote .bar-ico svg { color: var(--white); }
  .mobile-bar a:active { filter: brightness(1.12); }
}

/* Floating WhatsApp (desktop) */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 55; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: var(--white); display: none; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); text-decoration: none; font-weight: 800; }
@media (min-width: 900px) { .wa-float { display: inline-flex; } }

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

/* ---------- Arabic (RTL) ---------- */
html[lang="ar"] body { font-family: "Tajawal", "Noto Sans Arabic", system-ui, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-family: "Tajawal", "Noto Sans Arabic", sans-serif; }
[dir="rtl"] .brand { flex-direction: row-reverse; }
[dir="rtl"] .brand span { font-family: "Inter", Arial, sans-serif; }
[dir="rtl"] .checklist li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .checklist li::before { left: auto; right: 0; }
[dir="rtl"] .breadcrumb li + li::before { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .faq summary { padding: 16px 20px 16px 52px; }
[dir="rtl"] .faq summary::after { right: auto; left: 18px; }
[dir="rtl"] .faq details p { text-align: right; }
[dir="rtl"] .info-item { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .wa-float { right: auto; left: 20px; }
[dir="rtl"] .card .icon, [dir="rtl"] .step .num { margin-left: auto; }
[dir="rtl"] .nav-cta { margin-right: 8px; }
[dir="rtl"] .tags { direction: rtl; }
[dir="rtl"] .breadcrumb ol { direction: rtl; }
[dir="rtl"] .mobile-bar a + a { border-left: 0; border-right: 1px solid rgba(255,255,255,.12); }
[dir="rtl"] .mobile-bar a.bar-wa, [dir="rtl"] .mobile-bar a.bar-quote { border-right: 0; }
[dir="rtl"] input, [dir="rtl"] textarea, [dir="rtl"] select { text-align: right; }
[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }
[dir="rtl"] .actions { flex-direction: row; }

/* Form status (after sending a brief) */
.form-status { padding: 12px 14px; border-radius: 8px; margin: 0 0 16px; font-size: .95rem; }
.form-status.ok { background: #e8f6ee; color: #17603a; border: 1px solid #b9e3c8; }
.form-status.err { background: #fdecec; color: #8a1f1f; border: 1px solid #f1c1c1; }

/* Brand kit: footer logo (min 180px digital width, 2x clear space) */
.footer-logo { display: inline-block; padding: 8px 0 16px; }
.footer-logo img { width: 200px; height: auto; display: block; }
.footer-tagline { color: var(--white); font-weight: 600; margin: 0 0 10px; }

.card .icon svg, .info-item .icon svg { display: block; }
.info-item .icon svg { width: 22px; height: 22px; }

/* Language switcher: EN | العربية */
.nav-list .lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: var(--grey); font-size: .9rem; white-space: nowrap; }
.lang-switch svg { flex: 0 0 auto; color: var(--grey); }
.lang-switch .lang-current { color: var(--white); font-weight: 700; }
.lang-switch .lang-sep { opacity: .5; }
.nav-list .lang-switch a { color: #9fd0f2; font-weight: 600; text-decoration: none; padding: 0; }
.nav-list .lang-switch a:hover, .nav-list .lang-switch a:focus-visible { color: var(--white); text-decoration: underline; }
@media (max-width: 1279px) { .nav-list .lang-switch { align-self: flex-start; margin-top: 8px; } }

/* Header gets a wider row so the 183px logo, menu and language switch never collide */
.site-header .container { width: min(1320px, 100% - 40px); }
html[dir="rtl"] .site-header .container { width: min(1440px, 100% - 40px); }
.nav { gap: 28px; }

/* Contact strip on every page: phone + WhatsApp always visible */
.topbar { background: #070A2B; border-bottom: 1px solid rgba(255,255,255,.10); font-size: .9rem; }
.topbar-row { display: flex; justify-content: flex-end; align-items: center; gap: 22px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 0; }
.topbar a:hover .tb-num { text-decoration: underline; }
.topbar svg { width: 17px; height: 17px; color: #9fd0f2; flex: 0 0 auto; }
.topbar .tb-label { color: var(--grey); }
.topbar .tb-num { font-weight: 700; letter-spacing: .3px; unicode-bidi: isolate; }
@media (max-width: 899px) { .topbar .tb-mail { display: none; } }
@media (max-width: 767px) { .topbar { display: none; } }
[dir="rtl"] .topbar-row { justify-content: flex-start; }
.wa-float svg { width: 30px; height: 30px; }

/* WhatsApp plans */
.plans { margin-top: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan .checklist { flex: 1; margin-bottom: 20px; }
.plan .btn { align-self: flex-start; }
.plan-tag { align-self: flex-start; display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--blue-text); margin-bottom: 8px; }
.plan-featured { border: 2px solid var(--blue); box-shadow: 0 10px 30px rgba(11,15,59,.12); }
.plan-featured .plan-tag { color: #fff; background: var(--blue-dark); padding: 3px 10px; border-radius: 999px; }
.btn-outline-dark { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.plan-note { margin-top: 18px; font-size: .92rem; color: #4a5568; max-width: 860px; }

/* Firows Tech group offices strip (footer) */
.footer-offices { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; }
.footer-offices h2 { font-size: .95rem; margin: 0 0 10px; }
.footer-offices ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: 1fr; font-size: .9rem; }
@media (min-width: 700px) { .footer-offices ul { grid-template-columns: 1fr 1fr; } }
.footer-offices span { opacity: .75; }
.grid.cols-2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }

.mobile-bar.two { grid-template-columns: 1fr 1fr !important; }
