@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&display=swap');

/* Clear Path Texas — apex site (clearpathtexas.org).
   Shares brand tokens and the hero/footer treatment with the clinic site
   (clinic.clearpathtexas.org). Clinic-only components — county finder,
   about cards, leaving-site modal — are intentionally not carried over.
   If a token changes here, change it there too. */

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

:root {
  --navy:  #003057;
  --sky:   #D6E4F2;
  --red:   #DA291C;
  --yellow:#F6B700;
  --white: #FFFFFF;
  --light-gray: #f5f5f5;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--navy);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-main { flex: 1; }

/* ── Shared section headings ── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.2;
}

/* ── Hero ── */
.hero {
  background-color: var(--sky);
  color: var(--navy);
  padding: 72px 20px 60px;
  text-align: center;
}

.hero__logo {
  /* block, not the inline default: an inline img would share a line box with
     the inline-flex badge below and knock both off-center */
  display: block;
  max-width: 400px;
  width: 100%;
  margin: 0 auto 36px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 2px solid var(--yellow);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 24px;
}

.hero__badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  flex: none;
}

.hero__title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero__title span { color: var(--red); }

.hero__lede {
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  max-width: 620px;
  margin: 0 auto;
  color: rgba(0, 48, 87, 0.8);
}

.hero__divider {
  width: 60px;
  height: 4px;
  background: var(--red);
  margin: 28px auto 0;
  border-radius: 2px;
}

/* ── CTA band ── */
.cta {
  background: var(--navy);
  color: var(--white);
  padding: 64px 20px;
  text-align: center;
}

.cta .section-label { color: var(--yellow); }
.cta .section-title { color: var(--white); }

.cta__text {
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 16px 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}

.btn--primary:hover { background: #b8221a; }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--yellow);
}

.btn--ghost:hover {
  background: var(--yellow);
  color: var(--navy);
}

/* ── Footer ── */
.footer {
  background: var(--sky);
  border-top: 4px solid var(--red);
  padding: 36px 20px;
  text-align: center;
  color: rgba(0, 48, 87, 0.7);
}

.footer__logo {
  max-width: 200px;
  margin-bottom: 16px;
}

.footer p {
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.footer a {
  color: var(--red);
  text-decoration: none;
}

.footer__disclaimer {
  margin-top: 16px;
  font-size: 0.75rem;
  color: rgba(0, 48, 87, 0.55);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer__partners {
  margin: 24px auto;
  max-width: 700px;
}

.footer__partners-label,
.footer__funding {
  font-size: 0.8rem;
}

p.footer__partners-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: rgba(0, 48, 87, 0.6);
  margin-bottom: 20px;
}

.footer__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 30px;
}

.footer__logos img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.footer__logos img[alt="Texas RioGrande Legal Aid"],
.footer__logos img[alt="Lone Star Legal Aid"] {
  height: 32px;
}

.footer__funding {
  color: rgba(0, 48, 87, 0.75);
}
