/* ============================================================
   AI Compass Labs — brand system
   Teal:    hsl(173 50% 45%)
   Emerald: hsl(158 64% 52%)
   ============================================================ */

:root {
  --teal: hsl(173 50% 45%);
  --teal-dark: hsl(173 60% 35%);
  --emerald: hsl(158 64% 52%);
  --fg: hsl(222.2 84% 4.9%);
  --muted-fg: hsl(215.4 16.3% 46.9%);
  --bg: #ffffff;
  --secondary: hsl(173 20% 95%);
  --secondary-fg: hsl(173 50% 15%);
  --border: hsl(214.3 31.8% 91.4%);
  --brand-gradient: linear-gradient(135deg, hsl(173 50% 45%), hsl(158 64% 52%));
  --hero-gradient: linear-gradient(135deg, hsl(0 0% 100%), hsl(173 50% 96%));
  --shadow-brand: 0 10px 30px -10px hsl(173 50% 45% / .3);
  --shadow-card: 0 4px 20px -4px hsl(222 47% 11% / .08);
  --radius: 0.75rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p.lead { font-size: 1.2rem; color: var(--muted-fg); }
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-dark);
  background: var(--secondary);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: hsl(0 0% 100% / .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--fg); }
.brand img { height: 2.4rem; width: auto; }
.brand span { font-weight: 800; font-size: 1.05rem; }

nav.main-nav { display: flex; align-items: center; gap: 0.25rem; }
nav.main-nav > div, nav.main-nav > a { position: relative; }
nav.main-nav a {
  text-decoration: none; color: var(--fg);
  font-size: 0.92rem; font-weight: 600;
  padding: 0.55rem 0.8rem; border-radius: 0.5rem;
  display: inline-block;
}
nav.main-nav a:hover { background: var(--secondary); color: var(--teal-dark); }

.dropdown .drop-menu {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 15rem; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 0.4rem;
}
.dropdown:hover .drop-menu, .dropdown:focus-within .drop-menu { display: block; }
.drop-menu a { display: block; width: 100%; padding: 0.55rem 0.75rem; }

.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-weight: 700; font-size: 0.95rem;
  padding: 0.75rem 1.5rem; border-radius: 0.6rem;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  border: none; cursor: pointer;
}
.btn-primary { background: var(--brand-gradient); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px hsl(173 50% 45% / .45); }
.btn-outline { border: 2px solid var(--teal); color: var(--teal-dark); background: transparent; }
.btn-outline:hover { background: var(--secondary); }
.btn-lg { padding: 0.95rem 2rem; font-size: 1.05rem; }

.nav-cta { margin-left: 0.5rem; }

/* mobile nav */
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--fg); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    display: none; position: absolute; top: 4.5rem; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 1rem;
  }
  nav.main-nav.open { display: flex; }
  .dropdown .drop-menu { display: block; position: static; border: none; box-shadow: none; padding-left: 1rem; min-width: 0; }
  .nav-cta { margin: 0.5rem 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--hero-gradient);
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero p.lead { margin: 1.25rem 0 2rem; max-width: 34rem; }
.hero-img img { border-radius: 1.25rem; box-shadow: var(--shadow-brand); }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; }
section.tinted { background: var(--secondary); }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 3rem; }
.section-head p { color: var(--muted-fg); margin-top: 0.9rem; font-size: 1.08rem; }

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

.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-brand); }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted-fg); font-size: 0.95rem; }
.card .tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  color: var(--teal-dark); background: var(--secondary);
  padding: 0.2rem 0.7rem; border-radius: 999px; margin-bottom: 0.9rem;
}
.card a.card-link { color: var(--teal-dark); font-weight: 700; text-decoration: none; font-size: 0.92rem; }
.card a.card-link:hover { text-decoration: underline; }

.icon-dot {
  width: 3rem; height: 3rem; border-radius: 0.8rem;
  background: var(--brand-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1.1rem;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; text-align: center; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-number { font-size: 2.3rem; font-weight: 800; }
.stat-label { color: var(--muted-fg); font-size: 0.88rem; }

/* ---------- Journey steps ---------- */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: step; }
@media (max-width: 900px) { .journey { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .journey { grid-template-columns: 1fr; } }
.journey .step { position: relative; padding: 1.5rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); }
.journey .step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--brand-gradient); color: #fff; font-weight: 800;
  margin-bottom: 0.9rem;
}
.journey .step h3 { font-size: 1.05rem; }
.journey .step p { color: var(--muted-fg); font-size: 0.88rem; margin-top: 0.4rem; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: #fff; border-left: 4px solid var(--teal);
  border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.quote-card blockquote { font-size: 1.02rem; font-style: italic; margin-bottom: 1rem; }
.quote-attr { display: flex; align-items: center; gap: 0.8rem; }
.quote-attr img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; }
.quote-attr strong { display: block; font-size: 0.95rem; }
.quote-attr span { color: var(--muted-fg); font-size: 0.85rem; }

/* ---------- Partner logos ---------- */
.logo-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 2.5rem 3rem;
}
.logo-row img {
  height: 2.6rem; width: auto; max-width: 9rem; object-fit: contain;
  filter: grayscale(1); opacity: 0.65; transition: all .25s ease;
}
.logo-row img:hover { filter: none; opacity: 1; }

/* ---------- Checklist ---------- */
ul.check { list-style: none; }
ul.check li { padding-left: 1.9rem; position: relative; margin-bottom: 0.7rem; color: var(--muted-fg); }
ul.check li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--emerald); font-weight: 800;
}
ul.check li strong { color: var(--fg); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: 1.25rem; box-shadow: var(--shadow-brand); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--brand-gradient); color: #fff;
  border-radius: 1.25rem; padding: 3.5rem 2.5rem; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: hsl(0 0% 100% / .85); max-width: 38rem; margin: 1rem auto 2rem; font-size: 1.1rem; }
.cta-band .btn { background: #fff; color: var(--teal-dark); }
.cta-band .btn:hover { transform: translateY(-2px); }

/* ---------- Compass framework ---------- */
.compass-letter {
  font-size: 2.6rem; font-weight: 800; line-height: 1;
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 0.5rem;
}
.key-insight {
  background: var(--secondary); border-radius: 0.6rem;
  padding: 0.8rem 1rem; font-size: 0.88rem; font-weight: 600;
  color: var(--secondary-fg); margin-top: 1rem;
}

/* ---------- Case study pages ---------- */
.case-hero { background: var(--hero-gradient); padding: 4rem 0 3rem; }
.case-hero .org-logo { height: 4.5rem; width: auto; margin-bottom: 1.5rem; object-fit: contain; }
.case-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.case-meta span {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 0.4rem 1rem; font-size: 0.85rem; font-weight: 600; color: var(--muted-fg);
}
.prose { max-width: 46rem; margin: 0 auto; }
.prose h2 { margin: 2.5rem 0 1rem; }
.prose h3 { margin: 1.8rem 0 0.6rem; }
.prose p { color: var(--muted-fg); margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.4rem; color: var(--muted-fg); }
.prose li { margin-bottom: 0.45rem; }

/* ---------- Photo strip ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 620px) { .photo-strip { grid-template-columns: 1fr; } }
.photo-strip img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ---------- Footer ---------- */
footer.site-footer { background: hsl(222.2 47% 8%); color: hsl(210 40% 85%); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { font-size: 0.92rem; color: hsl(210 20% 65%); max-width: 20rem; }
footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.55rem; }
footer a { color: hsl(210 20% 70%); text-decoration: none; font-size: 0.92rem; }
footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid hsl(217 33% 18%); padding-top: 1.5rem; text-align: center; font-size: 0.85rem; color: hsl(210 20% 55%); }

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
