/* =========================================
   INVISION PHARMA — STYLESHEET
   Design tokens: Navy / White / Gold / Teal
   ========================================= */

:root {
  --navy:      #0a1628;
  --navy-mid:  #12254a;
  --navy-light:#1e3a6e;
  --gold:      #c9a84c;
  --gold-light:#e8c97a;
  --teal:      #1aada6;
  --teal-light:#22cfc7;
  --white:     #ffffff;
  --offwhite:  #f7f8fc;
  --gray:      #6b7280;
  --gray-light:#e8eaf0;
  --text:      #1a2332;

  --radius:    10px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(10,22,40,0.10);
  --shadow-lg: 0 12px 48px rgba(10,22,40,0.15);

  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Lora', serif;
  --font-ui:      'Montserrat', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- TOPBAR ---- */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  padding: 7px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.topbar a { color: var(--gold-light); }
.topbar a:hover { color: var(--white); }

/* ---- HEADER ---- */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(10,22,40,0.08);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(10,22,40,0.16); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo img { height: 48px; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  font-weight: 300;
  letter-spacing: -0.5px;
}
.logo-text strong { font-weight: 700; color: var(--teal); }

/* NAV */
.main-nav ul { display: flex; gap: 4px; align-items: center; }
.main-nav li { position: relative; }
.main-nav a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  display: block;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--offwhite); color: var(--teal); }
.main-nav a.nav-highlight { color: var(--teal); font-weight: 600; }

/* Dropdowns */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px 0;
  z-index: 200;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  padding: 10px 18px;
  border-radius: 0;
  font-size: 0.85rem;
}
.dropdown li a:hover { background: var(--offwhite); color: var(--teal); padding-left: 24px; }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold-light); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-lg { padding: 15px 36px; font-size: 1rem; }

/* ---- HAMBURGER ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- PAGE HERO ---- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231aada6' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero .eyebrow {
  display: inline-block;
  background: rgba(26,173,166,0.2);
  color: var(--teal-light);
  border: 1px solid rgba(26,173,166,0.4);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.page-hero h1 span { color: var(--gold-light); }
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.80);
  max-width: 600px;
  margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- HOME HERO ---- */
.home-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #0f2d5a 100%);
  color: var(--white);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.home-hero::after {
  content: '';
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26,173,166,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.home-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.home-hero-text .eyebrow {
  display: inline-block;
  background: rgba(201,168,76,0.2);
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,0.4);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.home-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
}
.home-hero-text h1 span { color: var(--teal-light); }
.home-hero-text p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item .num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}
.stat-item .label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.home-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
  z-index: 2;
}
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.3s;
}
.hero-card:hover { transform: translateY(-4px); }
.hero-card .icon { font-size: 2.4rem; margin-bottom: 10px; }
.hero-card h3 {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.hero-card p { font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.hero-card.featured {
  background: rgba(26,173,166,0.15);
  border-color: rgba(26,173,166,0.4);
}
.hero-card.featured-gold {
  background: rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.35);
}

/* ---- SECTIONS ---- */
.section { padding: 80px 0; }
.section-light { background: var(--offwhite); }
.section-navy { background: var(--navy); color: var(--white); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--navy);
}
.section-navy .section-title { color: var(--white); }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 560px;
}
.section-navy .section-subtitle { color: rgba(255,255,255,0.7); }
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.section-navy .section-eyebrow { color: var(--teal-light); }

/* ---- CARDS ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.25s;
  box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(26,173,166,0.12), rgba(26,173,166,0.06));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.card p { font-size: 0.92rem; color: var(--gray); }

/* ---- PRODUCT CARDS ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
  box-shadow: var(--shadow);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--offwhite), var(--gray-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.product-card-body { padding: 20px; }
.product-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.product-card p { font-size: 0.85rem; color: var(--gray); }
.product-card-footer {
  padding: 12px 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-teal { background: rgba(26,173,166,0.12); color: var(--teal); }
.badge-gold { background: rgba(201,168,76,0.15); color: #8a6d1a; }
.badge-new { background: rgba(220,53,69,0.1); color: #dc3545; }

/* ---- FEATURES LIST ---- */
.features-list { list-style: none; }
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.95rem;
}
.features-list li:last-child { border-bottom: none; }
.check-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.7rem;
  margin-top: 2px;
}

/* ---- TWO COLUMN SPLIT ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-visual {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  font-size: 6rem;
  line-height: 1;
  box-shadow: var(--shadow-lg);
}

/* ---- SCIENCE DIAGRAM ---- */
.science-diagram {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.science-diagram::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(26,173,166,0.12);
}

/* ---- PROCESS STEPS ---- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  z-index: 0;
}
.step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 12px;
}
.step-num {
  width: 64px;
  height: 64px;
  background: var(--navy);
  color: var(--teal-light);
  border: 3px solid var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 18px;
}
.section-light .step-num { background: var(--offwhite); }
.step h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.step p { font-size: 0.82rem; color: var(--gray); }

/* ---- CTA STRIP ---- */
.cta-strip {
  background: linear-gradient(135deg, var(--teal) 0%, #0f8a85 100%);
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-strip p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- CERTIFICATIONS STRIP ---- */
.cert-strip {
  background: var(--navy);
  padding: 28px 0;
}
.cert-strip-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.cert-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}
.cert-pill::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: white;
}

/* ---- CLIENTS ---- */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
}
.client-logo {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 16px 28px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 0.5px;
  transition: all 0.2s;
}
.client-logo:hover { border-color: var(--teal); color: var(--navy); }

/* ---- CONTACT FORM ---- */
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- FOOTER ---- */
.footer-wave { line-height: 0; }
.footer-wave svg { width: 100%; display: block; }
.footer-body { background: var(--navy); padding: 60px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-brand .footer-logo strong { font-weight: 700; color: var(--teal-light); }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.7; }
.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.footer-socials a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.footer-socials a:hover { background: var(--teal); color: white; }
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--teal-light); }
.footer-col address { font-style: normal; }
.footer-col address p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  line-height: 1.5;
}
.footer-col address a { color: rgba(255,255,255,0.7); }
.footer-col address a:hover { color: var(--teal-light); }

.footer-bottom {
  background: #060e1a;
  padding: 18px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); font-family: var(--font-ui); }
.footer-certs { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-certs span {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 3px 10px;
  border-radius: 4px;
}

/* ---- TABLES ---- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 18px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.5px;
}
.data-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.9rem;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--offwhite); }
.table-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .home-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .home-hero-visual { display: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse { direction: ltr; }
  .contact-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav, .topbar-inner span:first-child { display: none; }
  .hamburger { display: flex; }
  .main-nav.open { display: block; position: fixed; top: 72px; left: 0; right: 0; background: var(--white); padding: 20px; border-top: 1px solid var(--gray-light); z-index: 999; max-height: calc(100vh - 72px); overflow-y: auto; }
  .main-nav.open ul { flex-direction: column; gap: 0; }
  .main-nav.open .dropdown { position: static; box-shadow: none; border: none; display: none; background: var(--offwhite); border-radius: var(--radius); margin-top: 4px; }
  .main-nav.open .has-dropdown.open .dropdown { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .process-steps::before { display: none; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .hero-card-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .hero-card-grid { grid-template-columns: 1fr; }
}
