/* Auto Pros Expert Car Care — site styles */

:root {
  --ink: #22252c;
  --slate: #2b2f38;
  --steel: #535b6e;
  --line: #d9dde3;
  --paper: #eef0f3;
  --white: #ffffff;
  --orange: #f04e0a;
  --orange-deep: #c43d00;
  --gold: #f6b21b;
  --green: #3fb96b;

  --display: "Zilla Slab", "Rockwell", "Roboto Slab", Georgia, serif;
  --body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-deep); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: .8em 1.2em; background: var(--ink); color: var(--white); }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--body); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: .85em 1.25em; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn--call { background: var(--orange); color: var(--white); }
.btn--call:hover { background: var(--orange-deep); color: var(--white); }
.btn--ghost { border-color: currentColor; color: var(--white); background: transparent; }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--steel); color: var(--white); }
.btn--lg { font-size: 1.125rem; padding: 1em 1.5em; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #c9cdd5; font-size: .875rem; }
.topbar__inner { display: flex; gap: 1.5rem; align-items: center; min-height: 40px; }
.topbar p { margin: 0; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
.topbar__tow { margin-left: auto !important; color: var(--gold); font-weight: 600; }

.status { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: var(--white); }
.status::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: #8a909c; }
.status.is-open::before { background: var(--green); box-shadow: 0 0 0 3px rgba(63,185,107,.25); }
.status.is-closed::before { background: var(--orange); }

/* ---------- Masthead ---------- */
.masthead { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.masthead__inner { display: flex; align-items: center; gap: 2rem; min-height: 84px; }
.brand img { width: 200px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav a {
  display: block; padding: .6em .85em; border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--orange-deep); box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.nav__specials::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: .4em; border-radius: 50%; background: var(--orange); vertical-align: .15em; }
.nav-toggle { display: none; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--slate); color: var(--white); overflow: hidden; }
.hero__photo {
  position: absolute; inset: 0 0 0 max(44%, calc(50% + 20px));
  background-size: cover; background-position: center;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43,47,56,.35), rgba(43,47,56,0) 40%); }
.hero__inner { position: relative; padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(48px, 8vw, 104px); }
.hero__copy { max-width: min(560px, calc(50vw - var(--gutter) - 24px)); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); margin-bottom: .35em; }
.hero__lede { font-size: 1.1875rem; color: #d5d9e0; max-width: 34em; margin-bottom: 2rem; }
.hero__phone {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 1; letter-spacing: -.01em;
  color: var(--gold); text-decoration: none;
  border-bottom: 4px solid var(--orange); padding-bottom: .12em;
}
.hero__phone:hover { color: var(--white); }
.hero__phone-label { display: block; font-size: .95rem; color: #c9cdd5; margin-bottom: .4rem; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.hero__meta .status { font-size: 1rem; }

/* ---------- Promises strip ---------- */
.promises { border-bottom: 1px solid var(--line); }
.promises ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.promises li { padding: 1.75rem 1.5rem 1.75rem 0; }
.promises li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.promises strong { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1.15; color: var(--ink); margin-bottom: .2rem; }
.promises span { font-size: .95rem; color: var(--steel); }

/* ---------- Seasonal promo ---------- */
.promo { background: var(--orange); color: var(--white); }
.promo .wrap { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.promo p { margin: 0; font-size: 1.125rem; }
.promo strong { font-family: var(--display); font-size: 1.375rem; margin-right: .4em; }
.promo .btn { background: var(--ink); color: var(--white); }
.promo .btn:hover { background: var(--white); color: var(--ink); }
.promo--night { background: var(--ink); }
.promo--night .btn { background: var(--orange); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--paper { background: var(--paper); }
.section__head { max-width: 640px; margin-bottom: 2.5rem; }
.section__head p { color: var(--steel); font-size: 1.125rem; margin: 0; }

/* Intro: text + photo pair */
.intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.intro__text p { font-size: 1.125rem; max-width: 36em; }
.checks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.photo-pair { position: relative; margin: 0; padding: 0 0 22% 0; }
.photo-pair img { border-radius: var(--radius); }
.photo-pair__a { width: 84%; }
.photo-pair__b { position: absolute; right: 0; bottom: 0; width: 56%; border: 6px solid var(--white); border-radius: calc(var(--radius) + 4px) !important; box-shadow: 0 18px 40px -18px rgba(34,37,44,.5); }
.photo-pair figcaption { position: absolute; left: 0; bottom: 0; font-size: .875rem; color: var(--steel); max-width: 44%; }

/* Services grid */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--white); }
.service { padding: 1.75rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.service h3 { margin-bottom: .35em; }
.service p { color: var(--steel); font-size: 1rem; flex: 1; }
.service a { font-weight: 700; text-decoration: none; }
.service a:hover { text-decoration: underline; }
.service a::after { content: ""; }
.service--feature { background: var(--slate); color: var(--white); }
.service--feature p { color: #c9cdd5; }
.service--feature a { color: var(--gold); }
.service--feature a:hover { color: var(--white); }

/* ---------- Coupons (tickets) ---------- */
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.ticket {
  position: relative; background: var(--white); border-radius: var(--radius);
  display: grid; grid-template-rows: auto 1fr auto;
  border: 2px dashed #b9bfc9;
}
.ticket__value {
  height: 4.25rem; display: flex; align-items: center; padding: 0 1.5rem;
  font-family: var(--display); font-weight: 700; font-size: 1.75rem; color: var(--orange-deep);
  border-bottom: 2px dashed #b9bfc9;
}
.ticket__body { padding: 1.25rem 1.5rem .5rem; }
.ticket__body h3 { font-size: 1.25rem; margin-bottom: .35em; }
.ticket__body p { font-size: .95rem; color: var(--steel); margin: 0; }
.ticket__foot { padding: .75rem 1.5rem 1.1rem; font-size: .8125rem; color: var(--steel); display: flex; justify-content: space-between; gap: 1rem; }
.ticket__foot img { width: 96px; }

/* ---------- Location ---------- */
.location { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--paper); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.towns { list-style: none; padding: 0; margin: 1rem 0 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.towns li { padding: .3em .75em; border: 1px solid var(--line); border-radius: 99px; font-size: .9375rem; }
.social { display: flex; flex-wrap: wrap; gap: .75rem; }
.social .btn { border-color: var(--line); color: var(--ink); background: var(--white); }
.social .btn:hover { border-color: var(--ink); }
.social svg { width: 20px; height: 20px; }

/* ---------- Call-out band ---------- */
.callout { background: var(--slate); color: var(--white); border-top: 6px solid var(--orange); }
.callout__inner { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; padding-top: 3rem; padding-bottom: 3rem; }
.callout__title { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: .3em; }
.callout p { color: #c9cdd5; margin: 0; }
.callout__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #b8bdc7; font-size: .9375rem; padding-top: 3.5rem; }
.footer a { color: #e3e6eb; }
.footer a:hover { color: var(--gold); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 2.5rem; }
.footer__brand img { width: 180px; background: var(--white); padding: 10px 12px; border-radius: var(--radius); margin-bottom: 1rem; }
.footer__brand p { max-width: 30em; }
.footer__h { font-family: var(--body); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .75rem; }
.footer address { font-style: normal; line-height: 1.8; }
.hours { border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: .15rem 1rem .15rem 0; font-weight: 400; }
.hours th { color: var(--white); font-weight: 600; }
.footer__note { margin-top: .75rem; color: var(--gold); }
.footer__links { list-style: none; margin: 0; padding: 0; line-height: 1.9; }
.footer__links a { text-decoration: none; }
.footer__base { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter)); padding-left: 0 !important; padding-right: 0 !important; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; padding-bottom: 1.5rem; border-top: 1px solid #3a3f4a; font-size: .875rem; }
.footer__base p { margin: 0; }
.footer__seals { display: flex; gap: .75rem; align-items: center; }
.footer__seals img { height: 48px; width: auto; border-radius: 3px; }

/* ---------- Inner pages ---------- */
.page-head { background: var(--slate); color: var(--white); position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 34%;
  background: var(--orange); clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%); opacity: .95;
}
.page-head .wrap { position: relative; z-index: 1; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-head h1 { margin: 0 0 .3em; max-width: 14em; }
.page-head p { margin: 0; color: #d5d9e0; font-size: 1.1875rem; max-width: 36em; }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.875rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 1.0625rem; }
.prose > p:first-child { font-size: 1.25rem; line-height: 1.55; color: var(--ink); }

.aside { position: sticky; top: 110px; display: grid; gap: 1.5rem; }
.aside figure { margin: 0; }
.aside img { border-radius: var(--radius); }
.aside figcaption { font-size: .875rem; color: var(--steel); margin-top: .5rem; }
.panel { background: var(--paper); border-radius: var(--radius); padding: 1.5rem; border-top: 4px solid var(--orange); }
.panel h2 { font-size: 1.375rem; margin-bottom: .4em; }
.panel p { font-size: .975rem; color: var(--steel); }
.panel .btn { width: 100%; }

.tips { list-style: none; counter-reset: tip; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0; }
.tips li { counter-increment: tip; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.tips li::before {
  content: counter(tip); font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1;
  color: var(--orange-deep);
}
.tips strong { display: block; font-size: 1.0625rem; margin-bottom: .15rem; }

.service-list { list-style: none; padding: 0; margin: 1.25rem 0 0; columns: 2; column-gap: 2rem; }
.service-list li { break-inside: avoid; padding: .55rem 0 .55rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; }
.service-list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .7rem; height: 3px; background: var(--orange); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: .875rem; color: var(--steel); margin-top: .4rem; }

.light-states { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.light-state { border-radius: var(--radius); padding: 1.25rem; border: 1px solid var(--line); }
.light-state h3 { font-size: 1.2rem; display: flex; align-items: center; gap: .5rem; }
.light-state p { margin: 0; font-size: 1rem; color: var(--steel); }
.lamp { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(246,178,27,.25); flex: none; }
.lamp--flash { background: var(--orange); box-shadow: 0 0 0 4px rgba(240,78,10,.25); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

.specials-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.specials-bar p { margin: 0; color: var(--steel); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .masthead__inner { gap: 1rem; }
  .nav a { padding: .6em .6em; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .topbar__addr { display: none; }
  .masthead__inner { min-height: 72px; }
  .brand img { width: 160px; }
  .masthead__call { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .6rem; margin-left: auto;
    font: 700 1rem var(--body); color: var(--ink); background: var(--paper);
    border: 0; border-radius: var(--radius); padding: .7rem .9rem; cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(34,37,44,.35); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: .5rem var(--gutter) 1rem; gap: 0; }
  .nav a { padding: .9rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.125rem; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--orange); padding-left: .9rem; }

  .hero__photo { position: relative; inset: auto; height: 220px; clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
  .hero__photo::after { display: none; }
  .hero__inner { padding-top: 32px; }

  .promises ul { grid-template-columns: 1fr 1fr; }
  .promises li, .promises li + li { padding: 1.25rem 1rem; border-left: 0; border-top: 1px solid var(--line); }
  .promises li:nth-child(even) { border-left: 1px solid var(--line); }
  .promises li:nth-child(-n+2) { border-top: 0; }

  .intro, .location, .article { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .aside { position: static; grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .page-head::after { width: 22%; }
}

@media (max-width: 600px) {
  .topbar__inner { justify-content: space-between; }
  .topbar__tow { font-size: .8125rem; }
  .promises ul, .services, .aside, .light-states { grid-template-columns: 1fr; }
  .promises li, .promises li + li, .promises li:nth-child(even) { border-left: 0; padding: 1rem 0; }
  .promises li:nth-child(2) { border-top: 1px solid var(--line); }
  .service-list { columns: 1; }
  .gallery { grid-template-columns: 1fr; }
  .callout__actions, .callout__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .page-head::after { width: 18%; opacity: .9; }
  .photo-pair figcaption { display: none; }
  .tickets { grid-template-columns: 1fr; }
}

/* ---------- Print (coupons) ---------- */
@media print {
  .topbar, .masthead, .callout, .footer, .page-head::after, .specials-bar .btn, .no-print, #yaccessibility, [class*="yaccessibility"] { display: none !important; }
  body { font-size: 11pt; }
  .page-head { background: none; color: #000; }
  .page-head p { color: #000; }
  .section { padding: 0; }
  .tickets { grid-template-columns: 1fr 1fr; gap: 12pt; }
  .ticket { break-inside: avoid; }
}

.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; }
.hero__phone-label { font-family: var(--body); font-weight: 600; }
.gallery img[src*="slide-2"] { object-position: left center; }

/* Status text: "Closed now, opens tomorrow 8 am" on one line; stacked on phones */
.status__head + .status__tail::before { content: ", "; }
.status::before { flex: none; }

@media (max-width: 900px) {
  /* Hero copy uses the full width on phones and tablets */
  .hero__copy { max-width: none; }
}

@media (max-width: 600px) {
  .topbar__inner { padding-top: .5rem; padding-bottom: .5rem; line-height: 1.3; gap: 1rem; }
  .topbar .status { align-items: flex-start; }
  .topbar .status::before { margin-top: .4em; }
  .topbar .status__head, .topbar .status__tail { display: block; white-space: nowrap; }
  .topbar .status__tail { font-weight: 400; color: #c9cdd5; }
  .topbar .status__tail::first-letter { text-transform: uppercase; }
  .topbar .status__head + .status__tail::before { content: none; }
  .topbar__tow { text-align: right; }
  .topbar__tow span { display: block; white-space: nowrap; }
}
@media (max-width: 360px) {
  .topbar { font-size: .8125rem; }
}
