/* ================================================
   SP Board Partners
   Discreet, editorial, quietly confident
   ================================================ */

/* ---- Self-hosted fonts (no external request to Google) ---- */
@font-face {
  font-family: 'Crimson Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/crimson-text-normal-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Crimson Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/crimson-text-normal-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Crimson Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/crimson-text-italic-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/rubik-variable.woff2') format('woff2');
}

:root {
  --cream:      #f7f3f0;
  --cream-dark: #ede6df;
  --white:      #ffffff;
  --ink:        #23303a;
  --ink-light:  #5c6b76;
  --slate:      #415768;
  --slate-dark: #2b3a46;
  --slate-light:#b1c3d3;
  --slate-pale: #e7edf1;
  --border:     #ddd3c9;
  --copper:     #b3663f;
  --shadow:     0 2px 20px rgba(35, 48, 58, 0.06);

  --font-serif: 'Crimson Text', Georgia, serif;
  --font-sans:  'Rubik', system-ui, sans-serif;

  --max-w: 1180px;
  --radius: 4px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--slate-dark); }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 400; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1.1rem; font-weight: 400; }
h3 { font-size: 1.3rem; margin-bottom: 0.75rem; font-weight: 600; }
h4 { font-size: 1.05rem; margin-bottom: 0.5rem; font-family: var(--font-sans); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Utilities ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.75rem;
}
.section { padding: 5.5rem 0; }
.section--alt { background: var(--white); }
.section--grey { background: var(--slate-pale); }
.section--slate { background: var(--slate-dark); color: rgba(255,255,255,0.9); }
.section--slate h2 { color: var(--white); }
.text-center { text-align: center; }
.lead {
  font-size: 1.3rem;
  color: var(--ink-light);
  max-width: 640px;
}
.lead.lead--center { margin: 0 auto; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1rem;
}
.tag::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--copper);
}
.rule {
  width: 60px;
  height: 1px;
  background: var(--copper);
  margin: 1.75rem 0;
}
.rule--center { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 0.9rem 2rem;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--slate);
  color: var(--white);
  border-color: var(--slate);
}
.btn--primary:hover { background: var(--slate-dark); border-color: var(--slate-dark); color: var(--white); }
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--on-dark { background: transparent; border-color: var(--white); color: var(--white); }
.btn--on-dark:hover { background: var(--white); border-color: var(--white); color: var(--slate-dark); }

/* ---- Header ---- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--ink);
}
.logo-mark { height: 36px; width: auto; flex-shrink: 0; }
.logo-word {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

/* Nav */
.main-nav ul { display: flex; align-items: center; gap: 0.5rem; }
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.15s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--slate);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: all 0.25s;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 6rem 0 5.5rem;
  background: var(--cream);
  overflow: hidden;
}
.hero__intro { max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lead { margin-bottom: 2.25rem; max-width: 100%; }
.hero__intro p {
  font-size: 1.3rem;
  color: var(--ink-light);
  max-width: 100%;
  margin-bottom: 1.25rem;
}
.hero__intro p:last-child { margin-bottom: 2.25rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Page Header ---- */
.page-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}
.page-header .lead { margin: 0 auto; }

.tag--center { justify-content: center; }
.tag--center::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--copper);
}

#clients, #team, #contact { scroll-margin-top: 90px; }

/* ---- Quote ---- */
.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--ink);
  text-align: center;
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.pull-quote--wide { aspect-ratio: auto; max-width: 700px; padding: 3rem 3.5rem; }
.pull-quote cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---- Member of badge ---- */
.member-of {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.member-of__label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  flex-shrink: 0;
}
.member-of img { max-height: 40px; width: auto; }
.member-of--footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top-color: rgba(255,255,255,0.12);
}
.member-of--footer .member-of__label { color: rgba(255,255,255,0.55); }

/* ---- Two-column layout ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }

/* ---- Highlight / feature cards ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.feature-card__index {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--copper);
  margin-bottom: 1rem;
}
.feature-card h3 { margin-bottom: 0.6rem; }
.feature-card p { color: var(--ink-light); font-size: 1.02rem; }

.feature-card.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.feature-card.reveal:nth-child(2) { transition-delay: 0.15s; }
.feature-card.reveal:nth-child(3) { transition-delay: 0.3s; }
.feature-card.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .feature-card.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Review-area tiles ---- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.tile-grid--3col { grid-template-columns: repeat(3, 1fr); }
.tile {
  background: var(--white);
  padding: 2rem 1.75rem;
}
.tile h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.6rem;
}
.tile p { font-size: 0.95rem; color: var(--ink-light); margin: 0; }

/* ---- Client grid ---- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 980px;
  margin: 0 auto;
}
.client-tile {
  background: var(--white);
  padding: 1.15rem 1rem;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink-light);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.client-tile:nth-child(4n+1) { border-left: 1px solid var(--border); }
.client-tile:nth-child(-n+4) { border-top: 1px solid var(--border); }

/* ---- Outcomes list ---- */
.outcomes-list { display: flex; flex-direction: column; gap: 0; }
.outcomes-list li {
  display: flex;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
  color: var(--ink);
}
.outcomes-list li:first-child { padding-top: 0; }
.outcomes-list__num {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--copper);
  flex-shrink: 0;
  padding-top: 0.15rem;
}

/* ---- Process steps ---- */
.steps { counter-reset: steps; display: flex; flex-direction: column; }
.step {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.step:first-child { padding-top: 0; }
.step:last-child { border-bottom: none; }
.step::before {
  counter-increment: steps;
  content: counter(steps, decimal-leading-zero);
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--copper);
  padding-top: 0.2rem;
  width: 2.5rem;
}
.step__content h3 { margin-bottom: 0.5rem; }
.step__content p { color: var(--ink-light); margin: 0; }

/* ---- Team ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}
.team-card__photo {
  aspect-ratio: 4/5;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__photo span {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.team-card__role {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.75rem;
}
.team-card p { color: var(--ink-light); }

/* ---- Notice ---- */
.notice {
  padding: 1.5rem 1.75rem;
  border-left: 2px solid var(--slate);
  background: var(--slate-pale);
  margin: 2rem 0;
}
.notice p { margin: 0; color: var(--slate-dark); font-size: 0.98rem; }

/* ---- CTA Banner ---- */
.cta-banner {
  background: var(--slate-dark);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.cta-banner h2 { color: var(--white); margin-bottom: 1.1rem; }
.cta-banner p { color: rgba(255,255,255,0.75); margin-bottom: 2.25rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

@media (min-width: 640px) {
  .no-widow { white-space: nowrap; max-width: none !important; }
}
@media (max-width: 640px) {
  br.desktop-only { display: none; }
}

/* ---- Form ---- */
.form-wrapper {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.75rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.required { color: var(--slate); margin-left: 2px; }
.hint { font-size: 0.72rem; text-transform: none; letter-spacing: 0; color: var(--ink-light); font-family: var(--font-sans); }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--cream);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--slate);
  box-shadow: 0 0 0 3px rgba(65, 87, 104, 0.12);
  background: var(--white);
}
textarea { min-height: 130px; resize: vertical; }

/* ---- Footer ---- */
.site-footer {
  background: var(--slate-dark);
  color: rgba(255,255,255,0.65);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.site-footer .logo-word { color: var(--white); }
.footer-col p { font-size: 0.92rem; line-height: 1.7; margin-bottom: 0.5rem; }
.site-footer h4 {
  font-family: var(--font-sans);
  color: rgba(255,255,255,0.85);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(255,255,255,0.7); font-size: 0.92rem; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer ul li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  font-family: var(--font-sans);
  letter-spacing: 0.03em;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 200;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0.75rem 0; }
  .main-nav a { padding: 0.8rem 1.75rem; }
  .hero { text-align: center; padding: 3rem 0 3.5rem; }
  .hero__actions { justify-content: center; }
  .tag { justify-content: center; }
  .tag::before { display: none; }
  .tag--center::before,
  .tag--center::after { display: inline-block; }
  .two-col,
  .feature-grid,
  .team-grid { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .client-tile:nth-child(4n+1) { border-left: none; }
  .client-tile:nth-child(-n+4) { border-top: none; }
  .client-tile:nth-child(3n+1) { border-left: 1px solid var(--border); }
  .client-tile:nth-child(-n+3) { border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .tile-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .client-tile:nth-child(3n+1) { border-left: none; }
  .client-tile:nth-child(-n+3) { border-top: none; }
  .client-tile:nth-child(2n+1) { border-left: 1px solid var(--border); }
  .client-tile:nth-child(-n+2) { border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .form-wrapper { padding: 1.75rem; }
  .step { gap: 1.25rem; }
}
@media (max-width: 360px) {
  .tag--center::before,
  .tag--center::after { display: none; }
}
