/* ══════════════════════════════════════════════════════════════════════
   COSMO PHARMA INTERNATIONAL — Premium Design System
   Global stylesheet shared across all website pages
   ══════════════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  /* Primary Palette */
  --navy: #07152b;
  --navy-mid: #0d2242;
  --navy-light: #132d51;
  --green: #9bc53c;
  --green-dark: #7ea329;
  --green-glow: rgba(155, 197, 60, 0.35);
  --cyan: #00b4d8;
  --cyan-glow: rgba(0, 180, 216, 0.25);

  /* Neutral Palette */
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-on-dark: #cbd5e1;
  --bg-page: #f8fafc;
  --bg-alt: #f1f5f9;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Typography */
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", var(--font-body);
  --text-xs: 0.75rem;
  --text-sm: 0.82rem;
  --text-base: 0.95rem;
  --text-lg: 1.1rem;
  --text-xl: 1.35rem;
  --text-2xl: 1.8rem;
  --text-3xl: 2.4rem;
  --text-4xl: 3.2rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(7, 21, 43, 0.06);
  --shadow-md: 0 4px 12px rgba(7, 21, 43, 0.08);
  --shadow-lg: 0 12px 28px rgba(7, 21, 43, 0.1);
  --shadow-xl: 0 25px 50px rgba(7, 21, 43, 0.15);
  --shadow-glow-green: 0 6px 20px rgba(155, 197, 60, 0.35);
  --shadow-glow-cyan: 0 6px 20px rgba(0, 180, 216, 0.3);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 0.15s;
  --duration-base: 0.25s;
  --duration-slow: 0.4s;

  /* Layout */
  --container-max: 1320px;
  --container-narrow: 860px;
}

/* ─── BASE RESET ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-fast);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  font-family: inherit;
  border: none;
  cursor: pointer;
}
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

/* ─── LAYOUT CONTAINERS ─── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ══════════════════════════════════════════════════════════════════════
   NAVIGATION — Glassmorphism Sticky Header
   ══════════════════════════════════════════════════════════════════════ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 21, 43, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--duration-base), box-shadow var(--duration-base);
}
header.site-header.scrolled {
  background: rgba(7, 21, 43, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.9rem var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.brand-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.brand-logo span { color: var(--green); }

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-on-dark);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: color var(--duration-fast);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width var(--duration-base) var(--ease-smooth);
  border-radius: 1px;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--green); }
.nav-links a.active::after { width: 100%; }

/* Mobile Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 6px;
  cursor: pointer;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--duration-base), opacity var(--duration-fast);
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── CTA BUTTONS ─── */
.btn-cta {
  background: var(--green);
  color: var(--navy);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-cta:hover {
  background: #aade45;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-green);
}
.btn-primary {
  background: var(--green);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  background: #aade45;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-green);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  transition: all var(--duration-base);
  cursor: pointer;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
  font-weight: 700;
  font-size: var(--text-base);
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  transition: all var(--duration-base);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════
   PAGE HERO — Shared across inner pages
   ══════════════════════════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 60%, #0a1e3d 100%);
  color: #fff;
  padding: 4.5rem var(--space-lg) 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(155, 197, 60, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero .hero-badge {
  display: inline-block;
  background: rgba(155, 197, 60, 0.12);
  color: var(--green);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(155, 197, 60, 0.25);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.page-hero h1 {
  font-size: var(--text-3xl);
  color: #fff;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 2;
}
.page-hero h1 span {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero p {
  color: var(--text-light);
  font-size: var(--text-lg);
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ─── SECTION SHARED STYLES ─── */
.section {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-2xl);
}
.section-kicker {
  color: var(--green-dark);
  font-size: var(--text-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: var(--text-3xl);
  color: var(--navy);
  margin-bottom: 0.8rem;
}
.section-desc {
  color: var(--text-muted);
  font-size: var(--text-lg);
  line-height: 1.7;
}

/* Section dividers — seamless gradient transitions */
.section-transition-dark {
  height: 120px;
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--navy) 100%);
  margin: 0;
}
.section-transition-light {
  height: 120px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--bg-page) 100%);
  margin: 0;
}
.section-transition-alt {
  height: 80px;
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-alt) 100%);
  margin: 0;
}

/* ─── CARD SYSTEM ─── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--duration-base) var(--ease-smooth);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card-dark {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
.card-dark:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 240, 255, 0.2);
}

/* ─── GRID LAYOUTS ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

/* ══════════════════════════════════════════════════════════════════════
   METRICS BAR
   ══════════════════════════════════════════════════════════════════════ */
.metrics-section {
  background: linear-gradient(180deg, rgba(13, 34, 66, 0.85) 0%, rgba(7, 21, 43, 0.95) 100%);
  border-top: 1px solid rgba(0, 180, 216, 0.15);
  border-bottom: 1px solid rgba(0, 180, 216, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  z-index: 10;
}
.metrics-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.metric-val {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.metric-val span { color: var(--cyan); }
.metric-lbl {
  color: #94a3b8;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════════════════════════════
   CERTIFICATIONS BAR
   ══════════════════════════════════════════════════════════════════════ */
.cert-bar {
  background: linear-gradient(180deg, #050e1d 0%, var(--navy) 100%);
  color: #fff;
  padding: var(--space-2xl) var(--space-lg);
}
.cert-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cert-badge {
  width: 56px;
  height: 56px;
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--text-base);
  color: var(--green);
  margin-bottom: var(--space-md);
  transition: all var(--duration-base);
}
.cert-item:hover .cert-badge {
  background: rgba(155, 197, 60, 0.15);
  transform: scale(1.08);
}
.cert-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.cert-sub {
  font-size: var(--text-sm);
  color: var(--text-light);
}

/* ══════════════════════════════════════════════════════════════════════
   FOOTER — Premium Dark
   ══════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: #040b18;
  color: var(--text-light);
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--green) 50%, transparent 100%);
  opacity: 0.4;
}
.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-logo {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.05em;
}
.footer-logo span { color: var(--green); }
.footer-desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  color: var(--text-light);
}
.footer-address {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.footer-col h4 {
  color: #fff;
  font-size: var(--text-base);
  margin-bottom: var(--space-md);
  font-weight: 700;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.55rem;
}
.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--duration-fast), padding-left var(--duration-base);
}
.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}
.footer-contact-info p {
  font-size: var(--text-sm);
  color: var(--text-on-dark);
  margin-bottom: 0.4rem;
}
.footer-contact-info strong {
  color: #fff;
}
.footer-drap {
  font-size: var(--text-sm);
  color: var(--green);
  margin-top: 0.8rem;
  font-weight: 600;
}
.footer-bottom {
  max-width: var(--container-max);
  margin: var(--space-lg) auto 0;
  font-size: var(--text-sm);
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════════════
   B2B PRODUCT BUILDER MODAL
   ══════════════════════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(7, 21, 43, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}
.modal-backdrop.active { display: flex; }
.builder-modal {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  position: relative;
  padding: var(--space-xl);
}
.modal-close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--duration-fast);
  line-height: 1;
}
.modal-close:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.wizard-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}
.wizard-progress::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--border);
  transform: translateY(-50%);
  z-index: 0;
}
.step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  position: relative;
  z-index: 1;
  transition: all var(--duration-base);
}
.step-dot.active {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(7, 21, 43, 0.15);
}
.step-dot.completed {
  background: var(--green);
  color: var(--navy);
}
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.wizard-desc {
  color: var(--text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-lg);
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
  margin-bottom: 2rem;
}
.choice-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-base);
}
.choice-card:hover { border-color: var(--text-light); background: var(--bg-alt); }
.choice-card.selected {
  border-color: var(--cyan);
  background: #f0fdfa;
  box-shadow: 0 4px 12px var(--cyan-glow);
}
.choice-card h5 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy);
  margin-top: 0.4rem;
}
.choice-card p {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.wizard-nav {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: var(--space-lg);
}
.btn-back {
  background: var(--bg-alt);
  color: var(--text-body);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--duration-fast);
}
.btn-back:hover { background: var(--border); }
.btn-next {
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: all var(--duration-base);
}
.btn-next:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

/* Wizard form inputs */
.wizard-step label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-body);
}
.wizard-step input[type="text"],
.wizard-step input[type="email"],
.wizard-step input[type="tel"],
.wizard-step textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  background: #fff;
  color: var(--text-dark);
}
.wizard-step input:focus,
.wizard-step textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

/* ══════════════════════════════════════════════════════════════════════
   FLOATING CTA & WHATSAPP
   ══════════════════════════════════════════════════════════════════════ */
.floating-cta-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.floating-cta {
  background: var(--green);
  color: var(--navy);
  font-weight: 800;
  font-size: var(--text-sm);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 24px rgba(155, 197, 60, 0.45);
  cursor: pointer;
  border: none;
  transition: all var(--duration-base) var(--ease-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: floatPulse 3s infinite;
}
.floating-cta:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 30px rgba(155, 197, 60, 0.55);
}
.whatsapp-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--duration-base);
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}
.whatsapp-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(155, 197, 60, 0.45); }
  50% { box-shadow: 0 6px 30px rgba(155, 197, 60, 0.65); }
}

/* ══════════════════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════════════════════════════════════════ */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}
/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-container { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root {
    --text-3xl: 1.8rem;
    --text-4xl: 2.4rem;
    --space-3xl: 3.5rem;
  }

  .nav-links { display: none; }
  .mobile-toggle { display: flex; }

  /* Mobile nav slide-in */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    padding: 5rem 2rem 2rem;
    gap: 1.2rem;
    z-index: 200;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s var(--ease-smooth);
  }
  .nav-links.mobile-open a {
    font-size: 1.1rem;
    padding: 0.5rem 0;
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-container { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .page-hero { padding: 3rem var(--space-lg) 2.5rem; }
  .page-hero h1 { font-size: var(--text-2xl); }

  .floating-cta-wrap { bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
  :root {
    --text-3xl: 1.5rem;
    --text-2xl: 1.3rem;
  }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .cert-container { grid-template-columns: 1fr 1fr; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* ══════════════════════════════════════════════════════════════════════
   GLOBAL UTILITY OVERRIDES — Frappe / Builder Compat
   ══════════════════════════════════════════════════════════════════════ */
/* Override Frappe default navbar if present */
body > .navbar,
body > .web-footer {
  display: none !important;
}
.main-section {
  padding: 0 !important;
  max-width: 100% !important;
}

/* ══════════════════════════════════════════════════════════════════════
   GLOBAL FULL-PAGE 3D PHARMACEUTICAL CAPSULE CANVAS (BACKGROUND LAYER)
   ══════════════════════════════════════════════════════════════════════ */
#cosmo3dViewport,
.cosmo-3d-canvas-fixed,
.cosmo-3d-webgl-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 0 !important; /* STRICTLY BACKGROUND LAYER */
  overflow: hidden !important;
}

/* Ensure ALL content, text, containers, headers, footers sit FIRMLY ON TOP of 3D canvas */
header,
nav,
main,
section,
footer,
article,
.site-header,
.site-footer,
.hero-section,
.metrics-section,
.story-timeline-section,
.capabilities-section,
.featured-section,
.cert-bar,
.cert-container,
.cert-item,
.services-section,
.product-catalog-section,
.portal-section,
.invest-section,
.careers-section,
.contact-section,
.page-hero,
.page-container,
.footer-container,
.footer-bottom {
  position: relative;
  z-index: 5;
}

/* Explicit solid backgrounds on lower sections to ensure 0 bleed-through */
.cert-bar {
  background: #050e1d !important;
  position: relative !important;
  z-index: 10 !important;
}
.site-footer {
  background: #07152b !important;
  position: relative !important;
  z-index: 10 !important;
}

/* All headings, texts, links, buttons firmly on top */
h1, h2, h3, h4, h5, h6,
p, span, a, button, input, select, textarea, label {
  position: relative;
  z-index: 6;
}

/* Highest layer elements (Floating actions, modals) */
.floating-cta-wrap {
  z-index: 999 !important;
}
.modal-backdrop {
  z-index: 9999 !important;
}

