/* ============================================================
   OLIFANT TEAM — terracotta-led theme on the shared Olifant system
   Interim HR expertise · sister brand to Olifant Coaching
   Loads AFTER olifant.css and overrides the lead accent.
   ============================================================ */

:root {
  /* Terracotta becomes the lead; green stays as the family anchor */
  --lead:        var(--terra);
  --lead-deep:   var(--terra-deep);
  --lead-soft:   var(--terra-soft);
}

/* ---- Brand lockup: "Team" carries the terracotta ---- */
.brand-co.team-co { color: var(--terra); font-weight: 600; }
.footer .brand-co.team-co { color: var(--terra); }

/* ---- Brand-switch pill in the nav (Team -> Coaching) ---- */
.brand-switch {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 700; color: var(--green);
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: rgba(31,74,69,.04);
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
  white-space: nowrap;
}
.brand-switch:hover { background: var(--green); color: #FBF7EF; border-color: var(--green); }
.brand-switch svg { width: 13px; height: 13px; }
.nav-cta { gap: 12px; }

/* ---- Team leads with terracotta buttons; green is the quiet secondary ---- */
.btn-lead { background: var(--terra); color: #FFF7F2; }
.btn-lead:hover { background: var(--terra-deep); }
.btn-lead-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-lead-ghost:hover { background: var(--green); color: #FBF7EF; }

/* Eyebrow + section markers already terracotta in the base system — kept */

/* ---- Hero: two-path, companies-first ---- */
.team-hero .hero-grid { grid-template-columns: 1.05fr 1.15fr; }
.team-hero h1 { font-size: clamp(38px, 4.6vw, 60px); white-space: normal; }
.team-hero .lead { max-width: 500px; }
.hero-eyebrow { display: block; margin-bottom: 18px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; }
.hero-meta span { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 700; color: var(--green); }
.hero-meta svg { width: 17px; height: 17px; color: var(--terra); flex: none; }

/* ---- Stat strip ---- */
.statstrip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.stat {
  display: flex; flex-direction: column;
  padding: 40px 32px 36px;
  border-left: 1px solid var(--border-subtle);
  position: relative;
  transition: background-color .22s var(--ease);
}
.stat:first-child { border-left: none; }
.stat:hover { background: var(--bg-panel-soft); }
/* hairline that fills with terracotta on hover */
.stat::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--terra);
  transition: width .35s var(--ease);
}
.stat:hover::after { width: 100%; }
.stat .num {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--serif); font-weight: 560;
  font-size: clamp(36px, 4.1vw, 52px); color: var(--ink);
  line-height: 1; letter-spacing: -.015em;
  font-variant-numeric: lining-nums tabular-nums;
}
.stat .num .unit {
  font-family: var(--sans); font-weight: 800;
  font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--terra);
}
.stat .lbl {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 15px; color: var(--ink-soft); line-height: 1.5;
  text-wrap: pretty;
}

/* ---- Expertise / roles grid ---- */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px 26px 26px; display: flex; flex-direction: column;
  transition: border-color .2s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.role:hover { border-color: var(--border-strong); box-shadow: var(--sh-md); transform: translateY(-4px); }
.role .ric { width: 46px; height: 46px; border-radius: 12px; background: var(--terra-soft); color: var(--terra-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.role .ric svg { width: 23px; height: 23px; }
.role h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--green); line-height: 1.14; }
.role p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.55; margin-top: 9px; }
.role .tag { margin-top: 16px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--terra); }

/* ---- Scenarios: "when to bring us in" ---- */
.scen-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.scen-art img { width: 100%; border-radius: 16px; box-shadow: var(--sh-md); }
.scen-cap { font-family: var(--script); font-size: 21px; color: var(--ink-soft); text-align: center; margin-top: 12px; }
.scen-list { display: grid; gap: 0; }
.scen {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 14px; margin: 0 -14px;
  border-top: 1px solid var(--border); border-radius: 10px;
  transition: background-color .18s var(--ease);
}
.scen-list .scen:last-child { border-bottom: 1px solid var(--border); }
.scen:hover { background: var(--bg-panel-soft); }
.scen .sn { font-family: var(--script); font-size: 22px; color: var(--terra); flex: none; width: 28px; line-height: 1.2; }
.scen .stxt h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--green); }
.scen .stxt p { font-size: 15.5px; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }

/* ---- Terracotta feature panel (cost of an HR gap) ---- */
.team-dark { background: var(--terra-deep); }
.team-dark .dark-body .eyebrow { color: #F6E0C6; }
.team-dark .dark-body h2 { color: #FFF7F2; }
.team-dark .dark-body .intro,
.team-dark .dark-foot { color: #F3DACB; }
.team-dark .dark-foot b { color: #FBEBD9; }
.team-dark .cost-item { color: #FBEEE4; }
.team-dark .cost-item .ic { background: rgba(255,247,242,.16); color: #FFF1E4; }
.team-dark .dark-art::after { background: linear-gradient(90deg, transparent 80%, color-mix(in srgb, var(--terra-deep) 40%, transparent) 94%, var(--terra-deep) 100%); }

/* prettier cost panel: roomy body + card grid */
.team-dark .dark-body { padding: 72px clamp(32px, 6vw, 88px); }
.team-dark .dark-body .intro { margin-bottom: 36px; }
.team-dark .cost-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px; margin-bottom: 38px;
}
.team-dark .cost-item {
  flex-direction: column; align-items: flex-start; gap: 16px;
  padding: 24px 22px 26px; border-radius: 16px;
  background: rgba(255,247,242,.07);
  border: 1px solid rgba(255,247,242,.14);
  font-weight: 600; line-height: 1.3;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.team-dark .cost-item:hover {
  background: rgba(255,247,242,.12);
  border-color: rgba(255,247,242,.28);
  transform: translateY(-3px);
}
.team-dark .cost-item .ic { width: 44px; height: 44px; }
.team-dark .cost-item .ic svg { width: 22px; height: 22px; }
.team-dark .dark-foot { font-size: 18px; padding-top: 4px; border-top: 1px solid rgba(255,247,242,.14); padding-top: 28px; }
@media (max-width: 1040px) { .team-dark .cost-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .team-dark .cost-grid { grid-template-columns: 1fr 1fr; } }

/* ---- Network / HR-professionals band + CV form ---- */
.network { background: var(--green); border-radius: 22px; overflow: hidden; color: #EDE7DA; }
.network-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.network-copy { padding: 56px clamp(34px, 4vw, 56px); }
.network-copy .eyebrow { color: var(--gold); display: block; margin-bottom: 16px; }
.network-copy h2 { color: #FBF7EF; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; }
.network-copy .nlead { color: #CFD4CB; font-size: 18px; line-height: 1.55; margin-top: 18px; max-width: 440px; }
.nbenefits { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.nbenefits li { display: flex; align-items: flex-start; gap: 11px; font-size: 15.5px; color: #E7E2D6; line-height: 1.4; }
.nbenefits svg { width: 19px; height: 19px; color: var(--gold); flex: none; margin-top: 1px; }

.cvform { background: #FBF6EF; padding: 48px clamp(30px, 3.4vw, 48px); }
.cvform h3 { font-family: var(--serif); font-weight: 600; font-size: 25px; color: var(--green); }
.cvform .fsub { font-size: 15px; color: var(--ink-soft); margin-top: 6px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 10px;
  background: #fff; transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(217,119,87,.16); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.filedrop {
  border: 1.5px dashed var(--border-strong); border-radius: 10px; background: #fff;
  padding: 18px; text-align: center; cursor: pointer; color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.filedrop:hover { border-color: var(--terra); background: var(--bg-panel-soft); }
.filedrop svg { width: 24px; height: 24px; color: var(--terra); }
.filedrop b { color: var(--green); font-size: 15px; }
.filedrop span { font-size: 13px; }
.filedrop input { display: none; }
.cvform .btn { width: 100%; justify-content: center; margin-top: 6px; }
.cvform .fnote { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 14px; line-height: 1.5; }

/* ---- "Part of the Olifant family" connection band ---- */
.family-band {
  display: block; text-align: center;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.family-band-text { max-width: 720px; margin: 0 auto; }
.family-band-text .eyebrow { display: block; margin-bottom: 14px; }
.family-band-text h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 14px; }
.family-band-text > p { color: var(--ink-soft); font-size: 18px; line-height: 1.6; margin: 0 auto 18px; max-width: 640px; }
.family-band-text .family-script { font-family: var(--script); font-size: 21px; color: var(--ink-soft); margin: 0; }
.textlink-inline { color: var(--green-700); text-decoration: none; border-bottom: 1px solid color-mix(in oklab, var(--green-700) 35%, transparent); transition: border-color .2s var(--ease); }
.textlink-inline:hover { border-bottom-color: var(--green-700); }

/* family band with photo */
.family-band--split {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px); align-items: center; text-align: left;
}
.family-band--split .family-band-text { margin: 0; max-width: none; }
.family-band--split .family-band-text > p { margin-left: 0; margin-right: 0; }
.family-band-photo { width: 100%; border-radius: 16px; box-shadow: var(--sh-md); display: block; }
@media (max-width: 860px) {
  .family-band--split { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .family-band--split .family-band-text { max-width: 640px; margin: 0 auto; }
  .family-band--split .family-band-text > p { margin-left: auto; margin-right: auto; }
  .family-band-photo { order: -1; max-width: 520px; margin: 0 auto; }
}

/* warm photo inside the green HR-network panel */
.network-photo { width: 100%; border-radius: 14px; display: block; margin-top: 30px; box-shadow: var(--sh-md); }

/* ---- Final two-path CTA ---- */
.dualcta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dual {
  border: 1px solid var(--border); border-radius: 18px; padding: 44px 40px;
  display: flex; flex-direction: column; background: var(--bg-surface);
  transition: border-color .2s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.dual:hover { border-color: var(--border-strong); box-shadow: var(--sh-md); transform: translateY(-4px); }
.dual.lead-card { background: var(--green); border-color: var(--green); }
.dual .deyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--terra); margin-bottom: 14px; }
.dual.lead-card .deyebrow { color: var(--gold); }
.dual h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.6vw, 31px); line-height: 1.1; color: var(--green); }
.dual.lead-card h3 { color: #FBF7EF; }
.dual p { font-size: 16px; color: var(--ink-soft); line-height: 1.55; margin: 14px 0 26px; }
.dual.lead-card p { color: #CFD4CB; }
.dual .btn { align-self: flex-start; margin-top: auto; }

/* ---- Footer cross-link emphasis (Team -> Coaching) ---- */
.footer .brand-co.team-co { color: var(--terra); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .team-hero .hero-grid { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr 1fr; }
  .scen-grid { grid-template-columns: 1fr; gap: 36px; }
  .scen-art { order: -1; max-width: 520px; margin: 0 auto; }
  .network-grid { grid-template-columns: 1fr; }
  .family { grid-template-columns: 1fr; gap: 34px; }
  .family-art { order: -1; max-width: 520px; margin: 0 auto; }
  .statstrip { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid var(--border); }
  .stat:first-child, .stat:nth-child(2) { border-top: none; }
  .dualcta { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .roles { grid-template-columns: 1fr; }
  .statstrip { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--border); }
  .stat:first-child { border-top: none; }
  .field-row { grid-template-columns: 1fr; }
  .fam-two { grid-template-columns: 1fr; }
  .network-copy, .cvform { padding: 36px 26px; }
}
/* Team nav is wider than Coaching's (longer labels + brand-switch pill),
   so it must collapse to the mobile toggle earlier — ~1160px instead of 900px. */
@media (max-width: 1160px) {
  .nav-menu, .nav-cta .btn { display: none; }
  .brand-switch { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-open .mobile-menu {
    display: block; position: fixed; inset: 76px 0 0; z-index: 49;
    background: var(--bg-page); padding: 24px 32px; overflow-y: auto;
  }
  .mobile-open { overflow: hidden; }
  .mm-link { display: block; font-family: var(--serif); font-size: 26px; color: var(--green); padding: 14px 0; border-bottom: 1px solid var(--border); }
}
