/* Travis Johns Law Firm — site styles */

/* Fonts are served from the site itself (latin subsets, variable weight). */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url(/fonts/archivo-latin.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/fonts/inter-latin.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(/fonts/inter-tight-latin.woff2) format("woff2"); }

:root {
  --ink: #14151a;
  --paper: #ffffff;
  --stone: #f5f5f6;
  --red: #e10001;
  --gray: #55575e;
  --line: #e3e3e6;
  --steel: #8f919b;
  --body-ink: #33343b;
  --max: 1200px;
  --radius: 6px;
  --display: "Archivo", system-ui, sans-serif;
  --mark: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, summary { text-wrap: balance; }
p, li { text-wrap: pretty; }

img { max-width: 100%; height: auto; display: block; }
::selection { background: #d8d8dc; color: var(--ink); }

a { color: inherit; text-decoration: none; }
article a:not(.btn), .about-copy a:not(.btn), .callout a, .faq a, .contact-card p a:not(.btn), .sent a:not(.btn), .send-failed a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
article a:not(.btn):hover, .about-copy a:not(.btn):hover { text-decoration-thickness: 3px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */

.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
}
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.topbar .loc { color: #b9bac1; }

/* ---------- Header / nav ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.brand:hover { color: var(--ink); }
.brand .dot { color: var(--red); }
.brand small {
  display: block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 2px;
}

nav.primary { display: flex; align-items: center; gap: 26px; }
nav.primary a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
}
nav.primary a:not(.btn) { padding: 6px 0; border-bottom: 2px solid transparent; }
nav.primary a:not(.btn):hover { border-bottom-color: var(--line); }
nav.primary a[aria-current="page"] { border-bottom-color: var(--red); }

.btn {
  display: inline-block;
  text-align: center;
  line-height: 1.25;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid var(--red);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost { color: var(--red); background: transparent; }
.btn-ghost:hover { background: var(--red); color: #fff; }
.btn-ink { border-color: #fff; color: #fff; background: transparent; }
.btn-ink:hover { background: #fff; color: var(--ink); }
nav.primary .btn { padding: 10px 20px; font-size: 0.9375rem; }

.nav-toggle { display: none; }

/* ---------- Eyebrow device ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--red);
}

/* ---------- Hero ---------- */

.hero { padding: 88px 0 96px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 72px;
  align-items: center;
}
.hero-photo { justify-self: end; }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-photo { justify-self: start; max-width: 320px; }
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 15ch;
}
.hero h1 .dot { color: var(--red); }
.hero .lede {
  margin-top: 26px;
  font-size: 1.1875rem;
  color: var(--gray);
  max-width: 54ch;
}
.hero .cta-row {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero .fineprint {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--gray);
}

/* ---------- Sections ---------- */

section { padding: 84px 0; }
section.alt { background: var(--stone); }
section.dark {
  background: var(--ink);
  background-image: repeating-linear-gradient(135deg, transparent 0 16px, rgba(255,255,255,0.03) 16px 17px);
  color: #fff;
}
section.dark .eyebrow { color: #b9bac1; }

h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 24ch;
}
.section-intro {
  margin-top: 16px;
  color: var(--gray);
  max-width: 62ch;
}
section.dark .section-intro { color: #c7c8ce; }

/* ---------- Practice grid ---------- */

.practice-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pcard {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 24px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
  overflow: hidden;
}
.pcard::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 4px;
  width: 0;
  background: var(--red);
  transition: width 0.2s ease;
}
.pcard:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.pcard:hover::before { width: 100%; }
.pcard:hover .go { color: var(--ink); transform: translateX(3px); }
.pcard h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.pcard p { margin-top: 10px; font-size: 0.9375rem; color: var(--gray); flex: 1; }
.pcard .venue {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}
.pcard .go {
  position: absolute;
  top: 26px; right: 22px;
  color: var(--steel);
  transition: color 0.15s ease, transform 0.15s ease;
  font-weight: 700;
}

/* ---------- Why / proof ---------- */

.why-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.why-grid h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.why-grid h3::before { content: "—"; color: var(--red); font-weight: 800; }
.why-grid p { margin-top: 10px; font-size: 0.9375rem; color: #c7c8ce; }

/* ---------- Service area ---------- */

.area-flex { margin-top: 40px; display: flex; gap: 60px; flex-wrap: wrap; }
.area-col h3 {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}
.area-col ul { list-style: none; }
.area-col li { padding: 4px 0; color: var(--gray); }

/* ---------- Contact ---------- */

.contact-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 8px;
}
.contact-card + .contact-card { margin-top: 20px; }
.contact-card p { color: var(--gray); }
.contact-card .big {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 6px 0 2px;
  display: inline-block;
}
.contact-card .big:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.hours { list-style: none; margin-top: 8px; }
.hours li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--gray);
}
.hours li:last-child { border-bottom: none; }

/* ---------- Page hero (interior) ---------- */

.page-hero {
  background: var(--ink);
  background-image: repeating-linear-gradient(135deg, transparent 0 16px, rgba(255,255,255,0.03) 16px 17px);
  color: #fff;
  padding: 72px 0;
}
.page-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.page-hero h1 .dot { color: var(--red); }
.page-hero .lede { margin-top: 20px; color: #c7c8ce; max-width: 58ch; font-size: 1.125rem; }
.page-hero .cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.crumbs { font-size: 0.8125rem; margin-bottom: 26px; color: #8f919b; }
.crumbs a { color: #c7c8ce; }
.crumbs a:hover { color: #fff; }

/* ---------- Article / practice content ---------- */

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  align-items: start;
}
article h2 {
  margin-top: 52px;
  font-size: 1.625rem;
  max-width: none;
}
article h2:first-child { margin-top: 0; }
article p { margin-top: 18px; color: var(--body-ink); max-width: 68ch; }
article ul { margin: 18px 0 0 22px; color: var(--body-ink); max-width: 66ch; }
article li::marker { color: var(--steel); }
article li { margin-top: 8px; }
article strong { color: var(--ink); }
.callout {
  margin-top: 28px;
  background: var(--stone);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: 0.9375rem;
}
.callout p { margin-top: 0; }

aside.rail { position: sticky; top: 96px; }
.rail-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
}
.rail-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.rail-card p { margin-top: 10px; font-size: 0.9375rem; color: #c7c8ce; }
.rail-card .btn { margin-top: 18px; display: block; text-align: center; }
.rail-links {
  margin-top: 20px;
  background: var(--stone);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.rail-links h3 {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}
.rail-links ul { list-style: none; }
.rail-links li { padding: 5px 0; }
.rail-links a { color: var(--ink); font-weight: 600; font-size: 0.9375rem; }
.rail-links a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }

/* ---------- FAQ ---------- */

.faq { margin-top: 20px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq summary {
  padding: 4px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary { align-items: center; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.faq summary:hover::after { border-color: var(--ink); }
.faq details[open] summary::after { content: "–"; background: var(--ink); border-color: var(--ink); color: #fff; }
.faq details p { max-width: 66ch; }
.faq details p { margin-top: 12px; color: var(--gray); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--red);
  background-image: repeating-linear-gradient(135deg, transparent 0 16px, rgba(255,255,255,0.05) 16px 17px);
  color: #fff;
  padding: 72px 0;
}
.cta-band h2 { color: #fff; max-width: none; }
.cta-band p { margin-top: 12px; color: rgba(255,255,255,0.9); max-width: 60ch; }
.cta-band .cta-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.cta-band .btn { border-color: #fff; }
.cta-band .btn-solid { background: #fff; color: var(--ink); }
.cta-band .btn-solid:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Footer ---------- */

footer.site {
  background: var(--ink);
  color: #b9bac1;
  padding: 64px 0 40px;
  font-size: 0.9375rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
footer.site .brand { color: #fff; }
footer.site .brand small { color: #8f919b; }
footer.site h3 {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
footer.site ul { list-style: none; }
footer.site li { padding: 4px 0; }
footer.site a { color: #b9bac1; }
footer.site a:hover { color: #fff; }
.foot-legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #2a2b32;
  font-size: 0.8125rem;
  color: #8f919b;
}
.foot-legal p + p { margin-top: 8px; }

/* ---------- Attorney / about ---------- */

.about-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: start;
}
.photo-frame {
  position: relative;
  display: inline-block;
  margin: 0 14px 14px 0;
  max-width: calc(100% - 14px);
}
.photo-frame img {
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
}
.photo-frame::after {
  content: "";
  position: absolute;
  top: 14px; left: 14px;
  width: 100%; height: 100%;
  border: 3px solid var(--red);
  border-radius: var(--radius);
  z-index: 0;
}
.about-copy p { margin-top: 16px; color: var(--body-ink); }
.about-copy p:first-of-type { margin-top: 0; }
.about-copy .btn { margin-top: 26px; }
.cred-list {
  list-style: none;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.cred-list li {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--gray);
}
.cred-list li strong {
  font-family: var(--display);
  color: var(--ink);
  min-width: 120px;
}
.rail-card .rail-photo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 3px solid var(--red);
  object-fit: cover;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .photo-frame { max-width: 360px; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .practice-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 26px; }
  .contact-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  aside.rail { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding: 60px 0; }
  .hero { padding: 60px 0 68px; }
  .practice-grid { grid-template-columns: 1fr; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    cursor: pointer;
    padding: 8px;
  }
  nav.primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    gap: 16px;
  }
  nav.primary.open { display: flex; }
  .topbar .loc { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  footer.site li { padding: 6px 0; font-size: 0.875rem; line-height: 1.35; }
}

/* ---------- Wordmark ---------- */

.brand .wm {
  display: block;
  font-family: var(--mark);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.035em;
  font-kerning: normal;
  white-space: nowrap;
}
.brand .wm .lw { font-weight: 300; letter-spacing: -0.02em; }
.brand small { margin-top: 4px; }

/* ---------- Small pieces that were inline styles ---------- */

.card-cta { margin-top: 18px; }
.card-note { margin-top: 16px; font-size: 0.875rem; }
.foot-addr { margin-top: 16px; }
.article-cta { margin-top: 28px; }
.cred-list-rail { margin-top: 36px; }
.rail-card .btn + .btn { margin-top: 10px; }
.btn-ink-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ink-dark:hover { background: var(--ink); color: #fff; }

/* ---------- Contact form ---------- */

.form-shell { min-width: 0; }
.intake fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px 8px;
  margin: 0 0 22px;
  background: var(--paper);
}
.intake legend {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  margin-left: -10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}
.intake .step {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0;
}
.intake .row { display: grid; gap: 0 18px; }
.intake .row.two { grid-template-columns: 1fr 1fr; }
.intake .row.three { grid-template-columns: 1fr 0.8fr 1fr; }
.intake .row.city { grid-template-columns: 1.3fr 1fr 0.6fr; }
.intake .field { margin-bottom: 18px; min-width: 0; }
.intake .field.half { max-width: 50%; }
.intake label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 6px;
}
.intake .req { color: var(--red); font-weight: 700; margin-left: 1px; }
.intake .opt { font-weight: 400; color: var(--gray); font-size: 0.8125rem; margin-left: 4px; }
.intake .hint { font-size: 0.875rem; color: var(--gray); margin: -2px 0 8px; }
.intake input:not([type="checkbox"]), .intake select, .intake textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 1rem;           /* 16px: iPhone does not zoom into the field */
  color: var(--ink);
  background: #fff;
  border: 1px solid #c8c8cd;
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: 48px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.intake select {
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--gray) 50%), linear-gradient(135deg, var(--gray) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.intake textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.intake input::placeholder { color: #a9abb3; }
.intake input:hover, .intake select:hover, .intake textarea:hover { border-color: var(--steel); }
.intake input:focus, .intake select:focus, .intake textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 21, 26, 0.12);
}
.intake [aria-invalid="true"] { border-color: var(--red) !important; box-shadow: inset 4px 0 0 var(--red); }
.intake .err { display: none; margin-top: 6px; font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.intake .err:not(:empty) { display: flex; gap: 8px; align-items: baseline; }
.intake .err:not(:empty)::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red); transform: translateY(-1px); }
.intake .count { font-size: 0.8125rem; color: var(--gray); text-align: right; margin-top: 4px; min-height: 1.2em; }

.copy-box {
  border-top: 1px solid var(--line);
  padding: 18px 0 8px;
  margin-top: 4px;
}
.intake .check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  cursor: pointer;
  margin: 0 0 14px;
  min-height: 32px;
}
.intake .check input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; }
.copy-to { max-width: 420px; }
.copy-to[hidden] { display: none; }
.intake[data-copies="off"] .copy-box { display: none; }

.send { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.send .btn { min-width: 220px; font-size: 1.0625rem; padding: 16px 30px; }
.send .btn[disabled] { opacity: 0.6; cursor: progress; }
.send .fine { flex: 1 1 260px; font-size: 0.8125rem; color: var(--gray); }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-errors, .send-failed {
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  background: var(--stone);
  padding: 20px 24px;
  margin-bottom: 22px;
}
.form-errors h2, .send-failed h2 { font-size: 1.125rem; max-width: none; letter-spacing: -0.01em; }
.form-errors ul { margin: 10px 0 0 20px; }
.form-errors li { margin-top: 4px; }
.form-errors a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.send-failed p { margin-top: 8px; color: var(--body-ink); }
.send-failed { margin: 22px 0 0; }

.sent {
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 34px 34px 30px;
  background: var(--paper);
}
.sent:focus { outline: none; }
.sent h2 .dot { color: var(--red); }
.sent-lede { margin-top: 14px; color: var(--body-ink); max-width: 58ch; }
.sent-copy { margin-top: 10px; color: var(--gray); font-size: 0.9375rem; }
.sent h3 {
  margin-top: 30px;
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sent-list { margin-top: 10px; border-top: 1px solid var(--line); }
.sent-list div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.sent-list dt { font-weight: 600; }
.sent-list dd { color: var(--body-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.sent-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

.rail-note { margin-top: 12px; font-size: 0.875rem; color: var(--gray); }
.rail-links .hours li { font-size: 0.875rem; }

@media print {
  .topbar, header.site, footer.site, .page-hero, aside.rail, .sent-actions, .cta-band { display: none !important; }
  .sent { border: none; padding: 0; }
}

/* ---------- Menu button below laptop width ---------- */

nav.primary a { white-space: nowrap; }
nav.primary a.btn-solid, nav.primary a.btn-solid:hover { color: #fff; }
.form-errors:focus, .sent:focus { outline: none; }
.brand small { white-space: nowrap; font-size: 0.65rem; letter-spacing: 0.1em; }
@media (min-width: 1201px) {
  nav.primary { gap: 22px; }
}

@media (max-width: 1200px) {
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--ink);
    cursor: pointer;
    padding: 9px 16px;
  }
  .nav-toggle[aria-expanded="true"] { background: var(--stone); }
  nav.primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px max(20px, calc((100% - var(--max)) / 2 + 24px)) 22px;
    gap: 0;
    box-shadow: 0 18px 30px -18px rgba(20, 21, 26, 0.35);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  nav.primary.open { display: flex; }
  nav.primary a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
  }
  nav.primary a:not(.btn):hover { border-bottom-color: var(--line); background: var(--stone); }
  nav.primary a[aria-current="page"] { border-bottom: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--red); padding-left: 14px; }
  nav.primary .btn { margin-top: 18px; padding: 14px 20px; font-size: 1rem; }
}

/* ---------- Phones ---------- */

@media (max-width: 900px) {
  .page-hero { padding: 56px 0; }
  aside.rail { margin-top: 8px; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 20px; }
  .topbar .wrap { justify-content: center; }
  header.site .wrap { padding-top: 14px; padding-bottom: 14px; }
  .brand .wm { font-size: 1.25rem; }
  .brand small { font-size: 0.625rem; letter-spacing: 0.12em; }
  .hero { padding: 44px 0 56px; }
  .hero-grid { gap: 40px; }
  .hero .lede, .page-hero .lede { font-size: 1.0625rem; }
  .hero-photo { max-width: 280px; }
  .page-hero { padding: 44px 0 48px; }
  .crumbs { margin-bottom: 18px; }
  .hero .cta-row .btn, .page-hero .cta-row .btn, .cta-band .cta-row .btn { flex: 1 1 100%; }
  .cta-band { padding: 56px 0; }
  .practice-grid, .why-grid, .contact-grid, .about-grid { margin-top: 32px; }
  .pcard { padding: 24px 22px 20px; }
  .area-flex { gap: 28px 48px; }
  .contact-card { padding: 26px 22px; }
  .hours li { gap: 12px; }
  .cred-list li { flex-direction: column; gap: 2px; }
  .cred-list li strong { min-width: 0; }
  article h2 { margin-top: 40px; font-size: 1.4375rem; }
  .callout { padding: 18px 20px; }
  footer.site { padding: 48px 0 32px; }

  .intake fieldset { padding: 20px 16px 4px; }
  .intake .row.two, .intake .row.three, .intake .row.city { grid-template-columns: 1fr; }
  .intake .row.city { grid-template-columns: 1fr 1fr; }
  .intake .row.city .field:first-child { grid-column: 1 / -1; }
  .intake .field.half { max-width: none; }
  .send .btn { width: 100%; }
  .sent { padding: 26px 20px 22px; }
  .sent-list div { grid-template-columns: 1fr; gap: 2px; }
  .sent-actions .btn { flex: 1 1 100%; }
}

/* Scrolled-to parts of the form clear the sticky header. */
.sent, .form-errors, .send-failed, .intake input, .intake select, .intake textarea { scroll-margin-top: 120px; }
a[href^="tel:"] { white-space: nowrap; }
