/* =========================================================
   Manyfold shared stylesheet
   Clean, modern, outcome-led. Business problems first.
   ========================================================= */

:root {
  /* Palette */
  --ink:        #0E2A38;  /* deep teal-navy, primary text + dark sections */
  --ink-soft:   #2C4A59;
  --slate:      #50697A;  /* secondary text */
  --mist:       #8499A6;
  --line:       #E3E9ED;  /* hairlines */
  --paper:      #FBFCFD;  /* page background */
  --paper-2:    #F1F5F7;  /* alt section background */
  --white:      #FFFFFF;

  --accent:     #1F8A8C;  /* teal accent */
  --accent-dk:  #156D6F;
  --accent-sf:  #E6F2F2;  /* accent tint */
  --warm:       #E8A04B;  /* warm highlight, used sparingly */

  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(14,42,56,.06), 0 12px 30px rgba(14,42,56,.07);
  --shadow-sm: 0 1px 2px rgba(14,42,56,.05), 0 6px 16px rgba(14,42,56,.05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

a { color: var(--accent-dk); text-decoration: none; }
a:hover { color: var(--accent); }

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

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .9rem;
}

.lede {
  font-size: 1.18rem;
  color: var(--slate);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .98rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(31,138,140,.25);
}
.btn-primary:hover { background: var(--accent-dk); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dk); }
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { background: var(--accent-sf); color: var(--ink); transform: translateY(-1px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,252,253,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -.01em;
}
.brand:hover { color: var(--ink); }
.brand .mark { display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .96rem;
  color: var(--ink-soft);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-dk); }
/* The nav CTA is a button; keep its text white in every state. Without these,
   the .nav-links link colors above win on specificity and the label turns
   dark teal on the teal button (invisible on hover). */
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; background: var(--accent-dk); }
.nav-cta { margin-left: .5rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: .25s;
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-tight { padding: 60px 0; }
.bg-alt { background: var(--paper-2); }
.bg-ink { background: var(--ink); color: #D9E4EA; }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink .lede { color: #AFC4D0; }
/* keep card contents dark even inside dark sections */
.bg-ink .card h1, .bg-ink .card h2, .bg-ink .card h3 { color: var(--ink); }

.center { text-align: center; }
.measure { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 84px;
  background:
    radial-gradient(1100px 500px at 85% -10%, var(--accent-sf), transparent 60%),
    radial-gradient(900px 480px at -5% 110%, #EFF4F2, transparent 55%);
}
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 1.1rem; }
.hero-cta { margin-top: 2rem; display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------- Logo / credibility bar ---------- */
.cred {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 30px 0;
}
.cred-label {
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
  text-align: center;
  margin-bottom: 18px;
}
.cred-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 40px;
}
.cred-logos span {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink-soft);
  opacity: .85;
}

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
}
.card.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--slate); margin-bottom: 0; }

.step-num {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent-sf);
  margin-bottom: 16px;
}

/* ---------- Stat ---------- */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.stat .num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--accent);
  line-height: 1;
}
.stat .lbl { color: var(--slate); font-size: .98rem; margin-top: .4rem; }

/* ---------- Feature row (two column) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }

/* ---------- Case study card ---------- */
.cs {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cs-body { padding: 34px; }
.cs-tag {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-dk);
  background: var(--accent-sf);
  padding: .35rem .7rem;
  border-radius: 999px;
  margin-bottom: 14px;
}
.cs-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 22px 0 6px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.cs-metrics .num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--accent);
  line-height: 1;
}
.cs-metrics .lbl { font-size: .85rem; color: var(--slate); }
/* Case study hero stats: three equal columns at every width */
.cs-metrics.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 40px;
}
@media (max-width: 680px) {
  .cs-metrics.grid3 { grid-template-columns: 1fr; }
}

/* ---------- Checklist ---------- */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: var(--ink-soft);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 21px; height: 21px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='11' fill='%231F8A8C'/><path d='M7 12.4l3.2 3.2L17 8.6' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--ink), #143b4d);
  border-radius: 20px;
  padding: 56px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #AFC4D0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.field input, .field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  padding: .8rem .95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-sf);
}
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .86rem; color: var(--mist); }

/* ---------- Timeline (work history) ---------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline li { position: relative; padding: 0 0 30px 38px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 3px var(--accent);
}
.timeline .role { font-weight: 600; color: var(--ink); font-family: var(--serif); font-size: 1.12rem; }
.timeline .co { color: var(--accent-dk); font-weight: 600; }
.timeline .when { font-size: .85rem; color: var(--mist); }
.timeline p { color: var(--slate); margin: .3rem 0 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #9FB6C2;
  padding: 54px 0 30px;
}
.footer a { color: #CBDAE2; }
.footer a:hover { color: #fff; }
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer .brand { color: #fff; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-bottom {
  margin-top: 22px;
  font-size: .85rem;
  color: #7C95A2;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.tac { text-align: center; }
.pill {
  display:inline-block;
  font-size:.78rem; font-weight:600;
  color: var(--accent-dk);
  background: var(--accent-sf);
  padding:.3rem .75rem; border-radius:999px;
  margin-bottom: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse > :first-child { order: 0; }
  .stats { grid-template-columns: 1fr; gap: 18px; }
  .cta-band { padding: 40px 26px; }
}
@media (max-width: 680px) {
  .nav-links {
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 10px 28px 22px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 16px; }
  .nav-cta { margin-left: 0; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .cta-band { padding: 34px 22px; }
}
