/* ============================================================================
   VENSENA PHARMACEUTICALS - Design System v2.0
   Premium Healthcare & Pharmaceutical Branding
   Color: Forest Green + Ivory + Charcoal
   ============================================================================ */

:root {
  /* ========================================================================
     PRIMARY COLORS - Core Brand Identity
     ======================================================================== */
  --primary: #123C35;              /* Forest Green - Main brand color */
  --primary-dark: #0B2A25;         /* Darker forest for depth */
  --primary-light: #1D5550;        /* Lighter forest for hover states */
  --primary-lighter: #DCE7E1;      /* Very light green for backgrounds */

  --primary-rgb: 18, 60, 53;
  --primary-dark-rgb: 11, 42, 37;

  /* ========================================================================
     ACCENT COLORS - Secondary & Highlights
     ======================================================================== */
  --accent: #B99A5B;               /* Muted gold - Premium accent */
  --accent-dark: #9A7D47;          /* Darker gold for contrast */
  --accent-light: #D4C4A0;         /* Light gold for soft highlights */
  --accent-soft: #E9DFC8;          /* Very soft gold - backgrounds */

  /* ========================================================================
     NEUTRALS - Text, Backgrounds, Borders
     ======================================================================== */
  --text: #1D2421;                 /* Charcoal - Primary text */
  --text-secondary: #4D5350;       /* Medium gray - Secondary text */
  --text-muted: #69716D;           /* Muted gray - Tertiary text */
  --text-light: #8A918D;           /* Light gray - Disabled states */

  --background: #F7F5EF;           /* Off-white/ivory - Page background */
  --surface: #FFFFFF;              /* Pure white - Cards, surfaces */
  --surface-alt: #ECEBE4;          /* Subtle alternate surface */
  --surface-hover: #F9F8F2;        /* Hover state for surfaces */

  --border: #D9D8D0;               /* Light border color */
  --border-muted: #E5E4DC;         /* Very light border */
  --border-strong: #BFBDB3;        /* Stronger border */

  /* ========================================================================
     SEMANTIC COLORS
     ======================================================================== */
  --success: #2D7F52;              /* Green for success/positive */
  --warning: #C89D3D;              /* Gold for warning */
  --danger: #8B3A3A;               /* Deep red for errors */
  --info: #3D5F7F;                 /* Blue for information */

  --success-light: #E8F5EE;
  --warning-light: #FBF8E8;
  --danger-light: #FAF0F0;
  --info-light: #EEF2F7;

  /* ========================================================================
     TYPOGRAPHY SCALE
     ======================================================================== */

  /* Font Families */
  --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Courier New', monospace;

  /* Line Height Scale */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  --line-height-loose: 2;

  /* Letter Spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;
  --letter-spacing-wider: 0.1em;

  /* Heading Scale */
  --h1-size: 3.5rem;              /* 56px - Hero, page title */
  --h1-size-md: 2.75rem;          /* 44px - Medium screens */
  --h1-size-sm: 2rem;             /* 32px - Mobile */
  --h1-weight: 700;
  --h1-line-height: 1.2;

  --h2-size: 2.75rem;             /* 44px */
  --h2-size-md: 2rem;
  --h2-size-sm: 1.75rem;
  --h2-weight: 700;
  --h2-line-height: 1.2;

  --h3-size: 2rem;                /* 32px */
  --h3-size-md: 1.75rem;
  --h3-size-sm: 1.5rem;
  --h3-weight: 700;

  --h4-size: 1.5rem;              /* 24px */
  --h4-size-sm: 1.25rem;
  --h4-weight: 700;

  --h5-size: 1.25rem;             /* 20px */
  --h5-weight: 700;

  --h6-size: 1rem;                /* 16px */
  --h6-weight: 700;

  /* Body Text Scale */
  --body-lg: 1.125rem;            /* 18px */
  --body-base: 1rem;              /* 16px */
  --body-sm: 0.875rem;            /* 14px */
  --body-xs: 0.75rem;             /* 12px */

  /* ========================================================================
     SPACING SCALE - 8px base unit
     ======================================================================== */
  --space-0: 0;
  --space-xs: 0.25rem;            /* 4px */
  --space-sm: 0.5rem;             /* 8px */
  --space-md: 1rem;               /* 16px */
  --space-lg: 1.5rem;             /* 24px */
  --space-xl: 2rem;               /* 32px */
  --space-2xl: 3rem;              /* 48px */
  --space-3xl: 4rem;              /* 64px */
  --space-4xl: 5rem;              /* 80px */
  --space-5xl: 6rem;              /* 96px */

  /* Section Padding */
  --section-padding-y: var(--space-4xl);
  --section-padding-y-md: var(--space-3xl);
  --section-padding-y-sm: var(--space-2xl);
  --section-padding-x: var(--space-xl);

  /* ========================================================================
     SIZING & LAYOUT
     ======================================================================== */
  --container-max: 1280px;
  --container-padding: var(--space-xl);

  --grid-gap: var(--space-lg);
  --grid-gap-md: var(--space-md);
  --grid-gap-sm: var(--space-sm);

  /* ========================================================================
     CORNERS & BORDERS
     ======================================================================== */
  --border-radius-sm: 0.25rem;   /* 4px - Subtle */
  --border-radius-base: 0.5rem;  /* 8px - Default */
  --border-radius-md: 0.75rem;   /* 12px */
  --border-radius-lg: 1rem;      /* 16px - Larger elements */
  --border-radius-xl: 1.5rem;    /* 24px - Large blocks */
  --border-radius-full: 9999px;  /* Rounded pill */

  --border-width: 1px;
  --border-width-thick: 2px;

  /* ========================================================================
     SHADOWS - Minimal, professional
     ======================================================================== */
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow-base: 0 2px 4px rgb(0 0 0 / 0.08);
  --shadow-md: 0 4px 12px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 8px 24px rgb(0 0 0 / 0.12);
  --shadow-xl: 0 12px 48px rgb(0 0 0 / 0.15);

  /* Elevation shadows */
  --shadow-1: var(--shadow-sm);
  --shadow-2: var(--shadow-base);
  --shadow-3: var(--shadow-md);
  --shadow-4: var(--shadow-lg);
  --shadow-5: var(--shadow-xl);

  /* ========================================================================
     TRANSITIONS & ANIMATIONS
     ======================================================================== */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* ========================================================================
     Z-INDEX SCALE
     ======================================================================== */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
  --z-notification: 700;

  /* ========================================================================
     BREAKPOINTS - Mobile-first
     ======================================================================== */
  --breakpoint-xs: 0px;
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
}

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */

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

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--body-base);
  line-height: var(--line-height-normal);
  color: var(--text);
  background-color: var(--background);
  overflow-x: hidden;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 700;
  line-height: var(--line-height-tight);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--h1-size);
  letter-spacing: var(--letter-spacing-tight);
}

h2 {
  font-size: var(--h2-size);
  letter-spacing: var(--letter-spacing-tight);
}

h3 {
  font-size: var(--h3-size);
}

h4 {
  font-size: var(--h4-size);
}

h5 {
  font-size: var(--h5-size);
}

h6 {
  font-size: var(--h6-size);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--text-secondary);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

p:last-child {
  margin-bottom: 0;
}

/* Text sizes */
.text-lg {
  font-size: var(--body-lg);
  line-height: var(--line-height-relaxed);
}

.text-base {
  font-size: var(--body-base);
}

.text-sm {
  font-size: var(--body-sm);
  line-height: var(--line-height-normal);
}

.text-xs {
  font-size: var(--body-xs);
  line-height: var(--line-height-tight);
}

/* Text colors */
.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--text-muted);
}

/* Text alignment */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

/* ============================================================================
   LINKS
   ============================================================================ */

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

a:active {
  color: var(--primary-dark);
}

.link-light {
  color: var(--background);
}

.link-light:hover {
  color: var(--accent-soft);
}

/* ============================================================================
   BUTTONS - Base Styles
   ============================================================================ */

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-primary);
  font-size: var(--body-base);
  font-weight: 600;
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  border: none;
  border-radius: var(--border-radius-base);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

button:active,
.btn:active {
  transform: scale(0.98);
}

button:disabled,
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Button Variants */

.btn-primary {
  background-color: var(--primary);
  color: var(--surface);
  border: 2px solid var(--primary);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--primary);
  color: var(--surface);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--surface);
  border: 2px solid var(--accent);
}

.btn-accent:hover:not(:disabled) {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-light {
  background-color: var(--surface);
  color: var(--primary);
  border: 2px solid var(--surface);
}

.btn-light:hover:not(:disabled) {
  background-color: var(--surface-alt);
  border-color: var(--surface-alt);
}

/* Button Sizes */

.btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--body-sm);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--body-lg);
}

.btn-block {
  width: 100%;
  display: flex;
}

/* ============================================================================
   FORMS
   ============================================================================ */

label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--text);
  font-size: var(--body-sm);
}

input,
textarea,
select {
  width: 100%;
  padding: var(--space-md);
  font-family: var(--font-primary);
  font-size: var(--body-base);
  line-height: var(--line-height-normal);
  color: var(--text);
  background-color: var(--surface);
  border: var(--border-width) solid var(--border);
  border-radius: var(--border-radius-base);
  transition: all var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-light);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(18, 60, 53, 0.1);
  background-color: var(--surface-hover);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group:last-child {
  margin-bottom: 0;
}

/* ============================================================================
   CONTAINER & LAYOUT
   ============================================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--grid-gap);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

.flex-gap {
  gap: var(--grid-gap);
}

.flex-gap-sm {
  gap: var(--grid-gap-sm);
}

/* ============================================================================
   SECTIONS
   ============================================================================ */

section {
  padding: var(--section-padding-y) var(--section-padding-x);
}

section.bg-primary {
  background-color: var(--primary);
  color: var(--surface);
}

section.bg-primary h1,
section.bg-primary h2,
section.bg-primary h3,
section.bg-primary h4,
section.bg-primary h5,
section.bg-primary h6 {
  color: var(--surface);
}

section.bg-primary p {
  color: rgba(255, 255, 255, 0.9);
}

section.bg-accent {
  background-color: var(--accent-soft);
}

section.bg-alt {
  background-color: var(--surface-alt);
}

/* ============================================================================
   CARDS
   ============================================================================ */

.card {
  background-color: var(--surface);
  border: var(--border-width) solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-1);
}

.card:hover {
  box-shadow: var(--shadow-3);
  transform: translateY(-4px);
}

.card-title {
  font-size: var(--h4-size);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.card-text {
  color: var(--text-secondary);
  font-size: var(--body-sm);
  line-height: var(--line-height-relaxed);
}

/* ============================================================================
   UTILITIES
   ============================================================================ */

/* Spacing Utilities */
.m-0 { margin: 0; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.my-lg { margin-top: var(--space-lg); margin-bottom: var(--space-lg); }

.p-lg { padding: var(--space-lg); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.px-lg { padding-left: var(--space-lg); padding-right: var(--space-lg); }

/* Display */
.hidden { display: none; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.block { display: block; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* ============================================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================================ */

@media (max-width: 1024px) {
  :root {
    --h1-size: var(--h1-size-md);
    --h2-size: var(--h2-size-md);
    --h3-size-sm: var(--h3-size-md);
    --h4-size: var(--h4-size-sm);
    --section-padding-y: var(--section-padding-y-md);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --h1-size: var(--h1-size-sm);
    --h2-size: var(--h2-size-sm);
    --h3-size: var(--h3-size-sm);
    --section-padding-y: var(--section-padding-y-sm);
    --container-padding: var(--space-lg);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: var(--h1-size-sm);
  }
}

/* ============================================================================
   REDUCED MOTION SUPPORT
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }

  button,
  .btn {
    display: none;
  }
}
