/* Alfuratain Pharma website. Every value below follows Brand Identity Guidelines v1.0:
   palette (p.11), contrast table (p.12), type rules (p.14-15), pattern + rounded panel + line icons (p.16),
   logo minimum 200px wide on screen (p.8), clear space C = F-stem width = 22% of logo height (p.7). */
:root{
  --teal:#20A6A4;      /* brand colour: mark, panels, rules. Never body text (2.9:1 on white) */
  --deep:#147A78;      /* coloured text and links on white (5.1:1) */
  --charcoal:#444444;  /* text, dark panels */
  --mist:#E9F6F6;      /* quiet backgrounds */
  --grey:#F2F2F2;      /* tables and dividers */
  --white:#FFFFFF;     /* the main surface: white leads */
  --rule:#A6DBDB;      /* teal 40% tint: dividers on mist (tints are for tables, p.12) */
  --radius:28px;
  color-scheme:light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
/* One family, three weights per page (400 / 600 / 700). Arabic set ~2pt larger than Latin. */
body{margin:0;background:var(--white);color:var(--charcoal);font-family:"IBM Plex Sans Arabic",Tahoma,Arial,sans-serif;font-size:16px;line-height:1.6;letter-spacing:0}
html[lang="ar"] body{font-size:17.5px}
img,svg{display:block;max-width:100%}
a{color:var(--deep)}
h1,h2,h3{margin:0;color:var(--charcoal);font-weight:700}
h1{font-size:clamp(1.9rem,4vw,2.8rem);line-height:1.25}
h2{font-size:clamp(1.5rem,2.8vw,2.1rem);line-height:1.3}
h3{font-size:1.12rem;line-height:1.4;font-weight:600}
p{margin:0}
.wrap{max-width:1160px;margin:auto;padding:0 16px}
:focus-visible{outline:3px solid var(--deep);outline-offset:3px;border-radius:6px}
.ph{background:#fff3c4;color:#5c4700;padding:0 5px;border-radius:4px} /* draft placeholder, removed once real content arrives */
.eyebrow{display:block;color:var(--deep);font-weight:600;margin-bottom:12px}

/* Buttons: deep teal carries text-bearing fills on white (white on deep teal 5.1:1) */
.btn{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 24px;border-radius:999px;font-weight:600;text-decoration:none;border:2px solid var(--deep);transition:background .15s,color .15s}
.btn.solid{background:var(--deep);color:var(--white)}
.btn.solid:hover{background:var(--charcoal);border-color:var(--charcoal)}
.btn.line{color:var(--deep);background:var(--white)}
.btn.line:hover{background:var(--mist)}
.btns{display:flex;flex-wrap:wrap;gap:12px}

/* Line icons: one stroke weight, rounded, single palette colour (p.16) */
.ico{width:30px;height:30px;fill:none;stroke:var(--deep);stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* Header: bilingual horizontal logo, >= 200px wide, clear space >= C (12px at 52px height) */
.site-head{position:sticky;top:0;z-index:10;background:var(--white);border-bottom:1px solid var(--grey)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:84px}
.logo{display:block;padding:12px 0;flex:none}
.logo img{height:52px;width:auto}
.site-head nav ul{display:flex;gap:28px;list-style:none;margin:0;padding:0}
.site-head nav a{color:var(--charcoal);text-decoration:none;font-weight:400}
.site-head nav a:hover{color:var(--deep)}
.tools{display:flex;align-items:center;gap:18px}
.lang{color:var(--deep);font-weight:600;text-decoration:none}
/* Phone menu: icon button opens the same nav list as a drop-down */
.menu-btn{display:none;width:44px;height:44px;place-items:center;border:2px solid var(--deep);border-radius:50%;background:var(--white);cursor:pointer;padding:0}
.menu-btn svg{width:22px;height:22px;fill:none;stroke:var(--deep);stroke-width:2;stroke-linecap:round}
@media (max-width:1080px){
  .menu-btn{display:grid}
  .site-head nav{display:none;position:absolute;inset-inline:0;top:100%;background:var(--white);border-bottom:1px solid var(--grey);padding:4px 16px 12px}
  .site-head nav.open{display:block}
  .site-head nav ul{flex-direction:column;gap:0}
  .site-head nav a{display:block;padding:13px 0;border-bottom:1px solid var(--grey)}
}
@media (max-width:520px){ .tools{gap:12px} .tools .btn{display:none} }
@media (max-width:400px){ .logo img{height:49px} }   /* 201px wide: still above the 200px minimum */
.skip{position:absolute;inset-inline-start:16px;top:-80px;z-index:20;background:var(--deep);color:var(--white);padding:10px 16px;border-radius:8px;font-weight:600}
.skip:focus{top:12px}
section[id]{scroll-margin-top:84px}   /* anchor targets clear the sticky header */

/* Teal ground with the brand pattern + white rounded panel: the identity's own frame (p.16) */
.ground{background:var(--teal) url("pattern-teal.svg") center/900px repeat;padding:clamp(28px,5vw,64px) 0}
.panel{background:var(--white);border-radius:var(--radius);padding:clamp(28px,5vw,64px)}
.hero .panel{display:grid;grid-template-columns:1.35fr 1fr;gap:clamp(28px,5vw,64px);align-items:center}
.hero .lead{font-size:1.12rem;margin:18px 0 30px;max-width:620px}
.figures{display:grid;grid-template-columns:1fr 1fr;gap:28px 24px}
.figure{border-top:2px solid var(--teal);padding-top:14px}
.figure b{display:block;font-size:clamp(2rem,3.6vw,2.8rem);line-height:1.15;font-weight:700;direction:ltr;unicode-bidi:isolate}
html[lang="ar"] .figure b{text-align:right}
.figure span{color:var(--charcoal)}
@media (max-width:860px){ .hero .panel{grid-template-columns:1fr} }

/* Sections in the brand book's layout: number + title over a teal hairline */
.sec{padding:clamp(56px,8vw,96px) 0}
.sec.tint{background:var(--mist)}
.sec-head{display:flex;align-items:baseline;gap:14px;border-bottom:1px solid var(--teal);padding-bottom:14px;margin-bottom:36px}
.sec-head .num{color:var(--deep);font-weight:600;font-size:1.1rem}
.two{display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,5vw,64px);align-items:start}
@media (max-width:860px){ .two{grid-template-columns:1fr} }
.big{font-size:clamp(1.2rem,2.2vw,1.5rem);line-height:1.6;font-weight:400}
.facts{margin-top:24px;display:flex;flex-wrap:wrap;gap:10px}
.facts span{background:var(--mist);border-radius:999px;padding:4px 16px}

/* Card grids */
.grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.card{background:var(--white);border-radius:20px;padding:26px 24px}
.sec:not(.tint) .card{background:var(--mist)}
.card h3{margin:16px 0 6px}
.card p{color:var(--charcoal)}
.values{grid-template-columns:1fr 1fr}
.quad{grid-template-columns:repeat(4,1fr)}   /* four cards: 4 / 2 / 1 columns, never 3 + 1 */
@media (max-width:1100px){ .quad{grid-template-columns:1fr 1fr} }
@media (max-width:560px){ .quad{grid-template-columns:1fr} }
@media (max-width:520px){ .values{grid-template-columns:1fr} }

/* Audiences */
.aud{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.aud .card{padding:clamp(28px,4vw,44px)}
.aud .card.dark{background:var(--charcoal);color:var(--white)}       /* white on charcoal 9.7:1 */
.aud .card.dark h3,.aud .card.dark .eyebrow{color:var(--white)}
.aud h3{font-size:1.4rem;font-weight:700;margin:0 0 18px}
.aud ul{list-style:none;margin:0 0 28px;padding:0}
.aud li{display:flex;gap:12px;padding:10px 0;border-top:1px solid var(--rule)}
.aud .card.dark li{border-color:rgba(255,255,255,.18)}
.aud li::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--teal);margin-top:.7em}
.aud .card.dark .btn.solid{background:var(--white);color:var(--charcoal);border-color:var(--white)}
.aud .card.dark .btn.solid:hover{background:var(--mist)}
.aud .card.dark .btn.line{background:transparent;color:var(--white);border-color:var(--white)}
.aud .card.dark .btn.line:hover{background:rgba(255,255,255,.12)}
.skip-cap{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}   /* table captions for screen readers */
@media (max-width:860px){ .aud{grid-template-columns:1fr} }

/* Coverage chart (tints are for charts: p.12) */
.chart{background:var(--white);border-radius:var(--radius);padding:24px}
.chart svg{direction:ltr;width:100%;max-width:420px;margin:auto}
.chart .path{fill:none;stroke:var(--teal);stroke-width:10;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 2s ease-out}
.chart.on .path{stroke-dashoffset:0}
.chart circle{fill:var(--white);stroke:var(--deep);stroke-width:4}
.chart .hq{fill:var(--deep)}
.chart text{font-family:inherit;font-size:19px;font-weight:600;fill:var(--charcoal)}
.chart text.sub{font-size:14px;font-weight:400;fill:var(--charcoal)}
.table{width:100%;border-collapse:collapse;margin-top:24px}
.table th,.table td{padding:13px 0;border-bottom:1px solid var(--rule);text-align:start;vertical-align:top}
.table th{font-weight:600;padding-inline-end:24px}
.table .end{text-align:end}
.table.profile{margin-top:0}
.table.profile th{width:38%}
@media (max-width:560px){ .table.profile th,.table.profile td{display:block;width:auto;padding-inline-end:0} .table.profile th{border-bottom:0;padding-bottom:0} }

/* Principal: Medhel logo exactly as supplied, on white, clear space >= a quarter of its width,
   >= 48px on screen (Medhel Iraq guidelines v1.1 p.5). Never boxed, recoloured or redrawn. */
.principal-card{background:var(--white);border-radius:var(--radius);display:grid;place-items:center;padding:48px}
.principal-card img{width:160px;height:auto}
.principal-cap{margin-top:14px;font-weight:600}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.chips span{background:var(--white);border-radius:999px;padding:4px 16px}
.note{font-size:.88rem;color:var(--charcoal);margin-top:20px}

/* Our work: conferences list */
.events{list-style:none;margin:0;padding:0}
.events li{padding:16px 0;border-bottom:1px solid var(--rule)}
.events .eyebrow{margin-bottom:4px}

/* Contact: the same teal ground + rounded panel closes the page */
.contact .panel h2{margin-bottom:8px}
.asks{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:28px 0 36px}
.ask{display:flex;flex-direction:column;gap:2px;text-decoration:none;color:var(--charcoal);background:var(--mist);border:2px solid transparent;border-radius:18px;padding:18px 20px;transition:border-color .15s}
.ask:hover{border-color:var(--teal)}
.ask b{font-weight:600}
.ask small{color:var(--charcoal);font-size:.9rem}
.info{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;border-top:1px solid var(--teal);padding-top:28px}
.info h3{font-size:.95rem;color:var(--deep);margin-bottom:4px}
.info a{color:var(--charcoal);text-decoration:none}
.info a:hover{color:var(--deep);text-decoration:underline}
.ltr{direction:ltr;unicode-bidi:isolate;display:inline-block}
@media (max-width:980px){ .asks{grid-template-columns:1fr 1fr} }
@media (max-width:760px){ .info{grid-template-columns:1fr} }
@media (max-width:420px){ .asks{grid-template-columns:1fr} }

/* Market-access steps */
.steps{list-style:none;margin:0;padding:0;border-top:1px solid var(--rule)}
.steps li{display:grid;grid-template-columns:40px 1fr;gap:16px;padding:18px 0;border-bottom:1px solid var(--rule)}
.steps h3{margin-bottom:4px}
.step-n{width:36px;height:36px;border-radius:50%;background:var(--deep);color:var(--white);display:grid;place-items:center;font-weight:600}   /* white on deep teal 5.1:1 */

/* Compliance: pharmacovigilance call-out */
.callout{display:flex;gap:16px;align-items:flex-start;margin-top:16px;background:var(--mist);border-radius:20px;padding:22px 24px}
.callout p + p{margin-top:4px}

/* Footer: reversed logo on charcoal (p.9), >= 200px wide; white text 9.7:1 */
.site-foot{background:var(--charcoal);color:var(--white);padding:44px 0 28px;font-size:.92rem}
.site-foot a{color:var(--white)}
.site-foot img{height:52px;width:auto}
.foot-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:32px}
.foot-grid h2{font-size:1rem;font-weight:600;color:var(--white);margin-bottom:8px}
.foot-grid p + p{margin-top:6px}
.foot-legal{border-top:1px solid rgba(255,255,255,.2);margin-top:32px;padding-top:20px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}
@media (max-width:860px){ .foot-grid{grid-template-columns:1fr} }

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
  .chart .path{stroke-dashoffset:0}
}
/* Confirmed principal, shown in the hero */
.principal{margin-top:28px;padding-top:16px;border-top:1px solid var(--rule);max-width:620px;display:flex;align-items:center;gap:16px}
.principal img{width:52px;height:52px;flex:none}
.principal a{font-weight:600}
