/* CLG-style centered layout for Tributary. Uses Tributary tokens only. */
:root {
  --trib-line-on-dark: var(--trib-dark-line);
}
.centered .btn { border-radius: 8px; }
.c-center { text-align: center; }
.c-narrow { max-width: 46rem; margin-inline: auto; }
@media (min-width: 641px) {
  .nw { white-space: nowrap; }
}

/* Dark Tributary Navy header bar with River Blue accent border */
.c-head {
  background: var(--trib-navy);
  color: var(--trib-white);
  border-bottom: 3px solid var(--trib-river);
}
.c-head-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}
.c-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.c-logo img {
  width: 260px;
  height: auto;
  display: block;
}
.c-head-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.c-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .25rem .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.c-nav a {
  display: block;
  padding: .45rem .65rem;
  color: var(--trib-fog);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color .15s ease;
}
.c-nav a:hover,
.c-nav a[aria-current="page"] {
  color: var(--trib-white);
  text-decoration: underline;
  text-decoration-color: var(--trib-river);
  text-decoration-thickness: 2px;
  text-underline-offset: .4em;
}
.c-nav a:focus-visible {
  outline-color: var(--trib-river);
}
.c-head-cta {
  white-space: nowrap;
}

/* Grounded, tightened hero section */
.c-hero {
  text-align: center;
  padding: clamp(2.25rem, 4.2vw, 3.25rem) 0 clamp(2.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, var(--trib-mist) 0%, var(--trib-river-tint) 100%);
  border-bottom: 1px solid var(--trib-line);
}
.c-hero .eyebrow {
  color: var(--trib-river-deep);
  margin: 0 auto .65rem;
  text-align: center;
  max-width: none;
}
.c-hero .display {
  margin: 0 auto .55rem;
  max-width: 22ch;
  text-align: center;
}
.c-hero .display-about {
  font-size: var(--trib-fs-display-sm);
  max-width: 32ch;
}
.c-hero .hero-sub {
  margin: 0 auto 1.5rem;
  max-width: 40rem;
  text-align: center;
}
.c-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 0 auto .75rem;
}
.c-ctas-spaced {
  margin-top: 2rem;
}
.c-ctas-nf {
  margin-top: 1.5rem;
}

.c-sec { padding: clamp(3rem, 6vw, 4.75rem) 0; }
.c-alt { background: var(--trib-mist); }
.c-sec .lead { max-width: 40rem; margin: 0 auto 2.5rem; }
.c-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.c-card { background: var(--trib-white); border: 1px solid var(--trib-line); border-radius: 12px; padding: 1.75rem 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.c-card h3 { margin: .9rem 0 .4rem; }
.c-card p { color: var(--trib-muted); margin: 0 0 1.1rem; flex: 1; }
.c-card-main { border: 2px solid var(--trib-navy); box-shadow: 0 8px 24px var(--trib-shadow); }
.ic { width: 56px; height: 56px; border-radius: 50%; background: var(--trib-river-tint); color: var(--trib-navy); display: inline-flex; align-items: center; justify-content: center; }
.ic svg { width: 28px; height: 28px; }
.c-more { font-weight: 700; color: var(--trib-river-deep); text-decoration: none; }
.c-more:hover { text-decoration: underline; }
.c-steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.c-steps .num { display: inline-flex; width: 48px; height: 48px; border-radius: 50%; background: var(--trib-navy); color: var(--trib-white); font-weight: 700; font-size: 1.25rem; align-items: center; justify-content: center; }
.c-steps h3 { margin: .8rem 0 .3rem; }
.c-steps p { color: var(--trib-muted); margin: 0 auto; }
.c-dave { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; margin: 0 auto 1.25rem; display: block; }
.c-band { background: var(--trib-navy); color: var(--trib-white); border-radius: 16px; padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.c-band h2 { color: var(--trib-white); }
.c-band > p { color: var(--trib-fog); max-width: 36rem; margin: 0 auto 1.5rem; }
.c-contact {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 0;
  max-width: 52rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 2rem;
  align-items: start;
  text-align: center;
}
.c-contact small { display: block; color: var(--trib-fog); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; }
.c-foot { padding: 3rem 0 2rem; }
.c-foot .footer-logo img { margin: 0 auto 1.25rem; display: block; }
.c-fnav { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.25rem; }
.c-fcontact { margin: 0 auto 1.5rem; }
.c-legal { border-top: 1px solid var(--trib-line-on-dark); padding-top: 1.25rem; font-size: 1rem; line-height: 1.5; color: var(--trib-fog); }
.c-legal p { margin: .35rem auto; max-width: 62rem; overflow-wrap: anywhere; text-wrap: pretty; }
.c-legal a { text-underline-offset: .18em; }

@media (max-width: 900px) {
  .c-head-cta { display: none; }
}
@media (max-width: 860px) {
  .c-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .c-contact { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .c-head-row {
    flex-direction: column;
    gap: .55rem;
    padding: 1rem 0 .85rem;
  }
}
@media (max-width: 600px) {
  .c-cards, .c-steps { grid-template-columns: 1fr; }
  .c-logo img { width: 215px; }
  .c-ctas .btn { width: 100%; }
}
.c-cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 56rem; margin-inline: auto; }
.c-ticks { list-style: none; padding: 0; margin: .5rem 0 0; color: var(--trib-ink); width: 100%; }
.c-ticks li { padding: .35rem 0; border-bottom: 1px solid var(--trib-line); }
.c-ticks li:last-child { border-bottom: 0; }
@media (max-width: 860px) { .c-cards-2 { grid-template-columns: 1fr; } }

/* Even line breaks */
.centered h1, .centered h2, .centered h3, .c-center, .c-hero .hero-sub, .c-hero .eyebrow, .c-band > p, .c-card p, .c-steps p, .hero-hint, .lead { text-wrap: balance; }
.centered p { text-wrap: pretty; }
.c-center p, .c-hero p, .c-band > p, .c-sec .lead { max-width: 60ch; margin-left: auto; margin-right: auto; text-wrap: balance; }
.c-card p, .c-steps p { max-width: 60ch; }
.c-hero .c-narrow:has(.about-intro) { max-width: 64rem; }
.centered .c-hero p.hero-sub.about-intro { max-width: 50rem; }
.c-hero .eyebrow.eyebrow-hero { font-size: 0.9375rem; line-height: 1.25rem; max-width: none; }
.c-hero .eyebrow { margin-inline: auto; text-align: center; max-width: none; }
