/* Fort Worth Foundation Fix — lively Apple-clean, mobile-first */
:root {
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-subtle: #fbfbfd;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.12);
  --accent-wash: #e8f1fc;
  --black: #1d1d1f;
  --black-hover: #000000;
  --ok: #1d7a46;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 980px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
  --max: 980px;
  --max-wide: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 56px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.47059;
  font-size: 17px;
  letter-spacing: -0.022em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { text-decoration: underline; }
h1, h2, h3 {
  line-height: 1.08;
  color: var(--text);
  margin-top: 0;
  font-weight: 600;
  letter-spacing: -0.022em;
}
h1 {
  font-size: clamp(2.15rem, 5.8vw, 3.6rem);
  margin-bottom: 0.85rem;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  margin-bottom: 0.85rem;
}
h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
p { margin: 0 0 1rem; color: var(--text-secondary); }
ul, ol { color: var(--text-secondary); padding-left: 1.25rem; }
li { margin-bottom: 0.45rem; }
.wrap { width: min(100% - 2.5rem, var(--max-wide)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Top bar */
.topbar {
  background: var(--bg-alt);
  color: var(--text-secondary);
  font-size: 12px;
  padding: 0.45rem 0;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border);
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: var(--text); font-weight: 500; }
.temp-note { color: var(--text-tertiary); font-size: 11px; }

/* Header */
.site-header {
  background: rgba(251, 251, 253, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: var(--header-h);
  padding: 0.4rem 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  max-width: min(100%, 16rem);
}
.logo:hover { text-decoration: none; opacity: 0.88; }
.logo-mark {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--black);
  line-height: 0;
}
.logo-mark svg { display: block; border-radius: 7px; }
.logo-text {
  line-height: 1.15;
  white-space: normal;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
  align-items: center;
}
.nav a {
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: -0.01em;
  opacity: 0.88;
}
.nav a:hover,
.nav a[aria-current="page"] { opacity: 1; text-decoration: none; color: var(--accent); }
.nav .btn {
  color: #fff !important;
  opacity: 1;
  font-size: 12px;
  padding: 0.45rem 1rem;
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; margin-left: auto; }
  .logo-text { font-size: 0.82rem; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 0.85rem;
    border-top: 1px solid var(--border);
  }
  .nav.is-open { display: flex; }
  .nav a {
    font-size: 15px;
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid var(--border);
    opacity: 1;
  }
  .nav .btn {
    margin-top: 0.75rem;
    text-align: center;
    padding: 0.75rem 1.25rem;
    font-size: 14px;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--black);
  color: #fff !important;
  font-weight: 500;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { background: var(--black-hover); }
.btn-blue {
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.28);
}
.btn-blue:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--bg);
  color: var(--text) !important;
  border-color: var(--text-tertiary);
}
.btn-outline-light {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}
.btn-lg { padding: 0.95rem 1.85rem; font-size: 17px; }
.btn-block { width: 100%; text-align: center; }

/* Prominent veteran badge */
.veteran-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  font-weight: 700;
  color: #fff;
  background: var(--black);
  border: 2px solid var(--black);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.15rem 0.65rem 0.85rem;
  margin: 0 0 1.35rem;
  letter-spacing: -0.015em;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  line-height: 1.2;
}
.veteran-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
}
.veteran-badge-icon svg { display: block; }
.veteran-badge-text { white-space: nowrap; }
.page-hero .veteran-badge { margin-top: 0.35rem; }
.veteran-line {
  color: #f5f5f7 !important;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.65rem !important;
  opacity: 0.95;
}

/* Hero — soft blue/gray wash */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 85% 10%, rgba(0, 113, 227, 0.14), transparent 55%),
    radial-gradient(90% 70% at 10% 90%, rgba(0, 113, 227, 0.08), transparent 50%),
    linear-gradient(180deg, #f0f4fa 0%, #fbfbfd 48%, #ffffff 100%);
  color: var(--text);
  padding: 4rem 0 3.75rem;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.07), transparent 65%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--text); max-width: 14ch; margin-inline: auto; }
.hero .sub {
  color: var(--text-secondary);
  font-size: clamp(1.08rem, 2.3vw, 1.4rem);
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  font-weight: 400;
  line-height: 1.4;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.hero .phone-line {
  color: var(--text-secondary);
  margin: 0.5rem 0 0;
  font-size: 14px;
}
.hero .phone-line a {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  text-align: left;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
}
.hero-chips .chip {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 113, 227, 0.18);
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  backdrop-filter: blur(8px);
}
@media (min-width: 900px) {
  .hero { padding: 4.75rem 0 4.25rem; }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    text-align: left;
  }
  .hero-grid > div:first-child { padding-top: 0.5rem; }
  .hero-grid .veteran-badge { display: inline-flex; }
  .hero-grid h1 { margin-inline: 0; max-width: 11ch; }
  .hero-grid .sub { margin-inline: 0; }
  .hero-grid .hero-ctas { justify-content: flex-start; }
}

/* Cards / panels */
.panel {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}
.panel h2, .panel h3 { margin-top: 0; }
.panel h2 { font-size: 1.35rem; }

/* Forms */
label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
input, select, textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  margin-bottom: 0.9rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}
.form-note { font-size: 12px; color: var(--text-tertiary); margin: 0.65rem 0 0; }

/* Sections */
.section { padding: 5rem 0; }
.section.alt { background: var(--bg-alt); }
.section-intro {
  max-width: 36rem;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}
.section .text-center + .section-intro,
.section h2.text-center + .section-intro {
  margin-inline: auto;
  text-align: center;
}
.lead {
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* Trust strip */
.trust {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .trust { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.trust-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.trust-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(0, 113, 227, 0.2);
}
.trust-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.trust-item .trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.85rem;
  font-size: 1.1rem;
  font-weight: 700;
}
.trust-item p { margin: 0; font-size: 0.95rem; }

/* Grids */
.grid-2, .grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(0, 113, 227, 0.18);
}
.section.alt .card { background: var(--bg); }
.card h3 { margin-bottom: 0.55rem; font-size: 1.2rem; }
.card p { flex: 1; font-size: 0.95rem; }
.card .more {
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.85rem;
  font-size: 14px;
}
.card .more:hover { text-decoration: underline; }

/* Symptom list */
.symptom-list {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.symptom-list li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.symptom-list li:hover {
  background: var(--accent-wash);
  border-color: rgba(0, 113, 227, 0.2);
}
.symptom-list li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.65rem;
  vertical-align: middle;
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.steps li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 3.75rem;
  position: relative;
  margin: 0;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.steps li:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.2rem;
  width: 1.65rem;
  height: 1.65rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
}

/* Area chips */
.areas { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.chip:hover {
  border-color: rgba(0, 113, 227, 0.35);
  color: var(--accent);
  background: var(--accent-wash);
}

/* FAQ */
.faq details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.55rem;
  transition: box-shadow 0.2s var(--ease);
}
.faq details[open] { box-shadow: var(--shadow); border-color: rgba(0, 113, 227, 0.2); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0.75rem 0 0.15rem; font-size: 0.95rem; }

/* Callout */
.callout {
  background: var(--accent-wash);
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.callout strong { color: var(--text); }

/* Page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(100% 80% at 90% 0%, rgba(0, 113, 227, 0.12), transparent 55%),
    linear-gradient(180deg, #eef3f9 0%, #fbfbfd 100%);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 2.75rem;
  text-align: center;
}
.page-hero .wrap { max-width: var(--max); position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  max-width: 18ch;
  margin-inline: auto;
}
.page-hero .breadcrumb {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 0.85rem;
}
.page-hero .breadcrumb a { color: var(--text-tertiary); }
.page-hero .lead {
  max-width: 36rem;
  margin: 0.85rem auto 0;
  font-size: 1.15rem;
}
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.content-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .content-grid { grid-template-columns: 1fr 340px; align-items: start; }
  .page-hero { text-align: left; }
  .page-hero h1 { margin-inline: 0; }
  .page-hero .lead { margin-inline: 0; }
  .page-hero .veteran-badge { display: inline-flex; }
}
.sticky-cta { position: static; }
@media (min-width: 900px) {
  .sticky-cta { position: sticky; top: 4.5rem; }
}

/* CTA band */
.cta-band {
  background: linear-gradient(145deg, #1d1d1f 0%, #2a2a2e 55%, #1a2a40 100%);
  color: #fff;
  padding: 4.5rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p {
  color: #a1a1a6;
  max-width: 32rem;
  margin-inline: auto;
  font-size: 1.1rem;
}
.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}
.cta-band .btn:not(.btn-outline-light) {
  background: #fff;
  color: var(--text) !important;
  box-shadow: none;
}
.cta-band .btn:not(.btn-outline-light):hover { background: #f5f5f7; }

/* Footer */
.site-footer {
  background: #1d1d1f;
  color: #a1a1a6;
  padding: 3rem 0 1.75rem;
  font-size: 12px;
  letter-spacing: -0.01em;
}
.site-footer a { color: #f5f5f7; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { color: #a1a1a6; font-size: 12px; line-height: 1.5; }
.site-footer .footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 700px) {
  .site-footer .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
.site-footer h3 {
  color: #f5f5f7;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer .disclosure {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.35rem;
  font-size: 11px;
  line-height: 1.55;
  color: #86868b;
}
.site-footer .disclosure strong { color: #a1a1a6; font-weight: 600; }
.site-footer .copy { margin-top: 1.15rem; font-size: 11px; color: #6e6e73; }
.site-footer .copy a { color: #86868b; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #f5f5f7;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}
.footer-logo:hover { text-decoration: none; opacity: 0.9; }
.footer-logo .logo-mark { color: #f5f5f7; }
.footer-logo .logo-mark svg rect { fill: #3a3a3c; }

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .card:hover, .trust-item:hover, .panel:hover, .steps li:hover {
    transform: none;
  }
}

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }


/* Footer 4-column for Areas */
@media (min-width: 900px) {
  .site-footer .footer-grid-4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.areas a.chip {
  text-decoration: none;
  display: inline-block;
}
.areas a.chip:hover { text-decoration: none; }
