/* Critical Insights Ltd — site styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0f2040;
  --navy-lt:   #1a3460;
  --blue:      #4472C4;   /* CI Blue — brand */
  --blue-lt:   #5d88d6;
  --bg:        #f7f8fd;
  --surface:   #ffffff;
  --border:    #dde4ed;
  --text:      #1a2332;
  --muted:     #4a5568;
  --faint:     #8a97a8;
  --accent:    #e9eff9;
  --sky:       #9dbbea;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
}

/* ── Nav ─────────────────────────────────────────────────────── */
nav {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nav-brand { display: flex; align-items: center; padding: 0.7rem 0; }
.nav-brand img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; }
.nav-links a {
  color: #c8d8ec;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 1.1rem 1.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; border-bottom-color: var(--sky); }

/* ── Page header (inner pages) ───────────────────────────────── */
.page-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  padding: 3.5rem 2rem;
  text-align: center;
}
.page-header .label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 0.75rem; display: block;
}
.page-header h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; color: var(--navy); }
.page-header p { color: var(--muted); font-size: 0.95rem; margin-top: 0.75rem; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ── Layout ──────────────────────────────────────────────────── */
.container { max-width: 1040px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }

.section-label {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue); display: block; margin-bottom: 0.6rem;
}
.section-heading { text-align: center; margin-bottom: 2.5rem; }
.section-heading h2 { font-size: 1.75rem; font-weight: 700; color: var(--text); }
.section-heading p { color: var(--muted); max-width: 560px; margin: 0.75rem auto 0; font-size: 0.95rem; }

/* ── Cards ───────────────────────────────────────────────────── */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}
a.service-card:hover { box-shadow: 0 6px 18px rgba(15,32,64,0.10); transform: translateY(-2px); border-color: var(--blue); }
.card-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.card-body { padding: 1.25rem; }
.service-icon { font-size: 1.6rem; margin-bottom: 0.7rem; }
.service-card h3 { font-size: 0.98rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.service-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.card-more { display: inline-block; margin-top: 0.7rem; font-size: 0.8rem; font-weight: 600; color: var(--blue); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--blue-lt); }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ── CTA box ─────────────────────────────────────────────────── */
.cta-box {
  background: var(--navy); color: #fff; border-radius: 10px;
  padding: 2rem 1.75rem; text-align: center; margin: 3rem 0 4rem;
}
.cta-box h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; color: #fff; }
div.cta-box p { color: #a8c4e0 !important; font-size: 0.9rem; margin-bottom: 1.25rem; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--navy); color: #a8c4e0;
  padding: 2.25rem 2rem 2rem; text-align: center; font-size: 0.82rem;
}
footer a { color: var(--sky); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-links { margin-bottom: 0.9rem; display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-logo { height: 30px; width: auto; opacity: 0.9; margin-bottom: 1rem; }
.footer-legal { font-size: 0.75rem; color: #7d93b5; margin-top: 0.5rem; }

@media (max-width: 640px) {
  nav { padding: 0 1rem; }
  .nav-brand img { height: 32px; }
  .nav-links a { padding: 1rem 0.55rem; font-size: 0.78rem; }
}
