/* ==========================================================================
   Steady Stream Solutions — steadystreamsolutions.com
   Palette: river-slate ink on cool mist paper, deep-teal "pool" accent.
   Type: Newsreader (display serif) + Public Sans (body/UI).
   ========================================================================== */

:root {
  --ink: #1c2b33;
  --stone: #55666d;
  --paper: #f6f8f7;
  --white: #ffffff;
  --pool: #0e5a54;
  --pool-dark: #0a4641;
  --current: #2e8c7f;
  --sand: #dee7e4;
  --tint: #eef3f1;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1080px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pool); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--current); }

:focus-visible {
  outline: 2px solid var(--pool);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
  background: var(--pool);
  border: 1px solid var(--pool);
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { background: var(--pool-dark); color: var(--white); transform: translateY(-1px); }

.btn--ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--sand);
}
.btn--ghost:hover { background: var(--tint); color: var(--ink); border-color: var(--current); }

.btn--light { background: var(--white); border-color: var(--white); color: var(--pool); }
.btn--light:hover { background: var(--tint); border-color: var(--tint); color: var(--pool-dark); }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 247, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 76px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.wordmark svg { flex: none; }

.wordmark span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.wordmark span em {
  font-style: italic;
  font-weight: 400;
  color: var(--pool);
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--stone);
  text-decoration: none;
}

.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

.btn--nav { padding: 0.6rem 1.25rem; }

.btn--nav .label-short { display: none; }

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 11vw, 8.5rem) clamp(4.5rem, 9vw, 7rem);
}

.hero .container { position: relative; z-index: 1; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pool);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.15rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 15ch;
  text-wrap: balance;
}

.hero p.lede {
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--stone);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.hero-note {
  margin-top: 1.1rem;
  font-size: 0.875rem;
  color: var(--stone);
}

/* The signature: layered stream lines drifting behind the hero */
.stream {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stream svg { position: absolute; right: -6%; top: 0; height: 100%; width: auto; min-width: 62%; }

.stream .drift-slow { animation: drift 46s ease-in-out infinite alternate; }
.stream .drift-fast { animation: drift 30s ease-in-out infinite alternate; }

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-28px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stream .drift-slow, .stream .drift-fast { animation: none; }
  .btn:hover { transform: none; }
}

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

.section { padding-block: clamp(4rem, 8.5vw, 6.5rem); }

.section--tint { background: var(--tint); border-block: 1px solid var(--sand); }

.section-head { max-width: 60ch; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-head p {
  margin-top: 0.9rem;
  color: var(--stone);
  font-size: 1.0625rem;
}

/* Cards — What we do */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.9rem 1.75rem;
}

.card .glyph { margin-bottom: 1.1rem; }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.55rem;
}

.card p { color: var(--stone); font-size: 0.98rem; }

/* Steps — How it works (a real sequence, so numbers carry meaning) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  border-top: 2px solid var(--sand);
  padding-top: 1.35rem;
  counter-increment: step;
}

.step::after {
  content: "";
  position: absolute;
  top: -4.5px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--current);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--current);
  margin-bottom: 0.8rem;
}

.step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.45rem; }

.step p { color: var(--stone); font-size: 0.95rem; }

/* Split — Who we help */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.split h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.split .body-copy { margin-top: 1rem; color: var(--stone); }
.split .body-copy + .body-copy { margin-top: 0.85rem; }

.fit-list {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.fit-list h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pool);
  margin-bottom: 1rem;
}

.fit-list ul { list-style: none; }

.fit-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink);
  font-size: 0.98rem;
}

.fit-list li + li { margin-top: 0.8rem; }

.fit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.85rem;
  height: 2px;
  border-radius: 2px;
  background: var(--current);
}

/* Why list */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.why-item h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.why-item p { color: var(--stone); font-size: 0.98rem; }

/* Concept diagram — the widening gap */
.margin-viz { margin-top: 2.25rem; }

.margin-viz svg { display: block; width: 100%; height: auto; }

.margin-viz figcaption {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  text-align: right;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--pool);
  color: var(--white);
  border-radius: 22px;
  padding: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 2rem;
  align-items: center;
}

.cta-band > div, .cta-band > .btn { position: relative; z-index: 1; }

.cta-stream {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 58%;
  pointer-events: none;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 500;
  line-height: 1.15;
}

.cta-band p { margin-top: 0.75rem; color: rgba(255, 255, 255, 0.78); font-size: 1rem; }

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

/* Note strip — outreach verification */
.note-strip {
  max-width: 660px;
  margin: 0 auto 2.75rem;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 2.1rem 2rem;
}

.note-strip h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.55rem;
}

.note-strip p { color: var(--stone); font-size: 0.98rem; max-width: 52ch; margin-inline: auto; }

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

.page-hero { position: relative; overflow: hidden; }

.page-hero .container { position: relative; z-index: 1; }

.page-hero .stream svg { opacity: 0.6; }

.page-head { padding-block: clamp(3.5rem, 8vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem); }

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.page-head p { margin-top: 1rem; color: var(--stone); max-width: 56ch; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
}

.field { margin-bottom: 1.15rem; }

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}

.field input:focus, .field textarea:focus {
  outline: 2px solid var(--pool);
  outline-offset: 0;
  border-color: var(--pool);
}

.field textarea { min-height: 140px; resize: vertical; }

.form-note { font-size: 0.8125rem; color: var(--stone); margin-top: 0.9rem; }

.contact-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contact-card h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pool);
  margin-bottom: 1.1rem;
}

.contact-card p, .contact-card a { font-size: 0.98rem; }

.contact-card .line { margin-bottom: 0.9rem; }

.contact-card .line span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--stone);
  margin-bottom: 0.15rem;
}

.hidden { display: none; }

/* --------------------------------------------------------------------------
   Legal pages & simple pages
   -------------------------------------------------------------------------- */

.legal { max-width: 70ch; padding-bottom: clamp(4rem, 8vw, 6rem); }

.legal .updated { font-style: italic; color: var(--stone); font-size: 0.95rem; margin-top: 0.75rem; }

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 2.5rem 0 0.75rem;
}

.legal h3 { font-size: 1.05rem; font-weight: 700; margin: 2rem 0 0.6rem; }

.legal p { margin-bottom: 1rem; color: var(--ink); }

.legal ul { margin: 0 0 1rem 1.25rem; }

.legal li { margin-bottom: 0.6rem; }

.simple-page { text-align: center; padding-block: clamp(5rem, 12vw, 9rem); }

.simple-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
}

.simple-page p { margin: 1rem auto 2rem; color: var(--stone); max-width: 46ch; }

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

.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.72); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 2.5rem;
  padding-block: 3.5rem 2.5rem;
}

.site-footer .wordmark { color: var(--white); }

.site-footer .wordmark span em { color: var(--current); }

.footer-tag { margin-top: 1rem; font-size: 0.9rem; max-width: 34ch; }

.site-footer h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
}

.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }

.site-footer a:hover { color: var(--white); text-decoration: underline; }

.footer-list { list-style: none; }

.footer-list li { margin-bottom: 0.6rem; font-size: 0.95rem; }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

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

@media (max-width: 880px) {
  .site-nav { display: none; }
  .nav-row { justify-content: space-between; }
}

@media (max-width: 920px) {
  .cards, .why-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stream svg { opacity: 0.55; }
}

@media (max-width: 620px) {
  .btn--nav .label-full { display: none; }
  .btn--nav .label-short { display: inline; }
  .cards, .why-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .wordmark span { font-size: 1.05rem; }
}
