/* Parker County Aerobic Care - style.css
   BEM (block__element--modifier) + 12-col CSS Grid, mobile-first, rem units.
   Palette: paper #f4f7f8, plan-navy #10233b, drafting-teal #0e7c86,
            dimension-blue #7fa9b3, gridline #E4EAEC
*/

:root {
  --paper: #f4f7f8;
  --navy: #10233b;
  --teal: #0e7c86;
  --dimblue: #7fa9b3;
  --grid: #E4EAEC;
  --white: #ffffff;
  --ink-soft: #3c4d60;
  --danger: #8a3b2a;
  --font-head: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bar-h: 3.5rem;
  --mobile-bar-h: 3.75rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--paper);
  line-height: 1.55;
  padding-bottom: var(--mobile-bar-h);
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 0.6em; color: var(--navy); }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--teal); }
img { max-width: 100%; display: block; }
.mono, code, .spec-tag, .callout-tag { font-family: var(--font-mono); }
ul, ol { padding-left: 1.25rem; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

/* ===== Topbar ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: var(--paper);
  border-bottom: 2px solid var(--teal);
}
.topbar__inner {
  max-width: 72rem; margin: 0 auto; padding: 0 1.25rem;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar__brand { color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.topbar__right { display: flex; align-items: center; gap: 0.9rem; }
.topbar__tag { display: none; font-family: var(--font-mono); font-size: 0.72rem; color: var(--dimblue); }
.topbar__phone { color: var(--white); font-weight: 700; font-size: 1.05rem; text-decoration: none; white-space: nowrap; }
.topbar__phone:hover { color: var(--dimblue); }
@media (min-width: 640px) { .topbar__tag { display: inline; } }

/* ===== Nav ===== */
.nav { background: var(--white); border-bottom: 1px solid var(--grid); overflow-x: auto; }
.nav__inner { max-width: 72rem; margin: 0 auto; display: flex; gap: 1.1rem; padding: 0.6rem 1.25rem; white-space: nowrap; }
.nav__inner a { color: var(--ink-soft); text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.nav__inner a:hover, .nav__inner a--active { color: var(--teal); }

/* ===== Blueprint grid background ===== */
.blueprint-bg {
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, var(--grid) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 32px);
}

/* ===== Breadcrumbs ===== */
.breadcrumbs { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); padding: 0.9rem 0; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: underline; }
.breadcrumbs__sep { margin: 0 0.35rem; color: var(--dimblue); }

/* ===== Hero ===== */
.hero { padding: 1.75rem 0 2.25rem; }
.hero__grid {
  display: grid; grid-template-columns: 1fr; gap: 1.75rem; align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: repeat(12, 1fr); }
  .hero__copy { grid-column: 1 / 7; }
  .hero__diagram-wrap { grid-column: 7 / 13; }
}
.hero__eyebrow { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.02em; color: var(--teal); text-transform: uppercase; margin-bottom: 0.6rem; }
.hero__copy h1 { margin-bottom: 0.5rem; }
.hero__sub { font-size: 1.05rem; color: var(--ink-soft); max-width: 34rem; }
.hero__ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.15rem; }
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 700; text-decoration: none;
  padding: 0.8rem 1.3rem; border-radius: 3px; font-size: 1rem; border: 2px solid transparent;
}
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: #0a5f67; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

.hero__diagram-wrap { position: relative; }
.hero__diagram-frame {
  background: var(--white); border: 1px solid var(--grid); border-radius: 4px; padding: 0.75rem;
  background-image: repeating-linear-gradient(0deg, var(--grid) 0 1px, transparent 1px 24px),
                     repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 24px);
}
.hero__diagram-caption { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); text-align: center; margin-top: 0.4rem; }

/* ===== Trust bar ===== */
.trust-bar { background: var(--navy); color: var(--paper); padding: 0.9rem 0; }
.trust-bar__inner { display: grid; grid-template-columns: 1fr; gap: 0.6rem; text-align: center; }
@media (min-width: 640px) { .trust-bar__inner { grid-template-columns: repeat(4, 1fr); text-align: left; } }
.trust-bar__item { font-size: 0.85rem; }
.trust-bar__item strong { display: block; color: var(--dimblue); font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.15rem; }

/* ===== Sections ===== */
section { padding: 2.5rem 0; }
.section--tight { padding: 1.75rem 0; }
.section-title { max-width: 42rem; }
.section-title__eyebrow { font-family: var(--font-mono); font-size: 0.75rem; color: var(--teal); text-transform: uppercase; }

/* ===== Spec block (what TCEQ requires) ===== */
.spec-block { background: var(--white); border: 1px solid var(--grid); border-left: 4px solid var(--teal); border-radius: 4px; padding: 1.5rem; }
.spec-block__cite { font-family: var(--font-mono); font-size: 0.8rem; color: var(--teal); background: rgba(14,124,134,0.08); padding: 0.15rem 0.4rem; border-radius: 2px; }
.spec-block dl { display: grid; grid-template-columns: 1fr; gap: 0.9rem; margin: 1rem 0 0; }
@media (min-width: 640px) { .spec-block dl { grid-template-columns: 1fr 1fr; } }
.spec-block dt { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.02em; }
.spec-block dd { margin: 0.2rem 0 0; font-size: 0.95rem; }

/* ===== Cadence table / generic table ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--grid); border-radius: 4px; }
table { border-collapse: collapse; width: 100%; min-width: 30rem; background: var(--white); font-size: 0.92rem; }
caption { font-family: var(--font-mono); font-size: 0.78rem; text-align: left; color: var(--ink-soft); padding: 0.5rem 0.75rem; }
th, td { text-align: left; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--grid); vertical-align: top; }
thead th { background: var(--navy); color: var(--paper); font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.02em; }
tbody tr:nth-child(even) { background: var(--paper); }
td.num, th.num { font-family: var(--font-mono); }

/* ===== Service tiles ===== */
.tiles { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--white); border: 1px solid var(--grid); border-radius: 4px; padding: 1.25rem; display: flex; flex-direction: column; }
.tile__tag { display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; color: var(--teal); background: rgba(14,124,134,0.08); padding: 0.15rem 0.4rem; border-radius: 2px; margin-bottom: 0.6rem; width: fit-content; }
.tile h3 { margin-bottom: 0.4rem; }
.tile p { font-size: 0.92rem; color: var(--ink-soft); flex-grow: 1; }
.tile a { font-weight: 700; font-size: 0.88rem; }

/* ===== FAQ ===== */
.faq details { background: var(--white); border: 1px solid var(--grid); border-radius: 4px; padding: 0.9rem 1.1rem; margin-bottom: 0.7rem; }
.faq summary { font-family: var(--font-head); font-weight: 700; cursor: pointer; font-size: 1rem; }
.faq details[open] summary { color: var(--teal); margin-bottom: 0.5rem; }
.faq p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }

/* ===== Quote form ===== */
.quote { background: var(--navy); color: var(--paper); }
.quote .section-title__eyebrow { color: var(--dimblue); }
.quote h2 { color: var(--white); }
.quote p { color: var(--dimblue); }
.quote__form { display: grid; grid-template-columns: 1fr; gap: 0.9rem; max-width: 34rem; margin-top: 1.25rem; }
.quote__form label { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.02em; color: var(--dimblue); display: block; }
.quote__form input, .quote__form select, .quote__form textarea {
  display: block; width: 100%; margin-top: 0.35rem; padding: 0.7rem 0.8rem; font-size: 1rem;
  border: 1px solid var(--dimblue); border-radius: 3px; background: var(--white); color: var(--navy); font-family: var(--font-body);
}
.quote__form textarea { min-height: 5rem; resize: vertical; }
.quote__form button {
  font-family: var(--font-head); font-weight: 700; background: var(--teal); color: var(--white);
  border: none; border-radius: 3px; padding: 0.85rem 1.2rem; font-size: 1.05rem; cursor: pointer;
}
.quote__form button:hover { background: #0a5f67; }
.quote__note { font-size: 0.8rem; margin-top: 0.75rem; color: var(--dimblue); }

/* ===== CTA band ===== */
.cta-band { background: var(--teal); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band .btn--outline { border-color: var(--white); color: var(--white); }
.cta-band .btn--outline:hover { background: var(--white); color: var(--teal); }

/* ===== Content pages ===== */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.75rem; }
.prose h3 { margin-top: 1.25rem; }
.limit-note { background: var(--white); border: 1px dashed var(--dimblue); border-radius: 4px; padding: 1rem 1.2rem; font-size: 0.92rem; }
.limit-note strong { color: var(--teal); }
.process-list { list-style: none; padding: 0; counter-reset: step; }
.process-list li { counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: 1rem; }
.process-list li::before {
  content: counter(step); position: absolute; left: 0; top: -0.1rem;
  width: 1.9rem; height: 1.9rem; border-radius: 3px; background: var(--navy); color: var(--white);
  font-family: var(--font-mono); font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
}

/* ===== Footer ===== */
.footer { background: var(--navy); color: var(--dimblue); padding: 2.25rem 0 1.5rem; }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .footer__inner { grid-template-columns: repeat(3, 1fr); } }
.footer__brand { color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.4rem; }
.footer__heading { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; color: var(--white); margin-bottom: 0.5rem; }
.footer a { color: var(--dimblue); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.35rem; font-size: 0.88rem; }
.footer__legal { max-width: 72rem; margin: 1.75rem auto 0; padding: 1rem 1.25rem 0; border-top: 1px solid #223651; font-size: 0.78rem; }

/* ===== Sticky mobile bar ===== */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; height: var(--mobile-bar-h);
}
.mobile-bar__call, .mobile-bar__quote {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; text-decoration: none; min-height: 48px;
}
.mobile-bar__call { background: var(--teal); color: var(--white); }
.mobile-bar__quote { background: var(--white); color: var(--navy); border-top: 2px solid var(--teal); border-left: 1px solid var(--grid); }
@media (min-width: 900px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.badge { font-family: var(--font-mono); font-size: 0.72rem; background: rgba(14,124,134,0.08); color: var(--teal); padding: 0.25rem 0.5rem; border-radius: 2px; }
