/* ============================================================
   PICA PFM — stylesheet
   Clean, simple, white-background design.
   ============================================================ */

:root {
  --ink:        #1C2B39;
  --accent:     #2C5F8A;
  --accent-dark:#204A6E;
  --text:       #2B333B;
  --text-muted: #6B7480;
  --line:       #E3E5E8;
  --bg:         #FFFFFF;
  --bg-alt:     #F6F7F8;

  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --max-w: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

h1, h2, h3 {
  font-family: var(--sans);
  color: var(--ink);
  font-weight: 600;
  margin: 0;
}

h1 { font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1.18; }
h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.25; }
h3 { font-size: 1.15rem; line-height: 1.4; }

p { margin: 0 0 1em; max-width: 64ch; }

.text-muted { color: var(--text-muted); }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.wordmark { display: flex; align-items: center; }

.wordmark img {
  height: 108px;
  width: auto;
  max-width: 380px;
  display: block;
  object-fit: contain;
}

nav.primary-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
}

nav.primary-nav a {
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
}

nav.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

nav.primary-nav a:hover::after,
nav.primary-nav a:focus-visible::after { width: 100%; }

nav.primary-nav a.current { color: var(--ink); font-weight: 600; }
nav.primary-nav a.current::after { width: 100%; }

/* ---------- hero ---------- */

.hero { border-bottom: 1px solid var(--line); }

.hero-inner { padding-top: 76px; padding-bottom: 64px; }

.hero-eyebrow {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 14px;
}

.hero h1 { max-width: 16ch; }

.hero .lede {
  margin-top: 20px;
  font-size: 1.12rem;
  max-width: 48ch;
  color: var(--text);
}

.cta-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 13px 26px;
  border: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover, .btn:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-ghost { background: transparent; color: var(--ink); }

.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------- sections ---------- */

.section { padding: 68px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; }
.section.alt { background: var(--bg-alt); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 40px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section-head h2 { max-width: 20ch; }

.section-head .kicker {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-intro { max-width: 62ch; color: var(--text-muted); margin-top: 8px; }

/* about / expertise text blocks */

.prose-columns {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
}

.prose-columns .body-col p { max-width: 68ch; }

/* services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.service { padding-top: 4px; }
.service h3 { margin-bottom: 12px; }
.service p { font-size: 0.98rem; color: var(--text); }

/* team */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 36px;
}

.team-card { border-top: 2px solid var(--ink); padding-top: 20px; }

.avatar {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 18px;
}

.avatar.has-photo { background-size: cover; background-position: center; }

.team-card .role {
  color: var(--accent-dark);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: block;
}

.team-card p { font-size: 0.95rem; }

.team-note { margin-top: 8px; font-size: 0.88rem; color: var(--text-muted); }

/* contact */

.contact-block {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.contact-email {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

.contact-email:hover { color: var(--accent-dark); }

/* footer */

footer.site-footer {
  padding: 30px 0 40px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  nav.primary-nav ul { gap: 10px 20px; }
  .prose-columns { grid-template-columns: 1fr; gap: 18px; }
  .services-grid { grid-template-columns: 1fr; gap: 28px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-block { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 24px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .wordmark img { height: 72px; }
  nav.primary-nav ul { gap: 8px 16px; }
  nav.primary-nav a { font-size: 0.9rem; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 44px; padding-bottom: 40px; }
}
