:root {
  --blue: #4A70E8;
  --blue-dark: #2F55C9;
  --orange: #FF9E1F;
  --orange-dark: #E8870A;
  --navy: #14213D;
  --navy-2: #1C2D52;
  --ink: #14213D;
  --muted: #4A5672;
  --line: #DCE3F0;
  --bg: #F5F7FB;
  --tint: #E8EEFB;
  --white: #FFFFFF;
  --radius: 10px;
  --wrap: 1120px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
h1, h2 { line-height: 1.1; margin: 0 0 16px; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(28px, 3.5vw, 38px); }
p { margin: 0 0 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.eyebrow-blue { color: var(--blue); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 15px/1 var(--font);
  padding: 13px 20px; border-radius: 8px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-orange { background: var(--orange); color: var(--navy); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline { border-color: var(--blue); color: var(--blue-dark); background: transparent; }
.btn-outline:hover { background: var(--tint); }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: #C7D0E6; text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--white); }
.site-nav .btn { color: var(--navy); padding: 10px 16px; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--white); position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.menu-open .bars { background: transparent; }
.menu-open .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-open .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: 72px 0 88px; }
.hero h1 { color: var(--white); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.lede { font-size: 19px; color: #C7D0E6; max-width: 34em; margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.photo {
  background: var(--tint); border-radius: var(--radius);
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px; overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-hero { background: var(--navy-2); color: #6F7FA6; border-bottom: 5px solid var(--orange); }

/* Stats */
.stats { background: var(--blue); color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-grid > div { padding: 28px 24px; }
.stats-grid > div + div { border-left: 1px solid rgba(255,255,255,.25); }
.stat { font-size: 36px; font-weight: 700; line-height: 1; margin: 0 0 6px; }
.stat-label { font-size: 15px; color: #DCE6FA; margin: 0; }

/* Built for */
.built-for { background: var(--white); border-bottom: 1px solid var(--line); }
.built-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; padding-top: 22px; padding-bottom: 22px; font-size: 17px; font-weight: 600; color: var(--muted); }
.built-row .label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8A94AB; font-weight: 600; }

/* Services */
.services { padding: 88px 0; }
.services-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.card { border-radius: 14px; padding: 36px; }
.card-primary { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--blue); }
.card-secondary { background: var(--tint); }
.card > p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 8px 0 28px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--muted); }
.checks li strong { color: var(--ink); font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px;
  background: var(--orange); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* Projects */
.projects { padding: 0 0 88px; }

/* About */
.about { background: var(--navy); color: #C7D0E6; padding: 88px 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.about blockquote {
  margin: 0; font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; line-height: 1.15; color: var(--white);
  padding-left: 24px; border-left: 5px solid var(--orange);
}

/* Contact */
.contact { padding: 88px 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.contact-grid > div > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-weight: 500; }
.contact-list .k { width: 64px; color: #8A94AB; font-weight: 400; }
.contact-list a { text-decoration: none; }

.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field label, .field legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.field input:not([type="radio"]), .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink);
  padding: 11px 12px; border: 1px solid #C6D0E4; border-radius: 8px; background: var(--white);
  -webkit-appearance: none; appearance: none; box-shadow: none;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(74,112,232,.2); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C9372C; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label {
  display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500;
  border: 1px solid #C6D0E4; border-radius: 8px; padding: 9px 14px; cursor: pointer; white-space: nowrap;
}
.choices label:has(input:checked) { border-color: var(--blue); background: var(--tint); }
.choices input { accent-color: var(--blue); margin: 0; width: 18px; height: 18px; flex: none; }
.contact-form { position: relative; }
.hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-status { font-size: 15px; margin: 0 0 14px; }
.form-status:empty { display: none; }
.form-status.error { color: #C9372C; }
.form-status.ok { color: #1F7A4D; font-weight: 500; }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 32px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-row img { width: 72px; }
.footer-meta { text-align: right; color: var(--muted); font-size: 15px; }
.footer-meta p { margin: 0 0 4px; }
.footer-meta a { color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 24px 24px; border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .menu-open .site-nav { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 17px; }
  .site-nav .btn { margin-top: 16px; padding: 14px; border-bottom: 0; }
  .hero { padding: 48px 0 56px; }
  .hero-grid, .services-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .services, .about, .contact { padding: 64px 0; }
  .projects { padding-bottom: 64px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand img { height: 34px; }
  .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .stats-grid > div { padding: 18px 0; }
  .stats-grid > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.25); }
  .card, .contact-form { padding: 24px 20px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .choices label { padding: 12px 14px; }
  .actions .btn { flex: 1 1 100%; }
  .footer-meta { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Texas map */
.map-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 28px; }
.map-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.tx-map { width: 100%; height: auto; display: block; overflow: visible; }
.tx { fill: var(--tint); stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.pin { cursor: pointer; outline: none; }
.pin path { fill: var(--orange); stroke: var(--navy); stroke-width: 1.5; transition: transform .15s; transform-origin: 0 0; }
.pin circle { fill: var(--navy); }
.pin:hover path, .pin:focus path { transform: scale(1.2); }
.pin:focus-visible path { stroke: var(--blue); stroke-width: 3; }
.map-tip {
  position: absolute; transform: translate(-50%, calc(-100% - 8px)); width: max-content; max-width: 260px; text-align: left; pointer-events: none;
  background: var(--navy); color: var(--white); font-size: 14px; font-weight: 500; padding: 7px 11px; border-radius: 6px;
}
.map-summary { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.city-list { list-style: none; padding: 0; margin: 0 0 16px; }
.city-list li { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 500; }
.city-list .count { color: var(--blue-dark); }
.map-note { font-size: 14px; color: var(--muted); font-style: italic; }
@media (max-width: 900px) {
  .map-layout { grid-template-columns: minmax(0, 1fr); }
  .map-card { padding: 16px; }
}
.map-tip strong { display: block; margin-bottom: 2px; }
.map-tip span { display: block; font-weight: 400; color: #C7D0E6; }

/* SDVOSB */
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 24px 0 0;
  font-size: 14px; font-weight: 600; color: var(--white);
  padding: 8px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px;
}
.badge svg { color: var(--orange); flex: none; }
.about-vet { color: var(--white); font-weight: 600; }
