/* Ahwar Scientific Bureau — site stylesheet */
:root {
  --accent: #8A4DCE;
  --accent-dark: #6D3AAE;
  --accent-soft: #B999F0;
  --ink: #17131F;
  --body: #4A4557;
  --muted: #665F76;
  --tint: #F6F3FB;
  --tint-2: #EFE7FA;
  --line: #E6DEF2;
  --dark: #1B1230;
  --foot: #120E1C;
  --gold: #D9A84E;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --pad-x: clamp(20px, 5vw, 64px);
  --pad-y: clamp(56px, 8vw, 96px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #FFFFFF; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--pad-y) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: #fff; }
.stack { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.stack > * { max-width: 100%; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); align-items: center; }
.split--top { align-items: start; }
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid > * { min-width: 0; }
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 28px; }

/* ---------- type ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.section--dark .eyebrow { color: var(--accent-soft); }
.h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 5vw, 58px); line-height: 1.1; color: var(--ink); max-width: 18ch; }
.h1--wide { max-width: 22ch; }
.h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; color: var(--ink); max-width: 26ch; }
.section--dark .h2 { color: #fff; }
.h3 { font-weight: 700; font-size: 18px; line-height: 1.35; color: var(--ink); }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.7; color: var(--body); max-width: 62ch; }
.text { font-size: 17px; line-height: 1.7; color: var(--body); max-width: 62ch; }
.small { font-size: 15px; line-height: 1.6; color: var(--body); }
.muted { color: var(--muted); }
.section--dark .lead, .section--dark .text { color: #D6CCEA; }
.link { font-weight: 600; font-size: 15px; color: var(--accent); border-bottom: 1.5px solid transparent; }
.link:hover { border-bottom-color: var(--accent); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border-radius: 8px; border: 1.5px solid var(--accent); font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--outline { background: transparent; color: var(--accent); }
.btn--outline:hover { background: var(--tint-2); }
.btn--white { background: #fff; color: var(--ink); border-color: #fff; }
.btn--white:hover { background: var(--tint-2); border-color: var(--tint-2); }
.btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- icon chip ---------- */
.chip { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; background: var(--tint-2); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.chip svg { width: 22px; height: 22px; }
.chip--white { background: #fff; }
.chip--solid { background: var(--accent); color: #fff; width: 56px; height: 56px; flex-basis: 56px; }
.chip--lg { width: 56px; height: 56px; flex-basis: 56px; }
.chip--lg svg { width: 26px; height: 26px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: block; flex: 0 0 auto; width: 100px; height: 64px; }
.brand img { width: 100px; height: 64px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav__link { font-size: 15px; font-weight: 500; color: var(--body); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.nav .btn { min-height: 44px; padding: 10px 20px; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- page header ---------- */
.page-head { background: var(--tint); padding: clamp(48px, 7vw, 80px) 0; }
.page-head .stack { gap: 18px; }

/* ---------- hero ---------- */
.hero { background: var(--tint); padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 88px); }
.hero .stack { gap: 24px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: 100%; border-top: 1px solid var(--line); padding-top: 22px; }
.facts > div { min-width: 0; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.45; }

/* ---------- map ---------- */
.map { position: relative; width: 100%; aspect-ratio: 933 / 803; border-radius: 20px; overflow: hidden; background: #B3B3B3; }
.map > img { width: 100%; height: 100%; object-fit: cover; }
.pin { position: absolute; display: flex; align-items: center; gap: 8px; transform: translate(-12px, -12px); }
.pin--sm { transform: translate(-9px, -9px); }
.pin__dot { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 10px rgba(23,19,31,.35); }
.pin--sm .pin__dot { width: 18px; height: 18px; flex-basis: 18px; }
.pin__label { font-size: 13px; font-weight: 700; color: var(--ink); background: #fff; padding: 6px 12px; border-radius: 999px; box-shadow: 0 2px 10px rgba(23,19,31,.25); white-space: nowrap; }
.pin__label span { font-weight: 500; color: var(--muted); }
.pin--baghdad { left: 55.7%; top: 48.9%; }
.pin--erbil { left: 52.7%; top: 19.9%; }
.map__badge { position: absolute; left: 16px; bottom: 16px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(23,19,31,.72); padding: 8px 14px; border-radius: 999px; }

/* ---------- stats band ---------- */
.stat__value { font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 3.3vw, 44px); line-height: 1; color: #fff; white-space: nowrap; }
.stat__label { margin-top: 12px; font-size: 14px; line-height: 1.45; color: #D6CCEA; }

/* ---------- cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card--tint { background: var(--tint); border-color: transparent; }
.card--row { display: flex; gap: 18px; align-items: flex-start; }
.card--row > .stack { gap: 6px; min-width: 0; }
.tile { display: flex; flex-direction: column; gap: 18px; min-height: 150px; }
.tile--more { background: var(--tint-2); border: 1.5px dashed var(--accent); color: var(--accent); }
.tile--more p { font-size: 15px; font-style: italic; line-height: 1.5; color: #4B2B86; }
.section--tint .tile--more { background: #fff; }

/* ---------- supplier logos ---------- */
.logo-tile { height: 112px; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.logo-tile img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.supplier { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.supplier__logo { height: 150px; display: flex; align-items: center; justify-content: center; padding: 24px; border-bottom: 1px solid var(--line); }
.supplier__logo img { max-width: 100%; max-height: 96px; width: auto; height: auto; object-fit: contain; }
.supplier__body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- warehouse ---------- */
.wh { display: flex; align-items: center; gap: 18px; }
.wh__name { font-weight: 700; font-size: 18px; color: var(--ink); }
.wh__meta { font-size: 15px; color: var(--muted); }

/* ---------- reach cards (distribution) ---------- */
.reach__value { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.1; color: var(--accent); overflow-wrap: anywhere; }
.reach__value--word { font-size: clamp(22px, 2vw, 26px); letter-spacing: 0.01em; }
.reach__label { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--body); }

/* ---------- facts table (about) ---------- */
.fact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; row-gap: 28px; margin: 0; }
.fact-list dt { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.fact-list dd { margin: 6px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }

.quote { background: var(--tint-2); border-radius: var(--radius); padding: 24px 32px; font-family: var(--serif); font-size: 18px; font-style: italic; line-height: 1.55; text-align: center; color: #4B2B86; }

/* ---------- partner steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 48px; height: 2px; background: var(--line); }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; min-width: 0; }
.step__circle { position: relative; width: 96px; height: 96px; flex: 0 0 96px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.step__circle svg { width: 36px; height: 36px; }
.step__num { position: absolute; right: -6px; top: -6px; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.step p { font-size: 14px; line-height: 1.6; color: var(--body); max-width: 24ch; }

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.check-list li { display: flex; align-items: center; gap: 16px; font-weight: 700; font-size: 16px; color: var(--ink); }
.check-list .chip { width: 44px; height: 44px; flex-basis: 44px; }
.check-list .chip svg { width: 20px; height: 20px; }

/* ---------- market (dark) ---------- */
.big-figure { background: #fff; border-radius: 18px; padding: 36px 40px 40px; }
.big-figure__value { font-family: var(--serif); font-weight: 700; font-size: clamp(52px, 6vw, 72px); line-height: 1; color: var(--accent); }
.big-figure__label { margin-top: 16px; font-size: 18px; line-height: 1.5; color: var(--ink); }
.mini { background: rgba(255,255,255,.08); border-radius: 14px; padding: 22px 26px; display: flex; align-items: center; gap: 22px; }
.mini__value { font-family: var(--serif); font-weight: 700; font-size: 34px; color: #fff; flex: 0 0 110px; white-space: nowrap; }
.mini__label { font-size: 15px; line-height: 1.5; color: #D6CCEA; }
.driver { display: flex; align-items: center; gap: 18px; font-size: 17px; line-height: 1.5; color: #F1EAFB; }
.driver .chip { background: rgba(255,255,255,.12); color: #D9C5F7; }

/* ---------- CTA band ---------- */
.cta { background: var(--dark); color: #fff; padding: clamp(56px, 7vw, 80px) 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta .h2 { color: #fff; max-width: 20ch; }
.cta .text { color: #D6CCEA; margin-top: 16px; }
.cta .eyebrow { color: var(--accent-soft); margin-bottom: 14px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.info-card .h3 { color: var(--accent); font-size: 17px; }
.info-card .val { font-size: 17px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.info-card a.val:hover { color: var(--accent); }
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid #CFC3E6; border-radius: 8px; padding: 12px 14px; width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: 3px solid rgba(138,77,206,.25); outline-offset: 0; }
.field textarea { resize: vertical; min-height: 150px; }
.form .btn { align-self: flex-start; }
.form__note { font-size: 13px; color: var(--muted); }
.hidden { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--foot); color: #E4DBF3; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; }
.footer-brand { display: block; width: 125px; height: 80px; }
.footer-brand img { width: 125px; height: 80px; object-fit: contain; }
.footer-tag { margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: 15px; color: #C9B5EE; }
.footer-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.6; }
.footer-list a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #2C2340; font-size: 13px; color: #A89BC4; }

/* ---------- simple pages ---------- */
.center-page { min-height: 60vh; display: flex; align-items: center; }

/* ================= responsive ================= */
@media (max-width: 1100px) {
  .g-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .g-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav { gap: 22px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad-x) 20px; box-shadow: 0 12px 24px rgba(23,19,31,.08); }
  .nav.is-open { display: flex; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__link[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent); }
  .nav .btn { margin-top: 16px; }
  .site-header__inner { position: relative; }
  .split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps::before { left: 47px; right: auto; top: 48px; bottom: 48px; width: 2px; height: auto; }
  .step { flex-direction: row; align-items: flex-start; text-align: left; gap: 20px; }
  .step > div { padding-top: 22px; }
  .step p { max-width: none; margin-top: 6px; }
}

@media (max-width: 720px) {
  .g-6, .g-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3, .g-2 { grid-template-columns: minmax(0, 1fr); }
  .grid.logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .fact-list { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .brand, .brand img { width: 88px; height: 56px; }
  .site-header__inner { min-height: 72px; }
  .pin__label span { display: none; }
  .pin__label { font-size: 12px; padding: 5px 10px; }
  .map__badge { font-size: 12px; left: 12px; bottom: 12px; }
  .btn-row .btn { flex: 1 1 auto; }
  .cta__inner .btn-row { width: 100%; }
  .mini { flex-direction: column; align-items: flex-start; gap: 8px; }
  .mini__value { flex-basis: auto; }
  .quote { padding: 20px; font-size: 17px; }
  .big-figure { padding: 28px; }
  .card { padding: 22px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 420px) {
  .g-4 { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; flex-direction: row; align-items: center; }
  .tile--more { flex-direction: column; align-items: flex-start; }
}

/* icon size inside the "expanding" tile */
.tile--more > svg { width: 28px; height: 28px; flex: 0 0 auto; }
