/* ============================================================
   ZAMQAN brand stylesheet
   Palette derived from logo ink (#2D3035) + a calm clinical teal
   ============================================================ */

@font-face {
  font-family: "Gobold Extra";
  src: url("/assets/fonts/GoboldExtra.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  /* Brand */
  --ink:        #2D3035;  /* logo charcoal */
  --ink-900:    #20242A;  /* deep section bg */
  --ink-800:    #292D33;
  --ink-700:    #3A3F45;

  --accent:     #198C88;  /* clinical teal */
  --accent-600: #137370;
  --accent-700: #0F5E5C;
  --accent-bright: #2BA39F;
  --accent-tint: #E7F2F1;

  /* Neutrals */
  --bg:        #FFFFFF;
  --bg-soft:   #F5F8F8;
  --bg-tint:   #ECF3F2;
  --border:    #E3E8E9;
  --text:      #2D3035;
  --muted:     #5C656C;
  --white:     #FFFFFF;

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Sora", var(--font-body);
  --font-mark: "Gobold Extra", var(--font-head);

  /* Layout */
  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(45,48,53,.06), 0 1px 3px rgba(45,48,53,.05);
  --shadow:    0 10px 30px -12px rgba(45,48,53,.18);
  --shadow-lg: 0 24px 60px -20px rgba(45,48,53,.28);

  --space: clamp(64px, 9vw, 120px); /* vertical section rhythm */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-600); text-decoration: none; }
a:hover { color: var(--accent-700); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color:#fff; }

:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; border-radius: 4px; }

/* ---------- Utility bar ---------- */
.utility { background: var(--ink-900); color: #cfd4d8; font-size: 13.5px; }
.utility__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 8px; }
.utility__link { color: #e7eaec; }
.utility__link:hover { color: #fff; }
@media (max-width: 560px) { .utility__item:first-child { display: none; } .utility__inner { justify-content: flex-end; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 38px; height: 38px; object-fit: contain; }
.brand__word { font-family: var(--font-mark); font-size: 24px; letter-spacing: .14em; color: var(--ink); padding-left: 2px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink-700); font-weight: 500; font-size: 15.5px; }
.nav a:hover { color: var(--accent-700); }
.nav__cta {
  background: var(--ink); color: #fff !important; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; transition: background .2s ease, transform .2s ease;
}
.nav__cta:hover { background: var(--accent-700); transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 17px; }
  .nav__cta { margin-top: 14px; text-align: center; border-bottom: 0 !important; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(25,140,136,.6); }
.btn--primary:hover { background: var(--accent-700); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.btn--full { width: 100%; }

/* ---------- Shared section ---------- */
.section { padding-block: var(--space); }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head--light .section__title, .section__head--light .section__sub { color: #fff; }
.section__head--light .section__sub { color: #c7ccd1; }
.section__title { font-size: clamp(28px, 4vw, 40px); }
.section__sub { color: var(--muted); font-size: 19px; margin-top: 14px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 700;
  color: var(--accent-600); margin-bottom: 14px; font-family: var(--font-head);
}
.eyebrow--light { color: var(--accent-bright); }
.accent { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1200px 500px at 80% -10%, var(--bg-tint), transparent 60%),
  linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  padding-block: clamp(56px, 8vw, 96px) var(--space);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero__motif { position: absolute; right: -8%; top: -12%; width: 70vw; max-width: 760px; height: auto; }

/* Animated hero motif: a calm, breathing set of concentric rings */
.hero__motif circle { transform-box: fill-box; transform-origin: center; }
.motif-blob  { animation: motifFloat 18s ease-in-out infinite; }
.motif-ring--1 { animation: motifBreathe 7s  ease-in-out infinite; }
.motif-ring--2 { animation: motifBreathe 9s  ease-in-out infinite .8s; }
.motif-ring--3 { animation: motifBreathe 11s ease-in-out infinite 1.6s; }
.motif-dot   { animation: motifDot 4.5s ease-in-out infinite; }
.motif-pulse { transform-box: fill-box; transform-origin: center; animation: motifPulse 6s ease-out infinite; }

@keyframes motifFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-14px, 12px) scale(1.05); }
}
@keyframes motifBreathe {
  0%, 100% { transform: scale(1);    opacity: .9; }
  50%      { transform: scale(1.06); opacity: 1; }
}
@keyframes motifPulse {
  0%   { transform: scale(.6);  opacity: .5; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes motifDot {
  0%, 100% { transform: scale(1);   opacity: .55; }
  50%      { transform: scale(1.6); opacity: .9; }
}

/* Scroll offset so anchored sections clear the sticky header */
.hero, section[id] { scroll-margin-top: 88px; }
.hero__inner { position: relative; z-index: 1; }
.hero__copy { max-width: 760px; }
.hero__title { font-size: clamp(34px, 6vw, 60px); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; }
.hero__lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); margin-top: 22px; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.stats {
  list-style: none; padding: 0; margin-top: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--border); padding-top: 36px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(28px, 4vw, 40px); color: var(--ink); letter-spacing: -.02em; }
.stat__label { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 30px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4dcdc; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px;
  background: var(--accent-tint); color: var(--accent-700);
}
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--muted); }

/* ---------- Services ---------- */
.service {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-sm); margin-top: 28px;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 4vw, 56px);
}
.service:first-of-type { margin-top: 0; }
@media (max-width: 900px) { .service { grid-template-columns: 1fr; } }

.tag {
  display: inline-block; font-family: var(--font-head); font-weight: 800; letter-spacing: .08em;
  background: var(--ink); color: #fff; padding: 6px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 18px;
}
.tag--alt { background: var(--accent); }
.service__title { font-size: clamp(24px, 3vw, 30px); margin-bottom: 14px; }
.service__lede { color: var(--muted); }

.service__body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 620px) { .service__body { grid-template-columns: 1fr; } }
.service__body--cards { grid-template-columns: repeat(2, 1fr); gap: 18px; }

.panel { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px; }
.panel__title { font-size: 17px; margin-bottom: 6px; }
.panel__note { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }

.ticks { list-style: none; padding: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15.5px; color: var(--ink-700); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px;
  background: var(--accent-tint); border-radius: 50%;
}
.ticks li::after {
  content: ""; position: absolute; left: 5px; top: 11px; width: 6px; height: 3px;
  border-left: 2px solid var(--accent-700); border-bottom: 2px solid var(--accent-700);
  transform: rotate(-45deg);
}
.ticks strong { color: var(--ink); font-weight: 600; }
.footnote { font-size: 13px; color: var(--muted); margin-top: 14px; }

.mini {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s ease, border-color .2s ease;
}
.mini:hover { transform: translateY(-3px); border-color: var(--accent); }
.mini__abbr { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--accent); letter-spacing: .04em; }
.mini__title { font-size: 16px; color: var(--ink); font-weight: 600; }

/* ---------- Orbit / ecosystem ---------- */
.orbit { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.orbit__hub {
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent-bright), var(--accent-700));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: .06em;
  box-shadow: var(--shadow); border: 6px solid #fff;
}
.orbit__nodes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 820px; }
.orbit__nodes li {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 12px 22px; font-weight: 600; color: var(--ink-700); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.orbit__nodes li:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent-700); }

/* ---------- Approach (dark) ---------- */
.section--dark { background: var(--ink-900); color: #d7dbdf; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--ink-800); border: 1px solid #363b42; border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, border-color .2s ease;
}
.step:hover { transform: translateY(-4px); border-color: var(--accent); }
.step__n { font-family: var(--font-head); font-weight: 800; font-size: 30px; color: var(--accent-bright); display: block; margin-bottom: 12px; }
.step p { color: #c4c9ce; font-size: 15.5px; }

/* ---------- Experience ---------- */
.xp { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.xp__title { font-size: 18px; margin-bottom: 6px; }
.xp p { color: var(--muted); font-size: 15px; }
.capsules { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.capsules span { background: var(--accent-tint); color: var(--accent-700); border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 14.5px; }
.geo { margin-top: 32px; color: var(--ink-700); font-size: 16px; max-width: 880px; }
.geo strong { color: var(--ink); }

/* ---------- Contact ---------- */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .contact__inner { grid-template-columns: 1fr; } }
.contact__list { list-style: none; padding: 0; margin-top: 32px; display: grid; gap: 18px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-size: 17px; color: var(--ink-700); }
.contact__ico { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--accent-700); align-items: center; justify-content: center; flex: none; }
.contact__ico svg { width: 22px; height: 22px; }

.contact__form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.field textarea { resize: vertical; }
.form__note { font-size: 14px; color: var(--muted); margin-top: 16px; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: #aeb5bb; padding-top: clamp(48px, 6vw, 72px); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 40px; }
.footer__logo { width: 96px; height: auto; margin-bottom: 16px; }
.footer__tag { max-width: 280px; color: #9aa2a9; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 22px; align-content: start; }
.footer__nav a { color: #cdd3d8; font-weight: 500; }
.footer__nav a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #363b42; padding-block: 22px; font-size: 14px; color: #828a91; }

/* ---------- Mobile app-style bottom tab bar ---------- */
.tabbar { display: none; }

@media (max-width: 860px) {
  /* Replace the top hamburger with the bottom tab bar */
  .nav, .nav-toggle { display: none !important; }

  .tabbar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 28px -16px rgba(45, 48, 53, .35);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .tabbar__item {
    flex: 1 1 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding: 9px 2px 7px;
    color: var(--muted); font-family: var(--font-head); font-weight: 600;
    font-size: 10.5px; letter-spacing: .01em; text-align: center;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s ease;
  }
  .tabbar__item svg {
    width: 23px; height: 23px; stroke-width: 1.6;
    transition: transform .22s cubic-bezier(.34,1.56,.64,1);
  }
  .tabbar__item.is-active { color: var(--accent-700); }
  .tabbar__item.is-active svg { transform: translateY(-2px) scale(1.08); }
  .tabbar__item:active svg { transform: scale(.86); }

  /* Make room so content is never hidden behind the bar */
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0)); }
}

@media (prefers-reduced-motion: reduce) {
  .tabbar__item svg { transition: none; }
}

/* ---------- Services: extra layouts (v3) ---------- */
.service__body--single { grid-template-columns: 1fr; }
.ticks--2col { grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .ticks--2col { grid-template-columns: 1fr; } }
.services-more { margin-top: 28px; }

/* ---------- Legal / privacy pages ---------- */
.legal { padding-block: clamp(36px, 6vw, 64px); }
.legal__inner { max-width: 820px; margin-inline: auto; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 22px; color: var(--accent-700); }
.legal__back svg { width: 18px; height: 18px; }
.lang-switch { float: right; font-weight: 600; font-size: 15px; }
.legal h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; letter-spacing: -.01em; }
.legal__meta { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.legal h2 { font-size: 20px; margin-top: 34px; margin-bottom: 10px; color: var(--ink); }
.legal h2:first-of-type { margin-top: 22px; }
.legal p, .legal li { color: var(--ink-700); font-size: 16px; line-height: 1.7; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent-700); }
.legal strong { color: var(--ink); }

/* RTL (Arabic) support */
[dir="rtl"] .legal__inner { text-align: right; }
[dir="rtl"] .legal ul { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .lang-switch { float: left; }
[dir="rtl"] .legal__back { flex-direction: row-reverse; }
