/* ============================================================
   CarePath Sourcing — shared stylesheet
   Palette derived from the CarePath logo:
   navy #00428D · blue #0077FC · cyan #20E0F0 · aqua #E9FBFD
   Type: Sora (display) + Karla (body)
   ============================================================ */

:root {
  --navy: #00428D;
  --ink: #0B2545;
  --blue: #0077FC;
  --cyan: #20E0F0;
  --aqua: #E9FBFD;
  --aqua-deep: #CBF4F8;
  --slate: #3E5470;
  --line: #D8E6EF;
  --white: #FCFEFF;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 66, 141, 0.10);
  --font-display: "Sora", system-ui, sans-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.65;
  color: var(--slate);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 600; }
h4 { font-size: 1.02rem; font-weight: 600; }

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

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(252, 254, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1080px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.brand img { height: 34px; width: auto; }
.brand span {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.25rem;
  color: var(--navy); letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 26px; align-items: center; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 0.95rem;
}
.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 18px; border-radius: 999px;
}
.nav-links a.nav-cta:hover { background: var(--blue); }
.nav-toggle {
  display: none; background: none; border: none;
  font-size: 1.6rem; color: var(--navy); cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 84px; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy);
  background: var(--aqua);
  border: 1px solid var(--aqua-deep);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.hero p.lead { font-size: 1.15rem; margin: 18px 0 30px; max-width: 46ch; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 13px 26px; border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.hero-art {
  background: linear-gradient(135deg, var(--aqua) 0%, var(--aqua-deep) 100%);
  border: 1px solid var(--aqua-deep);
  border-radius: 28px;
  padding: 40px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.hero-art img { width: 78%; max-width: 320px; }

/* Punchier eyebrow badge for a more commercial, energetic feel */
.eyebrow {
  background: linear-gradient(120deg, var(--aqua) 0%, #fff 100%);
  border: 1px solid var(--cyan);
}

/* Winding path motif — used as a background flourish */
.path-motif {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none; opacity: 0.55;
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.tint { background: var(--aqua); border-top: 1px solid var(--aqua-deep); border-bottom: 1px solid var(--aqua-deep); }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head p { margin-top: 12px; font-size: 1.06rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.99rem; }
.card .card-link {
  display: inline-block; margin-top: 16px;
  font-weight: 700; text-decoration: none;
}

/* Division cards (unused on split single-division sites, kept for compatibility) */
.division { border-radius: 24px; padding: 40px 36px; }
.division h3 { font-size: 1.45rem; margin-bottom: 6px; }
.division .tagline {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px;
}
.division ul { margin: 16px 0 24px 20px; }
.division li { margin-bottom: 8px; }
.division-sourcing { background: var(--navy); color: #DCEBFF; }
.division-sourcing h3 { color: #fff; }
.division-sourcing .tagline { color: var(--cyan); }
.division-sourcing .btn { background: #fff; color: var(--navy); }
.division-sourcing .btn:hover { background: var(--cyan); color: var(--ink); }
.division-consultancy { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.division-consultancy .tagline { color: var(--blue); }

/* ---------- Journey (sourcing site only) ---------- */
.journey { position: relative; margin-top: 20px; }
.journey-step {
  position: relative;
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  padding: 18px 0 26px;
}
.journey-step::before {
  content: ""; position: absolute;
  left: 27px; top: 54px; bottom: -6px;
  width: 3px; border-radius: 3px;
  background: linear-gradient(var(--cyan), var(--blue));
  opacity: 0.5;
}
.journey-step:last-child::before { display: none; }
.step-dot {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--aqua); border: 2px solid var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--navy);
}
.journey-step h4 { margin-bottom: 4px; }
.journey-step p { font-size: 0.97rem; }

/* ---------- Fees table ---------- */
.fee-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.fee-table th, .fee-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.fee-table th { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); background: var(--aqua); }
.fee-table tr:last-child td { border-bottom: none; }
.fee-note { font-size: 0.88rem; margin-top: 12px; color: var(--slate); }

/* ---------- About ---------- */
.bio-grid { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: start; }
.bio-photo {
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--aqua);
}
.bio-photo img { width: 100%; height: auto; }
.cred-list { list-style: none; margin-top: 20px; }
.cred-list li {
  padding: 10px 0 10px 34px; position: relative;
  border-bottom: 1px dashed var(--line);
}
.cred-list li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--cyan);
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-card label { display: block; font-weight: 700; font-size: 0.92rem; color: var(--ink); margin: 18px 0 6px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  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(0, 119, 252, 0.15);
}
.form-card button {
  margin-top: 24px; width: 100%;
  background: var(--navy); color: #fff; border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 14px; border-radius: 999px;
}
.form-card button:hover { background: var(--blue); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 0.88rem; }
.consent input { width: auto; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #B9CBE2;
  padding: 52px 0 36px; margin-top: 40px;
  font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 0.95rem; }
.site-footer a { color: var(--cyan); 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.15); padding-top: 24px; font-size: 0.84rem; }

/* ---------- 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: #DCEBFF;
  border-radius: 14px; padding: 16px 20px;
  display: flex; gap: 16px; align-items: center;
  box-shadow: 0 16px 40px rgba(11,37,69,0.35);
  font-size: 0.9rem;
}
.notice-bar[hidden] { display: none; }
.notice-bar a { color: var(--cyan); }
.notice-bar button {
  background: var(--cyan); color: var(--ink); border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 0.88rem;
  padding: 9px 18px; border-radius: 999px; white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .contact-grid, .bio-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .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; }
}
