/* ==========================================================================
   LYCUS PHARMA PVT. LTD. — Design System
   styles.css · Base, Typography, Colors (2026 Premium Refresh)
   ========================================================================== */

/* --- Google Fonts -------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* --- Bootstrap 5 Compatibility Overrides -------------------------------- */
:root {
  --bs-font-sans-serif: 'Poppins', system-ui, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 16px;
  --bs-body-line-height: 1.6;
  --bs-body-color: #1F2937;
  --bs-primary:             #2E3192;
  --bs-primary-rgb:         46, 49, 146;
  --bs-secondary:           #D01090;
  --bs-secondary-rgb:       208, 16, 144;
  --bs-success:             #D01090;
  --bs-border-radius:       12px;
  --bs-border-radius-lg:    16px;
  --bs-border-radius-pill:  999px;
  --bs-gutter-y: 0;
}

/* --- CSS Custom Properties (Design Tokens) ------------------------------ */
:root {
  /* Brand Colors — matched to logo.png */
  --color-primary:        #2E3192;
  --color-primary-dark:   #232575;
  --color-primary-light:  #EEEFF8;
  --color-secondary:      #D01090;
  --color-secondary-dark: #A80D74;
  --color-accent:         #E83AA8;
  --color-accent-dark:    #D01090;

  /* Text Colors */
  --color-text-heading:   #1F2937;
  --color-text-body:      #1F2937;
  --color-text-muted:     #6B7280;
  --color-text-on-dark:   #FFFFFF;

  /* Background Colors */
  --color-bg-white:       #FFFFFF;
  --color-bg-light:       #F7F7FB;
  --color-bg-surface:     #EEEFF8;

  /* Border */
  --color-border:         #E6E7F0;
  --color-border-strong:  #C8C9DE;

  /* Semantic Surfaces */
  --color-card-bg: #FFFFFF;
  --color-header-bg: rgba(255, 255, 255, 0.92);

  /* Status Colors */
  --color-approved-bg: #D01090;
  --color-approved-text: #FFFFFF;
  --color-phase-bg: #EEEFF8;
  --color-phase-text: #2E3192;

  /* Spacing Scale (8px base) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;

  /* Layout */
  --container-max: 1200px;
  --section-padding-y: 96px;
  --nav-height: 64px;

  /* Typography */
  --font-base: 'Poppins', system-ui, sans-serif;
  --font-mono: 'Courier New', monospace;

  --text-h1: 44px;
  --text-h2: 34px;
  --text-h3: 24px;
  --text-h4: 20px;
  --text-body: 16px;
  --text-sm: 14px;
  --text-xs: 12px;

  --lh-heading: 1.2;
  --lh-body: 1.65;
  --lh-relaxed: 1.7;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(46, 49, 146, 0.06);
  --shadow-md:  0 8px 24px rgba(46, 49, 146, 0.10);
  --shadow-lg:  0 16px 48px rgba(46, 49, 146, 0.14);
  --shadow-xl:  0 24px 64px rgba(46, 49, 146, 0.18);

  /* Transitions */
  --transition-fast: 180ms ease;
  --transition-base: 280ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 450ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: var(--text-body);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--color-text-body);
  background-color: var(--color-bg-light);
  -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;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  font-weight: 700;
  line-height: var(--lh-heading);
  color: var(--color-text-heading);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }
h5 { font-size: 18px; }
h6 { font-size: var(--text-body); }

p {
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--color-text-body);
}

small,
.text-sm {
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
}

.text-xs { font-size: var(--text-xs); }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-secondary); }
.text-primary-color { color: var(--color-primary); }

/* --- Icons --------------------------------------------------------------- */
.icon-sm { font-size: 18px; }
.icon-md { font-size: 24px; }
.icon-lg { font-size: 32px; }
.icon-xl { font-size: 40px; }

.bi-sz-md { font-size: 28px; }

/* --- Label / Eyebrow Text ----------------------------------------------- */
.label-caps {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

/* --- Utility: Visually Hidden ------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Utility helpers ---------------------------------------------------- */
.fs-h3 { font-size: var(--text-h3); }
.fs-body { font-size: var(--text-body); }
.fs-body-lg { font-size: 18px; }
.fs-sm { font-size: var(--text-sm); }
.fs-xs { font-size: var(--text-xs); }
.fs-18 { font-size: 18px; }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.no-wrap { white-space: nowrap; }
.flex-1 { flex: 1; }

/* --- Selection & Focus -------------------------------------------------- */
::selection {
  background-color: rgba(46, 49, 146, 0.15);
  color: var(--color-text-heading);
}

:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
}

/* --- Scroll Animations (uniform) ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: 0s !important;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1,
.reveal-delay-2,
.reveal-delay-3 {
  transition-delay: 0s !important;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  html { scroll-behavior: auto; }
}
