@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600&display=swap");

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-alt: #eef2f6;
  --text: #122033;
  --muted: #4d5b6b;
  --line: #d8e0e8;
  --line-strong: #bcc8d5;
  --primary: #19324f;
  --primary-strong: #122740;
  --max: 1140px;
  --radius: 14px;
  --shadow: 0 10px 32px rgba(16, 28, 44, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7f9fb 0%, var(--bg) 220px, var(--bg) 100%);
  line-height: 1.55;
}

a {
  color: inherit;
}

.container {
  width: min(var(--max), 100% - 48px);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 12px;
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  max-width: 980px;
  font-size: clamp(1.8rem, 2.8vw, 2.95rem);
}

h2 {
  max-width: 760px;
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
}

p {
  margin: 0;
}

.subhead {
  margin-top: 16px;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.14rem);
}

.lead {
  margin-top: 14px;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 249, 251, 0.94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(6px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.topbar.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(17, 29, 45, 0.08);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.brand-logo {
  width: clamp(180px, 23vw, 300px);
  max-width: 100%;
  height: auto;
  display: block;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  padding: 9px 14px;
  font-family: "Manrope", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

.menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu a {
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 140ms ease;
}

.menu a:hover {
  color: var(--text);
}

.menu a.active {
  color: var(--text);
}

.btn,
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  padding: 12px 20px;
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 0.77rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

.btn-primary,
.menu .cta {
  background: var(--primary);
  border-color: var(--primary);
  color: #f2f6fa;
}

.cta.solid {
  background: var(--primary);
  border-color: var(--primary);
  color: #f2f6fa;
}

.btn-primary:hover,
.menu .cta:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  color: #ffffff;
}

.cta.solid:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  color: #ffffff;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.hero {
  padding-top: 96px;
  padding-bottom: 84px;
}

.hero .btn {
  margin-top: 24px;
}

.service-pillars {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  background: var(--surface);
  border: 1px solid rgba(216, 224, 232, 0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.service-card h3 {
  font-size: 1.08rem;
}

.service-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.service-card li {
  margin: 7px 0;
  line-height: 1.62;
}

.client-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 16px;
}

.client-list li {
  border: 1px solid rgba(188, 200, 213, 0.65);
  border-radius: 12px;
  padding: 8px 14px;
  text-align: left;
  width: 100%;
  max-width: 450px;
  justify-self: center;
  background: var(--surface);
  font-family: "Manrope", sans-serif;
  font-size: 0.83rem;
  font-weight: 500;
  color: #2b3d52;
}

#who-we-work-with {
  padding-bottom: 80px;
}

.process-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}

.step-number {
  display: inline-block;
  margin-bottom: 10px;
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

.process-step h3 {
  font-size: 1.05rem;
}

.engagements-section {
  margin-top: 34px;
  padding-top: 86px;
}

.engagements-section h2 {
  max-width: 760px;
}

.engagement-copy {
  margin-top: 18px;
  max-width: 740px;
  color: var(--muted);
}

.engagements-section h2 + .engagement-copy {
  margin-top: 12px;
}

.authority-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.authority-copy {
  max-width: 920px;
  font-size: 1.07rem;
  color: #2f4054;
}

.consult-form {
  margin-top: 32px;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.consult-form .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 7px;
  font-family: "Manrope", sans-serif;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(25, 50, 79, 0.2);
  border-color: var(--primary);
}

textarea {
  min-height: 136px;
  resize: vertical;
}

.form-actions {
  margin-top: 4px;
}

.form-status {
  margin: 10px 0 0;
  font-size: 0.95rem;
}

.form-status.is-pending {
  color: var(--muted);
}

.form-status.is-success {
  color: #1d5f3a;
}

.form-status.is-error {
  color: #8a2630;
}

.bot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.footer {
  border-top: 1px solid var(--line);
  background: #12263e;
  color: #dce4ee;
  padding: 24px 0;
}

.footer-row,
.footer .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.footer a {
  color: #f0f5fb;
  text-decoration: none;
}

/* Compatibility styles for existing secondary pages */
.page-hero {
  padding-top: 0;
}

.page-hero .banner {
  min-height: 320px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, #1b314b, #274566);
  display: flex;
  align-items: flex-end;
}

.page-hero .banner::before {
  display: none;
}

.page-hero .inner {
  color: #f1f5fa;
  padding: 42px 0;
}

.page-hero p {
  color: #d6deea;
}

.actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 20px;
}

.two-col {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.two-col:first-child {
  border-top: 0;
}

.two-col .label {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  color: var(--text);
}

.two-col .content {
  color: var(--muted);
}

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

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

.roster-note {
  margin-top: 8px;
}

.callout {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #f9fbfd;
  padding: 16px;
}

@media (max-width: 1080px) {
  .service-pillars,
  .client-list {
    grid-template-columns: 1fr 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(var(--max), 100% - 40px);
  }

  .nav {
    min-height: 78px;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 0;
  }

  .brand-logo {
    width: clamp(170px, 50vw, 250px);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu {
    width: 100%;
    display: none;
    margin: 2px 0 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .menu.is-open {
    display: flex;
  }

  .menu a,
  .menu .cta {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 62px;
  }

  .hero h1 {
    line-height: 1.26;
  }

  .hero .subhead {
    margin-top: 22px;
  }

  .hero .btn {
    margin-top: 30px;
  }

  .service-pillars {
    gap: 22px;
  }

  .client-list {
    row-gap: 14px;
  }

  .service-pillars,
  .client-list,
  .process-grid,
  .consult-form,
  .split,
  .two-col {
    grid-template-columns: 1fr;
  }

  .engagements-section {
    margin-top: 20px;
    padding-top: 78px;
  }
}
