/* A1Aim Autoglass — main stylesheet */
:root {
  --a1-red: #C8102E;
  --a1-red-dark: #9E0C24;
  --a1-black: #0D0D0D;
  --a1-charcoal: #1A1A1A;
  --a1-white: #FFFFFF;
  --a1-offwhite: #F5F5F5;
  --a1-gray: #6B6B6B;
  --a1-border: #E5E5E5;
  --radius: 6px;
  --tap: 44px;
  --max: 720px;
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--a1-charcoal);
  background: var(--a1-white);
  padding-bottom: 96px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--a1-red); }
a:hover { color: var(--a1-red-dark); }

.screen-reader-text,
.a1-skip {
  position: absolute;
  left: -9999px;
  top: auto;
}
.a1-skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
  color: var(--a1-black);
}

.a1-wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Utility bar */
.a1-util {
  background: var(--a1-black);
  color: #fff;
  font-size: 12px;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.a1-util a { color: #fff; font-weight: 700; text-decoration: none; }

/* Header */
.a1-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--a1-border);
}
.a1-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.a1-logo { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.a1-logo img,
.a1-logo .custom-logo { height: 40px; width: auto; }
.a1-logo .custom-logo-link { display: flex; }

.a1-nav-toggle {
  min-height: var(--tap);
  min-width: var(--tap);
  border: 1px solid var(--a1-border);
  background: #fff;
  border-radius: var(--radius);
  font-size: 18px;
  cursor: pointer;
}
.a1-header__cta {
  display: none;
  min-height: 36px;
  font-size: 13px;
  padding: 0 12px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.a1-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--a1-border);
  padding: 12px 14px 16px;
  z-index: 55;
}
.a1-nav.is-open { display: block; }
.a1-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.a1-nav__list a,
.a1-nav__more-btn {
  display: block;
  padding: 10px 8px;
  color: var(--a1-charcoal);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: inherit;
}
.a1-nav__more-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.a1-nav__list a:hover,
.a1-nav__more-btn:hover,
.a1-nav__list .current-menu-item > a,
.a1-nav__more.current-menu-item > .a1-nav__more-btn {
  background: var(--a1-offwhite);
  color: var(--a1-red);
}

/* More: hidden by default; mobile expands inline via .is-open */
.a1-nav__more { position: relative; }
.a1-nav__sub {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0 0 0 12px;
}
.a1-nav__more.is-open > .a1-nav__sub { display: block; }

@media (min-width: 782px) {
  .a1-nav-toggle { display: none; }
  .a1-header__cta { display: inline-flex; }
  .a1-header__inner { gap: 8px; padding: 8px 16px; }
  .a1-nav {
    display: block;
    position: static;
    border: 0;
    padding: 0;
    flex: 1 1 auto;
    min-width: 0;
    z-index: auto;
  }
  .a1-nav__list {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    overflow: visible;
  }
  .a1-nav__list > li { flex: 0 0 auto; }
  .a1-nav__list a,
  .a1-nav__more-btn {
    padding: 8px 8px;
    font-size: 13px;
    white-space: nowrap;
    width: auto;
    text-align: center;
  }
  .a1-nav__more { position: relative; }
  .a1-nav__sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    padding: 6px 0;
    background: #fff;
    border: 1px solid var(--a1-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    z-index: 70;
  }
  .a1-nav__more:hover > .a1-nav__sub,
  .a1-nav__more:focus-within > .a1-nav__sub,
  .a1-nav__more.is-open > .a1-nav__sub {
    display: block;
  }
  .a1-nav__sub a {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
    border-radius: 0;
  }
}

@media (min-width: 782px) and (max-width: 1199px) {
  .a1-logo img,
  .a1-logo .custom-logo { height: 34px; }
  .a1-header__inner { gap: 4px; padding: 8px 10px; }
  .a1-nav__list { gap: 0; }
  .a1-nav__list a,
  .a1-nav__more-btn { padding: 8px 5px; font-size: 12.5px; }
  .a1-header__cta { padding: 0 9px; font-size: 12px; min-height: 34px; }
}

/* Buttons */
.a1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.a1-btn-red { background: var(--a1-red); color: #fff; }
.a1-btn-red:hover { background: var(--a1-red-dark); color: #fff; }
.a1-btn-outline { background: transparent; border-color: var(--a1-black); color: var(--a1-black); }
.a1-btn-outline:hover { background: var(--a1-black); color: #fff; }
.a1-btn-outline-w { background: transparent; border-color: #fff; color: #fff; }
.a1-btn-outline-w:hover { background: #fff; color: var(--a1-black); }
.a1-btn-lg { width: 100%; }
.a1-cta-stack { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.a1-cta-stack--center { max-width: 280px; margin-left: auto; margin-right: auto; }

/* Hero */
.a1-hero__photo {
  height: 160px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #3d1515 100%);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 16px;
  border-bottom: 3px solid var(--a1-red);
}
.a1-hero__photo span {
  border: 1px dashed rgba(255,255,255,.4);
  padding: 12px 16px;
  border-radius: 6px;
}
.a1-hero__body {
  padding: 20px 0 8px;
  background: var(--a1-offwhite);
}
.a1-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--a1-red);
  margin: 0 0 8px;
}
.a1-hero h1 {
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 10px;
  color: var(--a1-black);
}
.a1-hero__sub { color: #333; margin: 0 0 8px; }

/* Trust */
.a1-trust {
  background: var(--a1-offwhite);
  padding: 0 0 18px;
}
.a1-trust__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.a1-pill {
  font-size: 11px;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--a1-border);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--a1-charcoal);
  text-decoration: none;
}

/* Trust band (static — replaces animated counter) */
.a1-trust-band {
  padding: 18px 0;
  background: var(--a1-black);
  color: #fff;
}
.a1-trust-band__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.a1-trust-band__list li {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
}
.a1-trust-band__list li:not(:first-child) {
  border-left: 1px solid rgba(255,255,255,.28);
}
.a1-trust-band__list a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.a1-trust-band__list a:hover {
  color: #fff;
  opacity: .9;
}
.a1-trust-band__list a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Sections */
.a1-section { padding: 28px 0; }
.a1-section--alt { background: var(--a1-offwhite); }
.a1-section h2,
.a1-page__title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 12px;
  line-height: 1.25;
  color: var(--a1-black);
}
.a1-page__header {
  background: var(--a1-offwhite);
  padding: 28px 0 16px;
  border-bottom: 1px solid var(--a1-border);
}
.a1-page__content { padding: 24px 0 8px; }

/* Cards */
.a1-cards {
  display: grid;
  gap: 12px;
}
@media (min-width: 700px) {
  .a1-cards { grid-template-columns: repeat(3, 1fr); }
}
.a1-card {
  background: #fff;
  border: 1px solid var(--a1-border);
  border-radius: var(--radius);
  padding: 18px 16px;
}
.a1-section--alt .a1-card { background: #fff; }
.a1-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--a1-red);
}
.a1-card p { margin: 0 0 12px; font-size: 15px; }
.a1-card__link { font-weight: 700; text-decoration: none; }

/* Steps / why */
.a1-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.a1-steps li {
  background: var(--a1-offwhite);
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 1px solid var(--a1-border);
}
.a1-steps p { margin: 6px 0 0; font-size: 15px; color: #333; }
.a1-why { padding-left: 1.1rem; margin: 0; }
.a1-why li { margin-bottom: 8px; }

.a1-reviews-placeholder {
  border: 1px dashed #999;
  background: #e8e8e8;
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  color: #555;
  font-size: 14px;
  font-weight: 600;
}
.a1-reviews-meta {
  margin: 0 0 1.25rem;
  color: var(--a1-gray);
  font-size: 0.95rem;
}
.a1-reviews-meta strong { color: var(--a1-black); }
.a1-reviews-stars { color: var(--a1-red); letter-spacing: 0.05em; margin: 0 0.25rem; }
.a1-reviews-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .a1-reviews-grid { grid-template-columns: 1fr 1fr; }
}
.a1-review-card {
  margin: 0;
  background: var(--a1-offwhite);
  border: 1px solid var(--a1-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.15rem;
}
.a1-review-card__stars {
  color: var(--a1-red);
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.a1-review-card__text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--a1-charcoal);
}
.a1-review-card__foot {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  font-size: 0.9rem;
}
.a1-review-card__foot cite {
  font-style: normal;
  font-weight: 700;
  color: var(--a1-black);
}
.a1-review-card__when { color: var(--a1-gray); }
.a1-reviews-more { margin-top: 1.25rem; }

/* FAQ accordion */
.a1-faq {
  max-width: none;
  width: 100%;
}
.a1-prose.a1-faq {
  max-width: var(--max);
}
.a1-faq > .a1-eyebrow {
  margin-bottom: 6px;
}
.a1-faq > h2,
.a1-faq > h3 {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.2;
  color: var(--a1-black);
}
.a1-faq > .a1-muted {
  margin: 0 0 18px;
}
.a1-faq > h3 + .a1-faq,
.a1-prose > h3 + .a1-faq {
  margin-top: 10px;
}

.a1-faq details {
  border: 1px solid var(--a1-border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.a1-faq > details:last-of-type {
  margin-bottom: 0;
}
.a1-faq > details:last-of-type + p,
.a1-faq > details:last-of-type + .a1-cta-stack {
  margin-top: 18px;
}
.a1-faq details:hover {
  border-color: #d0d0d0;
}
.a1-faq details[open] {
  border-color: var(--a1-red);
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.1);
  background: #fff;
}
.a1-faq details[open]:hover {
  border-color: var(--a1-red);
}

.a1-faq summary {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 16px;
  position: relative;
  color: var(--a1-black);
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.a1-faq summary::-webkit-details-marker,
.a1-faq summary::marker {
  display: none;
  content: "";
}
.a1-faq details:hover summary {
  background: var(--a1-offwhite);
}
.a1-faq details[open] summary {
  background: #fff;
  color: var(--a1-black);
  border-bottom: 1px solid rgba(200, 16, 46, 0.12);
}
.a1-faq summary:focus {
  outline: none;
}
.a1-faq summary:focus-visible {
  outline: 2px solid var(--a1-red);
  outline-offset: -2px;
  border-radius: 8px;
  background: #fff5f6;
}

/* Marker chip (+ / –) */
.a1-faq summary::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1.5px solid rgba(200, 16, 46, 0.35);
  background:
    linear-gradient(var(--a1-red), var(--a1-red)) center / 12px 2px no-repeat,
    linear-gradient(var(--a1-red), var(--a1-red)) center / 2px 12px no-repeat,
    #fff;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.a1-faq details[open] summary::after {
  border-color: var(--a1-red);
  background:
    linear-gradient(#fff, #fff) center / 12px 2px no-repeat,
    var(--a1-red);
}
.a1-faq details:hover summary::after {
  border-color: var(--a1-red);
}

.a1-faq details > *:not(summary) {
  padding: 14px 16px 18px;
  animation: a1-faq-in 0.18s ease;
}
.a1-faq details p {
  margin: 0;
  font-size: 15px;
  color: #3a3a3a;
  line-height: 1.6;
}
.a1-faq details p + p {
  margin-top: 10px;
}
.a1-faq details a {
  font-weight: 600;
}

@keyframes a1-faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .a1-faq details > *:not(summary) { animation: none; }
}

/* Nested FAQ blocks inside prose pages */
.a1-prose .a1-faq {
  margin: 12px 0 20px;
}

/* Subtle page header brand accent */
.a1-page__header {
  border-top: 3px solid var(--a1-red);
}
.a1-page__title {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}

/* Prose (seeded pages) */
.a1-prose h2,
.a1-prose h3 { color: var(--a1-black); }
.a1-prose ul { padding-left: 1.1rem; }
.a1-prose li { margin-bottom: 6px; }
.a1-muted { color: var(--a1-gray); font-size: 14px; }
.a1-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 8px 0 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--a1-border);
}
.a1-table th,
.a1-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--a1-border); }
.a1-table th { background: var(--a1-charcoal); color: #fff; font-size: 13px; }
.a1-table tr:last-child td { border-bottom: none; }
.a1-prose .a1-btn { margin-right: 8px; margin-bottom: 8px; width: auto; min-width: 140px; }

/* CTA band */
.a1-cta-band {
  background: var(--a1-black);
  color: #fff;
  padding: 36px 0;
  text-align: center;
}
.a1-cta-band h2 { color: #fff; }
.a1-cta-band__hours { margin: 8px 0 16px; color: rgba(255,255,255,.85); font-size: 15px; }
.a1-cta-band__note { margin-top: 16px; color: rgba(255,255,255,.65); font-size: 14px; }

/* Footer */
.a1-footer {
  background: var(--a1-charcoal);
  color: rgba(255,255,255,.8);
  padding: 24px 16px 24px;
  font-size: 13px;
}
.a1-footer__inner { max-width: 1100px; margin: 0 auto; }
.a1-footer strong { color: #fff; display: block; margin-bottom: 8px; }
.a1-footer a { color: #fff; }
.a1-footer__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.a1-footer__pills span,
.a1-footer__pills a {
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.25);
  padding: 4px 8px;
  border-radius: 999px;
  text-decoration: none;
}
.a1-footer__list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.a1-footer__list a { text-decoration: none; font-weight: 600; }
.a1-footer__legal { opacity: .75; margin-top: 12px; }

.a1-footer__bbb {
  margin: 14px 0 0;
}
.a1-bbb-badge {
  display: inline-block;
  line-height: 0;
  max-width: 100%;
  outline-offset: 3px;
}
.a1-bbb-badge img {
  display: block;
  /* Proportional across phone / tablet / desktop — no white pad */
  width: clamp(118px, 42vw, 200px);
  max-width: 100%;
  height: auto;
  background: transparent;
  padding: 0;
}
@media (min-width: 782px) {
  .a1-bbb-badge img {
    width: clamp(140px, 16vw, 200px);
  }
}
.a1-bbb-badge:focus-visible {
  outline: 2px solid #fff;
}


/* Sticky mobile Call | Quote */
.a1-sticky {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: min(366px, calc(100% - 24px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  z-index: 60;
}
.a1-sticky .a1-btn {
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  width: 100%;
  justify-content: center;
  text-align: center;
}
.a1-sticky .a1-btn-red {
  background: var(--a1-red);
  color: #fff;
  border-color: var(--a1-red);
}
.a1-sticky__quote {
  background: #fff;
  color: var(--a1-black);
  border: 1px solid var(--a1-border);
}
.a1-sticky__quote:hover {
  background: var(--a1-offwhite);
  color: var(--a1-black);
}

@media (min-width: 782px) {
  body { padding-bottom: 24px; }
  .a1-sticky { display: none; }
}

/* Hide sticky on Contact (form already on page) */
body.page-template-template-contact {
  padding-bottom: 24px;
}
body.page-template-template-contact .a1-sticky {
  display: none;
}

/* Form */
.a1-quote-form {
  display: grid;
  gap: 14px;
  margin: 24px 0 32px;
  max-width: 480px;
}
.a1-field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.a1-field input,
.a1-field select,
.a1-field textarea {
  font: inherit;
  font-weight: 400;
  padding: 12px;
  border: 1px solid var(--a1-border);
  border-radius: var(--radius);
  min-height: var(--tap);
}
.a1-field textarea { min-height: 100px; }
.a1-form-status {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 600;
}
.a1-form-status.is-ok { background: #e8f7ee; color: #0d5c2e; }
.a1-form-status.is-err { background: #fde8ec; color: #9e0c24; }

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


/* Honeypot — visually hidden, not display:none (some bots skip display:none). */
.a1-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* Compact hero — no empty photo placeholder */
.a1-hero--compact .a1-hero__photo { display: none !important; }
.a1-hero--compact { padding-top: 1.5rem; }
.a1-hero--compact .a1-hero__body { padding-top: 0.5rem; }

.a1-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.35rem 0 0;
}
.a1-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  cursor: pointer;
}
.a1-check input { width: 1.15rem; height: 1.15rem; accent-color: var(--a1-red); }
.a1-field-label { display: block; font-weight: 700; margin-bottom: 0.25rem; }
.a1-form-row {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 600px) {
  .a1-form-row--2 { grid-template-columns: 1fr 1fr; }
}


/* Back to top — rocket */
.a1-top {
  position: fixed;
  right: 14px;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: var(--a1-red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, background .15s ease;
}
.a1-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.a1-top:hover { background: var(--a1-red-dark); }
.a1-top:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.a1-top__icon { display: grid; place-items: center; line-height: 0; }
.a1-top__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.a1-top:hover .a1-top__icon svg {
  transform: translateY(-1px);
  transition: transform .15s ease;
}
.a1-top .a1-top__icon svg { transition: transform .15s ease; }
@media (min-width: 782px) {
  .a1-top { bottom: 28px; right: 22px; }
}


/* Multi-step quote */
.a1-steps-bar {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  flex-wrap: wrap;
}
.a1-steps-bar__item {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--a1-offwhite);
  color: var(--a1-gray);
  border: 1px solid var(--a1-border);
}
.a1-steps-bar__item.is-active {
  background: var(--a1-red);
  border-color: var(--a1-red);
  color: #fff;
}
.a1-step[hidden] { display: none !important; }


.a1-reviews-gmaps {
  color: #0073aa;
  text-decoration: underline;
  font-weight: bold;
}
.a1-reviews-gmaps:hover { color: #005f8a; }

/* Quote form hash landing */
#a1aim-quote-form {
  scroll-margin-top: 88px;
}

/* Homepage areas muted line */
#areas .a1-muted {
  margin-top: 6px;
}

.a1-areas-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.a1-areas-list li {
  background: #fff;
  border: 1px solid var(--a1-border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--a1-charcoal);
}
#areas.a1-section--alt .a1-areas-list li {
  background: #fff;
}

/* Photo strip */
.a1-photo-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}
@media (min-width: 720px) {
  .a1-photo-strip__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.a1-photo-strip__fig {
  margin: 0;
}
.a1-photo-strip__fig img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--a1-border);
}
.a1-photo-strip__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border: 2px dashed var(--a1-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--a1-gray);
  font-size: 13px;
  font-weight: 600;
}
.a1-photo-strip__fig.is-empty .a1-photo-strip__placeholder {
  border-style: dashed;
}
.a1-photo-strip__fig figcaption {
  margin-top: 6px;
  font-size: 13px;
  color: var(--a1-gray);
  text-align: center;
}

/* City page — Pixel tweaks (v1.0.23) */
.a1-card--focus {
  border-color: var(--a1-red);
  box-shadow: 0 2px 12px rgba(200, 16, 46, 0.1);
}
.a1-page--city .a1-cards {
  margin: 1.5rem 0;
}
.a1-page--city .a1-photo-placeholder {
  margin: 1.5rem 0;
}
.a1-photo-placeholder {
  margin: 1.5rem 0;
  padding: 2rem 1.25rem;
  border: 1px dashed #999;
  border-radius: var(--radius);
  text-align: center;
  background: #e8e8e8;
}
.a1-photo-placeholder p {
  margin: 0;
}
.a1-photo-placeholder .a1-muted {
  margin-top: 6px;
}
.a1-areas-list--travel li {
  background: transparent;
  border-style: dashed;
  color: var(--a1-gray);
}

/* Service area map embed (v1.0.30) — non-collapsing ratio wrapper */
.a1-map {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--a1-border);
  overflow: hidden;
  margin: 1rem 0 1.5rem;
  background: var(--a1-offwhite);
}
.a1-map::before {
  content: "";
  display: block;
  padding-bottom: 56.25%; /* 16:9 */
  min-height: 280px;
}
.a1-map iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}
.a1-map:focus-within {
  outline: 2px solid var(--a1-red);
  outline-offset: 2px;
}
/* Don't let prose rules collapse embeds */
.a1-prose .a1-map iframe,
.a1-prose iframe[src*="google.com/maps"],
.a1-prose iframe[src*="maps.google"] {
  max-width: 100%;
  width: 100%;
  height: 100%;
  min-height: 280px;
}
.a1-prose .a1-map,
.a1-prose .a1-map * {
  max-height: none;
}

/* Service area city cards (v1.0.27+) — 2-col chip cards, A1Aim red pin */
.a1-area-cards {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 700px) {
  .a1-area-cards { gap: 12px; }
}
.a1-area-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  min-height: 64px;
  background: #fff;
  border: 1px solid var(--a1-border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.a1-area-card:hover,
.a1-area-card:focus-visible {
  border-color: var(--a1-red);
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.12);
  outline: none;
}
.a1-area-card:focus-visible {
  outline: 2px solid var(--a1-red);
  outline-offset: 2px;
}
.a1-area-card--base {
  border-color: rgba(200, 16, 46, 0.35);
  background: #fff8f9;
}
.a1-area-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--a1-border);
  display: grid;
  place-items: center;
  color: var(--a1-red);
}
.a1-area-card--base .a1-area-card__icon {
  background: var(--a1-red);
  border-color: var(--a1-red);
  color: #fff;
}
.a1-area-card__icon svg,
.a1-area-card__icon img {
  width: 20px;
  height: 20px;
  display: block;
}
.a1-area-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.a1-area-card__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--a1-black);
  line-height: 1.25;
}
.a1-area-card__arrow {
  color: var(--a1-red);
  font-weight: 700;
  margin-left: 2px;
}
.a1-area-card__dist {
  font-size: 12px;
  font-weight: 600;
  color: var(--a1-gray);
  line-height: 1.3;
}
/* Plain (no page yet) — same card, not a link look */
a.a1-area-card { cursor: pointer; }
span.a1-area-card {
  cursor: default;
}
span.a1-area-card .a1-area-card__arrow { display: none; }
