/* ===== Heal Trust — dark, animated theme ===== */

/* Self-hosted Inter (CSP is font-src 'self' — no external font host used).
   Latin subset only; RTL pages fall through to the system Arabic-script stack below,
   since Inter has no Arabic glyphs — Latin numerals/EN UI chrome on RTL pages still benefit. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/inter-800.woff2') format('woff2'); }

:root {
  --bg: #0A0E12;
  --bg-alt: #0E1420;
  --surface: #131A24;
  --surface-2: #171F2C;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text: #EAF0F6;
  --grey: #92A0B3;
  --grey-dim: #738195; /* lightened from #64738A — original failed WCAG AA (4.02:1) for small text; this hits 4.89:1 */
  --green: #34D399;
  --green-dark: #10B981;
  --blue: #4EA8FF;
  --blue-dark: #2563EB;
  --amber: #FBBF24;
  --grad-1: #34D399;
  --grad-2: #4EA8FF;
  --grad-3: #A78BFA;
  --radius: 16px;

  /* Spacing scale — 4px base rhythm, used for the major layout gaps/paddings added or touched in Phase 2 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Motion — one shared easing curve for premium, unhurried transitions */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-standard: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01' 1, 'cv05' 1;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
::selection { background: var(--green); color: #05130E; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 10px; }

/* Ambient animated background mesh */
.mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.mesh span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.28;
  animation: float 18s ease-in-out infinite;
}
.mesh span:nth-child(1) { width: 480px; height: 480px; background: var(--grad-1); top: -120px; left: -100px; animation-duration: 22s; }
.mesh span:nth-child(2) { width: 420px; height: 420px; background: var(--grad-2); top: 30%; right: -140px; animation-duration: 26s; animation-delay: -6s; }
.mesh span:nth-child(3) { width: 380px; height: 380px; background: var(--grad-3); bottom: -140px; left: 20%; animation-duration: 20s; animation-delay: -3s; }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-30px) scale(1.08); }
  66% { transform: translate(-30px,25px) scale(0.94); }
}

/* Header */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,18,0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}
header.scrolled { background: rgba(10,14,18,0.85); border-bottom-color: var(--border-strong); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: 1180px; margin: 0 auto; gap: 20px; position: relative; z-index: 2;}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: 44px; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px var(--border), 0 6px 20px -6px rgba(52,211,153,0.4); }
.brand-text { line-height: 1.2; }
.brand-text .name { font-weight: 700; font-size: 17px; color: var(--text); }
.brand-text .sub { font-size: 11px; letter-spacing: 1.5px; color: var(--green); font-weight: 600; }
nav ul { list-style: none; display: flex; gap: 26px; }
nav ul li a { font-size: 14px; font-weight: 600; color: var(--grey); position: relative; padding: 4px 0; transition: color 0.2s; }
nav ul li a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: linear-gradient(90deg,var(--green),var(--blue)); transition: width 0.25s ease; }
nav ul li a:hover { color: var(--text); }
nav ul li a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-cta { background: linear-gradient(135deg,var(--green-dark),var(--blue-dark)); color: #06120D; padding: 10px 20px; border-radius: 9px; font-weight: 700; font-size: 13.5px; white-space: nowrap; box-shadow: 0 8px 22px -8px rgba(52,211,153,0.55); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -6px rgba(52,211,153,0.7); }
.lang-switch { display: flex; gap: 6px; font-size: 12.5px; font-weight: 700; }
.lang-switch a { padding: 5px 10px; border-radius: 6px; color: var(--grey); border: 1px solid var(--border); transition: all 0.2s; }
.lang-switch a.active, .lang-switch a:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }

/* Hero */
.hero { padding: 90px 0 70px; position: relative; background-image: linear-gradient(rgba(10,14,18,0.94), rgba(10,14,18,0.98)), url('photos/hero-bg.webp'); background-size: cover; background-position: center; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 52px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--green); font-weight: 700; font-size: 12px; letter-spacing: 0.6px; padding: 7px 14px; border-radius: 20px; margin-bottom: 20px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52,211,153,0.18); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { font-size: clamp(28px, 4.2vw + 12px, 44px); line-height: 1.18; font-weight: 800; color: var(--text); margin-bottom: 20px; letter-spacing: -0.5px; }
.hero h1 .grad { background: linear-gradient(120deg,var(--green),var(--blue) 60%,var(--grad-3)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: gradShift 6s ease infinite; }
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero p { font-size: 17px; color: var(--grey); max-width: 520px; margin-bottom: 30px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { padding: 13px 26px; border-radius: 10px; font-weight: 700; font-size: 14.5px; display: inline-block; transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.2s ease; }
.btn-primary { background: linear-gradient(135deg,var(--green-dark),var(--blue-dark)); color: #06120D; box-shadow: 0 10px 26px -10px rgba(52,211,153,0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(52,211,153,0.75); }
.btn-outline { border: 1.5px solid var(--border-strong); color: var(--text); }
.btn-outline:hover { background: var(--surface-2); border-color: var(--green); }

/* Hero showcase carousel */
.showcase { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); overflow: hidden; }
.showcase::before { content:""; position:absolute; inset:-1px; border-radius: 22px; padding: 1px; background: linear-gradient(135deg, rgba(52,211,153,0.5), rgba(78,168,255,0.2), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.carousel-track { position: relative; height: 230px; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 30% 20%, rgba(78,168,255,0.12), transparent 60%), var(--surface-2); }
.slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 18px; opacity: 0; transform: translateX(24px) scale(0.98); transition: opacity 0.6s ease, transform 0.6s ease; }
.slide.active { opacity: 1; transform: translateX(0) scale(1); }
.slide img { max-height: 190px; border-radius: 10px; box-shadow: 0 14px 30px -12px rgba(0,0,0,0.6); }
.slide .slide-icon { width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 40px; background: linear-gradient(135deg, rgba(52,211,153,0.18), rgba(78,168,255,0.18)); border: 1px solid var(--border-strong); flex-shrink: 0; }
.slide-info h3 { font-size: 15.5px; color: var(--text); margin-bottom: 4px; }
.slide-info p { font-size: 12.5px; color: var(--grey); max-width: 220px; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 0; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--border-strong); cursor: pointer; padding: 0; transition: all 0.25s; }
.carousel-dots button.active { width: 22px; border-radius: 6px; background: linear-gradient(90deg,var(--green),var(--blue)); }
.carousel-pause { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--grey-dim); font-size: 9px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: all 0.25s; }
.carousel-pause:hover, .carousel-pause:focus-visible { color: var(--text); border-color: var(--green); }

.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.hero-stat { padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); transition: transform 0.4s var(--ease-out), border-color 0.3s ease; }
.hero-stat:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.hero-stat b { display: block; font-size: 22px; color: var(--green); font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: 12px; color: var(--grey); }

/* Section generic */
section { padding: clamp(56px, 6vw + 24px, 96px) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 3vw + 18px, 52px); }
.section-head .tag { color: var(--blue); font-weight: 700; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(24px, 2.4vw + 14px, 32px); font-weight: 800; margin-top: 10px; margin-bottom: 14px; letter-spacing: -0.4px; }
.section-head p { color: var(--grey); font-size: 15.5px; }
.alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015) 15%, rgba(255,255,255,0.015) 85%, transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in { transition-delay: 0.08s; }
.reveal-delay-2.in { transition-delay: 0.16s; }
.reveal-delay-3.in { transition-delay: 0.24s; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.about-grid p { color: var(--grey); margin-bottom: 16px; font-size: 15.5px; }
.fact-list { list-style: none; }
.fact-list li { padding: 14px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 14.5px; gap: 12px; }
.fact-list li b { color: var(--text); }
.fact-list li span { color: var(--grey); text-align: right; }

/* Utility classes (replace former inline style="" attributes, for CSP style-src 'self') */
.eyebrow-blue { color: var(--blue); }
.heading-lg { font-size: clamp(22px, 2.2vw + 13px, 30px); font-weight: 800; margin: 14px 0 16px; }
.heading-md { font-size: clamp(21px, 2vw + 13px, 28px); font-weight: 800; margin: 10px 0 14px; }
.text-muted-mb { color: var(--grey); margin-bottom: 16px; }
.ref-label { margin-top: 44px; color: var(--grey); font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; font-weight: 700; }
.compliance-bg { background-image: url('photos/compliance-bg.webp'); }
.partner-bg-image { background-image: linear-gradient(rgba(10,14,18,0.72), rgba(10,14,18,0.88)), url('photos/partner-bg.webp'); background-size: cover; background-position: center; }

/* Cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card-no-photo { padding-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform 0.45s var(--ease-out), border-color 0.3s ease, box-shadow 0.45s var(--ease-out); }
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.55); }
.card .ic { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; transition: transform 0.4s var(--ease-out); }
.card:hover .ic { transform: scale(1.06) translateY(-1px); }
.card .ic svg { width: 24px; height: 24px; }
.ic-green { background: linear-gradient(135deg, rgba(52,211,153,0.22), rgba(52,211,153,0.06)); color: var(--green); }
.ic-blue { background: linear-gradient(135deg, rgba(78,168,255,0.22), rgba(78,168,255,0.06)); color: var(--blue); }
.ic-amber { background: linear-gradient(135deg, rgba(251,191,36,0.22), rgba(251,191,36,0.06)); color: var(--amber); }
.card h3 { font-size: 17.5px; margin-bottom: 8px; letter-spacing: -0.1px; }
.card p { color: var(--grey); font-size: 14.5px; }

/* Radiology / Bayer focus */
.rad-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 52px; align-items: center; }
.rad-grid > img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); }
.product-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin: 6px 10px 0 0; font-size: 14px; font-weight: 600; transition: border-color 0.25s, transform 0.25s; }
.product-pill:hover { border-color: var(--green); transform: translateY(-2px); }
.stat-banner { margin-top: 24px; background: linear-gradient(135deg, rgba(52,211,153,0.14), rgba(78,168,255,0.14)); border: 1px solid var(--border-strong); color: var(--text); border-radius: 14px; padding: 22px 26px; display: flex; align-items: center; gap: 18px; }
.stat-banner b { font-size: 24px; display: block; color: var(--green); }
.stat-banner span { font-size: 13px; color: var(--grey); }

/* Related medicines info strip (educational, horizontally scrollable) */
.info-strip { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; margin-top: 30px; scrollbar-width: thin; }
.info-strip::-webkit-scrollbar { height: 6px; }
.info-card { flex: 0 0 240px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; transition: transform 0.4s var(--ease-out), border-color 0.3s; }
.info-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.info-card .info-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; display: block; }
.info-card h3 { font-size: 15px; margin-bottom: 6px; }
.info-card p { font-size: 13px; color: var(--grey); }
.info-note { margin-top: 16px; font-size: 12.5px; color: var(--grey-dim); }

/* Compliance */
.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.comp-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; transition: transform 0.4s var(--ease-out), border-color 0.3s; }
.comp-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.comp-card .status { display: inline-flex; align-items: center; gap: 6px; background: rgba(52,211,153,0.14); color: var(--green); font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 12px; margin-bottom: 10px; }
.comp-card .status::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.comp-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.comp-card p { color: var(--grey); font-size: 13.5px; }
.comp-note { margin-top: 24px; font-size: 13px; color: var(--grey); border-left: 3px solid var(--amber); padding: 10px 16px; background: rgba(251,191,36,0.06); border-radius: 0 8px 8px 0; }

/* Leadership */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-card { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform 0.4s var(--ease-out), border-color 0.3s; }
.team-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--blue)); color: #06120D; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.team-card h3 { font-size: 16px; }
.team-card .role { color: var(--green); font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.team-card p { color: var(--grey); font-size: 13.5px; }

/* Partner CTA */
.partner {
  background: radial-gradient(circle at 20% 20%, rgba(52,211,153,0.16), transparent 55%), radial-gradient(circle at 85% 80%, rgba(78,168,255,0.16), transparent 55%), var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 24px; padding: 60px; text-align: center;
  position: relative; overflow: hidden;
}
.partner h2 { font-size: 30px; margin-bottom: 14px; }
.partner p { color: var(--grey); max-width: 560px; margin: 0 auto 30px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; }
.contact-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; transition: border-color 0.3s; }
.contact-block:hover { border-color: var(--border-strong); }
.contact-block h3 { font-size: 15px; margin-bottom: 12px; color: var(--green); }
.contact-block .row { display: flex; gap: 10px; margin-bottom: 10px; font-size: 14.5px; color: var(--text); }
.contact-block .row b { min-width: 78px; color: var(--grey); font-weight: 600; }
.contact-block .row a:hover { color: var(--green); }
form input, form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 9px; margin-bottom: 14px; font-family: inherit; font-size: 14.5px; transition: border-color 0.2s; }
form input::placeholder, form textarea::placeholder { color: var(--grey-dim); }
form input:focus, form textarea:focus { outline: none; border-color: var(--green); }
form textarea { min-height: 110px; resize: vertical; }
form button { width: 100%; border: none; cursor: pointer; }
.form-warning { font-size: 12px; color: var(--amber); background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.3); border-radius: 8px; padding: 10px 12px; margin: -4px 0 14px; line-height: 1.4; }
.btn-block { display: block; width: 100%; text-align: center; }
.prototype-badge { display: inline-block; background: rgba(251,191,36,0.16); color: var(--amber); font-size: 11px; font-weight: 800; letter-spacing: 0.6px; padding: 4px 10px; border-radius: 20px; margin-bottom: 12px; }
.prototype-note { font-size: 13px; color: var(--grey); margin-bottom: 16px; line-height: 1.5; }
.contact-note { font-size: 12px; color: var(--grey-dim); margin-top: 6px; }

/* Five-stage supply chain steps */
.supply-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 10px; }
.supply-steps li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 16px; text-align: center; transition: transform 0.4s var(--ease-out), border-color 0.3s; }
.supply-steps li:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.step-num { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--blue)); color: #06120D; font-weight: 800; font-size: 15px; }
.supply-steps h3 { font-size: 14.5px; margin-bottom: 6px; }
.supply-steps p { font-size: 12.5px; color: var(--grey); }

/* Footer legal links */
.footer-links { display: flex; gap: 18px; font-size: 13px; }
.footer-links a { color: var(--grey); transition: color 0.2s; }
.footer-links a:hover { color: var(--green); }

/* Legal pages (privacy / accessibility / terms) */
.legal-body { max-width: 760px; }
.legal-body h3 { font-size: 18px; margin: 32px 0 10px; color: var(--text); }
.legal-body h3:first-child { margin-top: 0; }
.legal-body p { color: var(--grey); font-size: 15px; margin-bottom: 14px; }
.legal-body code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; font-size: 13px; }

footer { background: var(--bg-alt); color: var(--grey); padding: 36px 0; font-size: 13.5px; border-top: 1px solid var(--border); position: relative; z-index: 2; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

/* ===== Accessibility: skip link, focus states, reduced motion ===== */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--green); color: #06120D; font-weight: 700;
  padding: 10px 18px; border-radius: 8px; transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Mobile navigation (hamburger + off-canvas panel) ===== */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: 1px solid var(--border-strong);
  border-radius: 9px; background: var(--surface-2); cursor: pointer;
  padding: 0; align-items: center;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  nav#primary-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border-strong);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.7);
  }
  nav#primary-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 18px; }
  nav#primary-nav ul li { border-bottom: 1px solid var(--border); }
  nav#primary-nav ul li a { display: block; padding: 14px 4px; }
  header.nav-open nav#primary-nav { display: block; }

  .hero-grid, .about-grid, .rad-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards-3, .cards-4, .comp-grid, .team-grid { grid-template-columns: 1fr; }
  .supply-steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .partner { padding: 40px 24px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 1100px) and (min-width: 861px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .supply-steps { grid-template-columns: repeat(2, 1fr); }
}

/* Small phones — tighter rhythm than the general 860px mobile breakpoint above */
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .hero { padding-top: clamp(64px, 14vw, 84px); }
  .hero h1 { font-size: 28px; letter-spacing: -0.3px; }
  .hero p { font-size: 15.5px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
  .showcase { padding: 16px; }
  .carousel-track { height: 200px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card, .comp-card, .info-card, .team-card, .contact-block { padding: 20px; }
  .partner { padding: 32px 20px; }
  .partner h2 { font-size: 24px; }
  .nav .brand-text .name { font-size: 15px; }
}

/* Photo components */
.about-media { width: 100%; height: 220px; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); margin-top: 22px; }
.card img.card-photo { width: calc(100% + 56px); height: 150px; object-fit: cover; margin: -28px -28px 20px -28px; border-radius: var(--radius) var(--radius) 0 0; display: block; }

.marquee-wrap { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee { display: flex; gap: 18px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee figure { position: relative; flex-shrink: 0; width: 260px; height: 174px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.marquee figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.marquee figure:hover img { transform: scale(1.08); }
.marquee figure figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.info-card .info-photo { width: calc(100% + 40px); height: 110px; object-fit: cover; margin: -20px -20px 14px -20px; border-radius: 14px 14px 0 0; display: block; }

.banner-section { position: relative; background-size: cover; background-position: center; }
.banner-section::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,18,0.90), rgba(10,14,18,0.96)); }
.banner-section > .wrap { position: relative; z-index: 2; }

.partner.photo-bg { background-image: linear-gradient(rgba(10,14,18,0.72), rgba(10,14,18,0.88)), radial-gradient(circle at 20% 20%, rgba(52,211,153,0.16), transparent 55%); background-size: cover; background-position: center; }

@media (max-width: 860px) {
  .marquee figure { width: 200px; height: 134px; }
}

/* ===== RTL support (Dari / Pashto) ===== */
[dir="rtl"] body { font-family: 'Segoe UI', Tahoma, 'Noto Sans Arabic', 'Noto Naskh Arabic', Arial, sans-serif; }
[dir="rtl"] .fact-list li span { text-align: left; }
[dir="rtl"] .comp-note { border-left: none; border-right: 3px solid var(--amber); border-radius: 8px 0 0 8px; }
[dir="rtl"] .team-card { text-align: right; }
[dir="rtl"] .contact-block .row b { min-width: 90px; }
[dir="rtl"] .hero p, [dir="rtl"] .about-grid p { max-width: 100%; }
[dir="rtl"] nav ul li a::after { left: auto; right: 0; }
[dir="rtl"] .slide { transform: translateX(-24px) scale(0.98); }
[dir="rtl"] .slide.active { transform: translateX(0) scale(1); }
[dir="rtl"] .skip-link { left: auto; right: 12px; }
[dir="rtl"] .footer-links { flex-direction: row-reverse; }
