/* Autoglo shared refinements | 2026-11-19
   Loaded AFTER existing page styles. Preserve each photo's custom focal point
   (object-position) while making its frame consistent across subpages. */

/* Home: three established trust points plus a direct link to Certifications Matter. */
.hero-bottom .hero-proof {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background-color .2s ease;
}
.hero-bottom .hero-proof:hover,
.hero-bottom .hero-proof:focus-visible {
  background: rgba(255,255,255,.08);
}
.hero-bottom .hero-proof:focus-visible,
.hero-cert-promise:focus-visible {
  outline: 2px solid #fff000;
  outline-offset: -2px;
}
.hero-cert-promise {
  display: block;
  box-sizing: border-box;
  padding: 10px 22px 11px;
  background: rgba(11,20,27,.96);
  border-top: 1px solid rgba(255,255,255,.16);
  color: #f3f6f8;
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s ease;
}
.hero-cert-promise strong {color: #fff000; font-weight: 800}
.hero-cert-promise .cert-arrow {margin-left: .7em; color: #fff000}
.hero-cert-promise:hover {background: rgba(25,39,48,.98)}

/* Uniform photographic subpage hero FRAME: 52/48 split, same top edge & same height.
   The homepage .hero uses a full-bleed background and must not be converted into a grid.
   Insurance is intentionally excluded: its hero is editorial, not a photo frame.
   Do not set object-position here; existing individual photo crops are preserved. */
@media (min-width: 761px) {
  .hero:has(> .hero-image), .collision-hero, .paint-hero, .mechanical-hero,
  .pdr-hero, .contact-hero, .cm-hero, .adas-hero-inner {
    display: grid;
    grid-template-columns: 52% 48%;
    min-height: 630px;
  }
  .hero-image, .collision-hero-media, .paint-hero-photo,
  .mechanical-hero-media, .pdr-hero-image,
  .contact-hero-image, .cm-hero-media, .adas-hero-photo {
    position: relative;
    height: 630px;
    min-height: 630px;
    overflow: hidden;
  }
  .hero-image img {height: 100%; min-height: 0; width: 100%; object-fit: cover}
  .collision-hero-media img, .paint-hero-photo img,
  .mechanical-hero-media img, .pdr-hero-image img,
  .contact-hero-image img, .cm-hero-media img, .adas-hero-photo img {
    width: 100%; height: 100%; object-fit: cover;
  }
}
@media (max-width: 760px) {
  .hero:has(> .hero-image), .collision-hero, .paint-hero, .mechanical-hero,
  .pdr-hero, .contact-hero, .cm-hero, .adas-hero-inner {
    display: flex;
    flex-direction: column-reverse;
    min-height: 0;
  }
  .hero-image, .collision-hero-media, .paint-hero-photo,
  .mechanical-hero-media, .pdr-hero-image,
  .contact-hero-image, .cm-hero-media, .adas-hero-photo {
    position: relative;
    flex: 0 0 310px;
    height: 310px;
    min-height: 310px;
    width: 100%;
    overflow: hidden;
  }
  .hero-image img {height: 100%; min-height: 0; width: 100%; object-fit: cover}
  .collision-hero-media img, .paint-hero-photo img,
  .mechanical-hero-media img, .pdr-hero-image img,
  .contact-hero-image img, .cm-hero-media img, .adas-hero-photo img {
    width: 100%; height: 100%; object-fit: cover;
  }
  .cm-hero-copy, .hero-copy, .collision-hero-copy, .paint-hero-copy,
  .mechanical-hero-copy, .pdr-hero-copy, .contact-hero-copy,
  .adas-hero-copy {
    padding: 46px 22px 58px;
  }
  .hero-bottom .container {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .hero-bottom .hero-proof:nth-child(3) {display: block}
  .hero-bottom .hero-proof {padding: 13px 8px; min-width: 0}
  .hero-bottom .hero-proof strong {font-size: clamp(13px,3.5vw,19px);line-height:1.1}
  .hero-bottom .hero-proof span {font-size: 8px; line-height: 1.3;display:block;margin-top:5px}
  .hero-cert-promise {font-size: 9px;padding:9px 12px}
}
@media (max-width: 420px) {
  .hero-image, .collision-hero-media, .paint-hero-photo,
  .mechanical-hero-media, .pdr-hero-image,
  .contact-hero-image, .cm-hero-media, .adas-hero-photo {
    flex-basis: 270px;
    height: 270px;
    min-height: 270px;
  }
}
