:root {
  color-scheme: light;
  --ink: #0a0a0a;
  --paper: #ffffff;
  --muted: #5f6368;
  --soft: #f5f5f5;
  --line: #d9d9d9;
  --line-strong: #111111;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --max: 1180px;
  --max-wide: 1320px;
  --radius: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: 3.25rem;
  max-width: 14ch;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.18rem;
}

p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

main {
  min-height: 65vh;
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  animation: header-drop 0.55s var(--ease) both;
}

.header-inner,
.header-contact,
.footer-grid,
.footer-legal,
.section,
.hero,
.page-hero,
.cta-band {
  width: min(var(--max), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
  transition: transform 0.2s ease;
}

.brand:hover,
.brand:focus-visible {
  transform: translateY(-1px);
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--radius);
  padding: 0.45rem 0.72rem;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 0.55rem;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-contact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  min-height: 42px;
  padding-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.header-contact a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--muted);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.status-dot.is-open {
  background: #111111;
  animation: status-pulse 1.8s ease-out infinite;
}

.status-dot.is-closed {
  background: #777777;
}

.hero,
.page-hero,
.cta-band {
  background: var(--ink);
  color: var(--paper);
}

.hero {
  width: min(var(--max-wide), calc(100% - 32px));
  margin-top: 1.2rem;
  border-radius: var(--radius);
  padding: 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 3rem;
  align-items: center;
  animation: hero-rise 0.7s var(--ease) both;
}

.page-hero {
  margin-top: 1.2rem;
  border-radius: var(--radius);
  padding: 3.8rem;
  animation: hero-rise 0.7s var(--ease) both;
}

.hero p,
.page-hero p,
.cta-band p,
.invert p {
  color: #e7e7e7;
}

.lead {
  font-size: 1.15rem;
  max-width: 58ch;
}

.eyebrow {
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 0.7rem;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.06);
  animation: panel-rise 0.75s var(--ease) 0.12s both;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.hero-panel:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-3px);
}

.hero-panel img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 0.8rem;
  margin-bottom: 1.25rem;
}

.hero-request-panel h2 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.hero-request-panel p {
  margin-bottom: 1rem;
}

.hero-panel dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.hero-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 0.75rem;
}

.hero-panel dt {
  color: #d8d8d8;
}

.hero-panel dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.hero-proof span,
.tag-row span {
  border: 1px solid currentColor;
  border-radius: var(--radius);
  padding: 0.42rem 0.58rem;
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-proof span {
  animation: proof-pop 0.48s var(--ease) both;
}

.hero-proof span:nth-child(2) {
  animation-delay: 0.08s;
}

.hero-proof span:nth-child(3) {
  animation-delay: 0.16s;
}

.action-row,
.section-actions,
.branch-actions,
.channel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 0.72rem 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  text-align: center;
  white-space: normal;
}

.button:hover,
.button:focus-visible {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.button-secondary {
  background: var(--paper);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.button-light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.button-light:hover,
.button-light:focus-visible {
  background: transparent;
  color: var(--paper);
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.14);
}

.button-ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.65);
}

.button-ghost-light:hover,
.button-ghost-light:focus-visible {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.14);
}

.button-small {
  min-height: 40px;
  padding: 0.52rem 0.78rem;
  font-size: 0.92rem;
}

.section {
  padding: 4rem 0;
}

.section-tight {
  padding-top: 3rem;
}

.compact-section {
  max-width: 760px;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading p {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.faq-item,
.contact-panel,
.contact-form,
.cert-card,
.branch-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.card,
.faq-item,
.contact-panel,
.contact-form {
  padding: 1.25rem;
}

.card,
.faq-item,
.contact-panel,
.contact-form,
.cert-card,
.branch-card,
.quick-grid a,
.area-grid a,
.branch-mini-list a,
.location-card,
.service-location-grid a,
.issue-grid span {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover,
.faq-item:hover,
.contact-panel:hover,
.cert-card:hover,
.branch-card:hover,
.location-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card h3,
.faq-item h2 {
  margin-bottom: 0.5rem;
}

.card p,
.faq-item p {
  margin-bottom: 0;
}

.card a {
  display: inline-flex;
  margin-top: 0.9rem;
  font-weight: 800;
}

.card-note {
  margin-top: 0.8rem;
  color: var(--ink);
  font-weight: 800;
}

.service-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.service-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

.service-main-panel,
.service-side-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1.25rem;
}

.service-main-panel h2,
.service-side-panel h2 {
  margin-bottom: 0.65rem;
}

.issue-grid,
.service-location-grid {
  display: grid;
  gap: 0.65rem;
}

.issue-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.issue-grid span,
.service-location-grid a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
}

.issue-grid span {
  color: var(--ink);
  font-weight: 800;
}

.compact-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.compact-list li + li {
  margin-top: 0.45rem;
}

.side-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.service-location-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-location-grid a {
  display: grid;
  gap: 0.25rem;
  color: var(--ink);
  text-decoration: none;
}

.service-location-grid a:hover,
.service-location-grid a:focus-visible {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.service-location-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-row span {
  color: var(--ink);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.inline-actions a {
  margin-top: 0;
}

.proof-grid,
.value-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.proof-grid span,
.value-list span {
  border: 1px solid currentColor;
  border-radius: var(--radius);
  padding: 0.85rem;
  font-weight: 800;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.proof-grid span:hover,
.value-list span:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-2px);
}

.invert {
  width: 100%;
  max-width: none;
  background: var(--ink);
  color: var(--paper);
  padding-left: max(16px, calc((100% - var(--max)) / 2));
  padding-right: max(16px, calc((100% - var(--max)) / 2));
}

.invert .section-heading {
  margin-left: 0;
  text-align: left;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
}

.brand-grid a {
  min-height: 92px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
  background: var(--paper);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.brand-grid a:hover,
.brand-grid a:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.brand-grid img {
  max-height: 54px;
  object-fit: contain;
}

.intake-strip,
.quick-request,
.service-area-section {
  display: grid;
  gap: 1rem;
}

.intake-strip {
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.intake-strip h2,
.intake-strip p {
  margin-bottom: 0;
}

.intake-strip ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.intake-strip li {
  padding-left: 0.2rem;
}

.quick-grid,
.area-grid,
.location-grid {
  display: grid;
  gap: 0.8rem;
}

.quick-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.area-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.location-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-grid a,
.area-grid a,
.branch-mini-list a,
.location-card {
  display: grid;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.location-card h3 {
  margin-bottom: 0.5rem;
}

.location-card p {
  margin-bottom: 0.7rem;
}

.location-card a {
  display: inline-flex;
  margin-top: 0.7rem;
  font-weight: 800;
}

.quick-grid a:hover,
.quick-grid a:focus-visible,
.area-grid a:hover,
.area-grid a:focus-visible,
.branch-mini-list a:hover,
.branch-mini-list a:focus-visible {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.quick-grid span,
.area-grid span,
.branch-mini-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.cta-band {
  border-radius: var(--radius);
  padding: 2.4rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.cta-band h2 {
  margin-bottom: 0.5rem;
}

.cta-band p:last-child {
  margin-bottom: 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.8rem;
}

.step-list li {
  counter-increment: step;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1rem 1rem 3.25rem;
  position: relative;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 800;
}

.routing-strip {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
}

.routing-strip h2 {
  margin-bottom: 0.45rem;
}

.routing-strip p:last-child {
  margin-bottom: 0;
}

.branch-grid {
  display: grid;
  gap: 1rem;
}

.branch-card {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1fr);
  overflow: hidden;
}

.branch-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

.branch-info-panel,
.branch-action-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1.25rem;
}

.branch-info-panel h2,
.branch-action-panel h2 {
  margin-bottom: 0.65rem;
}

.branch-copy {
  padding: 1.25rem;
  display: grid;
  align-content: start;
  gap: 1rem;
}

.branch-heading h3 {
  margin-bottom: 0;
}

.branch-details {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.branch-details div {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.branch-details dt {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.branch-details dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.branch-mini-list {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0;
}

.branch-map {
  position: relative;
  min-height: 320px;
  background: var(--soft);
}

.branch-detail-map {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.branch-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  border-left: 1px solid var(--line);
  filter: grayscale(1);
}

.branch-detail-map iframe {
  min-height: 420px;
}

.branch-map a {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 0.55rem 0.75rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.branch-map a:hover,
.branch-map a:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 1.2rem;
  align-items: start;
}

.contact-form label {
  display: block;
  margin: 0.8rem 0 0.35rem;
  font-weight: 800;
}

.contact-form fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.form-fallback {
  margin-top: 1rem;
  border-left: 4px solid var(--ink);
  background: var(--soft);
  padding: 1rem;
}

.form-fallback h3 {
  margin-bottom: 0.45rem;
}

.form-fallback p:last-of-type {
  margin-bottom: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 0.8rem 0.9rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
  outline: 3px solid rgba(0, 0, 0, 0.14);
}

.contact-form button {
  margin-top: 1rem;
}

.honeypot {
  position: absolute;
  left: -100vw;
  opacity: 0;
}

.form-feedback {
  margin: 0.8rem 0 0;
  font-weight: 800;
}

.form-feedback.error {
  color: #6b1111;
}

.form-feedback.success {
  color: #111111;
}

.contact-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}

.contact-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
  text-decoration: none;
  min-width: 0;
}

.contact-list strong,
.branch-mini-list strong,
.quick-grid strong,
.area-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  border-color: var(--ink);
}

.contact-list span {
  color: var(--muted);
}

.fine-print {
  font-size: 0.9rem;
  margin-top: 1rem;
}

.faq-list {
  max-width: 900px;
  display: grid;
  gap: 0.9rem;
}

.legal-copy {
  max-width: 820px;
}

.legal-copy h2 {
  margin-top: 1.8rem;
  font-size: 1.35rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cert-preview-section {
  display: grid;
  gap: 1.25rem;
}

.cert-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.cert-card {
  margin: 0;
  padding: 0.8rem;
}

.cert-card img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: var(--soft);
  border-radius: var(--radius);
}

.cert-card figcaption {
  margin-top: 0.65rem;
  font-weight: 800;
}

.cert-preview-card img {
  height: 220px;
}

.cert-preview-card figcaption {
  font-size: 0.95rem;
}

.emphasis-card {
  box-shadow: var(--shadow);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: 2.4rem 0 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 1.5rem;
}

.footer-grid h2 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.8rem;
}

.footer-legal {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.assistant-widget {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  justify-items: end;
  gap: 0.65rem;
}

.assistant-toggle {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.45rem 0.8rem 0.45rem 0.5rem;
  box-shadow: var(--shadow);
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.assistant-toggle:hover,
.assistant-toggle:focus-visible,
.assistant-widget.is-open .assistant-toggle {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-2px);
}

.assistant-toggle-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}

.assistant-toggle-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.18rem;
}

.assistant-panel {
  width: min(380px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 112px));
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  animation: panel-rise 0.28s var(--ease) both;
}

.assistant-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 1rem;
}

.assistant-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: contain;
  padding: 0.28rem;
}

.assistant-header h2,
.assistant-header p {
  margin-bottom: 0;
}

.assistant-close {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 0.35rem 0.55rem;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

.assistant-close:hover,
.assistant-close:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.assistant-messages {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  overflow-y: auto;
  padding: 1rem;
}

.assistant-message {
  display: grid;
  gap: 0.55rem;
  max-width: 92%;
}

.assistant-message p {
  margin-bottom: 0;
  border-radius: var(--radius);
  padding: 0.72rem 0.85rem;
}

.assistant-message-assistant {
  justify-self: start;
}

.assistant-message-assistant p {
  background: var(--soft);
  color: var(--ink);
}

.assistant-message-user {
  justify-self: end;
}

.assistant-message-user p {
  background: var(--ink);
  color: var(--paper);
}

.assistant-message-actions,
.assistant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.assistant-message-actions a,
.assistant-chips button {
  min-height: 36px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 0.42rem 0.55rem;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.assistant-message-actions a:hover,
.assistant-message-actions a:focus-visible,
.assistant-chips button:hover,
.assistant-chips button:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.assistant-chips {
  border-top: 1px solid var(--line);
  padding: 0.75rem 1rem;
}

.assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  border-top: 1px solid var(--line);
  padding: 0.8rem 1rem 1rem;
}

.assistant-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.78rem;
}

.assistant-form input:focus {
  border-color: var(--ink);
  outline: 3px solid rgba(0, 0, 0, 0.14);
}

.assistant-form button {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.assistant-form button:hover,
.assistant-form button:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.mobile-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 0.55rem;
  animation: mobile-actions-rise 0.42s var(--ease) both;
}

.mobile-actions a {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.mobile-actions a:hover,
.mobile-actions a:focus-visible {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  transform: translateY(-2px);
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 82px;
  z-index: 70;
  display: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 0.75rem;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.18s ease, color 0.18s ease;
}

.back-to-top.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.58s var(--ease), transform 0.58s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-motion [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes header-drop {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-rise {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes proof-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.24);
  }

  70% {
    box-shadow: 0 0 0 7px rgba(0, 0, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

@keyframes mobile-actions-rise {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 2.55rem;
  }

  .hero,
  .split-section,
  .contact-layout,
  .service-detail-layout,
  .branch-detail-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem;
  }

  .hero-panel {
    max-width: 680px;
  }

  .card-grid,
  .proof-grid,
  .value-list,
  .cert-grid,
  .cert-preview-grid,
  .quick-grid,
  .area-grid,
  .location-grid,
  .service-location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intake-strip {
    grid-template-columns: 1fr;
  }

  .brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .branch-card {
    grid-template-columns: 1fr;
  }

  .branch-map iframe {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  h1 {
    font-size: 2rem;
    max-width: 18ch;
  }

  h2 {
    font-size: 1.55rem;
  }

  h3 {
    font-size: 1.08rem;
  }

  .header-inner {
    min-height: 72px;
    gap: 0.7rem;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-copy strong {
    font-size: 0.88rem;
    max-width: 20ch;
  }

  .brand-copy span {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    inset: 72px 10px auto 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.6rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .primary-nav a {
    justify-content: flex-start;
    min-height: 48px;
  }

  .header-contact {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 0.7rem;
    min-height: 40px;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .header-contact::-webkit-scrollbar {
    display: none;
  }

  .status {
    flex: 0 0 auto;
  }

  .header-contact a {
    flex: 0 0 auto;
  }

  .hero,
  .page-hero,
  .cta-band {
    width: min(100% - 20px, var(--max));
    padding: 1.65rem 1rem;
  }

  .hero {
    gap: 1.15rem;
    margin-top: 0.8rem;
  }

  .page-hero {
    margin-top: 0.8rem;
  }

  .hero-panel {
    padding: 1rem;
  }

  .hero-panel img {
    width: 112px;
    height: 112px;
    margin-bottom: 0.9rem;
  }

  .hero-panel dl {
    gap: 0.55rem;
  }

  .hero-panel dl div {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero-panel dd {
    max-width: 14ch;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-proof {
    gap: 0.45rem;
  }

  .hero-proof span,
  .tag-row span {
    font-size: 0.82rem;
    padding: 0.35rem 0.5rem;
  }

  .section {
    padding: 2.6rem 0;
  }

  .section-tight {
    padding-top: 2rem;
  }

  .section-heading {
    margin-bottom: 1.35rem;
  }

  .card-grid,
  .proof-grid,
  .value-list,
  .brand-grid,
  .cert-grid,
  .cert-preview-grid,
  .quick-grid,
  .area-grid,
  .location-grid,
  .service-location-grid,
  .issue-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-layout {
    gap: 0.8rem;
  }

  .card,
  .faq-item,
  .contact-panel,
  .contact-form,
  .service-main-panel,
  .service-side-panel,
  .branch-info-panel,
  .branch-action-panel {
    padding: 1rem;
  }

  .issue-grid span,
  .service-location-grid a,
  .quick-grid a,
  .area-grid a,
  .branch-mini-list a,
  .location-card {
    padding: 0.85rem;
  }

  .contact-layout,
  .branch-detail-layout,
  .service-detail-layout,
  .split-section {
    gap: 0.8rem;
  }

  .contact-list a {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
  }

  .branch-card {
    scroll-margin-top: 132px;
  }

  .branch-copy {
    padding: 1rem;
  }

  .branch-details div {
    padding-top: 0.65rem;
  }

  .branch-map,
  .branch-map iframe {
    min-height: 260px;
  }

  .branch-detail-map,
  .branch-detail-map iframe {
    min-height: 300px;
  }

  .branch-map a {
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    min-height: 44px;
    place-items: center;
    text-align: center;
  }

  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-grid a {
    min-height: 78px;
    padding: 0.7rem;
  }

  .brand-grid img {
    max-height: 44px;
  }

  .cert-card img {
    height: 220px;
  }

  .cert-preview-card img {
    height: 200px;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 2rem;
  }

  .routing-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .mobile-actions {
    display: grid;
    gap: 0.45rem;
    padding: 0.55rem 0.55rem max(0.55rem, env(safe-area-inset-bottom));
  }

  .assistant-widget {
    right: 10px;
    bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .assistant-panel {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 164px - env(safe-area-inset-bottom));
  }

  .assistant-toggle {
    min-height: 46px;
    padding-right: 0.72rem;
  }

  .back-to-top {
    bottom: calc(146px + env(safe-area-inset-bottom));
  }

  .site-footer {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 460px) {
  .header-inner,
  .header-contact,
  .footer-grid,
  .footer-legal,
  .section {
    width: min(100% - 20px, var(--max));
  }

  .hero,
  .page-hero,
  .cta-band {
    width: min(100% - 16px, var(--max));
    padding: 1.35rem 0.85rem;
  }

  h1 {
    font-size: 1.74rem;
  }

  h2 {
    font-size: 1.38rem;
  }

  .header-contact a:nth-of-type(n + 2) {
    display: none;
  }

  .header-contact {
    width: min(100% - 16px, var(--max));
  }

  .brand-copy strong {
    max-width: 17ch;
  }

  .action-row,
  .section-actions,
  .branch-actions,
  .channel-grid,
  .inline-actions,
  .side-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .mobile-actions a,
  .inline-actions a,
  .side-actions a {
    width: 100%;
  }

  .button {
    min-height: 48px;
    padding: 0.72rem 0.85rem;
  }

  .mobile-actions a {
    min-height: 48px;
    font-size: 0.9rem;
  }

  .assistant-panel {
    max-height: calc(100vh - 154px - env(safe-area-inset-bottom));
  }

  .assistant-header,
  .assistant-messages,
  .assistant-chips {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .assistant-form {
    grid-template-columns: 1fr;
    padding: 0.75rem 0.8rem 0.85rem;
  }

  .assistant-message {
    max-width: 96%;
  }

  .hero-panel dl div {
    display: grid;
  }

  .hero-panel dd {
    max-width: none;
    text-align: left;
  }

  .proof-grid span,
  .value-list span {
    padding: 0.75rem;
  }

  .cert-card {
    padding: 0.65rem;
  }

  .cert-card img,
  .cert-preview-card img {
    height: 190px;
  }

  .footer-legal {
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (max-width: 360px) {
  .header-contact {
    white-space: normal;
  }

  .header-contact a {
    display: none;
  }

  .assistant-toggle span:last-child {
    display: none;
  }

  .assistant-toggle {
    padding: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
