/* ============================================================
   Simmons Fox 2.0 — Design tokens
   ============================================================ */

:root{
  /* Surfaces — sampled from Simmons Fox PDF brand materials */
  --ink:        #0C2237;
  --ink-soft:   #142E47;
  --ink-line:   rgba(232,236,243,0.14);
  --paper:      #F5F6F8;
  --paper-soft: #EBEDF2;
  --paper-line: #DBDFE6;

  /* Text */
  --text-on-ink:       #E8ECF3;
  --text-on-ink-muted: #97A2B8;
  --text-on-paper:      #101625;
  --text-on-paper-muted:#525C70;

  /* Accents — teal + lime, matched from PDF (pill badges, checkmarks, "Now" wordmark) */
  --signal:      #2E9FBD;
  --signal-deep: #23829C;
  --teal:        #46AFC8;
  --lime:        #8BC34A;
  --lime-deep:   #6FA23A;
  --brass:       #8BC34A;
  --live:        #3FA772;

  /* Type — matches the original site's typography (Google Fonts Roboto) */
  --font-display: 'Roboto', sans-serif;
  --font-body:    'Roboto', sans-serif;
  --font-mono:    'Roboto', sans-serif;

  /* Scale */
  --container: 1240px;
  --gap: 8px;
  --radius: 3px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text-on-paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: inherit;
}
h1{ font-size: clamp(2.4rem, 4.4vw, 4rem); font-weight: 700; }
h2{ font-size: clamp(1.9rem, 3vw, 2.75rem); }
h3{ font-size: 1.35rem; }
p{ margin: 0 0 16px; }
a{ color: inherit; text-decoration: none; }
img,svg{ max-width: 100%; display: block; }
ul{ margin:0; padding:0; list-style:none; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px){ .container{ padding: 0 20px; } }

.section{ padding: 96px 0; }
@media (max-width: 780px){ .section{ padding: 64px 0; } }

.on-ink{ background: var(--ink); color: var(--text-on-ink); }
.on-paper{ background: var(--paper); color: var(--text-on-paper); }
.on-paper-soft{ background: var(--paper-soft); color: var(--text-on-paper); }

/* Eyebrow / mono label — used as a structural, informational tag (network node / section identity) */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--signal);
  margin-bottom: 18px;
}
.on-ink .eyebrow{ color: #6FD2E8; }
.eyebrow::before{
  content: "";
  width: 7px; height: 7px;
  background: currentColor;
  border-radius: 50%;
  flex: none;
}

.lede{
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-on-paper-muted);
  max-width: 640px;
}
.on-ink .lede{ color: var(--text-on-ink-muted); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--signal); color: var(--ink); }
.btn-primary:hover{ background: var(--signal-deep); }
.btn-outline{ background: transparent; color: var(--text-on-paper); border-color: var(--paper-line); }
.btn-outline:hover{ border-color: var(--signal); color: var(--signal); }
.on-ink .btn-outline{ color: var(--text-on-ink); border-color: var(--ink-line); }
.on-ink .btn-outline:hover{ border-color: #6FD2E8; color: #6FD2E8; }

/* Solid green — used for primary "take action" CTAs (Find Delivery Capacity, Send Enquiry) */
.btn-green{ background: #97C156; color: var(--ink); border-color: #97C156; }
.btn-green:hover{ background: #85AE49; border-color: #85AE49; }

/* Blue outline — used for secondary CTAs (Join the Network) */
.btn-blue-outline{ background: transparent; color: #2E9FBD; border-color: #58B4D8; }
.btn-blue-outline:hover{ background: rgba(88,180,216,0.1); }
.on-ink .btn-blue-outline{ color: #6FD2E8; border-color: #58B4D8; }
.on-ink .btn-blue-outline:hover{ background: rgba(88,180,216,0.14); }
.btn-ghost{ background: transparent; color: var(--signal); padding-left: 0; padding-right: 0; }
.btn-ghost::after{ content: "→"; transition: transform 0.15s ease; }
.btn-ghost:hover::after{ transform: translateX(3px); }

.cta-row{ display:flex; gap:16px; flex-wrap:wrap; align-items:center; }

/* ---------- Nav ---------- */
.site-nav{
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,18,32,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}
.nav-inner{
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  color: var(--text-on-ink);
}
.brand{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: #fff;
  display:flex; align-items:center; gap:10px;
  white-space: nowrap;
  flex: none;
}
.brand-logo{
  width: 250px;
  max-width: 100%;
  height: auto;
  display: block;
}
.footer-col .brand-logo{ width: 306px; }
.brand .mark{
  width: 10px; height: 10px;
  background: var(--signal);
  display:inline-block;
  border-radius: 1px;
}
.container.nav-inner{ max-width: 1400px; }
.nav-links{
  display:flex; align-items:center; gap: 15px;
  font-size: 0.84rem;
  flex-wrap: wrap;
}
.nav-links a{ color: var(--text-on-ink-muted); transition: color 0.15s ease; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"]{ color: #fff; }
.nav-actions{ display:flex; align-items:center; gap: 20px; margin-left: 24px; flex: none; }
.login-link{ font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-on-ink-muted); letter-spacing: 0.04em; }
.login-link:hover{ color: #fff; }
.nav-toggle{ display:none; background:none; border:none; color:#fff; cursor:pointer; }

@media (max-width: 1240px){
  .nav-links{ display:none; }
  .nav-toggle{ display:block; }
  .nav-inner{ flex-wrap: wrap; }
  .nav-actions .btn-primary, .nav-actions .btn-blue-outline{ display:none; }
  body.nav-open .nav-links{
    display:flex; flex-direction:column; align-items:flex-start; gap:18px;
    width:100%; padding: 20px 0 8px;
  }
}

/* ---------- Footer ---------- */
.site-footer{ padding: 72px 0 40px; }
.footer-top{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 56px; border-bottom: 1px solid var(--ink-line);
}
.footer-col h4{
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-on-ink-muted); font-weight: 500; margin-bottom: 18px;
}
.footer-col ul{ display:flex; flex-direction:column; gap: 12px; }
.footer-col a{ color: var(--text-on-ink); font-size: 0.94rem; }
.footer-col a:hover{ color: #6FD2E8; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  padding-top: 28px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-on-ink-muted);
}
@media (max-width: 780px){
  .footer-top{ grid-template-columns: 1fr 1fr; }
}

/* ---------- Hero ---------- */
.hero{
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-grid{
  display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
}
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
}
.hero h1{ color:#fff; max-width: 620px; }
.hero .lede{ margin-bottom: 34px; }

/* Network mesh signature graphic */
.mesh-wrap{
  position: relative;
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(62,95,224,0.08), rgba(62,95,224,0));
  padding: 20px;
  overflow: hidden;
}
#network-canvas{
  display: block;
  width: 100%;
  aspect-ratio: 420 / 300;
  border-radius: 3px;
}
.visually-hidden{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mesh-readout{
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-on-ink-muted);
  display:flex; justify-content: space-between;
  border-top: 1px solid var(--ink-line);
  margin-top: 14px; padding-top: 14px;
  letter-spacing: 0.04em;
}
.mesh-readout strong{ color: var(--text-on-ink); font-weight: 500; }
.node-dot{ fill: var(--signal); }
.node-pulse{ fill: var(--signal); opacity: 0.35; }
.node-center{ fill: var(--lime); }
.node-center-pulse{ fill: var(--lime); }
.signal-dot{ fill: var(--teal); opacity: 0; }
.node-label{ font-family: var(--font-mono); font-size: 9px; fill: var(--text-on-ink-muted); letter-spacing: 0.03em; }
.mesh-line{ stroke: var(--ink-line); stroke-width: 1; }
@media (prefers-reduced-motion: no-preference){
  .node-pulse{ animation: pulse 2.6s ease-in-out infinite; }
  .node-center-pulse{ animation: pulse-center 2.6s ease-in-out infinite; }
  .node-pulse-outer{ animation: pulse-outer 2.6s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce){
  .signal-dot{ display: none; }
}
@keyframes pulse{
  0%,100%{ r: 5; opacity: 0.35; }
  50%{ r: 11; opacity: 0; }
}
@keyframes pulse-center{
  0%,100%{ r: 7; opacity: 0.35; }
  50%{ r: 14; opacity: 0; }
}
@keyframes pulse-outer{
  0%,100%{ r: 3.5; opacity: 0.4; }
  50%{ r: 8; opacity: 0; }
}

/* Operating footprint strip */
.footprint{
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  padding: 22px 0;
  overflow: hidden;
}
.footprint-track{
  display:flex; gap: 48px; flex-wrap: wrap; justify-content: center;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-on-paper-muted);
}
.footprint-track span b{ color: var(--text-on-paper); font-weight: 500; }

/* ---------- Cards ---------- */
.card-grid{ display:grid; gap: 24px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px){ .grid-3{ grid-template-columns: 1fr; } .grid-2{ grid-template-columns: 1fr; } }

.route-card{
  display:block;
  padding: 32px;
  border: 1px solid var(--paper-line);
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.route-card:hover{ border-color: var(--signal); transform: translateY(-2px); }
.route-card .eyebrow{ margin-bottom: 22px; }
.route-card h3{ margin-bottom: 10px; }
.route-card p{ color: var(--text-on-paper-muted); margin-bottom: 22px; }
.route-card .btn-ghost{ font-size: 0.78rem; }

/* Case study cards: labeled Challenge/Intervention/Outcome/Capabilities fields */
.case-card .case-field{ margin-bottom: 14px; font-size: 0.9rem; }
.case-card .case-field strong{ color: var(--text-on-paper); }
.case-card .case-field.capabilities{
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.01em;
  color: var(--text-on-paper-muted); margin-bottom: 0;
}
.case-card .case-field.capabilities strong{ color: var(--text-on-paper-muted); }

/* Outcomes strip (case studies page) */
.outcomes-strip{ display:flex; flex-wrap:wrap; justify-content:center; gap: 36px 52px; }
.outcome-stat{ display:flex; flex-direction:column; align-items:center; gap:4px; text-align:center; min-width:130px; }
.outcome-stat strong{ font-family: var(--font-mono); font-size: 1.9rem; font-weight:700; color: var(--lime); }
.outcome-stat span{ font-size: 0.78rem; color: var(--text-on-ink-muted); max-width:150px; }

.capability-card{
  padding: 26px 24px;
  border: 1px solid var(--ink-line);
  border-radius: 4px;
}
.capability-card h4{
  font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; margin-bottom: 8px; color:#fff;
}
.capability-card p{ color: var(--text-on-ink-muted); font-size: 0.92rem; margin: 0; }

/* ---------- Section headers ---------- */
.section-head{ max-width: 680px; margin-bottom: 56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- Process / workflow (real sequence: numbering is meaningful) ---------- */
.process{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}
.process-step{ background: var(--paper); padding: 28px 22px; }
.process-step .num{ font-family: var(--font-mono); font-size: 0.75rem; color: var(--signal); }
.process-step h4{ font-family: var(--font-body); font-weight: 600; margin: 10px 0 6px; font-size: 1.02rem; color: var(--text-on-paper); }
.process-step p{ font-size: 0.88rem; color: var(--text-on-paper-muted); margin:0; }
@media (max-width: 900px){ .process{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .process{ grid-template-columns: 1fr; } }

/* ---------- List with mono markers ---------- */
.tag-list{ display:flex; flex-wrap:wrap; gap: 10px; }
.tag{
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.03em;
  border: 1px solid var(--paper-line); border-radius: 3px; padding: 8px 12px; color: var(--text-on-paper-muted);
}
.on-ink .tag{ border-color: var(--ink-line); color: var(--text-on-ink-muted); }

.check-list{ display:flex; flex-direction:column; gap: 14px; }
.check-list li{ display:flex; gap: 12px; align-items:flex-start; font-size: 1rem; }
.check-list li::before{
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal); margin-top: 9px; flex: none;
}
.on-ink .check-list li::before{ background: #6FD2E8; }

/* ---------- CTA band ---------- */
.cta-band{
  text-align:center; padding: 88px 0;
}
.cta-band .cta-row{ justify-content:center; margin-top: 28px; }

/* ---------- misc page header for interior pages ---------- */
.page-hero{ padding: 72px 0 64px; }
.page-hero .lede{ max-width: 720px; }
.split{ display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px){ .split{ grid-template-columns: 1fr; } }

.badge-free{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--live); border: 1px solid rgba(63,167,114,0.4); background: rgba(63,167,114,0.08);
  padding: 8px 14px; border-radius: 3px; margin-bottom: 20px;
}
.badge-free::before{ content:""; width:6px; height:6px; border-radius:50%; background: var(--live); }

hr.rule{ border:none; border-top: 1px solid var(--paper-line); margin: 0; }
.on-ink hr.rule{ border-top-color: var(--ink-line); }

/* ---------- Pill badge (matches "CONCEPT INITIATIVE" style from brand PDF) ---------- */
.pill-badge{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal);
  background: rgba(70,175,200,0.14);
  border: 1px solid rgba(70,175,200,0.4);
  padding: 8px 16px; border-radius: 999px;
}

/* Lime checkmark list — used for benefit/outcome lists per brand PDF */
.check-list-lime{ display:flex; flex-direction:column; gap: 14px; }
.check-list-lime li{ display:flex; gap: 12px; align-items:flex-start; font-size: 1rem; }
.check-list-lime li::before{
  content: "✓"; color: var(--lime); font-weight: 700; font-size: 0.85rem;
  width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(139,195,74,0.5);
  display:flex; align-items:center; justify-content:center; flex: none; margin-top: 1px;
}

/* Numbered mini-badge (matches "1 Complement / 2 Connect" style from brand PDF) */
.mini-num-badge{ display:flex; gap: 12px; align-items:flex-start; }
.mini-num-badge .num{
  font-family: var(--font-mono); font-weight: 600; color: var(--teal);
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(70,175,200,0.45);
  display:flex; align-items:center; justify-content:center; font-size: 0.78rem; flex: none;
}

/* ---------- Lottie hero background ---------- */
.lottie-bg{
  position: absolute; inset: 0; z-index: 0; opacity: 0.55; pointer-events: none;
}
.hero{ position: relative; }
.hero-grid, .hero .container{ position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce){
  .lottie-bg{ display: none; }
}

/* ---------- AOS fallback (content visible even if AOS script hasn't loaded/run yet) ---------- */
[data-aos]{ opacity: 1; }

/* ---------- Forms ---------- */
.form-field{ display:flex; flex-direction:column; gap:6px; }
.form-field label{
  font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-on-paper-muted);
}
.form-field input, .form-field textarea, .form-field select{
  width:100%; padding: 12px; border: 1px solid var(--paper-line); border-radius: 3px;
  font-family: var(--font-body); font-size: 0.96rem; background: #fff; color: var(--text-on-paper);
}
.form-field input.field-invalid, .form-field textarea.field-invalid, .form-field select.field-invalid{
  border-color: #C23B3B;
}
.field-error{ font-size: 0.8rem; color: #C23B3B; min-height: 1em; }
.form-checkbox{ display:flex; align-items:flex-start; gap:10px; font-size: 0.88rem; color: var(--text-on-paper-muted); }
.form-checkbox input{ margin-top: 3px; }
.form-status{ font-family: var(--font-mono); font-size: 0.8rem; min-height: 1.2em; }
.form-status[data-kind="error"]{ color: #C23B3B; }
.form-success{
  padding: 20px; border: 1px solid rgba(63,167,114,0.4); background: rgba(63,167,114,0.08);
  border-radius: 4px; font-size: 0.98rem; color: var(--text-on-paper);
}
.form-note{ font-size: 0.8rem; color: var(--text-on-paper-muted); margin: 0; }
