/* ============================================================
   CarePath Consultancy — formal / clinical stylesheet
   Palette: navy #00428D, muted slate-blue tints (calmer than Sourcing)
   Type: Source Serif 4 (display/headings) + Karla (body)
   ============================================================ */

:root {
  --navy: #00428D;
  --ink: #10233F;
  --blue: #2A5C8A;
  --accent: #6E8FAE;      /* muted accent, replaces bright cyan */
  --tint: #F3F6F9;        /* calm grey-blue tint, replaces bright aqua */
  --tint-deep: #DFE7EF;
  --slate: #445468;
  --line: #DDE3EA;
  --white: #FDFEFE;
  --radius: 8px;           /* squared-off, formal */
  --shadow: 0 6px 20px rgba(16, 35, 63, 0.07);
  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Karla", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 600;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 600; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

a { color: var(--blue); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 254, 254, 0.95);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: 1080px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.brand img { height: 32px; width: auto; }
.brand span {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.2rem;
  color: var(--navy); letter-spacing: 0;
}
.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 0.92rem;
  font-family: var(--font-body);
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); }
.nav-links a.nav-cta {
  background: var(--navy); color: #fff;
  padding: 9px 20px; border-radius: var(--radius);
}
.nav-links a.nav-cta:hover { background: var(--blue); }
.nav-toggle {
  display: none; background: none; border: none;
  font-size: 1.5rem; color: var(--navy); cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 72px; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy);
  background: var(--tint);
  border: 1px solid var(--tint-deep);
  padding: 5px 14px; border-radius: 4px;
  margin-bottom: 18px;
}
.hero p.lead { font-size: 1.1rem; margin: 16px 0 28px; max-width: 48ch; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  padding: 13px 24px; border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.hero-art {
  background: var(--tint);
  border: 1px solid var(--tint-deep);
  border-radius: var(--radius);
  padding: 40px;
  display: flex; align-items: center; justify-content: center;
}
.hero-art img { width: 70%; max-width: 280px; }

/* Winding path motif — toned down to a faint single hairline for a formal feel */
.path-motif {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none; opacity: 0.18;
}
.path-motif path { stroke: var(--accent) !important; stroke-width: 1.4 !important; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.tint { background: var(--tint); border-top: 1px solid var(--tint-deep); border-bottom: 1px solid var(--tint-deep); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head p { margin-top: 10px; font-size: 1.02rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.97rem; }
.card-list { margin: 10px 0 0 18px; font-size: 0.97rem; }
.card-list li { margin-bottom: 6px; }

/* Division cards (unused on split single-division sites, kept for compatibility) */
.division { border-radius: var(--radius); padding: 36px 32px; }
.division h3 { font-size: 1.3rem; margin-bottom: 6px; }
.division .tagline {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px;
}
.division ul { margin: 14px 0 22px 20px; }
.division li { margin-bottom: 8px; }
.division-sourcing { background: var(--navy); color: #DCEBFF; }
.division-consultancy { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- Journey (unused on Consultancy site) ---------- */
.journey { position: relative; margin-top: 20px; }
.journey-step { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 16px 0 22px; }
.step-dot {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--tint); border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--navy);
}

/* ---------- Fees table ---------- */
.fee-table { width: 100%; border-collapse: collapse; margin-top: 18px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.fee-table th, .fee-table td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.fee-table th { font-family: var(--font-body); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); background: var(--tint); font-weight: 700; }
.fee-table tr:last-child td { border-bottom: none; }
.fee-note { font-size: 0.87rem; margin-top: 12px; color: var(--slate); }

/* ---------- About ---------- */
.bio-grid { display: grid; grid-template-columns: 230px 1fr; gap: 40px; align-items: start; }
.bio-photo {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--tint);
}
.bio-photo img { width: 100%; height: auto; }
.cred-list { list-style: none; margin-top: 18px; }
.cred-list li {
  padding: 10px 0 10px 30px; position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}
.cred-list li::before {
  content: "—"; position: absolute; left: 0; top: 10px;
  color: var(--blue); font-weight: 700;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-card label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--ink); margin: 16px 0 6px; font-family: var(--font-body); }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: 6px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--white);
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(42, 92, 138, 0.15);
}
.form-card button {
  margin-top: 22px; width: 100%;
  background: var(--navy); color: #fff; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 13px; border-radius: var(--radius);
}
.form-card button:hover { background: var(--blue); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 0.86rem; }
.consent input { width: auto; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #AEC0D3;
  padding: 48px 0 32px; margin-top: 36px;
  font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; margin-bottom: 28px; }
.site-footer h4 { color: #fff; margin-bottom: 10px; font-size: 0.92rem; font-family: var(--font-body); }
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: 0.82rem; }

/* ---------- Cookie / privacy notice ---------- */
.notice-bar {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 100;
  max-width: 640px; margin: 0 auto;
  background: var(--ink); color: #DCE6EF;
  border-radius: var(--radius); padding: 15px 20px;
  display: flex; gap: 16px; align-items: center;
  box-shadow: 0 12px 32px rgba(16,35,63,0.3);
  font-size: 0.88rem;
}
.notice-bar[hidden] { display: none; }
.notice-bar a { color: var(--accent); }
.notice-bar button {
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 0.86rem;
  padding: 8px 16px; border-radius: 6px; white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .contact-grid, .bio-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 400px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 10px 24px 20px;
  }
  .nav-links.open { display: flex; align-items: flex-start; }
  .nav-links li { width: 100%; padding: 10px 0; }
  .nav-toggle { display: block; }
}
