/* ===================================================
   Supreme Pharma — Design System
   Brand colors sampled directly from the company logo
=================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  /* brand */
  --red: #E6323A;
  --red-dark: #C22128;
  --red-tint: #FDEDEE;
  --blue: #3F4191;
  --blue-dark: #2C2E6B;
  --blue-tint: #EEEEF7;

  /* neutrals */
  --ink: #1B1B2F;
  --bg: #FAFAFC;
  --surface: #FFFFFF;
  --panel: #F2F2F8;
  --border: #E3E3EE;
  --grey: #5B5D74;
  --grey-light: #8A8CA3;

  /* type */
  --font-head: 'Fraunces', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* motion */
  --ease: cubic-bezier(.22,1,.36,1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{ font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0; color: var(--ink); }
p{ margin: 0; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor: pointer; border:none; background:none; }
.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 28px; }
section{ padding: 88px 0; }
@media (max-width:768px){ section{ padding: 56px 0; } }

/* ---------- reveal-on-scroll ---------- */
.reveal{ opacity:0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view{ opacity:1; transform: translateY(0); }
.reveal-stagger > *{ opacity:0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-stagger.in-view > *{ opacity:1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(1){ transition-delay:.05s; }
.reveal-stagger.in-view > *:nth-child(2){ transition-delay:.12s; }
.reveal-stagger.in-view > *:nth-child(3){ transition-delay:.19s; }
.reveal-stagger.in-view > *:nth-child(4){ transition-delay:.26s; }
.reveal-stagger.in-view > *:nth-child(5){ transition-delay:.33s; }
.reveal-stagger.in-view > *:nth-child(6){ transition-delay:.40s; }

/* ---------- eyebrow / badges ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color: var(--red);
}
.eyebrow::before{ content:''; width:16px; height:2px; background: var(--red); border-radius:2px; }
.badge{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12.5px; font-weight:600; color: var(--blue-dark);
  background: var(--blue-tint); border:1px solid #DBDCF0;
  padding:7px 14px; border-radius:30px;
}
.badge-dot{ width:7px; height:7px; border-radius:50%; background: var(--red); }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-size:14.5px; font-weight:700; padding:14px 26px; border-radius:10px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space:nowrap;
}
.btn-primary{ background: var(--red); color:#fff; box-shadow: 0 6px 20px -6px rgba(230,50,58,.55); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 10px 26px -6px rgba(230,50,58,.65); background: var(--red-dark); }
.btn-outline{ background: transparent; color: var(--ink); border:1.5px solid var(--border); }
.btn-outline:hover{ transform: translateY(-2px); border-color: var(--blue); color: var(--blue); }
.btn-white{ background:#fff; color: var(--blue-dark); }
.btn-white:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(0,0,0,.25); }
.btn svg{ width:16px; height:16px; transition: transform .25s var(--ease); }
.btn:hover svg{ transform: translateX(3px); }

/* ---------- header ---------- */
header{
  position: sticky; top:0; z-index:100;
  background: rgba(250,250,252,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
header.scrolled{ border-bottom-color: var(--border); box-shadow: 0 4px 24px -12px rgba(27,27,47,.12); }
.nav{ display:flex; align-items:center; justify-content:space-between; padding:16px 0; }
.brand{ display:flex; align-items:center; }
.brand img{ height:38px; width:auto; }
.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-links a{
  font-size:14.5px; font-weight:600; color: var(--grey); position:relative; padding:4px 0;
  transition: color .2s var(--ease);
}
.nav-links a::after{
  content:''; position:absolute; left:0; bottom:-2px; width:0; height:2px; background: var(--red);
  transition: width .25s var(--ease);
}
.nav-links a:hover{ color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }
.nav-links a.active{ color: var(--red); }
.nav-right{ display:flex; align-items:center; gap:18px; }
.nav-phone{ font-size:13.5px; font-weight:600; color: var(--ink); display:flex; align-items:center; gap:6px; }
.nav-phone svg{ width:15px; height:15px; color: var(--red); }
.burger{ display:none; width:30px; height:22px; position:relative; }
.burger span{ position:absolute; left:0; width:100%; height:2px; background:var(--ink); border-radius:2px; transition: all .3s var(--ease); }
.burger span:nth-child(1){ top:0; } .burger span:nth-child(2){ top:10px; } .burger span:nth-child(3){ top:20px; }
.burger.open span:nth-child(1){ transform: translateY(10px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity:0; }
.burger.open span:nth-child(3){ transform: translateY(-10px) rotate(-45deg); }

@media (max-width:900px){
  .nav-links{
    position:fixed; top:70px; left:0; right:0; bottom:0;
    background: var(--surface); flex-direction:column; align-items:flex-start; gap:0;
    padding: 12px 28px 40px; transform: translateX(100%); transition: transform .35s var(--ease);
    overflow-y:auto;
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-links a{ width:100%; padding:16px 0; border-bottom:1px solid var(--border); font-size:17px; }
  .nav-phone{ display:none; }
  .burger{ display:block; }
}

/* ---------- hero ---------- */
.hero{ padding: 84px 0 0; position:relative; overflow:hidden; }
.hero-glow{
  position:absolute; top:-180px; right:-160px; width:640px; height:640px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(230,50,58,.14), rgba(63,65,145,.10) 55%, transparent 72%);
  filter: blur(10px); pointer-events:none;
}
.hero-inner{ position:relative; z-index:1; max-width:760px; }
.hero h1{ font-size: clamp(34px,5vw,54px); margin: 18px 0 20px; letter-spacing:-.01em; }
.hero h1 em{ font-style:normal; color: var(--red); }
.hero p.lead{ font-size:18px; color: var(--grey); max-width:600px; margin-bottom:32px; }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:56px; }

/* pulse signature */
.pulse{ margin: 8px 0 0; }
.pulse svg{ width:100%; height:auto; display:block; }
.pulse-labels{ display:flex; justify-content:space-between; margin-top:10px; }
.pulse-labels span{ font-size:11px; font-weight:600; color: var(--grey-light); }

/* stats */
.stats{
  display:grid; grid-template-columns:repeat(4,1fr);
  border-top:1px solid var(--border); margin-top:48px;
}
.stat{ padding:30px 22px; text-align:center; border-right:1px solid var(--border); }
.stat:last-child{ border-right:none; }
.stat .num{ font-family: var(--font-head); font-size:34px; font-weight:700; color: var(--blue); }
.stat .num .accent{ color: var(--red); }
.stat .label{ font-size:12.5px; color: var(--grey); margin-top:6px; }
@media (max-width:768px){
  .stats{ grid-template-columns: repeat(2,1fr); }
  .stat{ border-bottom:1px solid var(--border); }
  .stat:nth-child(odd){ border-right:1px solid var(--border); }
}

/* ---------- section heads ---------- */
.section-head{ max-width:600px; margin-bottom:44px; }
.section-head h2{ font-size: clamp(26px,3.4vw,36px); margin:14px 0 12px; }
.section-head p{ color: var(--grey); font-size:15.5px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- who-we-work-with cards ---------- */
.audience-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.audience-card{
  background: var(--surface); border:1px solid var(--border); border-radius:16px; padding:30px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.audience-card:hover{ transform: translateY(-6px); box-shadow: 0 20px 40px -20px rgba(27,27,47,.2); border-color: transparent; }
.audience-icon{
  width:46px; height:46px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  margin-bottom:18px;
}
.audience-icon svg{ width:22px; height:22px; }
.audience-card:nth-child(1) .audience-icon{ background: var(--red-tint); }
.audience-card:nth-child(1) .audience-icon svg{ color: var(--red); }
.audience-card:nth-child(2) .audience-icon{ background: var(--blue-tint); }
.audience-card:nth-child(2) .audience-icon svg{ color: var(--blue); }
.audience-card:nth-child(3) .audience-icon{ background: var(--panel); }
.audience-card:nth-child(3) .audience-icon svg{ color: var(--ink); }
.audience-card h3{ font-size:19px; margin-bottom:10px; font-family: var(--font-body); font-weight:700; }
.audience-card p{ font-size:14.5px; color: var(--grey); margin-bottom:18px; }
.audience-card .card-link{ font-size:13.5px; font-weight:700; color: var(--ink); display:inline-flex; align-items:center; gap:6px; }
.audience-card .card-link svg{ width:14px; height:14px; transition: transform .25s var(--ease); }
.audience-card:hover .card-link svg{ transform: translateX(4px); }

@media (max-width:900px){ .audience-grid{ grid-template-columns:1fr; } }

/* ---------- category / company cards ---------- */
.category-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.category-card{
  background: var(--panel); border-radius:14px; padding:24px 20px;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.category-card:hover{ transform: translateY(-4px); background: var(--surface); box-shadow: 0 16px 32px -18px rgba(27,27,47,.18); }
.category-card .tag{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color: var(--red); margin-bottom:10px; display:block; }
.category-card h3{ font-size:15.5px; font-family: var(--font-body); font-weight:700; margin-bottom:8px; }
.category-card p{ font-size:13px; color: var(--grey); }
@media (max-width:900px){ .category-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .category-grid{ grid-template-columns:1fr; } }

.company-block{ margin-bottom:36px; }
.company-block h3{ font-size:18px; font-family:var(--font-body); font-weight:700; margin-bottom:6px; display:flex; align-items:center; gap:10px;}
.company-block h3 .swatch{ width:10px; height:10px; border-radius:3px; }
.company-block .names{ font-size:14.5px; color: var(--grey); line-height:1.9; }

/* logo grid placeholder */
.logo-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:14px; margin-top:16px; }
.logo-slot{
  aspect-ratio:2/1; border:1.5px dashed var(--border); border-radius:10px;
  display:flex; align-items:center; justify-content:center; font-size:11px; color: var(--grey-light);
  text-align:center; padding:8px; background: var(--surface);
}
@media (max-width:900px){ .logo-grid{ grid-template-columns:repeat(3,1fr); } }

/* ---------- ophthalmology band ---------- */
.ophthal-band{
  background: linear-gradient(135deg, var(--blue-dark), var(--blue) 60%, #4A4CA0);
  border-radius:24px; padding:56px; color:#fff; position:relative; overflow:hidden;
  display:grid; grid-template-columns: 1.3fr .7fr; gap:40px; align-items:center;
}
.ophthal-band::before{
  content:''; position:absolute; inset:0;
  background: radial-gradient(circle at 85% 20%, rgba(230,50,58,.35), transparent 55%);
  pointer-events:none;
}
.ophthal-band .eyebrow{ color:#FF9CA0; }
.ophthal-band .eyebrow::before{ background:#FF9CA0; }
.ophthal-band h2{ color:#fff; font-size: clamp(24px,3vw,32px); margin:14px 0 14px; }
.ophthal-band p{ color:#C7C9EA; font-size:15px; margin-bottom:20px; max-width:480px; }
.ophthal-pill{
  display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.25); color:#fff; padding:9px 16px; border-radius:30px;
  font-size:12.5px; font-weight:700;
}
.ophthal-pill .dot{ width:7px; height:7px; border-radius:50%; background:#5FE0A8; }
.ophthal-stat{ text-align:center; border-left:1px solid rgba(255,255,255,.18); padding-left:36px; position:relative; z-index:1; }
.ophthal-stat .num{ font-family: var(--font-head); font-size:44px; font-weight:700; color:#FF9CA0; }
.ophthal-stat .label{ font-size:12.5px; color:#C7C9EA; margin-top:8px; }
@media (max-width:900px){ .ophthal-band{ grid-template-columns:1fr; padding:36px 26px; } .ophthal-stat{ border-left:none; border-top:1px solid rgba(255,255,255,.18); padding-left:0; padding-top:24px; } }

/* ---------- chips ---------- */
.chips{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{
  font-size:13.5px; font-weight:600; padding:9px 16px; border-radius:30px;
  background: var(--surface); border:1px solid var(--border); color: var(--ink);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover{ border-color: var(--red); color: var(--red); }
.goa-note{ margin-top:26px; display:flex; align-items:center; gap:10px; font-size:14px; color: var(--grey); background: var(--blue-tint); padding:14px 18px; border-radius:12px; }
.goa-note .dot{ width:9px; height:9px; border-radius:50%; background: var(--blue); flex-shrink:0; }

/* ---------- contact ---------- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:56px; }
.contact-info-item{ display:flex; gap:16px; margin-bottom:26px; }
.contact-info-item .ic{ width:42px; height:42px; border-radius:11px; background: var(--red-tint); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contact-info-item .ic svg{ width:19px; height:19px; color: var(--red); }
.contact-info-item h4{ font-size:14.5px; font-family:var(--font-body); font-weight:700; margin-bottom:3px; }
.contact-info-item p{ font-size:14.5px; color: var(--grey); }
.form-field{ margin-bottom:18px; }
.form-field label{ display:block; font-size:13px; font-weight:700; margin-bottom:7px; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea{
  width:100%; padding:13px 15px; border:1.5px solid var(--border); border-radius:10px;
  font-family: var(--font-body); font-size:14.5px; background: var(--surface); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline:none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint);
}
.map-embed{ border-radius:16px; overflow:hidden; border:1px solid var(--border); margin-top:8px; }
.map-embed iframe{ width:100%; height:320px; border:0; display:block; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }

/* ---------- generic content sections ---------- */
.two-col{ display:grid; grid-template-columns: 1.1fr .9fr; gap:56px; align-items:start; }
@media (max-width:900px){ .two-col{ grid-template-columns:1fr; } }
.timeline{ border-left:2px solid var(--border); padding-left:28px; }
.timeline-item{ position:relative; padding-bottom:32px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{ content:''; position:absolute; left:-34px; top:4px; width:11px; height:11px; border-radius:50%; background: var(--red); border:3px solid var(--red-tint); }
.timeline-item .gen{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color: var(--red); margin-bottom:5px; }
.timeline-item h4{ font-size:17px; font-family:var(--font-body); font-weight:700; margin-bottom:5px; }
.timeline-item p{ font-size:14px; color: var(--grey); }

.compliance-strip{ display:flex; gap:28px; flex-wrap:wrap; background: var(--panel); border-radius:14px; padding:24px 28px; margin-top:8px;}
.compliance-item .k{ font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color: var(--grey); margin-bottom:4px;}
.compliance-item .v{ font-size:15px; font-weight:700; color: var(--ink); font-family: var(--font-head); }

/* ---------- CTA banner ---------- */
.cta-banner{
  background: var(--ink); border-radius:24px; padding:56px; text-align:center; position:relative; overflow:hidden;
}
.cta-banner::before{ content:''; position:absolute; inset:0; background: radial-gradient(circle at 20% 30%, rgba(230,50,58,.25), transparent 50%), radial-gradient(circle at 80% 70%, rgba(63,65,145,.4), transparent 55%); }
.cta-banner > *{ position:relative; z-index:1; }
.cta-banner h2{ color:#fff; font-size: clamp(24px,3.4vw,34px); margin-bottom:14px; }
.cta-banner p{ color:#B9BAC9; font-size:15.5px; margin-bottom:28px; max-width:480px; margin-left:auto; margin-right:auto; }
.cta-banner .hero-ctas{ justify-content:center; margin-bottom:0; }

/* ---------- footer ---------- */
footer{ background: var(--ink); color:#B9BAC9; padding:64px 0 30px; margin-top:0; }
.foot-grid{ display:grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap:40px; padding-bottom:36px; border-bottom:1px solid rgba(255,255,255,.1); }
.foot-brand img{ height:34px; margin-bottom:16px; filter: brightness(0) invert(1); }
.foot-brand p{ font-size:13.5px; line-height:1.7; color:#9294AC; max-width:280px; }
.foot-col h4{ color:#fff; font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; margin-bottom:16px; }
.foot-col ul li{ margin-bottom:11px; }
.foot-col ul li a{ font-size:14px; color:#B9BAC9; transition: color .2s var(--ease); }
.foot-col ul li a:hover{ color:#fff; }
.foot-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:26px; flex-wrap:wrap; gap:12px; }
.foot-bottom p{ font-size:12.5px; color:#7E8098; }
@media (max-width:900px){ .foot-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .foot-grid{ grid-template-columns:1fr; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero{ padding:76px 0 60px; position:relative; overflow:hidden; }
.page-hero h1{ font-size: clamp(30px,4.4vw,46px); margin:16px 0 14px; max-width:720px; }
.page-hero p.lead{ font-size:16.5px; color: var(--grey); max-width:600px; }

/* back to top */
.to-top{
  position:fixed; bottom:26px; right:26px; width:46px; height:46px; border-radius:50%;
  background: var(--ink); color:#fff; display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  z-index:90;
}
.to-top.show{ opacity:1; visibility:visible; transform:translateY(0); }
.to-top svg{ width:18px; height:18px; }

.note-banner{
  display:flex; gap:12px; background:#FFF7E6; border:1px solid #F3D98B; color:#7A5B00;
  padding:14px 18px; border-radius:12px; font-size:13.5px; margin-bottom:32px;
}
