/* augustinemonroe.com — "field professional" design.
   Tokens first, then base, layout, components. No JavaScript.
   Gold is a fill or a rule, never text on a light ground (1.62:1). */

/* ---------- Fonts (self-hosted, Latin subset, variable weight) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched fallbacks: Arial scaled to Archivo / Source Sans 3 widths, so
   the swap from fallback to web font barely reflows. Values measured against the
   real fonts (size-adjust = width ratio; overrides = web-font ascent/descent
   divided by size-adjust). Android has no local Arial and skips these. */
@font-face { font-family: "Archivo Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600; size-adjust: 96.05%; ascent-override: 91.6%; descent-override: 21.9%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 700; size-adjust: 99.16%; ascent-override: 88.7%; descent-override: 21.2%; line-gap-override: 0%; }
@font-face { font-family: "Source Sans Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 400; size-adjust: 90.88%; ascent-override: 112.2%; descent-override: 44%; line-gap-override: 0%; }
@font-face { font-family: "Source Sans Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600; size-adjust: 88.17%; ascent-override: 115.7%; descent-override: 45.4%; line-gap-override: 0%; }

/* ---------- Tokens ---------- */
:root {
  /* color */
  --ground: #FAF8F4;
  --surface: #FFFFFF;
  --navy: #0B2A51;
  --primary: #0E4B96;
  --primary-dk: #093A77;
  --gold: #FFB900;
  --body: #393B3E;
  --muted: #5A5A5A;
  --hairline: #E4DED4;
  --tint: #F4F1EB;
  --on-navy: #CFD8E6;
  --field-border: #958B7D;    /* 3.2:1 against the field fill; lighter fails WCAG 1.4.11 */
  --field-fill: #FBFAF7;

  /* type */
  --font-head: "Archivo", "Archivo Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Fallback", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --text: 1.125rem;            /* 18px */
  --leading: 1.62;
  --measure: 68ch;
  --h1: clamp(2.25rem, 1.55rem + 2.4vw, 3.25rem);   /* 36px phone → 52px desktop */
  --h2: clamp(1.6875rem, 1.55rem + 0.5vw, 1.875rem); /* 27–30px */
  --h3: 1.1875rem;             /* 19px */
  --small: 0.90625rem;         /* 14.5px */
  --source: 0.9375rem;         /* 15px */

  /* space and shape */
  --space-p: 1.125rem;         /* between paragraphs */
  --space-section: 2.5rem;     /* ~2x paragraph space, each side of a section rule */
  --gutter: 40px;
  --container: 1120px;
  --article: 760px;
  --radius: 2px;
  --target: 44px;
  --ease: 150ms ease;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--font-body);
  font-size: var(--text);
  line-height: var(--leading);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;   /* long emails/URLs break instead of widening the page */
  display: flex;
  flex-direction: column;
  min-height: 100vh;   /* short pages (404, thanks) keep the footer at the bottom */
}
main { flex: 1 0 auto; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); margin: 0; }
h1 { font-size: var(--h1); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; }
h2 { font-size: var(--h2); font-weight: 700; line-height: 1.18; letter-spacing: -0.015em; }
h3 { font-size: var(--h3); font-weight: 600; line-height: 1.3; }
p, ul, ol { margin: 0 0 var(--space-p); max-width: var(--measure); }
li { margin: 0.4rem 0; }
strong { font-weight: 600; color: var(--navy); }
img { display: block; max-width: 100%; height: auto; }
/* Phone numbers, license numbers, form codes, classifications and dollar figures never split across lines */
.nobr { white-space: nowrap; }

a { color: var(--primary); text-underline-offset: 0.18em; text-decoration-thickness: 1px; transition: color var(--ease), background-color var(--ease), border-color var(--ease); }
a:hover { color: var(--primary-dk); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: var(--radius); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 0.5rem; z-index: 30; background: var(--surface); padding: 0.6rem 0.9rem; }

/* ---------- Layout ---------- */
.container, footer.site .wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(var(--article) + 2 * var(--gutter)); }
@media (max-width: 600px) { :root { --gutter: 20px; } }

.section { padding: var(--space-section) 0; border-top: 1px solid var(--hairline); }
.section:first-child { border-top: 0; }
[id] { scroll-margin-top: 6rem; }

/* Section headings: navy, with the short gold rule beneath */
.section > .container > h2,
.article section > h2,
.band h2 { margin-bottom: 1.4rem; }
.section > .container > h2::after,
.article section > h2::after,
.band h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 0.7rem;
  background: var(--gold);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;            /* never nowrap: with large text the phone link drops to its own row */
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  min-height: 64px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
/* Name, then agency in the quieter body face: one line, read as a hierarchy */
/* Line 1 (the link): name, then agency in the quieter body face. Line 2: small uppercase
   tagline as its own block, so text extraction reads two lines. The link's ::after
   stretches over the whole brand block, so both lines stay one 44px tap target. */
.brand { position: relative; display: flex; flex-direction: column; justify-content: center; flex: 1 1 10rem; min-width: 0; min-height: var(--target); }  /* shrinks (tagline wraps) before the row wraps */
.brand-line { line-height: 1.2; text-decoration: none; }
.brand-line::after { content: ""; position: absolute; inset: 0; }
.brand-line:focus-visible { outline: none; }
.brand-line:focus-visible::after { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: var(--radius); }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy); letter-spacing: -0.01em; }
.brand-tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); line-height: 1.35; }
.brand-agency { font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--muted); }
.brand-sep { margin: 0 0.4em; }
.brand:hover .brand-name { color: var(--primary-dk); }
/* The full line needs ~441px beside the phone link; below that, name only */
@media (max-width: 460px) { .brand-agency { display: none; } }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; min-width: 0; }
.header-phone {
  display: inline-flex; align-items: center; min-height: var(--target);
  font-weight: 600; color: var(--navy); text-decoration: none; font-variant-numeric: tabular-nums;
  white-space: nowrap;        /* the number never splits; the row wraps instead, and it fits alone at any width */
}
.header-phone:hover { color: var(--primary-dk); text-decoration: underline; }
/* Phones: keep the pinned header to one row; the phone number is the call to action */
@media (max-width: 600px) {
  .site-header .btn-gold { display: none; }
  .header-inner { gap: 0.25rem 0.75rem; min-height: 0; }
  .brand-tag { font-size: 0.6875rem; letter-spacing: 0.04em; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--target);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn-gold, .btn-gold:visited { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #F2AF00; color: var(--navy); text-decoration: none; }
.btn-outline, .btn-outline:visited { background: transparent; color: var(--navy); border-color: var(--navy); font-variant-numeric: tabular-nums; }
.btn-outline:hover { background: var(--navy); color: var(--surface); text-decoration: none; }

/* ---------- Home: hero ---------- */
.hero { padding: 3.5rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; align-items: center; }
.hero h1 { margin-bottom: 1.1rem; max-width: 16ch; }
.hero .lede { font-size: 1.1875rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0 1.4rem; }
/* At 320px the two buttons missed one row by 0.3px; trim their padding so they fit with room, in web font and fallback alike */
@media (max-width: 380px) { .hero-actions .btn { padding-left: 0.9rem; padding-right: 0.9rem; } }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--tint);
}
@media (max-width: 860px) {
  .hero { padding-top: 3rem; }   /* 2rem plus the removed eyebrow's margin, so the H1 isn't tight to the header */
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-photo { max-width: 460px; }
}

/* ---------- Home: trust strip ---------- */
.trust { background: var(--tint); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.trust p { margin: 0; padding: 0.9rem 0; max-width: none; font-size: var(--source); color: var(--body); font-variant-numeric: tabular-nums; }
.trust + .section { border-top: 0; }

/* ---------- Home: audience cards ---------- */
.cards { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cards > li { margin: 0; display: flex; }
.cards-intro { margin: 0 0 var(--space-p); }   /* plain line above the home cards, not a card */
.card {
  flex: 1;
  display: block;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.2rem;
  color: var(--body);
  text-decoration: none;
}
.card h3 { font-weight: 600; margin-bottom: 0.45rem; }
.card p { margin: 0; font-size: 1.0625rem; }
a.card { transition: border-color var(--ease), background-color var(--ease); }
a.card:hover { border-color: var(--primary); border-top-color: var(--primary-dk); color: var(--body); }
a.card:hover h3 { color: var(--primary-dk); text-decoration: underline; text-underline-offset: 0.18em; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Home: coverage list and outside-Texas links ---------- */
.coverages { list-style: none; padding: 0; max-width: 46rem; columns: 2; column-gap: 3rem; }
.coverages li { break-inside: avoid; margin: 0 0 0.35rem; padding-left: 1.1rem; position: relative; }
.coverages li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; background: var(--primary); }
@media (max-width: 600px) { .coverages { columns: 1; } }
.link-list { list-style: none; padding: 0; }
.link-list li { margin: 0 0 0.25rem; }
.link-list a { display: inline-flex; align-items: center; min-height: var(--target); font-weight: 600; }

/* ---------- Home: How This Works band ---------- */
.band { background: var(--navy); color: var(--on-navy); padding: 3.25rem 0 3rem; }
.band h2 { color: var(--surface); }
/* Two heavy blocks in a row (cards, then the band): more air above the band, no hairline under it */
.section:has(+ .band) { padding-bottom: 3.5rem; }
.band + .section { border-top: 0; padding-top: 3rem; }
.band :focus-visible { outline-color: var(--surface); }
.steps { list-style: none; padding: 0; margin: 0; max-width: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps li { counter-increment: step; margin: 0; color: var(--on-navy); }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--font-head); font-weight: 700; font-size: 2.125rem; line-height: 1;
  color: var(--gold);
  margin-bottom: 0.6rem;
  font-variant-numeric: tabular-nums;
}
.steps strong { display: block; color: var(--surface); font-family: var(--font-head); font-weight: 600; font-size: var(--h3); margin-bottom: 0.3rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 1.4rem; }
  .steps li { display: grid; grid-template-columns: 3rem 1fr; column-gap: 0.75rem; }
  .steps li::before { grid-row: span 2; margin: 0; }
}

/* ---------- Article pages ---------- */
.article { padding: 2.75rem 0 1rem; }
.article h1 { margin-bottom: 1rem; }
.article section { padding: var(--space-section) 0 calc(var(--space-section) - var(--space-p)); border-top: 1px solid var(--hairline); }
.article section:first-of-type { border-top: 0; padding-top: 0.5rem; }
.article h3 { margin: 1.4rem 0 0.4rem; }

/* Byline: author line · last reviewed, hairline beneath. On home it sits above the contact card. */
.home-byline { padding-top: var(--space-section); }
.home-byline .byline { margin-bottom: 0; }
.byline {
  font-size: var(--small);
  color: var(--muted);
  line-height: 1.5;
  max-width: none;
  padding-bottom: 1rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--hairline);
}
.reviewed { white-space: nowrap; }
.reviewed::before { content: "·"; margin: 0 0.45em; color: var(--muted); }
@media (max-width: 600px) {
  .reviewed { display: block; margin-top: 0.15rem; white-space: normal; }
  .reviewed::before { content: none; }
}

/* Source lines */
.sources {
  font-size: var(--source);
  color: var(--muted);
  padding-left: 16px;
  border-left: 3px solid var(--hairline);
  margin-top: 1rem;
}

/* ---------- Tables: the facts live here ---------- */
.table-wrap { overflow-x: auto; margin: 0.5rem 0 1.4rem; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 1.0625rem; }
thead th {
  font-family: var(--font-head); font-weight: 600; font-size: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy);
  text-align: left; padding: 0 1rem 0.65rem 0;
  border-bottom: 2px solid var(--gold);
  white-space: nowrap;
}
td { padding: 14px 1rem 14px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th:last-child, td:last-child { padding-right: 0; }
th.num, td.num { text-align: right; white-space: nowrap; }
td.num { font-weight: 600; color: var(--navy); }
td.num.long { white-space: normal; }  /* a figure with a sentence attached */

/* ---------- FAQ ---------- */
/* Native <details>: no JavaScript, and the answers stay in the HTML for anything reading it as text */
.faq .qa {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  margin: 0 0 0.9rem;
}
.faq .qa summary {
  /* Block, not flex: as a flex container every inline child (a .nobr span) would
     become its own flex item and break the sentence apart */
  display: block;
  position: relative;
  min-height: var(--target);
  padding: 18px calc(22px + 1.5rem + 1rem) 18px 22px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
  /* The question is plain summary text, set exactly like an H3 (no heading inside
     <summary>: converters mangle it and screen readers flatten it anyway) */
  font-family: var(--font-head);
  font-size: var(--h3);
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}
.faq .qa summary::-webkit-details-marker { display: none; }
/* Disclosure indicator: plus when closed, minus when open */
.faq .qa summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--primary);
}
.faq .qa[open] summary::after { content: "\2212"; }
.faq .qa summary:hover { color: var(--primary-dk); }
.faq .qa summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.faq .qa .a { padding: 0 22px 22px; }
.faq .qa p:last-child { margin-bottom: 0; }

/* ---------- Related pages ---------- */
.related { padding: var(--space-section) 0 0.5rem; border-top: 1px solid var(--hairline); }
.related h2 { font-size: var(--h3); font-weight: 600; margin-bottom: 0.5rem; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin: 0; }
.related a { display: inline-flex; align-items: center; min-height: var(--target); font-weight: 600; }

/* ---------- Contact card ---------- */
.contact-section { padding: var(--space-section) 0 4rem; }
.cta {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  column-gap: 3rem;
  align-content: start;
}
.cta > :not(form) { grid-column: 1; }
.cta > form { grid-column: 2; grid-row: 1 / span 20; }
.cta h2 { margin-bottom: 1rem; }
.cta h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 0.7rem; background: var(--gold); }
.contact-line { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .cta { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; }
  .cta > form { grid-column: 1; grid-row: auto; }
}

/* Coverage pages: the shared closing line under the contact card */
.closing-line { margin: 1.25rem 0 0; max-width: none; font-size: var(--source); color: var(--muted); }

form.lead { margin: 0; }
form.lead label { display: block; margin: 1.1rem 0 0.35rem; font-size: var(--small); font-weight: 600; color: var(--navy); }
form.lead label:first-of-type { margin-top: 0; }
form.lead .opt { font-weight: 400; color: var(--muted); }
form.lead input[type="text"],
form.lead input[type="tel"],
form.lead input[type="email"],
form.lead select,
form.lead textarea {
  width: 100%;
  min-height: var(--target);
  padding: 0.6rem 0.75rem;
  font: 400 16px/1.4 var(--font-body);
  color: var(--body);
  background: var(--field-fill);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
}
form.lead textarea { min-height: 7rem; resize: vertical; }
form.lead input:focus-visible, form.lead select:focus-visible, form.lead textarea:focus-visible { border-color: var(--primary); }
form.lead label.check {
  display: flex; gap: 0.75rem; align-items: flex-start;
  margin: 1rem 0 0; min-height: var(--target);
  font-size: var(--text); font-weight: 400; line-height: 1.5; color: var(--body);
}
form.lead .form-line { margin: 1.5rem 0 0; max-width: none; }
form.lead label.check input { flex: none; width: 22px; height: 22px; margin: 0.05rem 0 0; accent-color: var(--primary); }
form.lead button {
  margin: 1.25rem 0 0.75rem;
  min-height: 48px;
  padding: 0.7rem 2rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem;
  color: var(--navy); background: var(--gold);
  border: 0; border-radius: var(--radius); cursor: pointer;
  transition: background-color var(--ease);
}
form.lead button:hover { background: #F2AF00; }
.fine { font-size: 0.875rem; color: var(--muted); max-width: none; }
form.lead label.check + .fine { margin-top: 0.75rem; }
/* Web3Forms honeypot (name="botcheck"), their documented markup. display:none lives here, not in their inline
   style attribute, because the CSP (style-src 'self') blocks inline styles. display:none also takes it out of
   the tab order and the accessibility tree, so neither a sighted nor a screen reader user meets it. */
.hidden { display: none; }

/* ---------- Footer ---------- */
footer.site { background: var(--navy); color: var(--on-navy); font-size: var(--source); line-height: 1.6; padding: 3rem 0 3.5rem; }
footer.site .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 0.9fr); grid-template-rows: auto 1fr; column-gap: 2.5rem; }
footer.site p { margin: 0 0 1rem; max-width: none; }
footer.site p:nth-child(1), footer.site p:nth-child(2) { grid-row: 1 / span 2; }
footer.site p:nth-child(3), footer.site p:nth-child(4) { grid-column: 3; }
footer.site p:nth-child(4) { grid-row: 2; }
footer.site strong { color: var(--surface); }
footer.site a { color: var(--surface); text-decoration-color: rgba(255, 255, 255, 0.45); }
footer.site a:hover { color: var(--surface); text-decoration-color: var(--surface); }
footer.site :focus-visible { outline-color: var(--surface); }
@media (max-width: 860px) {
  footer.site .wrap { grid-template-columns: 1fr; }
  footer.site p:nth-child(n) { grid-column: 1; grid-row: auto; }  /* reset the desktop spans, or the grid adds a column off-screen */
}

@media print {
  .site-header { position: static; }
  form.lead, .header-actions, .hero-actions, .skip { display: none; }
  .band { background: none; color: #000; }
}
