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

:root {
  /* ── Brand Colors ─────────────────────────────── */
  --c4a-teal:        #0D7377;
  --c4a-teal-dark:   #095D61;
  --c4a-teal-light:  #14BDCE;
  --c4a-sky:         #E0F4F7;
  --c4a-mint:        #F0FAF9;
  --c4a-navy:        #0B1F3A;
  --c4a-gold:        #C9A84C;
  --c4a-gold-light:  #F0E0A8;
  --c4a-white:       #FFFFFF;
  --c4a-gray-light:  #F3F4F6;
  --c4a-gray:        #6B7280;
  --c4a-gray-dark:   #374151;

  /* ── Gradients ────────────────────────────────── */
  --c4a-grad-hero: linear-gradient(135deg, #0B1F3A 0%, #0D7377 60%, #14BDCE 100%);
  --c4a-grad-card: linear-gradient(145deg, rgba(13,115,119,.08) 0%, rgba(20,189,206,.04) 100%);
  --c4a-grad-gold: linear-gradient(135deg, #C9A84C 0%, #F0E0A8 100%);
  --c4a-grad-teal: linear-gradient(135deg, #0D7377 0%, #14BDCE 100%);

  /* ── Typography ───────────────────────────────── */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* ── Type Scale ───────────────────────────────── */
  --text-xs:   .75rem;
  --text-sm:   .875rem;
  --text-base: 1rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  2.5rem;
  --text-4xl:  3.5rem;
  --text-hero: clamp(2.75rem, 6vw, 5rem);

  /* ── Layout ───────────────────────────────────── */
  --section-py:    5rem;
  --section-py-sm: 3rem;
  --container-max: 1280px;
  --container-px:  1.5rem;

  /* ── Radius ───────────────────────────────────── */
  --radius-sm:   .5rem;
  --radius-md:   1rem;
  --radius-lg:   1.5rem;
  --radius-xl:   2rem;
  --radius-full: 9999px;

  /* ── Shadows ──────────────────────────────────── */
  --shadow-sm:   0 2px 8px rgba(11,31,58,.08);
  --shadow-md:   0 8px 24px rgba(11,31,58,.12);
  --shadow-lg:   0 16px 48px rgba(11,31,58,.16);
  --shadow-xl:   0 24px 64px rgba(11,31,58,.2);
  --shadow-teal: 0 8px 32px rgba(13,115,119,.25);
  --shadow-gold: 0 4px 20px rgba(201,168,76,.3);

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

  /* ── Glassmorphism ────────────────────────────── */
  --glass-bg:     rgba(255,255,255,.12);
  --glass-border: rgba(255,255,255,.2);
  --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.15;
  color: var(--c4a-navy);
  letter-spacing: -.02em;
}

h1 { font-size: var(--text-hero); font-weight: 900; }
h2 { font-size: var(--text-3xl); font-weight: 700; }
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; }
}
