/* ============================================================
   BPC — Best Practice Consulting
   Shared stylesheet (static, no build step)
   ============================================================ */

:root {
  /* Brand palette */
  --ink:        #2b2b2e;   /* charcoal — BPC wordmark */
  --ink-2:      #3a3a40;
  --primary:    #ef7d00;   /* BPC orange */
  --primary-d:  #d96c00;
  --accent:     #e0531c;   /* deep orange — gradient base */
  --bg:         #f8f7f5;
  --surface:    #ffffff;
  --text:       #2b2b2e;
  --muted:      #6b6a67;
  --line:       #ececea;
  --shadow:     0 10px 30px rgba(43, 43, 46, 0.08);
  --shadow-lg:  0 24px 60px rgba(43, 43, 46, 0.14);
  --radius:     16px;
  --radius-sm:  10px;
  --maxw:       1160px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-d); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.18rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--surface); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}
.eyebrow--light { color: #ff9e4a; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 13px 24px; border-radius: 999px; font-weight: 650; font-size: .98rem;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(239,125,0,.32); }
.btn-primary:hover { background: var(--primary-d); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.25rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 800; font-size: 1rem;
}
.brand small { display: block; font-size: .62rem; font-weight: 600; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-logo--footer { filter: brightness(0) invert(1); }
@media (max-width: 640px) { .brand-logo { height: 32px; } }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 9px 14px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: .96rem;
}
.nav-links a:hover { background: var(--bg); color: var(--primary); }
.nav-links a.active { color: var(--primary); }
.nav-cta { margin-left: 8px; }
.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; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(239,125,0,0.22) 0%, transparent 60%),
              radial-gradient(800px 480px at 8% 110%, rgba(120,140,180,0.10) 0%, transparent 60%),
              linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(239,125,0,.09) 0 2px, transparent 2px 22px);
  mask-image: radial-gradient(900px 520px at 78% 0%, #000, transparent 72%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 104px; }
.hero h1 { color: #fff; max-width: 30ch; font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.hero .lede { font-size: 1.22rem; color: #d6d1c9; max-width: 52ch; margin: 18px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 36px; }
.hero-meta div { color: #d6d1c9; font-size: .95rem; }
.hero-meta strong { display: block; color: #fff; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%); color: #fff; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(239,125,0,.08) 0 2px, transparent 2px 22px);
  mask-image: radial-gradient(700px 380px at 85% 0%, #000, transparent 70%); pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; padding: 76px 24px 70px; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.page-hero p { color: #d6d1c9; font-size: 1.15rem; max-width: 60ch; margin: 0; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.team-grid { grid-template-columns: repeat(4, 1fr); }
.card--full { grid-column: 1 / -1; }
/* Compact, centered "chip" cards (home expertise grid) */
.chips .card { text-align: center; padding: 26px 20px; }
.chips .icon { margin-left: auto; margin-right: auto; }
.chips .card h3 { margin-bottom: 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #f7d7b6; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, #fff1e2, #ffe9d6); color: var(--primary);
}
.icon svg { width: 26px; height: 26px; }

/* ---------- Methodology timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; text-align: center; padding: 0 6px; }
.step-num {
  width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--primary); color: var(--primary); font-weight: 800; font-size: 1.15rem; position: relative; z-index: 1;
}
.steps .step:not(:last-child) .step-num::after {
  content: ""; position: absolute; top: 50%; left: calc(50% + 34px); width: calc(100% + 18px); height: 2px;
  background: linear-gradient(90deg, var(--primary), #cdd9ee); z-index: -1;
}
.step h3 { font-size: 1.02rem; }
.step p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .panel {
  background: linear-gradient(135deg, var(--ink), var(--ink-2)); border-radius: var(--radius);
  color: #fff; padding: 40px; min-height: 260px; display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow-lg);
}
.split .panel h3 { color: #fff; }
.split .panel p { color: #d6d1c9; }
.checklist { list-style: none; margin: 16px 0 0; padding: 0; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--text); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: #ffeede; color: var(--primary); display: grid; place-items: center; font-size: .8rem; font-weight: 800;
}

/* ---------- Clients ---------- */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logo-chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  height: 88px; display: grid; place-items: center; color: var(--muted); font-weight: 700; font-size: .92rem; text-align: center; padding: 0 10px;
  transition: color .2s, border-color .2s;
}
.logo-chip:hover { color: var(--ink); border-color: #f7d7b6; }
.logo-chip img { max-height: 58px; max-width: 85%; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .25s ease, opacity .25s ease; }
.logo-chip:hover img { filter: none; opacity: 1; }
.logo-chip--lg img { max-height: 72px; }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.quote p { font-size: 1.06rem; color: var(--text); font-style: italic; }
.quote .by { color: var(--muted); font-size: .92rem; font-style: normal; font-weight: 600; margin: 0; }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 800; font-size: 1.7rem;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card .role { color: var(--primary); font-weight: 600; font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: radial-gradient(800px 400px at 20% 0%, rgba(239,125,0,0.22) 0%, transparent 60%), linear-gradient(135deg, var(--ink), var(--ink-2));
  color: #fff; border-radius: var(--radius); padding: 56px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6d1c9; max-width: 52ch; margin: 0 auto 26px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .98rem; background: var(--surface); color: var(--text);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(239,125,0,.16); }
.info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.info-item .icon { width: 44px; height: 44px; margin: 0; flex: none; }
.info-item h4 { margin: 0 0 2px; font-size: 1rem; }
.info-item p { margin: 0; color: var(--muted); font-size: .96rem; }
.placeholder-note {
  font-size: .82rem; color: #9aa6bd; font-style: italic;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c4beb6; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #c4beb6; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-brand p { color: #948e85; font-size: .95rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px; font-size: .88rem; color: #948e85;
}
.footer-bottom a { color: #948e85; }
.social { display: inline-flex; gap: 10px; }
.social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.social a:hover { background: var(--primary); }
.social svg { width: 18px; height: 18px; fill: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Staggered grid reveals — cards cascade in instead of arriving all at once */
.grid > .reveal:nth-child(2) { transition-delay: .06s; }
.grid > .reveal:nth-child(3) { transition-delay: .12s; }
.grid > .reveal:nth-child(4) { transition-delay: .18s; }
.grid > .reveal:nth-child(5) { transition-delay: .24s; }
.grid > .reveal:nth-child(6) { transition-delay: .30s; }

/* Methodology — steps rise in sequence and the connectors draw left-to-right */
.steps.reveal { transform: none; }
.steps .step { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
.steps.in .step { opacity: 1; transform: none; }
.steps.in .step:nth-child(2) { transition-delay: .12s; }
.steps.in .step:nth-child(3) { transition-delay: .24s; }
.steps.in .step:nth-child(4) { transition-delay: .36s; }
.steps.in .step:nth-child(5) { transition-delay: .48s; }
.steps .step:not(:last-child) .step-num::after { transform: scaleX(0); transform-origin: left center; transition: transform .9s ease; }
.steps.in .step:not(:last-child) .step-num::after { transform: scaleX(1); }
.steps.in .step:nth-child(1) .step-num::after { transition-delay: .12s; }
.steps.in .step:nth-child(2) .step-num::after { transition-delay: .24s; }
.steps.in .step:nth-child(3) .step-num::after { transition-delay: .36s; }
.steps.in .step:nth-child(4) .step-num::after { transition-delay: .48s; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .logo-chip img { transition: none; }
  .btn:hover, .card:hover { transform: none; }
  .steps .step { opacity: 1; transform: none; transition: none; }
  .steps .step:not(:last-child) .step-num::after { transform: scaleX(1); transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 18px; }
  .steps .step .step-num::after { display: none !important; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px; gap: 4px;
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 6px 0 0; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .team-grid { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 40px 24px; }
  .hero-meta { gap: 24px; }
}
