/* ==========================================================================
   Combine Cosourcing LLC — design tokens
   Palette: navy/blue brand family lifted from the logo, one semantic
   "savings" green used only for discount/unlock moments.
   Type: Space Grotesk (display) + Inter (body) + IBM Plex Mono (data/labels)
   ========================================================================== */

:root{
  --navy-ink:     #0D1F35;
  --brand-deep:   #16375C;
  --brand-blue:   #2B5D93;
  --brand-sky:    #7FA8D9;
  --brand-sky-tint: #E7F0FB;

  --bg:           #F6F8FB;
  --surface:      #FFFFFF;
  --line:         #DCE4EE;

  --text:         #1C2B3A;
  --text-muted:   #57687D;
  --text-inverse: #F2F6FC;

  --savings:      #227A5E;
  --savings-tint: #E4F5EE;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-mono:    'Space Grotesk', 'Segoe UI', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

html{ scroll-behavior: smooth; }

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

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

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

h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--navy-ink);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p{ margin: 0; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-blue);
  font-weight: 500;
}

.lede{
  font-size: 19px;
  color: var(--text-muted);
  max-width: 56ch;
}

/* ---------- buttons ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.btn:focus-visible{ outline: 2px solid var(--brand-sky); outline-offset: 3px; }

.btn-primary{
  background: var(--navy-ink);
  color: var(--text-inverse);
}
.btn-primary:hover{ background: var(--brand-deep); transform: translateY(-1px); }

.btn-ghost{
  background: transparent;
  border-color: var(--line);
  color: var(--navy-ink);
}
.btn-ghost:hover{ border-color: var(--brand-blue); color: var(--brand-blue); }

/* ---------- header / nav ---------- */

.topbar{
  background: var(--navy-ink);
  color: var(--text-inverse);
  font-family: var(--font-mono);
  font-size: 13px;
}
.topbar .wrap{
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a{ opacity: 0.85; }
.topbar a:hover{ opacity: 1; }

.site-header{
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img{ width: 64px; height: 64px; object-fit: contain; }
.brand-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--navy-ink);
  line-height: 1.15;
}
.brand-name span{
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  text-transform: uppercase;
}

.main-nav ul{
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  font-weight: 500;
  font-size: 15px;
}
.main-nav a{
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
}
.main-nav a:hover, .main-nav a[aria-current="page"]{
  color: var(--navy-ink);
  border-bottom-color: var(--brand-blue);
}

.nav-toggle{ display: none; }

.brand-feature img{ width: 100px; height: 100px; }
.brand-feature .brand-name{ font-size: 26px; }
.brand-feature .brand-name span{ font-size: 14px; }
.site-header--feature .wrap{ padding-top: 20px; padding-bottom: 20px; }

/* ---------- footer ---------- */

.site-footer{
  background: var(--navy-ink);
  color: var(--text-inverse);
  margin-top: 96px;
}
.footer-inner{
  padding: 56px 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-inner .brand-name{ color: var(--text-inverse); }
.footer-inner .brand-name span{ color: var(--brand-sky); }
.footer-brand{ display: flex; align-items: center; gap: 14px; }
.footer-brand img{ width: 52px; height: 52px; object-fit: contain; }
.footer-blurb{
  margin-top: 14px;
  color: #A9BBD1;
  max-width: 40ch;
  font-size: 14px;
}
.footer-col h4{
  color: var(--text-inverse);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul{ list-style: none; margin: 0; padding: 0; }
.footer-col li{ margin-bottom: 10px; font-size: 14px; }
.footer-col a{ color: #C3D2E4; }
.footer-col a:hover{ color: var(--text-inverse); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0 28px;
  font-size: 13px;
  color: #7C90A8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- section scaffolding ---------- */

section{ padding: 88px 0; }
section.tight{ padding: 56px 0; }
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head h2{ font-size: 34px; margin-top: 10px; }

.surface{ background: var(--surface); }
.tinted{ background: var(--brand-sky-tint); }

.page-hero{
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1{ font-size: 40px; margin-top: 10px; }
.page-hero .lede{ margin-top: 16px; }

/* ---------- home hero ---------- */

.hero{
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--line);
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1{
  font-size: 46px;
  margin-top: 0;
}
.hero-copy p{
  font-size: 19px;
  color: var(--text-muted);
  max-width: 56ch;
  margin-top: 16px;
}
.hero-copy p:first-child{ margin-top: 20px; }
.hero-actions{
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-actions .contact-inline{
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- signature visual: the combine line ---------- */

.combine-viz{
  background: var(--navy-ink);
  border-radius: var(--radius-md);
  padding: 32px 28px 28px;
  color: var(--text-inverse);
  overflow: hidden;
  position: relative;
}
.combine-viz .viz-label{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9FB6D2;
  margin-bottom: 22px;
}
.viz-track{
  position: relative;
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.viz-threshold{
  position: absolute;
  left: 0; right: 0;
  top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.35);
}
.viz-threshold span{
  position: absolute;
  right: 0;
  top: -20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #9FB6D2;
}
.viz-block{
  width: 28px;
  background: var(--brand-blue);
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 600ms ease forwards;
}
.viz-block:nth-child(1){ height: 34px; animation-delay: 0.1s; }
.viz-block:nth-child(2){ height: 52px; animation-delay: 0.25s; }
.viz-block:nth-child(3){ height: 40px; animation-delay: 0.4s; }
.viz-block:nth-child(4){ height: 64px; animation-delay: 0.55s; }
.viz-block:nth-child(5){ height: 46px; animation-delay: 0.7s; }
.viz-block:nth-child(6){ height: 58px; animation-delay: 0.85s; }
@keyframes rise{ to{ opacity: 1; transform: translateY(0); } }

.viz-result{
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.14);
  opacity: 0;
  animation: fadein 700ms ease forwards;
  animation-delay: 1.05s;
}
@keyframes fadein{ to{ opacity: 1; } }
.viz-result .qty{ font-family: var(--font-mono); font-size: 13px; color: #C3D2E4; }
.viz-tag{
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  background: var(--savings);
  color: #EAFBF3;
  padding: 6px 12px;
  border-radius: 20px;
}

/* ---------- stat strip ---------- */

.stat-strip{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.stat{ text-align: left; }
.stat .num{
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 500;
  color: var(--navy-ink);
}
.stat .label{ color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* ---------- process (real sequence -> numbered) ---------- */

.process-list{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  position: relative;
}
.process-step .step-num{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-sky);
  background: var(--navy-ink);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.process-step h3{ font-size: 17px; margin-bottom: 8px; }
.process-step p{ color: var(--text-muted); font-size: 14.5px; }

/* ---------- card grids ---------- */

.card-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
}
.card h3{ font-size: 19px; margin-bottom: 10px; }
.card p{ color: var(--text-muted); font-size: 15px; }
.card .tag{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 12px;
  display: inline-block;
}

/* ---------- service detail rows ---------- */

.service-row{
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.service-row:last-child{ border-bottom: none; }
.service-row .idx{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-blue);
}
.service-row h3{ font-size: 24px; margin-top: 8px; }
.service-row ul{ margin: 18px 0 0; padding-left: 20px; color: var(--text-muted); }
.service-row li{ margin-bottom: 8px; font-size: 15px; }
.service-row p{ color: var(--text-muted); font-size: 15.5px; }

/* ---------- CTA band ---------- */

.cta-band{
  background: var(--navy-ink);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2{ color: var(--text-inverse); font-size: 28px; }
.cta-band p{ color: #B7C6DA; margin-top: 10px; max-width: 46ch; }
.cta-band .btn-primary{ background: var(--brand-sky); color: var(--navy-ink); }
.cta-band .btn-primary:hover{ background: #9BC0E4; }

/* ---------- contact page ---------- */

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px;
}
.contact-card .tag{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
}
.contact-card .value{
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--navy-ink);
  margin-top: 10px;
}
.contact-card .value a:hover{ color: var(--brand-blue); }
.contact-card .note{ color: var(--text-muted); font-size: 14px; margin-top: 10px; }

.hours-table{ width: 100%; border-collapse: collapse; margin-top: 8px; }
.hours-table td{ padding: 8px 0; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.hours-table td:last-child{ text-align: right; font-family: var(--font-mono); color: var(--text-muted); }

/* ---------- about page ---------- */

.value-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-item h3{ font-size: 17px; margin-bottom: 8px; }
.value-item p{ color: var(--text-muted); font-size: 14.5px; }
.value-item .mark{
  font-family: var(--font-mono);
  color: var(--brand-sky);
  font-size: 22px;
}

.pool-diagram{
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.pool-node{
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 16px;
  color: var(--text-muted);
}
.pool-arrow{ color: var(--brand-sky); font-size: 20px; }
.pool-hub{
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--navy-ink);
  color: var(--text-inverse);
  border-radius: 20px;
  padding: 10px 20px;
  font-weight: 500;
}

/* ---------- service categories (dark panel) ---------- */

.categories-section{
  background: linear-gradient(160deg, var(--navy-ink) 0%, var(--brand-deep) 100%);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  padding: 56px 48px 60px;
}
.categories-section .section-head{ max-width: 640px; }
.categories-section .section-head h2{ color: var(--text-inverse); }
.categories-section .eyebrow{ color: var(--brand-sky); }

.category-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.category-card{
  padding: 0 36px 8px;
  position: relative;
}
.category-card + .category-card{
  border-left: 1px solid rgba(255,255,255,0.14);
}
.category-image{
  width: 100%;
  aspect-ratio: 1.2 / 1;
  max-width: 220px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9FB6D2;
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  padding: 12px;
}
.category-image svg{ width: 28px; height: 28px; opacity: 0.7; }

img.category-image{
  border: none;
  background: none;
  padding: 0;
  object-fit: cover;
  display: block;
}
.category-card h3{
  color: var(--text-inverse);
  font-size: 22px;
  margin-top: 22px;
}
.category-card p{
  color: #B7C6DA;
  font-size: 15px;
  margin-top: 10px;
}

.pill-cta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy-ink);
  background: linear-gradient(90deg, #63B5F5 0%, #2F8FE0 100%);
  padding: 16px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.pill-cta:hover{ transform: translateY(-1px); box-shadow: 0 8px 20px rgba(47,143,224,0.35); }
.pill-cta:focus-visible{ outline: 2px solid var(--text-inverse); outline-offset: 3px; }
.categories-section .pill-wrap{ margin-top: 44px; }

@media (max-width: 700px){
  .category-card + .category-card{ border-left: none; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 32px; }
  .category-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .process-list{ grid-template-columns: repeat(2, 1fr); }
  .card-grid{ grid-template-columns: 1fr; }
  .service-row{ grid-template-columns: 1fr; gap: 16px; }
  .contact-grid{ grid-template-columns: 1fr; }
  .value-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
  .stat-strip{ grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 700px){
  .main-nav{
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.open{ display: block; }
  .main-nav ul{ flex-direction: column; gap: 0; padding: 8px 32px 16px; }
  .main-nav li{ border-bottom: 1px solid var(--line); }
  .main-nav a{ display: block; padding: 12px 0; border-bottom: none; }
  .nav-toggle{
    display: inline-flex;
    background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 4px; padding: 6px;
  }
  .nav-toggle span{ width: 22px; height: 2px; background: var(--navy-ink); display: block; }
  .hero h1{ font-size: 32px; }
  .page-hero h1{ font-size: 30px; }
  .topbar .wrap{ justify-content: center; }
  .cta-band{ flex-direction: column; align-items: flex-start; }
}
