/* AcedrA BioPharmaceuticals – static site styles */
:root{
  /* AcedrA brand identity v3 */
  --blue:#448BB6; --gray:#888584; --charcoal:#333B43; --blue-deep:#2F6B8F; --blue-light:#9CC3DB; --mist:#EEF4F8; --line:#D9D8D7;
  --ink:#333B43; --deep:#333B43; --cedar:#2F6B8F; --cedar-d:#2F6B8F; --mint:#EEF4F8; --sand:#EEF4F8;
  --gold:#9CC3DB; --text:#333B43; --muted:#5A646D; --white:#fff;
  --radius:14px; --shadow:0 10px 30px -12px rgba(51,59,67,.28);
  --serif:"Roboto Slab",Georgia,serif;
  --sans:"Open Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --ar:"Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif; --ar-head:"Aref Ruqaa","Noto Sans Arabic",serif;
  --maxw:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--sans);color:var(--text);background:var(--white);line-height:1.65;font-size:17px;-webkit-font-smoothing:antialiased}
img,svg{max-width:100%}
a{color:var(--blue-deep);text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{color:var(--ink)}
h1,h2,h3,h4{font-family:var(--sans);color:var(--ink);line-height:1.2;margin:0 0 .5em;font-weight:300;letter-spacing:-.01em}
h3,h4{font-weight:600}
.b{color:var(--blue)}
h1{font-size:clamp(2.1rem,4.6vw,3.5rem)}
h2{font-size:clamp(1.65rem,3vw,2.3rem)}
h3{font-size:1.25rem}
p{margin:0 0 1em}
.wrap{width:min(var(--maxw),100% - 2.5rem);margin-inline:auto}
.skip{position:absolute;left:-999px;top:0;background:var(--ink);color:#fff;padding:.7rem 1rem;z-index:200}
.skip:focus{left:0}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:4px}

/* Header */
.site-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.94);backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;min-height:74px}
.brand{display:flex;align-items:center;gap:.65rem;text-decoration:none;color:var(--ink)}
.brand img{height:46px;width:auto;display:block}
.nav{display:flex;align-items:center;gap:.25rem}
.nav>ul{display:flex;gap:.15rem;list-style:none;margin:0;padding:0}
.nav li{position:relative}
.nav a.top,.nav button.top{font:inherit;font-size:.95rem;font-weight:550;color:var(--ink);text-decoration:none;padding:.6rem .85rem;border-radius:8px;background:none;border:0;cursor:pointer;display:flex;align-items:center;gap:.35rem}
.nav a.top:hover,.nav button.top:hover,.nav .active>a.top,.nav .active>button.top{background:var(--mint);color:var(--cedar-d)}
.nav button.top::after{content:"";width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.sub{position:absolute;left:0;top:100%;min-width:280px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:.5rem;list-style:none;margin:.2rem 0 0;display:none}
.nav li:hover>.sub,.nav li.open>.sub,.nav li:focus-within>.sub{display:block}
.sub a{display:block;padding:.55rem .8rem;border-radius:8px;text-decoration:none;color:var(--text);font-size:.93rem}
.sub a:hover,.sub a[aria-current]{background:var(--mint);color:var(--cedar-d)}
.btn{display:inline-flex;align-items:center;gap:.5rem;font:inherit;font-weight:600;font-size:.95rem;padding:.8rem 1.35rem;border-radius:999px;text-decoration:none;border:2px solid transparent;cursor:pointer;transition:transform .15s,background .15s,box-shadow .15s}
.btn-primary{background:var(--cedar);color:#fff}
.btn-primary:hover{background:var(--ink);color:#fff;transform:translateY(-1px);box-shadow:var(--shadow)}
.btn-ghost{border-color:rgba(255,255,255,.55);color:#fff}
.btn-ghost:hover{background:#fff;color:var(--ink)}
.btn-outline{border-color:var(--cedar);color:var(--cedar-d)}
.btn-outline:hover{background:var(--cedar);color:#fff}
.nav .btn{padding:.6rem 1.1rem;margin-left:.5rem}
.burger{display:none;background:none;border:1px solid var(--line);border-radius:10px;width:44px;height:44px;cursor:pointer;color:var(--ink)}
.burger span{display:block;width:20px;height:2px;background:currentColor;margin:4px auto;transition:.2s}

/* Hero */
.hero{position:relative;color:#fff;background:linear-gradient(135deg,#333B43 0%,#333B43 38%,#448BB6 140%);overflow:hidden}
.hero::before{content:"";position:absolute;left:0;right:0;bottom:0;height:120px;opacity:.22;background:url("../img/helix-white.svg") repeat-x center bottom/400px 120px}
.hero .wrap{position:relative;padding:clamp(3.5rem,8vw,7rem) 0}
.hero.home .wrap{padding-bottom:clamp(5rem,9vw,8rem)}
.eyebrow{display:inline-block;font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;font-weight:700;color:var(--gold);margin-bottom:1rem}
.hero h1{color:#fff;margin-bottom:.5em}
.hero .b{color:var(--blue-light)}
.hero .lead{font-size:1.2rem;color:#DCE8F0;max-width:60ch}
.hero .actions{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.8rem}
.crumbs{font-size:.85rem;color:#9CC3DB;margin-bottom:1rem}
.crumbs a{color:#EEF4F8;text-decoration:none}.crumbs a:hover{color:#fff;text-decoration:underline}
.crumbs span{margin:0 .4rem;opacity:.6}
.page-hero .wrap{padding:clamp(2.8rem,6vw,4.8rem) 0}
.page-hero h1{font-size:clamp(2rem,4vw,3rem)}

/* Stats */
.stats{background:var(--sand);border-bottom:1px solid var(--line)}
.stats ul{list-style:none;margin:0;padding:2rem 0;display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
.stats li{text-align:center}
.stats strong{display:block;font-family:var(--serif);font-weight:300;font-size:2.4rem;color:var(--blue-deep);line-height:1}
.stats span{font-size:.9rem;color:var(--muted)}

/* Sections */
section{padding:clamp(3rem,6vw,5.5rem) 0}
.alt{background:var(--sand)}
.mint{background:var(--mint)}
.dark{background:var(--ink);color:#DCE8F0}.dark h2,.dark h3{color:#fff}
.sec-head{max-width:68ch;margin-bottom:2.2rem}
.sec-head.center{margin-inline:auto;text-align:center}
.kicker{font-size:.78rem;letter-spacing:.15em;text-transform:uppercase;color:var(--cedar);font-weight:700;margin-bottom:.6rem;display:block}
.lead-p{font-size:1.15rem;color:var(--muted)}
.grid{display:grid;gap:1.4rem}
.g2{grid-template-columns:repeat(2,1fr)}.g3{grid-template-columns:repeat(3,1fr)}.g4{grid-template-columns:repeat(4,1fr)}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.6rem;display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s,border-color .2s;text-decoration:none;color:var(--text)}
a.card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#b9d6cc;color:var(--text)}
.card h3{margin-bottom:.4rem}
.card p{color:var(--muted);font-size:.97rem;margin-bottom:0}
.card .more{margin-top:auto;padding-top:1rem;font-weight:600;color:var(--cedar-d);font-size:.92rem}
.card .more::after{content:" →"}
.ico{width:48px;height:48px;border-radius:12px;background:var(--mint);color:var(--cedar-d);display:grid;place-items:center;margin-bottom:1rem;flex:none}
.ico svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.split{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start}
.split.center{align-items:center}
.checks{list-style:none;padding:0;margin:0 0 1em}
.checks li{position:relative;padding:.35rem 0 .35rem 2rem}
.checks li::before{content:"";position:absolute;left:0;top:.62rem;width:1.15rem;height:1.15rem;border-radius:50%;background:var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6B8F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/70% no-repeat}
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:2rem}
.mint .panel,.alt .panel{border-color:transparent;box-shadow:var(--shadow)}
.quote{font-family:var(--sans);font-weight:300;font-size:clamp(1.5rem,3vw,2.2rem);line-height:1.3;color:#fff;max-width:26ch}
.quote em{color:var(--gold);font-style:normal}
.tags{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;padding:0;margin:0 0 1rem}
.tags li{background:var(--mint);color:var(--cedar-d);padding:.3rem .8rem;border-radius:999px;font-size:.85rem;font-weight:600}
.num{font-family:var(--serif);font-weight:300;font-size:2rem;color:var(--gold);line-height:1;margin-bottom:.5rem}
.cta{background:linear-gradient(120deg,#333B43 0%,#448BB6 170%);color:#fff;border-radius:22px;padding:clamp(2rem,5vw,3.5rem);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1.5rem}
.cta h2{color:#fff;margin:0 0 .3rem}.cta p{margin:0;color:#EEF4F8}
.cta .btn{background:#fff;color:var(--ink)}.cta .btn:hover{background:var(--blue-light);color:var(--ink)}
.office h3{margin-bottom:.8rem}
.office dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:.4rem 1rem;font-size:.95rem}
.office dt{font-weight:650;color:var(--ink)}.office dd{margin:0;color:var(--muted)}
.office .tag{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:var(--cedar);font-weight:700;margin-bottom:.3rem}

/* Forms */
form .row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
label{display:block;font-weight:600;font-size:.9rem;margin:0 0 .35rem;color:var(--ink)}
input,select,textarea{width:100%;font:inherit;padding:.75rem .9rem;border:1.5px solid #c3d3cf;border-radius:10px;background:#fff;color:var(--text)}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--cedar);box-shadow:0 0 0 4px rgba(47,107,143,.22)}
textarea{min-height:150px;resize:vertical}
.field{margin-bottom:1rem}
.check{display:flex;gap:.7rem;align-items:flex-start;font-size:.88rem;color:var(--muted)}
.check input{width:auto;margin-top:.3rem}
.hp{position:absolute;left:-9999px}
.form-msg{margin-top:1rem;padding:.9rem 1.1rem;border-radius:10px;display:none;font-weight:550}
.form-msg.ok{display:block;background:var(--mint);color:var(--cedar-d)}
.form-msg.err{display:block;background:#fdecea;color:#8a1f17}

/* Legal / prose */
.prose{max-width:78ch}
.prose h2{font-size:1.45rem;margin-top:2.2rem}
.prose h3{font-size:1.15rem;margin-top:1.6rem}
.prose ul,.prose ol{padding-left:1.3rem}.prose li{margin-bottom:.4rem}
.note{background:var(--sand);border-left:4px solid var(--gold);padding:1rem 1.2rem;border-radius:0 10px 10px 0;font-size:.95rem}
.toc{background:var(--sand);border-radius:12px;padding:1.2rem 1.5rem;margin-bottom:2rem}
.toc ol{margin:.4rem 0 0}

/* Footer */
.site-footer{background:var(--ink);color:#C9D3DB;font-size:.93rem}
.site-footer a{color:#EEF4F8;text-decoration:none}.site-footer a:hover{color:#fff;text-decoration:underline}
.foot-top{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:2.5rem;padding:4rem 0 2.5rem}
.site-footer h4{font-family:var(--sans);font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:#fff;margin-bottom:1rem}
.site-footer ul{list-style:none;margin:0;padding:0}.site-footer li{margin-bottom:.5rem}
.site-footer .brand img{height:54px}
.pv{border-top:1px solid #4A545E;padding:1.4rem 0;font-size:.88rem;color:#AEBCC8}
.legal{border-top:1px solid #4A545E;padding:1.4rem 0;display:flex;flex-wrap:wrap;gap:.4rem 1.4rem;font-size:.85rem}
.copy{border-top:1px solid #4A545E;padding:1.2rem 0 2rem;font-size:.85rem;color:#9AA8B4;display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem}

/* Reveal */
.rv{opacity:0;transform:translateY(16px);transition:opacity .6s,transform .6s}
.rv.in{opacity:1;transform:none}
.nojs .rv{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.rv{opacity:1;transform:none;transition:none}html{scroll-behavior:auto}.btn,.card{transition:none}}

/* Responsive */
@media (max-width:980px){
  .g3,.g4{grid-template-columns:repeat(2,1fr)}
  .hero.home .wrap,.split{grid-template-columns:1fr}
  .foot-top{grid-template-columns:1fr 1fr}
  .stats ul{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:900px){
  .burger{display:block}
  .nav{position:fixed;inset:74px 0 0 0;background:#fff;flex-direction:column;align-items:stretch;padding:1rem 1.25rem 2rem;overflow:auto;display:none}
  .nav.open{display:flex}
  .nav>ul{flex-direction:column}
  .nav a.top,.nav button.top{width:100%;justify-content:space-between;padding:.9rem .6rem;font-size:1.05rem}
  .sub{position:static;display:none;box-shadow:none;border:0;padding:0 0 .5rem .8rem;margin:0;min-width:0}
  .nav li.open>.sub{display:block}
  .nav li:hover>.sub{display:none}.nav li.open:hover>.sub{display:block}
  .nav .btn{margin:1rem 0 0;justify-content:center}
  body.lock{overflow:hidden}
}
@media (max-width:620px){
  body{font-size:16px}
  .g2,.g3,.g4,form .row{grid-template-columns:1fr}
  .foot-top{grid-template-columns:1fr}
  .stats strong{font-size:1.9rem}
  .office dl{grid-template-columns:1fr}.office dt{margin-top:.4rem}
}
@media print{.site-header,.site-footer,.cta,.burger{display:none}.hero{background:none;color:#000}.hero h1,.hero .lead{color:#000}}

.split>*,.grid>*{min-width:0}
@media (max-width:980px){.split{grid-template-columns:minmax(0,1fr)!important}}
.dir{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.5rem 1.2rem}
.office dd,.office dt{overflow-wrap:anywhere}
@media (max-width:620px){.dir{grid-template-columns:minmax(0,1fr);gap:0}.dir dd{margin-bottom:.6rem}}

/* Arabic + brand extras */
.ar{font-family:var(--ar);direction:rtl;line-height:1.9}
.ar-head{font-family:var(--ar-head);direction:rtl;font-size:clamp(1.4rem,2.6vw,2rem);color:var(--blue-light);margin:1.4rem 0 0;line-height:1.5}
.helix-band{height:96px;background:var(--mist) url("../img/helix.svg") repeat-x center/400px 120px;border-top:1px solid var(--line)}
.foot-tag{max-width:34ch;margin-top:1.2rem}
.foot-tag .ar{margin:.3rem 0 0;font-size:.95rem;color:#C9D3DB}
.eyebrow,.kicker,.crumbs,.tag,.site-footer h4{letter-spacing:.14em}
@media (max-width:380px){.brand img{height:38px}}

/* Home hero with video (light, clinical; text sits in the clear space on the right) */
.hero.has-video{background:#ececec;color:var(--ink)}
.hero.has-video::before{display:none}
.hero-media{position:absolute;inset:0;background:#ececec}
.hero-media video{width:100%;height:100%;object-fit:cover;object-position:left center;display:block}
.hero-media::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(255,255,255,0) 28%,rgba(255,255,255,.72) 56%,rgba(255,255,255,.88) 100%)}
.hero.has-video .wrap{display:flex;align-items:center;min-height:clamp(540px,68vh,720px);padding-top:3rem;padding-bottom:3rem}
.hero-copy{margin-left:auto;width:min(560px,52%)}
.hero.has-video h1{color:var(--ink);font-size:clamp(2rem,3.6vw,3.2rem)}
.hero.has-video .b{color:var(--blue)}
.hero.has-video .eyebrow{color:var(--blue-deep)}
.hero.has-video .lead{color:#4A545E}
.hero.has-video .ar-head{color:var(--blue-deep)}
.hero-toggle{position:absolute;left:1.25rem;bottom:1.1rem;z-index:2;font:inherit;font-size:.78rem;font-weight:600;letter-spacing:.04em;color:var(--ink);background:rgba(255,255,255,.88);border:1px solid var(--line);border-radius:999px;padding:.4rem .95rem;cursor:pointer}
.hero-toggle:hover{background:#fff;color:var(--blue-deep)}
@media (max-width:820px){
  .hero.has-video{background:#fff}
  .hero-media{position:relative;inset:auto;aspect-ratio:4/3}
  .hero-media::after{display:none}
  .hero-media video{object-position:left center}
  .hero.has-video .wrap{display:block;min-height:0;padding-top:2rem;padding-bottom:3.2rem}
  .hero-copy{width:auto;margin:0}
}
