/* ============================================================
   BIOSYN PHARMACEUTICALS — SHARED STYLESHEET
   Corporate, clean, white-first design system
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Brand palette */
  --navy-950: #061629;
  --navy-900: #0A2540;
  --navy-800: #0F2F52;
  --navy-700: #143C6B;
  --blue-700: #1E5FBF;
  --blue-600: #2B72D6;
  --blue-500: #4A8AE8;
  --blue-400: #7EA9EF;
  --blue-100: #DCE9FA;
  --blue-50: #F0F6FE;
  --cyan-500: #0BC5EA;
  --cyan-400: #38D9F2;
  --teal-600: #14B8A6;
  --gold-600: #B8923E;
  --gold-500: #C9A24B;
  --gold-400: #D9B968;

  /* Neutrals — white-first */
  --ink: #0B1320;
  --ink-2: #2A3447;
  --muted: #5A6678;
  --muted-2: #8492A6;
  --hairline: #E5EBF1;
  --hairline-2: #EEF2F6;
  --canvas: #FFFFFF;
  --canvas-tint: #F7F9FC;
  --canvas-warm: #FAFBFD;

  /* Typography — single family, corporate sans */
  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Sizes */
  --container: 1240px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  /* Shadows — soft, refined */
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.05);
  --shadow: 0 6px 20px -8px rgba(10, 37, 64, 0.10);
  --shadow-lg: 0 20px 44px -16px rgba(10, 37, 64, 0.14);
  --shadow-xl: 0 32px 64px -24px rgba(10, 37, 64, 0.18);
  --shadow-blue: 0 14px 34px -12px rgba(30, 95, 191, 0.30);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --d-fast: 200ms;
  --d-base: 380ms;
  --d-slow: 650ms;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}
::selection { background: var(--blue-700); color: white; }

/* ---------- UTILITIES ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--blue-700);
  border-radius: 2px;
}
.eyebrow.center { justify-content: center; }
.eyebrow.light { color: var(--cyan-400); }
.eyebrow.light::before { background: var(--cyan-400); }

/* Headlines: strong weight + accent color instead of italics */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--navy-900);
}
.display .accent {
  color: var(--blue-700);
}
.display.light { color: white; }
.display.light .accent { color: var(--cyan-400); }

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
  font-weight: 400;
}

.section {
  padding: clamp(72px, 10vw, 120px) 0;
  position: relative;
}
.section-tight { padding: clamp(56px, 7vw, 84px) 0; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 100px;
  transition: all var(--d-fast) var(--ease-out);
  white-space: nowrap;
}
.btn-primary { background: var(--navy-900); color: white; }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.btn-primary svg { transition: transform var(--d-fast) var(--ease-out); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--navy-900); border: 1px solid var(--hairline); }
.btn-ghost:hover { border-color: var(--navy-900); background: var(--navy-900); color: white; transform: translateY(-2px); }
.btn-light { background: white; color: var(--navy-900); }
.btn-light:hover { background: var(--blue-50); transform: translateY(-2px); }

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all var(--d-base) var(--ease-out);
  padding: 16px 0;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
  padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 46px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: 100px;
  transition: all var(--d-fast) var(--ease-out);
  white-space: nowrap;
}
.nav-link:hover { color: var(--navy-900); background: var(--blue-50); }
.nav-link.active { color: var(--blue-700); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: all var(--d-fast) var(--ease-out); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hide desktop menu earlier since we now have 9 items */
@media (max-width: 1180px) {
  .nav-menu, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
}

.nav-mobile {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 360px;
  background: white;
  padding: 96px 32px 32px;
  transform: translateX(100%);
  transition: transform var(--d-base) var(--ease-out);
  z-index: 99;
  overflow-y: auto;
  box-shadow: -24px 0 60px -20px rgba(10,37,64,0.2);
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-900);
  border-bottom: 1px solid var(--hairline-2);
}
.nav-mobile a.active { color: var(--blue-700); }
.nav-mobile .btn { margin-top: 24px; width: 100%; justify-content: center; }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  padding: 150px 0 70px;
  background: linear-gradient(180deg, var(--canvas-warm) 0%, var(--canvas) 100%);
  border-bottom: 1px solid var(--hairline-2);
  position: relative;
  overflow: hidden;
}
.page-hero-inner { max-width: 760px; position: relative; z-index: 2; }
.page-hero-split { max-width: var(--container); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.page-hero-split .page-hero-text { max-width: 640px; }
.page-hero-photo { position: relative; justify-self: center; }
.page-hero-photo img {
  width: 340px; height: 340px; object-fit: cover; border-radius: 50%;
  border: 6px solid white; box-shadow: var(--shadow-xl);
}
.page-hero-photo::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400), transparent);
  z-index: -1; filter: blur(20px); opacity: 0.4;
}
.page-hero-photo-rect img {
  width: 100%; max-width: 460px; height: 300px; border-radius: var(--radius-lg);
}
.page-hero-photo-rect::before { border-radius: var(--radius-lg); inset: -10px; }
@media (max-width: 900px) {
  .page-hero-split { grid-template-columns: 1fr; gap: 36px; }
  .page-hero-photo { order: -1; }
  .page-hero-photo img { width: 240px; height: 240px; }
  .page-hero-photo-rect img { width: 100%; max-width: 420px; height: 240px; }
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 18px 0 20px;
}
.page-hero h1 .accent { color: var(--blue-700); }
.page-hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.page-hero-deco {
  position: absolute;
  top: -30%; right: -5%;
  width: 45%; height: 160%;
  background: radial-gradient(circle, rgba(30,95,191,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.breadcrumb a:hover { color: var(--blue-700); }
.breadcrumb .sep { color: var(--muted-2); }

/* ---------- SECTION HEADERS ---------- */
.section-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  margin-bottom: 64px;
  align-items: end;
}
.section-header.center {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 740px;
  margin-left: auto; margin-right: auto;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-top: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-title.light { color: white; }
@media (max-width: 900px) {
  .section-header { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
}

/* ---------- CARDS GENERIC ---------- */
.card {
  background: white;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  transition: all var(--d-base) var(--ease-out);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 30px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-500), transparent);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { height: 50px; width: auto; margin-bottom: 20px; }
.footer-brand p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 22px; max-width: 320px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: white;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--d-fast) var(--ease-out);
  border: 1px solid rgba(255,255,255,0.08);
}
.footer-socials a svg { width: 22px; height: 22px; display: block; }
.footer-socials a.social-fb:hover { background: #1877F2; border-color: #1877F2; color: #fff; transform: translateY(-2px); }
.footer-socials a.social-li:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; transform: translateY(-2px); }
.footer-socials i { width: 18px; height: 18px; }
.footer-col h5 {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: white; margin-bottom: 22px;
}
.footer-col a, .footer-static {
  display: block;
  padding: 8px 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--d-fast);
}
.footer-col a:hover { color: var(--cyan-400); }
.footer-newsletter p { font-size: 0.9rem; margin-bottom: 16px; }
.footer-form {
  display: flex;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 4px;
}
.footer-form:focus-within { border-color: var(--cyan-500); }
.footer-form input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 12px 16px; font-size: 14px; color: white; font-family: var(--font-body);
}
.footer-form input::placeholder { color: rgba(255,255,255,0.4); }
.footer-form button {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cyan-500); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--d-fast); flex-shrink: 0;
}
.footer-form button:hover { background: white; }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap; font-size: 0.875rem;
}
.footer-bottom-left { color: rgba(255,255,255,0.5); }
.footer-bottom-right { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-bottom-right a { color: rgba(255,255,255,0.5); font-size: 0.875rem; transition: color var(--d-fast); }
.footer-bottom-right a:hover { color: white; }
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: span 3; margin-bottom: 12px; }
  .footer-newsletter { grid-column: span 3; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand, .footer-newsletter { grid-column: span 2; }
}

/* ---------- SCROLL ANIMATIONS ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-animate].in-view { opacity: 1; transform: translateY(0); }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--blue-700), var(--cyan-500));
  z-index: 101;
  transition: width 100ms linear;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-animate] { opacity: 1; transform: none; }
}
@media print { .nav, .footer, .scroll-progress { display: none; } }

/* ---------- SHARED COMPONENTS USED ACROSS PAGES ---------- */
/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--blue-700) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 50%; height: 200%;
  background: radial-gradient(circle, rgba(11,197,234,0.18) 0%, transparent 60%);
}
.cta-band h2 { color: white; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 16px; position: relative; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 56ch; margin: 0 auto 28px; position: relative; }
.cta-band .btn { position: relative; }
