/* ==========================================================================
   Pacewell Group — design tokens
   Name reads as "pace" (momentum, forward motion) + "well" (soundness).
   Palette: a confident modern teal system — trustworthy but approachable —
   with a warm amber used only as a micro-accent. Deliberately cooler and
   more contemporary than an earthy scheme.
   ========================================================================== */

:root {
  --ink: #0e2b28;
  --ink-soft: #274a45;
  --teal: #0f7368;
  --teal-deep: #0b5850;
  --mint: #62a89b;
  --mint-wash: #dcebe7;
  --amber: #c88a33;
  --sand: #f5f3ee;
  --sand-2: #ebe7dd;
  --white: #ffffff;
  --border: #d9d5c9;
  --border-teal: rgba(15,115,104,0.25);
  --grey: #55605c;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --wrap: 1160px;
  --radius: 4px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

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

h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--grey); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-deep); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

.btn-outline-light { background: transparent; color: var(--sand); border-color: rgba(245,243,238,0.4); }
.btn-outline-light:hover { border-color: var(--mint); color: var(--mint); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,243,238,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  margin-left: 5px;
  vertical-align: middle;
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav a:not(.btn):hover { color: var(--teal); }
.nav-cta { padding: 10px 20px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  width: 34px; height: 34px;
  border: none; background: none; cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 6px; right: 6px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 16px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero — split: copy left, photo right
   ========================================================================== */
.hero {
  border-bottom: 1px solid var(--border);
  padding: 72px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero .btn-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 8px;
}
.hero-media .float-card {
  position: absolute;
  left: -26px;
  bottom: -24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 22px;
  box-shadow: 0 18px 40px -22px rgba(14,43,40,0.5);
  max-width: 230px;
}
.hero-media .float-card .fc-tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.hero-media .float-card .fc-head { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.2; color: var(--ink); }
.hero-media svg.spark { display: block; margin-top: 12px; }

/* ---------- outcomes / results section ---------- */
.outcomes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.outcome {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.outcome .oc-mark {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 8px;
  background: var(--mint-wash);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}
.outcome .oc-mark svg { width: 22px; height: 22px; }
/* The headline is the "stat slot": drop a real figure in here later,
   e.g. change the text to "+3.2 margin pts" and add a source line. */
.outcome .oc-head { font-family: var(--font-display); font-size: 1.28rem; color: var(--ink); margin-bottom: 6px; line-height: 1.15; }
.outcome p { font-size: 0.95rem; }
.outcome .oc-source { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--mint); }
.outcomes-note { margin-top: 28px; font-size: 0.9rem; color: var(--grey); max-width: 680px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.hero-stats div { border-left: 1px solid var(--border); padding-left: 18px; }
.hero-stats div:first-child { border-left: none; padding-left: 0; }
.hero-stats .num { font-family: var(--font-mono); font-size: 1.4rem; color: var(--teal); display: block; margin-bottom: 4px; }
.hero-stats .label { font-size: 0.82rem; color: var(--grey); }

/* ==========================================================================
   Section rhythm
   ========================================================================== */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-alt { background: var(--sand-2); }
.section-mint { background: var(--mint-wash); }

/* ---------- pain point list ---------- */
.pain-list { display: grid; gap: 0; max-width: 780px; }
.pain-item { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--border); }
.pain-item:last-child { border-bottom: 1px solid var(--border); }
.pain-mark { color: var(--amber); font-family: var(--font-mono); font-size: 0.85rem; padding-top: 3px; }
.pain-item p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- card grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px 26px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--border-teal); transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(14,43,40,0.45); }
.card .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); background: var(--mint-wash);
  display: inline-block; padding: 4px 9px; border-radius: 3px; margin-bottom: 16px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.94rem; }
.card .meta {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-soft);
}
.card .meta .price { color: var(--teal); }

/* ---------- image band ---------- */
.image-band { position: relative; padding: 0; border: none; }
.image-band img { width: 100%; height: 340px; object-fit: cover; }
.image-band .band-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,43,40,0.86) 0%, rgba(14,43,40,0.55) 55%, rgba(14,43,40,0.15) 100%);
  display: flex; align-items: center;
}
.image-band .band-overlay .wrap { width: 100%; }
.image-band .band-inner { max-width: 520px; }
.image-band h2, .image-band p { color: var(--sand); }
.image-band .eyebrow { color: var(--mint); }

/* ---------- process steps ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process-step { padding-top: 8px; border-top: 2px solid var(--mint); }
.process-step .step-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--teal); display: block; margin-bottom: 14px; }
.process-step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.process-step p { font-size: 0.92rem; }

/* ---------- split feature (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { width: 100%; height: 420px; object-fit: cover; border-radius: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { font-family: var(--font-mono); font-size: 0.78rem; border: 1px solid var(--border-teal); color: var(--teal-deep); padding: 6px 12px; border-radius: 20px; background: var(--white); }

.tick-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.tick-list li { display: flex; gap: 12px; font-size: 0.98rem; color: var(--ink-soft); }
.tick-list li::before { content: "→"; color: var(--teal); flex-shrink: 0; font-family: var(--font-mono); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--sand); text-align: center; padding: 80px 0; }
.cta-band h2 { color: var(--sand); max-width: 620px; margin: 0 auto 18px; }
.cta-band p { max-width: 520px; margin: 0 auto 32px; color: rgba(245,243,238,0.72); }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Services page detail rows
   ========================================================================== */
.service-detail { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 46px 0; border-top: 1px solid var(--border); }
.service-detail:last-child { border-bottom: 1px solid var(--border); }
.service-detail .sd-head .tag {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); background: var(--mint-wash); display: inline-block; padding: 4px 9px; border-radius: 3px; margin-bottom: 12px;
}
.service-detail .sd-head .fee { font-family: var(--font-mono); color: var(--teal); font-size: 0.92rem; margin-top: 14px; }
.service-detail .sd-head .fee.soft { color: var(--ink-soft); }
.service-detail .sd-head .timing { font-size: 0.85rem; color: var(--grey); margin-top: 4px; }

.sd-body dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 20px; margin: 0 0 20px; }
.sd-body dt { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-deep); padding-top: 2px; }
.sd-body dd { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

/* ==========================================================================
   About page
   ========================================================================== */
.principle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.principle { padding: 24px 0; border-top: 1px solid var(--border); }
.principle h3 { font-size: 1.05rem; margin-bottom: 8px; }
.principle p { font-size: 0.94rem; }

.founder-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.founder-card { background: var(--white); border: 1px solid var(--border); padding: 32px; border-radius: 8px; }
.founder-card .avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--ink); color: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 18px;
}
.founder-card .role { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 8px; }
.founder-card h3 { margin-bottom: 12px; }
.founder-card p { font-size: 0.95rem; }
.founder-card .cred-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.founder-card .cred-list li { display: flex; gap: 10px; font-size: 0.88rem; color: var(--ink-soft); }
.founder-card .cred-list li::before { content: "—"; color: var(--amber); font-family: var(--font-mono); }

.boundary-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.boundary-list li { font-size: 0.92rem; color: var(--grey); padding-left: 18px; position: relative; }
.boundary-list li::before { content: "×"; position: absolute; left: 0; color: var(--mint); font-family: var(--font-mono); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--ink); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.96rem; background: var(--white); color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 120px; }

.contact-info-item { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--border); }
.contact-info-item:last-child { border-bottom: 1px solid var(--border); }
.contact-info-item .ci-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); width: 110px; flex-shrink: 0; padding-top: 3px; }
.contact-info-item .ci-value { font-size: 0.96rem; color: var(--ink-soft); }
.contact-info-item .ci-value a:hover { color: var(--teal); }

.fit-box { background: var(--mint-wash); border: 1px solid var(--border-teal); border-radius: 8px; padding: 24px; margin-top: 32px; }
.fit-box h4 { font-size: 0.95rem; margin-bottom: 10px; }
.fit-box p { font-size: 0.88rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(245,243,238,0.85); padding: 64px 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 48px; flex-wrap: wrap; }
.logo-light { color: var(--sand); }
.footer-tag { max-width: 260px; margin-top: 14px; font-size: 0.9rem; color: rgba(245,243,238,0.6); }
.footer-links { display: flex; gap: 64px; }
.footer-links h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mint); margin-bottom: 16px; font-weight: 500; }
.footer-links a { display: block; font-size: 0.9rem; color: rgba(245,243,238,0.75); margin-bottom: 10px; }
.footer-links a:hover { color: var(--mint); }
.footer-bottom { border-top: 1px solid rgba(245,243,238,0.12); padding: 22px 0; font-size: 0.78rem; color: rgba(245,243,238,0.45); }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; }
  .hero-media img { height: 320px; }
  .hero-media .float-card { left: 16px; bottom: 16px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split img { height: 300px; }
}
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .principle-grid, .founder-row, .contact-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 18px; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .hero-stats div { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 14px; }
  .hero-stats div:first-child { border-top: none; padding-top: 0; }
}
@media (max-width: 680px) {
  .nav { position: fixed; top: 76px; left: 0; right: 0; background: var(--sand); flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--border); transform: translateY(-135%); transition: transform 0.25s ease; padding: 8px 28px 20px; }
  .nav.is-open { transform: translateY(0); }
  .nav a:not(.btn) { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-cta { margin-top: 14px; }
  .nav-toggle { display: block; }
  .card-grid, .process-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 40px; }
  .image-band .band-overlay { background: linear-gradient(90deg, rgba(14,43,40,0.9) 0%, rgba(14,43,40,0.7) 100%); }
}
