/* ============================================================
   ClearwaterIQ styles.css
   Palette drawn from the ClearwaterIQ brand literature
   ============================================================ */

:root {
  --navy-900: #0b1f33;
  --navy-800: #10293f;
  --navy-700: #16334e;
  --blue-600: #1b6fb5;
  --blue-500: #2380c4;
  --blue-400: #4b9cd3;
  --blue-100: #dcecf7;
  --mist-50:  #f4f8fb;
  --ink-900:  #1d2733;
  --ink-600:  #46586a;
  --ink-400:  #74869a;
  --line-200: #dde6ee;
  --white:    #ffffff;
  --accent:   #2fa3a0;

  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1120px;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(11, 31, 51, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 14px;
}

.lede {
  font-size: 1.13rem;
  color: var(--ink-600);
  max-width: 46em;
}

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--ink-600); margin-top: 12px; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand img { height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 30px; }

.site-nav a {
  color: var(--ink-600);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--navy-900); text-decoration: none; }

.site-nav a.active {
  color: var(--navy-900);
  border-bottom-color: var(--blue-500);
}

.site-nav .nav-cta {
  background: var(--blue-600);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  border-bottom: none;
}

.site-nav .nav-cta:hover { background: var(--navy-800); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover { text-decoration: none; }

.btn-primary { background: var(--blue-600); color: var(--white); }
.btn-primary:hover { background: var(--blue-500); }

.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-outline {
  border: 1.5px solid var(--blue-600);
  color: var(--blue-600);
}
.btn-outline:hover { background: var(--blue-100); }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(35, 128, 196, 0.28), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 96px 0 88px;
}

.hero .eyebrow { color: var(--blue-400); }

.hero h1 { color: var(--white); max-width: 17em; }

.hero .lede {
  color: #c3d4e3;
  margin-top: 22px;
}

.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

/* Sub-page hero */
.page-hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 66px 0 58px;
}
.page-hero h1 { color: var(--white); }
.page-hero .lede { color: #c3d4e3; margin-top: 16px; }
.page-hero .eyebrow { color: var(--blue-400); }

/* ---------- Stat strip ---------- */

.stats {
  background: var(--white);
  border-bottom: 1px solid var(--line-200);
  padding: 34px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat .stat-num {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy-900);
}

.stat .stat-label {
  font-size: 0.88rem;
  color: var(--ink-400);
  margin-top: 2px;
}

/* ---------- Sections ---------- */

.section { padding: 84px 0; }
.section.alt { background: var(--mist-50); }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-600); font-size: 0.98rem; }

.card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: var(--blue-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card .card-icon svg { width: 22px; height: 22px; }

/* Practice pillar cards (home) */
.pillar {
  border-top: 4px solid var(--blue-600);
}

.pillar ul { margin: 14px 0 20px 0; list-style: none; }

.pillar ul li {
  padding: 7px 0 7px 26px;
  position: relative;
  color: var(--ink-600);
  font-size: 0.97rem;
  border-bottom: 1px dashed var(--line-200);
}

.pillar ul li:last-child { border-bottom: none; }

.pillar ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
}

/* ---------- CLEAR framework ---------- */

.clear-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.clear-step {
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.clear-step .letter {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-500);
  line-height: 1;
}

.clear-step h3 { font-size: 1.02rem; margin: 12px 0 8px; }
.clear-step p { font-size: 0.88rem; color: var(--ink-600); }

/* ---------- The loop (see / decide / automate) ---------- */

.loop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.loop-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-200);
  border-top: 4px solid var(--blue-600);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}

.loop-step .loop-num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-400);
  margin-bottom: 8px;
}

.loop-step h3 { margin-bottom: 10px; font-size: 1.4rem; }
.loop-step p { color: var(--ink-600); font-size: 0.98rem; }

/* Arrow between steps on wide screens */
.loop-step:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  right: -24px;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--blue-400);
  z-index: 1;
}

.loop-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 30px;
  background: var(--navy-900);
  color: #c3d4e3;
  border-radius: var(--radius);
  padding: 22px 26px;
}

.loop-note .loop-cycle {
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--blue-400);
  flex-shrink: 0;
}

/* ---------- Framework labels (CLEAR + WATER pairing) ---------- */

.framework-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--navy-900);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.framework-label.fw-second { margin-top: 56px; }

.framework-label .fw-name {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: 0.06em;
}

.framework-label .fw-desc {
  color: var(--blue-500);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fw-note {
  color: var(--ink-600);
  font-size: 0.98rem;
  max-width: 46em;
  margin-bottom: 26px;
}

/* ---------- Industry chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 12px; }

.chip {
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 500;
  color: var(--navy-800);
  font-size: 0.95rem;
}

/* ---------- NC band ---------- */

.nc-band {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.nc-band .nc-note {
  background: var(--navy-900);
  color: #c3d4e3;
  border-radius: var(--radius);
  padding: 34px 32px;
}

.nc-band .nc-note strong { color: var(--white); }

.nc-band .nc-note .big {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1.35;
  display: block;
  margin-bottom: 12px;
}

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

.cta-band {
  background:
    radial-gradient(800px 400px at 15% 120%, rgba(35, 128, 196, 0.35), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  text-align: center;
  padding: 84px 0;
}

.cta-band h2 { color: var(--white); }

.cta-band p {
  color: #c3d4e3;
  max-width: 40em;
  margin: 16px auto 0;
}

.cta-band .btn { margin-top: 32px; }

.cta-band .cta-sub { font-size: 0.9rem; color: #8fa8bd; margin-top: 18px; }

/* ---------- Services page ---------- */

.svc-section + .svc-section { margin-top: 70px; }

.svc-banner {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--navy-900);
  padding-bottom: 14px;
  margin-bottom: 34px;
}

.svc-banner h2 { margin: 0; }

.svc-banner .svc-tag {
  color: var(--blue-500);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* Process steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step {
  background: var(--navy-800);
  border-radius: var(--radius);
  padding: 26px 24px;
  color: #c3d4e3;
}

.process-step .num {
  font-family: var(--font-head);
  color: var(--blue-400);
  font-size: 1.6rem;
  font-weight: 700;
}

.process-step h3 { color: var(--white); font-size: 1.05rem; margin: 10px 0 8px; }
.process-step p { font-size: 0.9rem; }

/* ---------- About page ---------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius);
  padding: 22px 18px;
}

.value-card .letter {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--blue-500);
}

.value-card h3 { font-size: 0.98rem; margin: 8px 0 6px; }
.value-card p { font-size: 0.85rem; color: var(--ink-600); }

.person {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.person + .person { margin-top: 28px; }

.person .headshot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--blue-100), var(--mist-50));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--blue-500);
  font-weight: 700;
}

.person .role {
  color: var(--blue-500);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 4px 0 14px;
}

.person p { color: var(--ink-600); }
.person p + p { margin-top: 12px; }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-card .contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-200);
}

.contact-card .contact-line:last-child { border-bottom: none; }

.contact-card .contact-line svg {
  width: 22px;
  height: 22px;
  color: var(--blue-500);
  flex-shrink: 0;
}

.contact-card .contact-line a { font-weight: 600; font-size: 1.05rem; }

.expect-list { list-style: none; margin-top: 18px; }

.expect-list li {
  position: relative;
  padding: 10px 0 10px 34px;
  color: var(--ink-600);
}

.expect-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-100);
  border: 2px solid var(--blue-500);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: #9db2c4;
  padding: 56px 0 34px;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .footer-word {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand .footer-word span { color: var(--blue-400); }

.footer-brand .footer-tagline {
  font-style: italic;
  color: var(--blue-400);
  margin-top: 8px;
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: #9db2c4; }
.site-footer a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.85rem;
  color: #6d84999e;
  color: #6d8499;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .card-grid, .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .loop-grid { grid-template-columns: 1fr; }
  .loop-step:not(:last-child)::after {
    content: "\2193";
    top: auto;
    bottom: -26px;
    right: 50%;
    transform: translateX(50%);
  }
  .clear-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .nc-band, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .card-grid, .card-grid.two, .card-grid.four,
  .clear-grid, .values-grid, .process-grid { grid-template-columns: 1fr; }

  .person { grid-template-columns: 1fr; }
  .person .headshot { max-width: 160px; }

  .hero { padding: 68px 0 60px; }
  .section { padding: 60px 0; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line-200);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 20px;
    box-shadow: var(--shadow);
  }

  .site-nav.open { display: flex; }

  .site-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line-200); }
  .site-nav a.active { border-bottom-color: var(--line-200); color: var(--blue-600); }
  .site-nav .nav-cta { margin-top: 14px; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; }
}
