/* ================================================================
   CARE4ALL MEDICAL GROUP — main.css
   Variables → Reset → Layout → Typography → Utilities
   ================================================================ */

:root {
  /* ── Brand Colors — fresh clinical blue + green ─ */
  --c4a-teal:        #2563EB;  /* primary blue (var name kept) */
  --c4a-teal-dark:   #1D4ED8;
  --c4a-teal-light:  #3B82F6;
  --c4a-sky:         #EFF6FF;  /* light blue tint surface */
  --c4a-mint:        #ECFDF5;  /* light green tint surface */
  --c4a-navy:        #0F172A;  /* ink / dark sections */
  --c4a-gold:        #10B981;  /* green accent (var name kept) */
  --c4a-gold-light:  #D1FAE5;
  --c4a-white:       #FFFFFF;
  --c4a-gray-light:  #F1F5F9;
  --c4a-gray:        #64748B;
  --c4a-gray-dark:   #334155;
  --c4a-border:      #E2E8F0;
  --c4a-ink:         #0F172A;

  /* ── Gradients ────────────────────────────────── */
  --c4a-grad-hero: linear-gradient(135deg, #1E3A8A 0%, #2563EB 55%, #10B981 125%);
  --c4a-grad-card: linear-gradient(145deg, rgba(37,99,235,.07) 0%, rgba(16,185,129,.04) 100%);
  --c4a-grad-gold: linear-gradient(135deg, #10B981 0%, #34D399 100%);  /* green accent */
  --c4a-grad-teal: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);  /* blue */

  /* ── Typography — Inter everywhere (SaaS) ──────── */
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* ── Type Scale ───────────────────────────────── */
  --text-xs:   .75rem;
  --text-sm:   .875rem;
  --text-base: 1rem;
  --text-lg:   1.1875rem;
  --text-xl:   1.5rem;
  --text-2xl:  1.9rem;
  --text-3xl:  2.5rem;
  --text-4xl:  3.25rem;
  --text-hero: clamp(2.5rem, 4.8vw, 3.75rem);

  /* ── Layout (airy) ────────────────────────────── */
  --section-py:    6rem;
  --section-py-sm: 3.5rem;
  --container-max: 1200px;
  --container-px:  1.5rem;

  /* ── Radius — soft SaaS (buttons go pill) ──────── */
  --radius-sm:   .625rem;
  --radius-md:   1rem;
  --radius-lg:   1.25rem;
  --radius-xl:   1.75rem;
  --radius-full: 9999px;

  /* ── Shadows — soft, slate-tinted ─────────────── */
  --shadow-sm:   0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
  --shadow-md:   0 6px 20px rgba(15,23,42,.07);
  --shadow-lg:   0 16px 40px rgba(15,23,42,.10);
  --shadow-xl:   0 28px 60px rgba(15,23,42,.13);
  --shadow-teal: 0 10px 30px rgba(37,99,235,.20);
  --shadow-gold: 0 8px 24px rgba(16,185,129,.22);

  /* ── Transitions ──────────────────────────────── */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* ── Glass ────────────────────────────────────── */
  --glass-bg:     rgba(255,255,255,.7);
  --glass-border: rgba(255,255,255,.5);
  --glass-blur:   blur(16px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--c4a-navy);
  background: var(--c4a-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ── Layout Containers ────────────────────────────── */
.c4a-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.c4a-section {
  padding: var(--section-py) 0;
}
.c4a-section--alt  { background: var(--c4a-sky); }
.c4a-section--dark { background: var(--c4a-navy); color: var(--c4a-white); }
.c4a-section--mint { background: var(--c4a-mint); }
.c4a-section--grad { background: var(--c4a-grad-hero); color: var(--c4a-white); }

/* ── Grid System ──────────────────────────────────── */
.c4a-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.c4a-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.c4a-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.c4a-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.c4a-flex   { display: flex; align-items: center; gap: 1rem; }

/* ── Typography ───────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  color: var(--c4a-navy);
  letter-spacing: -.03em;
  font-weight: 800;
}

h1 { font-size: var(--text-hero); font-weight: 800; }
h2 { font-size: var(--text-3xl); font-weight: 800; }
h3 { font-size: var(--text-2xl); font-weight: 700; }

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
  color: var(--c4a-navy);
}
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { line-height: 1.7; color: var(--c4a-gray-dark); }

.c4a-lead {
  font-size: var(--text-lg);
  color: var(--c4a-gray-dark);
  line-height: 1.8;
}

.c4a-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c4a-teal);
}

/* ── Section Headers ──────────────────────────────── */
.c4a-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.c4a-section-header .c4a-eyebrow { margin-bottom: .75rem; }
.c4a-section-header h2 { margin-bottom: 1rem; }
.c4a-section-header p { max-width: 580px; margin: 0 auto; }

/* ── Breadcrumbs ──────────────────────────────────── */
.c4a-breadcrumbs { padding: 1rem 0 .5rem; }
.c4a-breadcrumbs ol { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.c4a-breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: .5rem;
  color: var(--c4a-gray);
  font-size: var(--text-xs);
}
.c4a-breadcrumbs a { color: var(--c4a-teal); font-size: var(--text-sm); transition: color var(--transition-fast); }
.c4a-breadcrumbs a:hover { color: var(--c4a-teal-dark); }
.c4a-breadcrumbs li:last-child span { font-size: var(--text-sm); color: var(--c4a-gray); }

/* ── Utilities ────────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-white    { color: var(--c4a-white) !important; }
.text-teal     { color: var(--c4a-teal) !important; }
.text-teal-light { color: var(--c4a-teal-light) !important; }
.text-gold     { color: var(--c4a-gold) !important; }
.text-navy     { color: var(--c4a-navy) !important; }
.text-gray     { color: var(--c4a-gray) !important; }

.bg-teal  { background: var(--c4a-teal); }
.bg-navy  { background: var(--c4a-navy); }
.bg-mint  { background: var(--c4a-mint); }
.bg-sky   { background: var(--c4a-sky); }
.bg-white { background: var(--c4a-white); }

.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.overflow-hidden { overflow: hidden; }

/* ── Divider ──────────────────────────────────────── */
.c4a-divider {
  width: 60px; height: 4px;
  background: var(--c4a-grad-teal);
  border-radius: var(--radius-full);
  margin: 1rem auto 0;
}
.c4a-divider--left { margin-left: 0; }

/* ── Responsive Grid ──────────────────────────────── */
@media (max-width: 1024px) {
  .c4a-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .c4a-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .c4a-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-py: var(--section-py-sm); }
  .c4a-grid-2, .c4a-grid-3, .c4a-grid-4, .c4a-grid-5 { grid-template-columns: 1fr; }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
  .c4a-section-header { margin-bottom: 2.5rem; }
}
