/* Allen's Automotive responsive polish */
:root {
  --ink: #15171a;
  --ink-soft: #24282d;
  --paper: #ffffff;
  --mist: #f5f6f7;
  --line: #d9dde2;
  --gold: #f5bd45;
  --gold-dark: #d99a18;
  --blue: #2e6175;
}
html, body { max-width: 100%; overflow-x: clip; }
body { color: var(--ink); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img, svg, iframe { max-width: 100%; }
.container, nav, .footer-grid, .footer-bottom { width: min(100%, 1200px); }

/* Unified header */
#header { background: var(--ink); }
#header .header-top {
  background: #0d0f11;
  line-height: 1.35;
  padding: 8px 18px;
}
#header nav { min-height: 82px; height: auto; gap: 20px; }
#header .logo { min-width: 210px; }
#header .logo-name {
  color: #fff;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  letter-spacing: -.01em;
  white-space: nowrap;
}
#header .nav-links { margin-left: auto; }
#header .nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
#header .nav-cta {
  appearance: none;
  border: 1px solid rgba(255,255,255,.28);
  background: var(--gold) !important;
  color: #17120a !important;
  min-height: 48px;
  padding: 11px 17px !important;
  border-radius: 9px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 850;
  font-size: .91rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.55);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
#header .nav-cta:hover,
#header .nav-cta:focus-visible {
  background: #ffd071 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.28), 0 0 0 3px rgba(245,189,69,.18);
  outline: none;
}
#header .nav-cta svg { width: 20px; height: 20px; flex: none; }
.nav-cta-mobile { display: none !important; }
.hamburger { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

/* Real automotive service photo */
.hero-graphic {
  width: min(100%, 760px);
  aspect-ratio: 16 / 9;
  margin: 30px auto 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #e8ecef;
  box-shadow: 0 18px 42px rgba(25, 34, 40, .16);
}
.hero-graphic img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 38%;
}
.hero-caption {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  max-width: 325px;
  padding: 14px 17px;
  border-left: 4px solid var(--gold);
  border-radius: 0 9px 9px 0;
  background: linear-gradient(90deg, rgba(10,12,14,.94), rgba(10,12,14,.76));
  color: #fff;
  text-align: left;
  font-size: clamp(.92rem, 1.7vw, 1.18rem);
  font-weight: 850;
  line-height: 1.32;
  letter-spacing: -.01em;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.service-art-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 600px);
  margin: 22px auto 0;
}
.service-art {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  color: #28333a;
  text-align: left;
  font-size: .8rem;
  font-weight: 750;
  box-shadow: 0 8px 24px rgba(25,34,40,.07);
}
.service-art svg { width: 31px; height: 31px; color: var(--blue); flex: none; }
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 90px;
  right: max(18px, calc((100vw - 1200px)/2));
  bottom: -24px;
  z-index: -1;
  opacity: .075;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 110'%3E%3Cg fill='none' stroke='%232e6175' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 76h25l18-35h145l28 35h59'/%3E%3Cpath d='M74 41l26-25h70l36 25'/%3E%3Ccircle cx='86' cy='80' r='20'/%3E%3Ccircle cx='235' cy='80' r='20'/%3E%3Cpath d='M112 17v24M169 17v24'/%3E%3C/g%3E%3C/svg%3E");
}

/* Full-width neighborhood value story */
.about-grid-single { grid-template-columns: minmax(0, 1fr); }
.about-content-wide { max-width: 850px; margin: 0 auto; text-align: center; }
.about-content-wide .about-badges { justify-content: center; }

/* Customer pain-point conversion section */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}
.pain-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  padding: 24px 22px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 0%, #f7f8f9 100%);
  box-shadow: 0 8px 24px rgba(25,34,40,.06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pain-card:hover {
  transform: translateY(-3px);
  border-color: #aeb9bf;
  box-shadow: 0 14px 30px rgba(25,34,40,.11);
}
.pain-card:last-child {
  grid-column: 1 / -1;
  width: calc(50% - 8px);
  justify-self: center;
}
.pain-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--ink);
  color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}
.pain-icon i { font-size: 1.35rem; }
.pain-card h3 {
  margin: 1px 0 5px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
}
.pain-card p {
  margin: 0;
  color: #5b646c;
  font-size: .9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.pain-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 42px;
}
.pain-cta .btn-outline { color: var(--ink); border-color: #6d7780; }
.pain-cta .btn-outline:hover { color: var(--ink); background: #edf1f3; border-color: var(--ink); }
.service-showcase-copy { text-align: center; }
#hero h1 span { display: block; }
#hero .hero-stat .num { color: var(--blue); font-size: 1.45rem; }
#hero .hero-stat .label { color: #5c656c; font-weight: 750; }

/* Global layout and component corrections */
section { overflow: hidden; }
.section-header { max-width: 760px; margin-left: auto; margin-right: auto; }
.services-grid, .services-list, .why-grid, .reviews-grid, .info-cards-grid, .values-grid { align-items: stretch; }
.service-card, .svc-card, .why-card, .review-card, .info-card, .value-card { min-width: 0; height: 100%; }
.service-card, .why-card, .review-card, .info-card, .value-card { overflow-wrap: anywhere; }
.svc-body { min-width: 0; }
.svc-body p, .about-content p, .mission-content p, .page-hero p { overflow-wrap: anywhere; }
.why-card { background: #fff; border-color: var(--line); }
.why-card h3 { color: var(--ink); }
.why-card p, #why .section-header p { color: #5f6870; }
.why-card i, .service-card i, .svc-icon i, .why-item i { color: var(--blue); }
.svc-icon { background: #eaf0f3; }
.service-card, .svc-card, .review-card, .info-card, .value-card { box-shadow: 0 8px 24px rgba(25,34,40,.055); }
.btn-primary, .btn-white, .btn-outline {
  min-height: 48px;
  justify-content: center;
  text-align: center;
  border-radius: 8px;
}
.btn-primary { background: var(--ink); }
.btn-primary:hover { background: #30353a; }
#hero .btn-outline { color: var(--ink); border-color: #7d878e; }
#hero .btn-outline:hover { background: #edf1f3; border-color: var(--ink); }
.footer-grid { align-items: start; }
footer { background: #0d0f11; }
footer .footer-brand p,
footer .footer-col ul li a,
footer .footer-col .info-item,
footer .f-info-item,
footer .footer-bottom { color: #b6bdc4; }
footer .footer-col h4 { border-bottom-color: rgba(245,189,69,.3); }
footer .footer-col ul li a:hover,
footer a:focus-visible { color: var(--gold); }
.footer-bottom > span { min-width: 0; overflow-wrap: anywhere; }

/* Privacy page gets shared brand shell */
.privacy-page .privacy-content { max-width: 850px; margin: 0 auto; padding: 56px 20px 72px; }
.privacy-page .privacy-content h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
.privacy-page .privacy-content h2 { margin-top: 34px; font-size: 1.25rem; }
.privacy-page .privacy-content p { margin-top: 12px; }
.privacy-page .updated { color: #69727a; }

@media (max-width: 1080px) {
  #header nav { padding: 0 16px; gap: 12px; }
  #header .logo { min-width: 190px; }
  #header .nav-links { gap: 1px; }
  #header .nav-links a { padding: 6px 8px; font-size: .78rem; }
  #header .nav-cta { padding: 10px 12px !important; font-size: .82rem; }
}

@media (max-width: 768px) {
  #header .header-top { font-size: .76rem; padding: 7px 12px; }
  #header .header-top .hours-wide { display: none; }
  #header nav { min-height: 70px; padding: 0 12px; gap: 8px; flex-wrap: nowrap; }
  #header .logo { min-width: 0; flex: 1 1 auto; }
  #header .logo-name { white-space: normal; max-width: 148px; line-height: 1.08; }
  #header .nav-links {
    top: 100%;
    max-height: calc(100vh - 102px);
    overflow-y: auto;
    padding: 10px 12px 14px;
    align-items: stretch;
    box-shadow: 0 16px 30px rgba(0,0,0,.32);
  }
  #header .nav-links a { min-height: 48px; padding: 12px 14px; border-radius: 7px; }
  #header .nav-links .nav-cta { display: none; }
  .nav-cta-mobile { display: inline-flex !important; min-height: 44px !important; padding: 9px 11px !important; font-size: .75rem !important; gap: 6px !important; }
  .nav-cta-mobile svg { width: 17px !important; height: 17px !important; }
  .hamburger { display: flex; flex: none; }
  .page-hero { padding: 44px 18px; }
  .page-hero::after { width: 170px; right: -28px; }
  section { padding-left: 18px; padding-right: 18px; }
  .about-grid, .mission-grid, .contact-grid { gap: 30px; }
  .services-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pain-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pain-card { width: 100%; padding: 20px 18px; gap: 11px; }
  .pain-card:last-child { grid-column: auto; width: 100%; }
  .pain-icon { width: 46px; height: 46px; flex-basis: 46px; }
  .pain-cta { align-items: stretch; }
  .pain-cta > * { width: 100%; }
  .svc-card { padding: 22px 18px; gap: 14px; }
  .svc-icon { width: 46px; height: 46px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .service-card { padding: 22px 12px 18px; }
  .info-cards-grid, .why-grid, .reviews-grid, .values-grid { grid-template-columns: minmax(0, 1fr); }
  .why-strip-inner { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 12px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer-bottom { display: grid; grid-template-columns: minmax(0,1fr); text-align: left; }
  .hero-actions, .services-cta, .contact-row { align-items: stretch; }
  .hero-actions > *, .services-cta > *, .contact-row > * { width: 100%; margin: 0 !important; }
}

@media (max-width: 430px) {
  #hero { padding: 55px 16px 50px; }
  #hero h1 br { display: none; }
  .hero-graphic { margin-top: 24px; aspect-ratio: 4 / 3; border-radius: 14px; }
  .hero-caption { top: 14px; left: 14px; right: auto; max-width: 245px; padding: 11px 13px; font-size: .9rem; }
  .service-art-row { grid-template-columns: 1fr; gap: 8px; }
  .service-art { min-height: 54px; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); width: 100%; gap: 24px 10px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-card { flex-direction: column; }
  .why-strip-inner { grid-template-columns: 1fr; }
  .header-top { overflow-wrap: anywhere; }
}

@media (max-width: 350px) {
  .nav-cta-mobile span { display: none; }
  #header .logo-name { font-size: .92rem; }
}
