/* ==========================================================================
   Cascada Consulting — site styles
   Plain CSS, no build step. Custom properties at the top are the design tokens.
   ========================================================================== */

:root {
  /* Brand */
  --navy: #0f2a4a;        /* headings, header text, footer bg */
  --blue: #478eeb;        /* original Squarespace brand blue — decorative use only */
  --blue-deep: #1e5fc2;   /* links, buttons: 6.05:1 on white, 6.05:1 with white text */
  --sky: #9cc4f5;         /* eyebrow/accent text on navy: 8:1 */
  --sky-soft: #dce9fa;

  /* Neutrals */
  --ink: #1f2933;         /* body text: 14.8:1 on white */
  --muted: #52606d;       /* secondary text: 6.5:1 on white */
  --bg: #ffffff;
  --bg-soft: #f2f6fc;
  --line: #d9e2ef;

  /* Type */
  --font-body: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-brand: 'Montserrat', 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Fluid scale */
  --step--1: clamp(0.94rem, 0.92rem + 0.1vw, 1rem);
  --step-0: clamp(1.06rem, 1.02rem + 0.2vw, 1.19rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 2.75rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.5vw, 3.75rem);

  --measure: 66ch;
  --container: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 3px;
  --shadow: 0 1px 2px rgba(15, 42, 74, .08);
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p, ul, ol { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.eyebrow { display: block; font-size: var(--step--1); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: .75em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .eyebrow { color: var(--sky); }
.section--navy .lead { color: var(--sky-soft); }
.section-head { max-width: var(--measure); margin-bottom: clamp(2rem, 4vw, 3rem); }

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute; left: 1rem; top: -100%;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius) var(--radius);
  z-index: 1000; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .9rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--navy); text-decoration: none; }
.brand__mark { width: 2.6rem; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-brand); font-weight: 500; font-size: 1.25rem; letter-spacing: .01em; }
.brand__tag { font-family: var(--font-brand); font-weight: 400; font-size: .76rem; letter-spacing: .03em; color: var(--muted); margin-top: .2rem; }
.brand:hover .brand__name { color: var(--blue-deep); }
@media (max-width: 30em) {
  .site-header__inner { gap: .75rem; }
  .site-header .brand { gap: .5rem; }
  .site-header .brand__name { font-size: 1rem; white-space: nowrap; }
  .site-header .brand__tag { display: none; }
  .site-header .brand__mark { width: 2rem; }
  .nav-toggle { padding: .55rem; min-width: 44px; justify-content: center; }
  .nav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.nav-toggle {
  display: none; appearance: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .55rem .75rem; color: var(--navy); font: inherit; font-weight: 600; cursor: pointer;
  align-items: center; gap: .5rem; min-height: 44px;
}
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a {
  display: inline-block; padding: .55rem .85rem; border-radius: var(--radius);
  color: var(--navy); font-weight: 600; font-size: var(--step--1); text-decoration: none; letter-spacing: .01em;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--blue-deep); }
.site-nav a[aria-current="page"] { color: var(--blue-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; text-decoration-color: var(--blue-deep); }
.site-nav .nav-cta a { background: var(--blue-deep); color: #fff; margin-left: .5rem; }
.site-nav .nav-cta a:hover { background: var(--navy); color: #fff; }
.site-nav .nav-cta a[aria-current="page"] { background: var(--navy); color: #fff; text-decoration: none; }

@media (max-width: 59.99em) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1rem; }
  .site-nav a { display: block; padding: .9rem .75rem; font-size: var(--step-0); border-radius: var(--radius); }
  .site-nav a[aria-current="page"] { background: var(--sky-soft); color: var(--blue-deep); text-decoration: none; }
  .site-nav .nav-cta a { margin: .5rem 0 0; text-align: center; }
  /* Without JS the toggle is hidden and the nav is always visible */
  .no-js .nav-toggle { display: none; }
  .no-js .site-nav { display: block; position: static; box-shadow: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--navy);
  padding-block: clamp(4rem, 10vw, 8rem);
}
.hero h1 { color: #fff; max-width: 20ch; margin-bottom: .5em; }
.hero .lead { color: var(--sky-soft); max-width: 48ch; }
.hero .eyebrow { color: var(--sky); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__mark {
  position: absolute; right: -4%; bottom: -12%; width: clamp(16rem, 42vw, 34rem); opacity: .07; pointer-events: none;
}
@media (max-width: 47.99em) { .hero__mark { width: 18rem; right: -6rem; bottom: -5rem; opacity: .08; } }
@media (max-width: 30em) { .hero__actions { flex-direction: column; align-items: stretch; } }

.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero h1 { margin-bottom: .35em; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--blue-deep); color: #fff; }
.btn--primary:hover { background: var(--navy); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--outline { background: transparent; color: var(--blue-deep); border-color: var(--blue-deep); }
.btn--outline:hover { background: var(--blue-deep); color: #fff; }
.hero .btn--primary { background: #fff; color: var(--navy); }
.hero .btn--primary:hover { background: var(--sky-soft); }

/* --------------------------------------------------------------------------
   Cards / grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
@media (min-width: 36em) and (max-width: 55.99em) { .grid--3 > :nth-child(3):last-child { grid-column: 1 / -1; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem);
}
.card h3 { font-size: var(--step-1); margin-top: 1rem; }
.card p { color: var(--muted); }
.card__icon { width: 3.75rem; height: 3.75rem; border-radius: var(--radius); background: var(--sky-soft); display: grid; place-items: center; }
.card__icon svg { width: 2.75rem; height: 2.75rem; }
.card--num { counter-increment: step; position: relative; }
.card--num::before {
  content: counter(step, decimal-leading-zero); font-family: var(--font-brand); font-weight: 500;
  color: var(--blue-deep); font-size: var(--step-1); letter-spacing: .05em; display: block; margin-bottom: .75rem;
}
.steps { counter-reset: step; }
.card--num h3 { margin-top: 0; }

/* Split layout (text + aside) */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 56em) { .split { grid-template-columns: 1.15fr .85fr; } }
.split--reverse > :first-child { order: 2; }

.split__aside-title { font-size: var(--step-1); margin-top: .4em; }
.h-lg { font-size: var(--step-2); }

/* Focus-area list */
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; max-width: none; }
.pill-list li { background: var(--bg-soft); border: 1px solid var(--line); color: var(--navy); border-radius: var(--radius); padding: .4rem .8rem; font-weight: 600; font-size: var(--step--1); }

/* Check list */
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .9rem; }
.check-list li::before {
  content: ""; position: absolute; left: .25rem; top: .6em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--blue-deep);
}

/* --------------------------------------------------------------------------
   People
   -------------------------------------------------------------------------- */
.person { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 42em) { .person { grid-template-columns: 14rem 1fr; gap: 2.5rem; } }
.person { max-width: 62rem; }
.person + .person { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.person__photo { width: 12rem; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 42em) { .person__photo { width: 100%; } }
.person__role { color: var(--blue-deep); font-weight: 600; margin: -.25rem 0 1rem; }
.person h2 { font-size: var(--step-2); margin-bottom: .25em; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band { background: var(--navy); color: #fff; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta-band h2 { color: #fff; margin: 0 0 .25em; font-size: var(--step-2); }
.cta-band p { color: var(--sky-soft); margin: 0; }
.cta-band .btn--primary { background: #fff; color: var(--navy); }
.cta-band .btn--primary:hover { background: var(--sky-soft); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); }
.contact-card h2 { font-size: var(--step-1); }
.contact-email { font-size: var(--step-1); font-weight: 600; margin: 1.25rem 0; }
@media (max-width: 30em) { .contact-email { font-size: var(--step-0); } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: var(--sky-soft); padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.cta-band + .site-footer { padding-top: clamp(2rem, 4vw, 3rem); }
.site-footer .brand + p { margin-top: 1rem; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 48em) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand__tag { color: var(--sky); }
.site-footer p { max-width: 40ch; }
.site-footer h3 { color: #fff; font-size: var(--step--1); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2.5rem; padding-top: 1.25rem; font-size: var(--step--1); color: var(--sky); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* --------------------------------------------------------------------------
   Prose (long-form content)
   -------------------------------------------------------------------------- */
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.error-page { text-align: center; padding-block: clamp(4rem, 12vw, 9rem); }
.error-page p { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero__mark, .cta-band, .skip-link { display: none !important; }
  body { color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .9em; }
  .hero, .section--navy { background: none !important; color: #000; }
  .hero h1, .section--navy h2 { color: #000; }
}

/* --------------------------------------------------------------------------
   Publications
   -------------------------------------------------------------------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.pubs { max-width: 62rem; }
.pub-group { display: grid; gap: 1rem 2.5rem; padding-block: clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid var(--line); }
.pub-group:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 48em) { .pub-group { grid-template-columns: 11rem 1fr; } }
.pub-group__head h2 { font-family: var(--font-brand); font-weight: 500; font-size: var(--step-2); margin: 0 0 .25rem; letter-spacing: 0; }
.pub-group__theme { color: var(--muted); font-size: var(--step--1); margin: 0; }
.pub-list { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; gap: 1.5rem; }
.pub__meta { font-size: var(--step--1); color: var(--muted); margin: 0 0 .25rem; }
.pub__kind { color: var(--blue-deep); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .78em; }
.pub__title { font-size: var(--step-1); margin: 0 0 .25rem; line-height: 1.3; }
.pub__title a { color: var(--navy); text-decoration-color: var(--line); }
.pub__title a:hover { color: var(--blue-deep); text-decoration-color: currentColor; }
.pub__authors { color: var(--muted); margin: 0; font-size: var(--step--1); }

/* --------------------------------------------------------------------------
   Process flow (Our Approach)
   -------------------------------------------------------------------------- */
.flow { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; gap: 2rem; }
.flow__step { position: relative; }
.flow__node { width: 6rem; height: 6rem; background: var(--sky-soft); display: grid; place-items: center; position: relative; z-index: 1; border-radius: var(--radius); }
.flow__node svg { width: 4.25rem; height: 4.25rem; }
.flow__step h3 { font-size: var(--step-1); margin: 1rem 0 .4em; }
.flow__step p { color: var(--muted); margin: 0; }

/* Desktop: centered nodes joined by short connectors with solid arrowheads */
@media (min-width: 48em) {
  .flow { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
  .flow__step p { max-width: 30ch; }
  .flow__step:not(:last-child)::before {
    content: ""; position: absolute; top: 3rem; height: 3px; background: var(--blue-deep); transform: translateY(-1.5px);
    left: calc(6rem + 1rem); right: calc(-1 * clamp(2rem, 4vw, 3.5rem) + 1rem);
  }
  .flow__step:not(:last-child)::after {
    content: ""; position: absolute; top: 3rem; right: calc(-1 * clamp(2rem, 4vw, 3.5rem) + 1rem - 2px); width: 0; height: 0;
    border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 12px solid var(--blue-deep); transform: translateY(-50%);
  }
}

/* Mobile: vertical flow, line runs down through the nodes */
@media (max-width: 47.99em) {
  .flow { gap: 0; }
  .flow__step { display: grid; grid-template-columns: 4rem 1fr; column-gap: 1.25rem; padding-bottom: 2.5rem; }
  .flow__node { width: 4rem; height: 4rem; grid-row: 1 / span 2; }
  .flow__node svg { width: 2.75rem; height: 2.75rem; }
  .flow__step h3 { grid-column: 2; margin-top: .35rem; }
  .flow__step p { grid-column: 2; }
  .flow__step:not(:last-child)::before { content: ""; position: absolute; left: calc(2rem - 1.5px); top: 4rem; bottom: .6rem; width: 3px; background: var(--blue-deep); }
  .flow__step:not(:last-child)::after {
    content: ""; position: absolute; left: calc(2rem - 7px); bottom: .1rem; width: 0; height: 0;
    border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 12px solid var(--blue-deep);
  }
}
