/* =============================================
   Insight Health Analytics — Stylesheet
   ============================================= */

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

:root {
  --navy:       #1a2e44;
  --navy-mid:   #243c57;
  --teal:       #0d7b6e;
  --teal-light: #11a093;
  --slate:      #4a5e72;
  --mist:       #f0f4f7;
  --white:      #ffffff;
  --text:       #2c3e50;
  --text-light: #5a6a7a;
  --border:     #d6e0e9;

  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --max-w: 1100px;
  --section-pad: 5rem 1.5rem;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 400; }
h3 { font-size: 1.2rem; font-weight: 600; font-family: var(--font-body); }
h4 { font-size: 1rem; font-weight: 700; font-family: var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
p  { color: var(--text-light); max-width: 68ch; }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* --- Nav --- */
.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--teal);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo img { height: 36px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.2;
}
.nav-logo-text span {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-light);
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--teal-light) !important; }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1e3d5c 100%);
  padding: 5rem 1.5rem 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(13,123,110,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; max-width: 780px; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(13,123,110,0.25);
  border: 1px solid rgba(13,123,110,0.5);
  color: var(--teal-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  max-width: 60ch;
  margin-bottom: 2.25rem;
}
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--teal);
  color: var(--white);
  padding: 0.8rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--teal-light); }
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.85);
  padding: 0.8rem 1.75rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--white); color: var(--white); }

/* --- Section labels --- */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
  display: block;
}

/* --- Services grid (home) --- */
.services-intro {
  padding: var(--section-pad);
  background: var(--white);
}
.services-intro h2 { margin-bottom: 0.75rem; }
.services-intro > .container > p { margin-bottom: 3rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--mist);
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal);
  padding: 1.75rem 1.5rem;
  border-radius: 0 0 6px 6px;
}
.service-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.service-card p { font-size: 0.9rem; }

/* --- Why us --- */
.why-us {
  padding: var(--section-pad);
  background: var(--navy);
}
.why-us .section-label { color: var(--teal-light); }
.why-us h2 { color: var(--white); margin-bottom: 1.25rem; }
.why-us p { color: rgba(255,255,255,0.72); max-width: 72ch; }
.why-us p + p { margin-top: 1rem; }
.why-cta { margin-top: 2rem; }

/* --- Process --- */
.process {
  padding: var(--section-pad);
  background: var(--mist);
}
.process h2 { margin-bottom: 3rem; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.step { position: relative; }
.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.step h3 { margin-bottom: 0.5rem; color: var(--navy); }
.step p { font-size: 0.92rem; }

/* --- CTA band --- */
.cta-band {
  background: var(--teal);
  padding: 4rem 1.5rem;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0 auto 2rem; }
.btn-white {
  background: var(--white);
  color: var(--teal);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-block;
  transition: background 0.2s;
}
.btn-white:hover { background: var(--mist); }

/* --- About page --- */
.about-intro {
  padding: var(--section-pad);
  background: var(--white);
}
.about-intro .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-intro h2 { margin-bottom: 1.25rem; }
.about-intro p + p { margin-top: 1rem; }
.about-intro .note {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--mist);
  border-left: 3px solid var(--teal);
  font-size: 0.92rem;
  color: var(--text);
}
.about-intro .note p { color: var(--text); max-width: none; }

.credentials {
  padding: var(--section-pad);
  background: var(--mist);
}
.credentials h2 { margin-bottom: 2.5rem; }
.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.cred-item {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 6px;
}
.cred-item h4 { margin-bottom: 0.4rem; font-size: 0.75rem; }
.cred-item p { font-size: 0.9rem; color: var(--text); max-width: none; }

.values {
  padding: var(--section-pad);
  background: var(--white);
}
.values h2 { margin-bottom: 2.5rem; }
.values-list { display: flex; flex-direction: column; gap: 0; }
.value-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.value-row:last-child { border-bottom: 1px solid var(--border); }
.value-row h3 { color: var(--navy); font-size: 1rem; }
.value-row p { font-size: 0.95rem; max-width: none; }

/* --- Services page --- */
.services-hero {
  padding: var(--section-pad);
  background: var(--white);
}
.services-hero h2 { margin-bottom: 0.75rem; }
.services-hero p { font-size: 1.05rem; }

.service-block {
  padding: 4rem 1.5rem;
}
.service-block:nth-child(even) { background: var(--mist); }
.service-block .container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.service-label-col { padding-top: 0.25rem; }
.service-num {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.service-tag {
  display: inline-block;
  background: rgba(13,123,110,0.1);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
}
.service-content h2 { margin-bottom: 1rem; }
.service-content p + p { margin-top: 0.85rem; }
.service-content ul {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-content ul li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-light);
  align-items: flex-start;
}
.service-content ul li::before {
  content: '–';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.service-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(13,123,110,0.07);
  border-left: 3px solid var(--teal);
  font-size: 0.88rem;
  color: var(--text);
  font-style: italic;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 1.5rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  max-width: 34ch;
  margin-top: 0.75rem;
}
.footer-col h4 {
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .about-intro .container { grid-template-columns: 1fr; gap: 2rem; }
  .service-block .container { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-num { font-size: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .value-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.82rem; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-logo-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
