/* =====================================================
   Sventure — Main Stylesheet
   ===================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../assets/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../assets/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../assets/fonts/cairo-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --primary: #283986;
  --primary-dark: #1c2862;
  --primary-light: #eaedf8;
  --accent: #06924a;
  --accent-dark: #05773c;
  --red: #e81e36;
  --red-dark: #c4142a;
  --red-light: #fde8eb;
  --primary-on-dark: #a9b6f2;
  --dark: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 25px 60px rgba(15, 23, 42, 0.14);
  --container: 1200px;
  --header-h: 76px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; }
html.smooth { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-top: var(--header-h);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 3px solid rgba(40, 57, 134, .45); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--dark); color: #fff; }
.section-teal { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary); background: var(--primary-light);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-dark .eyebrow, .section-teal .eyebrow { background: rgba(255, 255, 255, .12); color: var(--primary-on-dark); }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 4.3vw, 54px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 16px; }
h3 { font-size: 20px; margin-bottom: 10px; }
p.lead { font-size: 18px; color: var(--muted); }
.section-dark p.lead, .section-teal p.lead { color: #cbd5e1; }
.grad {
  background: linear-gradient(90deg, var(--primary), var(--red), var(--primary));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* ================= Buttons ================= */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: all .25s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(40, 57, 134, .3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn-primary:hover::after { left: 125%; }
.btn-outline { border: 2px solid var(--border); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn-ghost-white { border: 2px solid rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost-white:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 18px 34px; font-size: 17px; }

/* ================= Header ================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--red), var(--primary), var(--accent));
}
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); transition: box-shadow .25s ease;
}
.header.scrolled { box-shadow: 0 6px 24px rgba(15, 23, 42, .08); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 24px; letter-spacing: -.03em; color: var(--dark); flex-shrink: 0; }
.logo img { width: 38px; height: 44px; object-fit: contain; }
.logo-text span { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav > li { position: relative; }
.nav > li > a, .nav > li > button { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; padding: 8px 0; position: relative; }
.nav > li > a::after {
  content: ""; position: absolute; left: 0; bottom: 2px; height: 2px; width: 100%;
  background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav > li > a:hover::after, .nav > li > a.active::after { transform: scaleX(1); }
.nav a:hover, .nav button:hover, .nav a.active { color: var(--primary); }
.nav .caret { width: 14px; height: 14px; transition: transform .2s; }
.dropdown {
  position: absolute; top: 100%; left: -16px; min-width: 270px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s;
}
.hover-ready .nav > li:hover .dropdown, .nav > li:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav > li.menu-closed .dropdown { opacity: 0 !important; visibility: hidden !important; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; font-weight: 500; font-size: 14px; }
.dropdown a:hover { background: var(--primary-light); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.hamburger span { width: 24px; height: 2px; background: var(--dark); transition: .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= Hero ================= */
.hero {
  position: relative; overflow: hidden; padding: 40px 0 60px;
  background: radial-gradient(1200px 600px at 80% -10%, #dfe4f8 0%, transparent 60%),
              radial-gradient(800px 500px at 0% 100%, #dcf3e5 0%, transparent 60%), #fff;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 24px; box-shadow: var(--shadow);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(6, 146, 74, .2); flex-shrink: 0; }
.hero h1 { margin-bottom: 20px; }
.hero p.lead { margin-bottom: 32px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hero-note span::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.hero-contact {
  display: flex; align-items: center; gap: 14px; margin-top: 30px; padding: 14px 18px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); width: fit-content; max-width: 100%;
}
.hero-contact .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary); flex-shrink: 0; }
.hero-contact .ic svg { width: 22px; height: 22px; }
.hero-contact small { display: block; color: var(--muted); font-size: 12px; }
.hero-contact b { font-size: 16px; }

.hero-visual { position: relative; padding: 30px 10px; }
.hero-frame {
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 8px solid #fff; background: #fff; animation: drift 9s ease-in-out infinite;
}
.hero-frame img { width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float-card {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; font-size: 13px; animation: float 4s ease-in-out infinite; z-index: 2;
}
.float-card b { display: block; font-size: 14px; }
.float-card small { color: var(--muted); }
.float-card .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.float-card .ic svg { width: 20px; height: 20px; }
.fc-1 { top: 0; left: -14px; }
.fc-2 { top: 38%; right: -18px; animation-delay: 1.5s; }
.fc-3 { bottom: 0; left: 8%; animation-delay: .8s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.feature-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 64px; }
.feature-strip a {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 12px;
  text-align: center; font-size: 13px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: .25s;
}
.feature-strip a:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); color: var(--primary); }
.feature-strip svg { width: 24px; height: 24px; color: var(--primary); }

/* ================= Partner logos ================= */
.logos { padding: 50px 0; border-bottom: 1px solid var(--border); }
.logos-title { text-align: center; color: var(--muted); font-weight: 600; margin-bottom: 26px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.marquee {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 18px; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .logo-tile {
  width: 160px; height: 80px; flex-shrink: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px;
  display: grid; place-items: center; padding: 10px 14px;
}
.marquee-track img { max-height: 56px; width: auto; object-fit: contain; transition: transform .25s; }
.marquee-track .logo-tile { transition: .25s; }
.marquee-track .logo-tile:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.marquee-track .logo-tile:hover img { transform: scale(1.06); }
.marquee-reverse .marquee-track { animation-direction: reverse; margin-top: 18px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ================= Numbers band ================= */
.band { padding: 70px 0; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.band-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.band-item {
  text-align: center; padding: 34px 20px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
}
.band-item b { display: block; font-size: 46px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.band-item span { color: rgba(255, 255, 255, .85); font-weight: 600; }

/* ================= Cards ================= */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 30px;
  transition: .3s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; transition: transform .3s; }
.card:hover .icon { transform: scale(1.08) rotate(-4deg); }
.card .icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); }
.card ul { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.card ul li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.card ul li::before { content: "✓"; color: var(--accent); font-weight: 900; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 700; font-size: 14px; color: var(--primary); }
.card .more svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .more svg { transform: translateX(4px); }

.ic-teal { background: var(--primary-light); color: var(--primary); }
.ic-green { background: #d1fae5; color: var(--accent-dark); }
.ic-red { background: var(--red-light); color: var(--red-dark); }
.ic-orange { background: var(--red-light); color: var(--red-dark); }
.ic-pink { background: #fce7f3; color: #be185d; }
.ic-sky { background: #e0f2fe; color: #0369a1; }
.ic-yellow { background: #fef3c7; color: #b45309; }

/* Image cards (services page) */
.svc-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .3s; display: flex; flex-direction: column; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-card .thumb { overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-soft); }
.svc-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc-card:hover .thumb img { transform: scale(1.06); }
.svc-card .body { padding: 26px 26px 30px; }
.svc-card .body p { color: var(--muted); }
.svc-card .tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-light); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.svc-card .tag svg { width: 14px; height: 14px; }
/* ================= Split (alternating) ================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split.reverse .split-visual { order: 2; }
.split-visual {
  border-radius: var(--radius); padding: 24px; background: linear-gradient(135deg, #eaedf8, #fdf0f2);
  position: relative;
}
.split-visual img { border-radius: 12px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-lg); }
.split-visual .float-card { bottom: -18px; right: -12px; top: auto; left: auto; }
.split h2 { font-size: clamp(26px, 3vw, 38px); }
.split p { color: var(--muted); font-size: 17px; margin-bottom: 20px; }
.check-list { display: flex; flex-direction: column; gap: 14px; margin: 24px 0 30px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list .ic { width: 32px; height: 32px; border-radius: 9px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.check-list .ic svg { width: 18px; height: 18px; }
.check-list b { display: block; }
.check-list span { color: var(--muted); font-size: 14px; }
.section-dark .check-list .ic { background: rgba(255, 255, 255, .1); color: var(--primary-on-dark); }
.section-dark .check-list span { color: #94a3b8; }

/* ================= Feature grid ================= */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px; transition: .25s; }
.feat:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.feat .icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px; }
.feat .icon svg { width: 22px; height: 22px; }
.feat h4 { font-size: 16px; margin-bottom: 6px; }
.feat p { font-size: 14px; color: var(--muted); }

/* ================= Projects ================= */
.projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.project {
  border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12); transition: .3s;
}
.project:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .1); }
.project .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.project .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project:hover .thumb img { transform: scale(1.06); }
.project .body { padding: 20px 22px 24px; }
.project b { display: block; font-size: 38px; font-weight: 900; letter-spacing: -.03em; line-height: 1; color: var(--primary-on-dark); }
.project h3 { font-size: 17px; margin: 8px 0 0; color: #fff; }


/* ================= Logo grids (partners / clients) ================= */
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logo-grid .logo-tile {
  height: 96px; background: #fff; border: 1px solid var(--border); border-radius: 12px;
  display: grid; place-items: center; padding: 12px 16px; transition: .25s;
}
.logo-grid .logo-tile:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.logo-grid img { max-height: 60px; max-width: 100%; width: auto; object-fit: contain; }
.marquee-track img { max-width: 132px; }
.logos-title + .marquee { margin-bottom: 0; }
.logos .container + .marquee { margin-top: 0; }
.logos-sub { margin-top: 34px; }

/* ================= Delivery steps ================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; text-align: center; padding: 30px 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: .3s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.step .num {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--red)); color: #fff; font-size: 22px; font-weight: 900;
  box-shadow: 0 10px 25px rgba(40, 57, 134, .3);
}
.step h4 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 59px; right: -18px; width: 12px; height: 12px;
  border-top: 2px solid var(--primary); border-right: 2px solid var(--primary); transform: rotate(45deg); opacity: .5;
}

/* ================= Industries ================= */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); font-weight: 700; transition: .25s;
}
.industry:hover { background: rgba(255, 255, 255, .12); transform: translateY(-3px); }
.industry .ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: var(--primary-on-dark); flex-shrink: 0; }
.industry .ic svg { width: 22px; height: 22px; }

/* ================= Service detail sections ================= */
.svc-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.svc-nav a { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 14px; font-weight: 600; transition: .2s; }
.svc-nav a:hover { border-color: var(--primary); color: var(--primary); }
.svc-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: 14px; color: var(--primary); }
.svc-card .more svg { width: 16px; height: 16px; transform: rotate(90deg); }
.svc-detail { padding: 80px 0; border-top: 1px solid var(--border); }
.svc-detail:nth-of-type(even) { background: var(--bg-soft); }
.svc-detail .split { align-items: start; }
.svc-detail .split-visual img { aspect-ratio: 16 / 10; }
.svc-detail .eyebrow { margin-bottom: 12px; }
.svc-detail.is-target h2 { animation: target-flash 2.2s ease-out; border-radius: 8px; }
@keyframes target-flash {
  0%, 35% { background: var(--primary-light); box-shadow: 0 0 0 10px var(--primary-light); }
  100% { background: transparent; box-shadow: 0 0 0 10px transparent; }
}
.bullet-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 8px; }
.bullet-cols h4 { font-size: 15px; margin-bottom: 10px; color: var(--primary); }
.ticks { display: flex; flex-direction: column; gap: 8px; }
.ticks li { display: flex; gap: 8px; font-size: 14px; color: var(--text); }
.ticks li::before { content: "✓"; color: var(--accent); font-weight: 900; flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips span { padding: 5px 12px; border-radius: 999px; background: var(--primary-light); color: var(--primary); font-size: 12px; font-weight: 700; }

/* ================= Info cards (who / what / DNA) ================= */
.card .kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; display: block; }

/* ================= CTA ================= */
.cta-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, var(--accent)); color: #fff; border-radius: 28px;
  padding: 70px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta-box::before, .cta-box::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.cta-box::before { width: 400px; height: 400px; top: -200px; right: -100px; }
.cta-box::after { width: 260px; height: 260px; bottom: -150px; left: -60px; }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; }
.cta-box p { color: rgba(255, 255, 255, .88); max-width: 600px; margin: 0 auto 30px; font-size: 18px; }
.cta-box .hero-actions { justify-content: center; margin-bottom: 0; }
.cta-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.cta-tags span { padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 14px; font-weight: 600; }

/* ================= Contact ================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact-info h3 { font-size: 26px; }
.contact-info > p { color: var(--muted); margin-top: 8px; }
.contact-info ul { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info li .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.contact-info li .ic svg { width: 20px; height: 20px; }
.contact-info li b { display: block; }
.contact-info li span, .contact-info li a { color: var(--muted); font-size: 15px; }
.contact-info li a:hover { color: var(--primary); }
.map-wrap { margin-top: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; height: 300px; border: 0; }

.form { background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.form h3 { font-size: 22px; margin-bottom: 4px; }
.form .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field label .req { color: var(--red); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 14px;
  outline: none; transition: .2s; background: #fff; color: var(--text);
}
.field input:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(40, 57, 134, .15); }
.field textarea { min-height: 110px; resize: vertical; }
.field.has-error input, .field.has-error textarea { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .1); }
.field .error { display: block; color: #dc2626; font-size: 12px; font-weight: 600; margin-top: 6px; }
.form .btn { width: 100%; }
.form .btn[disabled] { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { display: none; padding: 14px; border-radius: 10px; margin-top: 14px; font-weight: 600; text-align: center; }
.form-msg.ok { display: block; background: #d1fae5; color: #065f46; }
.form-msg.err { display: block; background: #fee2e2; color: #991b1b; }
.form-wa { display: inline-flex; margin-top: 10px; padding: 9px 16px; border-radius: 999px; background: #25d366; color: #fff; font-weight: 700; font-size: 14px; }
.form-wa:hover { background: #1ebe5b; }

/* ================= Inner page hero ================= */
.page-hero {
  padding: 80px 0 70px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(900px 400px at 85% -20%, #dfe4f8 0%, transparent 60%),
              radial-gradient(700px 400px at 0% 120%, #dcf3e5 0%, transparent 60%), #fff;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(32px, 4vw, 50px); }
.page-hero p { color: var(--muted); font-size: 18px; margin: 14px auto 0; max-width: 720px; }
.crumbs { display: flex; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--primary); }

/* ================= Footer ================= */
.footer { background: var(--dark); color: #cbd5e1; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 50px; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer .logo-text span { color: var(--primary-on-dark); }
.footer p { font-size: 14px; color: #94a3b8; max-width: 320px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a, .footer ul span { font-size: 14px; color: #94a3b8; }
.footer ul a:hover { color: #fff; }
.footer .contact-lines li { display: flex; gap: 10px; align-items: flex-start; }
.footer .contact-lines svg { width: 16px; height: 16px; color: var(--primary-on-dark); flex-shrink: 0; margin-top: 3px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff; transition: .2s; }
.socials a:hover { background: var(--primary); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 13px; color: #94a3b8; }

/* ================= Floating widgets ================= */
.wa-float {
  position: fixed; bottom: 24px; left: 24px; width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: var(--shadow-lg); z-index: 90; transition: .2s;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: ping 2.4s ease-out infinite; z-index: -1; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes ping { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
.to-top {
  position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: .3s; z-index: 90;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }


/* ================= Chat assistant ================= */
#sv-chat { position: fixed; right: 24px; bottom: 24px; z-index: 120; font-size: 14px; }
.svc-launch {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff; position: relative;
  background: linear-gradient(135deg, var(--primary), var(--red)); box-shadow: 0 12px 30px rgba(40, 57, 134, .4); transition: transform .2s;
}
.svc-launch:hover { transform: scale(1.06); }
.svc-launch svg { width: 28px; height: 28px; }
.svc-launch .svc-ic-close { display: none; }
#sv-chat.is-open .svc-launch .svc-ic-open { display: none; }
#sv-chat.is-open .svc-launch .svc-ic-close { display: block; }
.svc-dot { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.svc-dot[hidden] { display: none; }
.svc-greet {
  position: absolute; right: 0; bottom: 76px; width: 230px; background: #fff; border-radius: 16px 16px 4px 16px;
  box-shadow: var(--shadow-lg); padding: 14px 34px 14px 16px; color: var(--text); cursor: pointer; line-height: 1.45;
  animation: greet-in .5s cubic-bezier(.22, 1, .36, 1);
}
.svc-greet[hidden] { display: none; }
.svc-greet-x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.svc-greet-x:hover { background: var(--bg-soft); }
.svc-greet-x svg { width: 14px; height: 14px; }
@keyframes greet-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.svc-panel {
  position: absolute; right: 0; bottom: 76px; width: 370px; height: min(560px, calc(100vh - 120px));
  background: #fff; border-radius: 20px; box-shadow: 0 30px 70px rgba(15, 23, 42, .25); overflow: hidden;
  display: flex; flex-direction: column; opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom right;
  transition: opacity .2s ease, transform .2s ease;
}
.svc-panel[hidden] { display: none; }
#sv-chat.is-open .svc-panel { opacity: 1; transform: none; }
.svc-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: #fff; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.svc-head img { width: 34px; height: 40px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; }
.svc-head b { display: block; font-size: 15px; }
.svc-head small { display: flex; align-items: center; gap: 6px; opacity: .85; font-size: 12px; }
.svc-online { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.svc-x { margin-inline-start: auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.svc-x:hover { background: rgba(255, 255, 255, .15); }
.svc-x svg { width: 18px; height: 18px; }
.svc-log { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.svc-msg { display: flex; }
.svc-user { justify-content: flex-end; }
.svc-bubble { max-width: 85%; padding: 10px 14px; border-radius: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.svc-bot .svc-bubble { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--text); }
.svc-user .svc-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.svc-bubble a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.svc-bubble ul { margin: 6px 0 4px; padding-inline-start: 18px; list-style: disc; }
.svc-bubble ul.svc-sum { list-style: none; padding-inline-start: 0; }
.svc-typing .svc-bubble { display: flex; gap: 4px; padding: 14px; }
.svc-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite ease-in-out; }
.svc-typing span:nth-child(2) { animation-delay: .15s; }
.svc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.svc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 0; background: #fff; }
.svc-chips:empty { display: none; }
.svc-chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--primary); color: var(--primary); font-size: 13px; font-weight: 600; background: #fff; transition: .15s; }
.svc-chip:hover { background: var(--primary); color: #fff; }
.svc-input { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--border); }
.svc-chips + .svc-input { border-top: 0; }
.svc-input input { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 999px; padding: 10px 14px; font: inherit; outline: none; }
.svc-input input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(40, 57, 134, .12); }
.svc-input button { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.svc-input button svg { width: 18px; height: 18px; }
.svc-foot { text-align: center; font-size: 11px; color: var(--muted); padding: 0 0 8px; background: #fff; }
.svc-foot a { color: var(--primary); }
.to-top { bottom: 96px !important; right: 30px !important; }
@media (max-width: 768px) {
  #sv-chat { right: 16px; bottom: 20px; }
  .svc-launch { width: 54px; height: 54px; }
  .svc-panel { position: fixed; left: 8px; right: 8px; bottom: 84px; width: auto; height: min(600px, calc(100vh - 100px)); }
  .svc-greet { bottom: 68px; }
  .to-top { bottom: 86px !important; right: 21px !important; }
}


/* ================= Language switch ================= */
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 2px solid var(--border); font-weight: 700; font-size: 13px; color: var(--text); background: #fff; transition: .2s; white-space: nowrap;
}
.lang-switch:hover { border-color: var(--primary); color: var(--primary); }
.lang-switch svg { width: 16px; height: 16px; }
.lang-switch[lang="ar"] span { font-family: "Cairo", var(--font); font-size: 14px; }
@media (max-width: 480px) { .lang-switch { padding: 7px 11px; } }

/* ================= Arabic / right-to-left ================= */
html[lang="ar"] { --font: "Cairo", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; }
[dir="rtl"] body { line-height: 1.8; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] .band-item b, [dir="rtl"] .project b { letter-spacing: 0; line-height: 1.4; }
[dir="rtl"] .eyebrow, [dir="rtl"] .logos-title, [dir="rtl"] .card .kicker { letter-spacing: 0; }
[dir="rtl"] .logo { letter-spacing: -.03em; }
[dir="rtl"] .i-dir { transform: scaleX(-1); }
[dir="rtl"] .card:hover .more svg { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .dropdown { left: auto; right: -16px; }
[dir="rtl"] .nav > li > a::after { transform-origin: right; }
[dir="rtl"] .fc-1 { left: auto; right: -14px; }
[dir="rtl"] .fc-2 { right: auto; left: -18px; }
[dir="rtl"] .fc-3 { left: auto; right: 8%; }
[dir="rtl"] .split-visual .float-card { right: auto; left: -12px; }
[dir="rtl"] .step:not(:last-child)::after { right: auto; left: -18px; transform: rotate(-135deg); }
[dir="rtl"] .marquee { direction: ltr; }
[dir="rtl"] .hp { left: auto; right: -9999px; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"] { direction: ltr; text-align: right; }
[dir="rtl"] .svc-bot .svc-bubble { border-radius: 16px; border-bottom-right-radius: 4px; }
[dir="rtl"] .svc-user .svc-bubble { border-radius: 16px; border-bottom-left-radius: 4px; }
@media (max-width: 1024px) { [dir="rtl"] .hero-contact { text-align: right; } }
@media (max-width: 900px) { [dir="rtl"] .dropdown { padding: 4px 14px 8px 0; } }
@media (max-width: 768px) {
  [dir="rtl"] .fc-1 { right: 0; } [dir="rtl"] .fc-2 { left: 0; } [dir="rtl"] .fc-3 { right: 4%; }
  [dir="rtl"] .split-visual .float-card { left: 8px; }
}

/* ================= Reveal animation ================= */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .75s cubic-bezier(.22, 1, .36, 1), transform .75s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Hero entrance */
.hero-copy > * { animation: rise .8s cubic-bezier(.22, 1, .36, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
.hero-copy > *:nth-child(6) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ================= Responsive ================= */
@media (max-width: 1200px) {
  .nav { gap: 18px; }
  .nav > li > a, .nav > li > button { font-size: 14px; }
  .header-cta .btn-outline { display: none; }
}
@media (max-width: 1024px) {
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .steps, .industries { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-contact { margin-left: auto; margin-right: auto; text-align: left; }
  .hero-visual { max-width: 640px; margin: 10px auto 0; width: 100%; }
  .feature-strip { grid-template-columns: repeat(3, 1fr); }
  .band-grid, .grid-4, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-visual { order: 0; }
  .svc-detail .split-visual { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 20px 20px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); display: none;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav > li > a, .nav > li > button { width: 100%; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
  .nav > li > a::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 4px 0 8px 14px; display: none; min-width: 0; }
  .nav > li.open .dropdown { display: block; }
  .nav > li.open .caret { transform: rotate(180deg); }
  .header-cta .btn { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .svc-detail { padding: 56px 0; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .logo-grid .logo-tile { height: 76px; padding: 8px 10px; }
  .logo-grid img { max-height: 46px; }
  .bullet-cols { grid-template-columns: 1fr; gap: 18px; }
  .section-head { margin-bottom: 40px; }
  .hero { padding-top: 28px; }
  .hero-grid > *, .split > *, .contact-grid > * { min-width: 0; }
  .fc-1 { left: 0; } .fc-2 { right: 0; } .fc-3 { left: 4%; }
  .float-card { padding: 9px 12px; font-size: 12px; }
  .float-card b { font-size: 13px; }
  .float-card .ic { width: 32px; height: 32px; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); margin-top: 44px; }
  .band-item b { font-size: 36px; }
  .cards-3, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form { padding: 26px 20px; }
  .cta-box { padding: 50px 22px; border-radius: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .wa-float { bottom: 20px; left: 16px; width: 50px; height: 50px; }
  .to-top { bottom: 20px; right: 16px; }
  .split-visual .float-card { right: 8px; }
}
@media (max-width: 480px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .industries { grid-template-columns: 1fr; }
  .band-grid, .band-grid.cols-3, .projects-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .band-grid.cols-3 .band-item:last-child { grid-column: 1 / -1; }
  .band-item { padding: 24px 10px; }
  .band-item b { font-size: 30px; }
  .band-item span { font-size: 13px; }
  .project .body { padding: 14px 14px 18px; }
  .project b { font-size: 28px; }
  .project h3 { font-size: 14px; }
  .hero-actions .btn { width: 100%; }
  .logo { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
