/* ============================================
   Mocero Health Solutions — Design System
   ============================================ */

/* --- Color Tokens --- */
:root {
  /* Brand Colors */
  --brand-navy: #000064;
  --brand-navy-dark: #000040;
  --brand-navy-light: #1A1A7E;
  --brand-teal: #00E0AE;
  --brand-teal-dark: #00C89C;
  --brand-teal-soft: #E6FBF5;

  /* Text Colors */
  --text-primary: #1A1A2E;
  --text-secondary: #4A4A6A;
  --text-muted: #7A7A8E;

  /* Surface Colors */
  --surface-white: #FFFFFF;
  --surface-light: #F7F8FC;
  --surface-subtle: #EEF0F7;

  /* Border Colors */
  --border-light: #E2E4ED;
  --border-subtle: #D0D3E0;

  /* --- Shadow System --- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 64, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 64, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 64, 0.10);
  --shadow-xl: 0 16px 48px rgba(0, 0, 64, 0.12);

  /* --- Spacing Scale (8px grid) --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-10: 96px;
  --space-11: 120px;

  /* --- Border Radius --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* --- Typography --- */
  --font-family: 'Manrope', sans-serif;

  /* Display (Hero h1) */
  --display-size: 56px;
  --display-weight: 600;
  --display-lh: 1.1;
  --display-ls: -0.02em;

  /* h1 */
  --h1-size: 44px;
  --h1-weight: 600;
  --h1-lh: 1.2;
  --h1-ls: -0.015em;

  /* h2 */
  --h2-size: 36px;
  --h2-weight: 600;
  --h2-lh: 1.25;
  --h2-ls: -0.01em;

  /* h3 */
  --h3-size: 24px;
  --h3-weight: 600;
  --h3-lh: 1.3;
  --h3-ls: 0;

  /* h4 */
  --h4-size: 20px;
  --h4-weight: 500;
  --h4-lh: 1.35;
  --h4-ls: 0;

  /* Body */
  --body-lg-size: 18px;
  --body-size: 16px;
  --body-sm-size: 14px;
  --body-weight: 400;
  --body-lh: 1.6;

  /* Caption */
  --caption-size: 12px;
  --caption-weight: 500;
  --caption-lh: 1.4;
  --caption-ls: 0.02em;

  /* Label / Overline */
  --label-size: 12px;
  --label-weight: 600;
  --label-lh: 1.3;
  --label-ls: 0.08em;
}

/* --- Typography Responsive (Mobile) --- */
@media only screen and (max-width: 830px) {
  :root {
    --display-size: 36px;
    --h1-size: 30px;
    --h2-size: 26px;
    --h3-size: 21px;
    --h4-size: 18px;
    --body-lg-size: 16px;
    --body-size: 15px;
    --body-sm-size: 13px;
  }
}

@media only screen and (max-width: 578px) {
  :root {
    --display-size: 32px;
    --h1-size: 28px;
    --h2-size: 24px;
    --h3-size: 20px;
    --h4-size: 18px;
  }
}

/* --- Global Reset with Poppins --- */
*,
*::before,
*::after {
  font-family: var(--font-family);
}

body {
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Heading Defaults --- */
h1 {
  font-size: var(--h1-size);
  font-weight: var(--h1-weight);
  line-height: var(--h1-lh);
  letter-spacing: var(--h1-ls);
}

h2 {
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  line-height: var(--h2-lh);
  letter-spacing: var(--h2-ls);
}

h3 {
  font-size: var(--h3-size);
  font-weight: var(--h3-weight);
  line-height: var(--h3-lh);
  letter-spacing: var(--h3-ls);
}

h4 {
  font-size: var(--h4-size);
  font-weight: var(--h4-weight);
  line-height: var(--h4-lh);
  letter-spacing: var(--h4-ls);
}

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

/* --- Utility Classes --- */
.text-display {
  font-size: var(--display-size);
  font-weight: var(--display-weight);
  line-height: var(--display-lh);
  letter-spacing: var(--display-ls);
}

.text-body-lg {
  font-size: var(--body-lg-size);
  line-height: var(--body-lh);
}

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

.text-caption {
  font-size: var(--caption-size);
  font-weight: var(--caption-weight);
  line-height: var(--caption-lh);
  letter-spacing: var(--caption-ls);
}

.text-label {
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  line-height: var(--label-lh);
  letter-spacing: var(--label-ls);
  text-transform: uppercase;
}

/* --- Color Utility Classes --- */
.text-navy { color: var(--brand-navy); }
.text-teal { color: var(--brand-teal); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.bg-surface-light { background-color: var(--surface-light); }
.bg-surface-subtle { background-color: var(--surface-subtle); }

/* --- Button System --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--brand-navy);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: none;
  font-size: var(--body-size);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  background-color: var(--brand-navy-light);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--surface-white);
  color: var(--brand-navy);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--brand-navy);
  font-size: var(--body-size);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-secondary:hover {
  background-color: var(--surface-light);
  box-shadow: var(--shadow-sm);
  color: var(--brand-navy);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--brand-teal);
  color: var(--brand-navy);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: none;
  font-size: var(--body-size);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-accent:hover {
  background-color: var(--brand-teal-dark);
  box-shadow: var(--shadow-md);
  color: var(--brand-navy);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--brand-navy);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: none;
  font-size: var(--body-size);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.btn-ghost:hover {
  text-decoration: underline;
  color: var(--brand-navy-light);
}

/* --- Section Spacing --- */
.section-padding {
  padding: var(--space-10) 0;
}

@media only screen and (max-width: 830px) {
  .section-padding {
    padding: var(--space-8) 0;
  }
}

@media only screen and (max-width: 578px) {
  .section-padding {
    padding: var(--space-7) 0;
  }
}

/* --- Card Base --- */
.card-base {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-base:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-subtle);
}

/* --- Focus States for Accessibility --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 2px;
}
