/* Nick's Repair & Exhaust — a light refresh of the original site. */
:root {
  color-scheme: light;
  --charcoal: #30363c;
  --blue: #285ca6;
  --blue-dark: #1d467f;
  --text: #343b43;
  --muted: #5e6873;
  --line: #dfe4e9;
  --light: #f4f7fa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 4px; }
a:hover { color: var(--blue-dark); }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #729fec; outline-offset: 5px; }
main:focus { outline: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-weight: 650; letter-spacing: -.025em; }
h2 { color: var(--blue); font-size: 1.65rem; font-weight: 650; margin-bottom: 19px; }
h3 { color: var(--blue); font-size: 1.32rem; font-weight: 650; }
p + p { margin-top: 17px; }
address { font-style: normal; }
.container { max-width: 1140px; width: calc(100% - 64px); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 30; padding: 12px 18px; background: white; }

/* Original charcoal header and shop logo. */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--charcoal); color: white; box-shadow: 0 2px 8px #00000012; }
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 20px; color: white; text-decoration: none; }
.brand:hover { color: white; }
.brand img { width: 152px; height: auto; flex-shrink: 0; }
.brand > span { font-size: 1.1rem; font-weight: 550; text-transform: uppercase; letter-spacing: .035em; white-space: nowrap; }
.site-header nav { display: flex; gap: 24px; margin-left: auto; }
.site-header nav a { color: #e0e5e9; text-decoration: none; font-size: .87rem; padding-block: 10px; }
.site-header nav a:hover { color: white; text-decoration: underline; }
.header-phone { color: white; border-left: 1px solid #5a626a; padding-left: 25px; text-decoration: none; font-size: 1.04rem; font-weight: 650; white-space: nowrap; }
.header-phone:hover { color: white; text-decoration: underline; }
.phone-label { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 400; color: #cbd3db; }

/* Manual photo carousel: no autoplay, no motion required to see the page. */
.shop-gallery { position: relative; background: #e2e6e9; }
.gallery-slides { height: clamp(320px, 40vw, 520px); }
.gallery-slide, .gallery-slide img { width: 100%; height: 100%; }
.gallery-slide img { object-fit: cover; object-position: center 51%; }
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 54px;
  border: 1px solid #ffffff65;
  border-radius: 4px;
  background: #2028308c;
  color: white;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.gallery-arrow span { font-size: 2.6rem; line-height: 1; margin-top: -5px; }
.gallery-arrow:hover { background: #202830db; }
.previous { left: max(22px, calc((100vw - 1250px) / 2)); }
.next { right: max(22px, calc((100vw - 1250px) / 2)); }
.gallery-bottom { position: absolute; bottom: 0; left: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px max(32px, calc((100vw - 1140px) / 2)) 16px; background: linear-gradient(transparent, #14202ad9); color: white; }
.gallery-caption { font-size: .8rem; }
.gallery-caption span { margin-left: 13px; color: #dce3e9; font-size: .72rem; }
.gallery-dots { display: flex; gap: 4px; }
.gallery-dots button { display: grid; place-items: center; width: 38px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.gallery-dots span { width: 26px; height: 4px; border-radius: 2px; background: #b1bbc4; }
.gallery-dots [aria-pressed="true"] span { background: #fff; }

/* Familiar introduction, service list, and shop credentials. */
.intro { text-align: center; padding: 37px 0 33px; border-bottom: 1px solid var(--line); }
.intro h1 { font-size: clamp(1.6rem, 2.5vw, 1.95rem); }
.intro p { color: var(--muted); margin-top: 12px; font-size: .98rem; }
.overview { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding-block: 43px 44px; }
.overview section > p { color: var(--muted); font-size: .96rem; }
.service-list { padding-left: 21px; margin: 20px 0 0; }
.service-list li { padding-left: 4px; padding-bottom: 5px; font-size: .94rem; }
.service-list li:last-child { padding-bottom: 0; }
.service-list li::marker { color: var(--blue); font-size: .8em; }
.certifications { display: flex; align-items: center; gap: 42px; padding: 26px 0; margin-top: 23px; border-block: 1px solid var(--line); }
.certifications img { width: 145px; height: auto; object-fit: contain; }
.appointment-note { margin-top: 25px; padding: 18px 22px; border-left: 3px solid var(--blue); background: var(--light); font-size: .89rem; }
.appointment-note strong { display: block; margin-bottom: 5px; font-size: .96rem; font-weight: 650; }
.appointment-note a { font-weight: 650; }

/* Original three photo cards. */
.specialties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding-bottom: 48px; }
.service-card { border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: white; }
.service-card > img { width: 100%; aspect-ratio: 7 / 4; object-fit: cover; }
.card-body { padding: 23px 23px 26px; }
.card-body p { margin-top: 14px; color: var(--muted); font-size: .92rem; }

/* Shop information and the original map, side by side. */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 45px 0 58px; border-top: 1px solid var(--line); align-items: start; }
.contact-info h2 { margin-bottom: 20px; }
.shop-name { font-weight: 650; margin-bottom: 6px; }
.contact-info address { color: var(--muted); }
.contact-links { margin-top: 18px; }
.contact-links a { text-decoration: none; }
.contact-links a:hover { text-decoration: underline; }
.contact-phone { font-size: 1.25rem; font-weight: 650; }
.hours { max-width: 365px; margin: 23px 0; border-top: 1px solid var(--line); padding-top: 15px; }
.hours > div { display: flex; justify-content: space-between; gap: 20px; font-size: .88rem; padding-block: 3px; }
.hours dt, .hours dd { margin: 0; }
.hours dt { font-weight: 550; }
.hours dd { color: var(--muted); }
.contact-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 25px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; padding: 11px 20px; min-height: 46px; border-radius: 4px; background: var(--blue); color: white; font-size: .9rem; font-weight: 550; text-decoration: none; }
.button:hover { background: var(--blue-dark); color: white; }
.facebook-link { font-size: .85rem; }
.facebook-link span { margin-left: 4px; }
.map-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--light); }
.map-frame { position: relative; }
.map-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; padding: 30px; text-align: center; color: var(--muted); pointer-events: none; }
.map-fallback strong { font-size: 1.5rem; color: var(--blue); font-weight: 650; }
.map-fallback span { font-size: .84rem; }
.map-panel iframe { position: relative; z-index: 1; display: block; width: 100%; height: 357px; border: 0; }
.map-caption { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; text-decoration: none; font-size: .79rem; }
.map-caption:hover { text-decoration: underline; }
.site-footer { background: var(--charcoal); color: #dce2e8; padding-block: 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-inner p, .footer-inner a { font-size: .78rem; }
.footer-inner a { color: #dce2e8; text-decoration: none; white-space: nowrap; }
.footer-inner a:hover { text-decoration: underline; }
.error-page { padding-block: 95px; min-height: 65vh; }
.error-page h1 { font-size: 2.4rem; margin-bottom: 20px; }
.error-page p { max-width: 530px; margin-bottom: 25px; }

@media (max-width: 1100px) {
  .header-inner { gap: 23px; }
  .brand { gap: 15px; }
  .brand img { width: 130px; }
  .brand > span { font-size: .94rem; }
  .site-header nav { gap: 20px; }
  .header-phone { padding-left: 20px; font-size: .95rem; }
  .overview { gap: 45px; }
  .specialties { gap: 20px; }
  .card-body { padding: 20px; }
  .contact { gap: 40px; }
}

@media (max-width: 850px) {
  .brand > span { font-size: .94rem; }
  .brand-amp { display: block; }
  .header-inner { gap: 20px; }
  .site-header nav { gap: 16px; }
  .site-header nav a { font-size: .8rem; }
  .header-phone { font-size: .88rem; padding-left: 17px; }
  .brand img { width: 112px; }
  .overview { gap: 32px; }
  .certifications { gap: 25px; }
  .certifications img { width: 120px; }
  .card-body { padding: 18px; }
  h3 { font-size: 1.18rem; }
  .contact { gap: 30px; }
  .contact-actions { gap: 19px; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 145px; }
  .container { width: calc(100% - 36px); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 0 15px; padding-top: 12px; }
  .brand { gap: 11px; }
  .brand img { width: 104px; }
  .brand > span { font-size: .75rem; line-height: 1.5; letter-spacing: .02em; }
  .header-phone { padding-left: 12px; font-size: .81rem; }
  .phone-label { font-size: .58rem; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: center; gap: 37px; margin-top: 11px; border-top: 1px solid #4d555d; }
  .site-header nav a { font-size: .8rem; padding: 8px 4px 10px; }
  .gallery-slides { height: 310px; }
  .gallery-slide img { object-position: 59% center; }
  .gallery-arrow { width: 38px; height: 46px; }
  .previous { left: 12px; }
  .next { right: 12px; }
  .gallery-bottom { padding: 28px 18px 10px; gap: 10px; }
  .gallery-caption { font-size: .68rem; }
  .gallery-caption span { font-size: .63rem; margin-left: 7px; }
  .gallery-dots { gap: 0; }
  .gallery-dots button { width: 31px; }
  .gallery-dots span { width: 21px; }
  .intro { padding: 28px 0; }
  .intro h1 { font-size: 1.55rem; line-height: 1.35; }
  .intro p { font-size: .89rem; line-height: 1.7; }
  .overview { grid-template-columns: 1fr; padding-block: 31px 35px; gap: 32px; }
  h2 { font-size: 1.5rem; margin-bottom: 16px; }
  .overview section > p { font-size: .94rem; }
  .service-list li { font-size: .9rem; padding-bottom: 6px; }
  #about { border-top: 1px solid var(--line); padding-top: 30px; }
  .certifications { justify-content: flex-start; gap: 38px; }
  .certifications img { width: 138px; }
  .appointment-note { padding: 16px 18px; }
  .specialties { grid-template-columns: 1fr; gap: 24px; padding-bottom: 36px; }
  .card-body { padding: 23px; }
  h3 { font-size: 1.3rem; }
  .card-body p { font-size: .92rem; }
  .contact { grid-template-columns: 1fr; gap: 30px; padding-block: 33px 38px; }
  .hours { max-width: 365px; }
  .map-panel iframe { height: 310px; }
  .map-caption { font-size: .74rem; padding: 14px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer-inner p, .footer-inner a { font-size: .72rem; }
}

@media (max-width: 370px) {
  .brand img { width: 87px; }
  .brand > span { font-size: .67rem; }
  .header-inner { gap: 0 10px; }
  .header-phone { font-size: .74rem; padding-left: 9px; }
  .certifications img { width: 115px; }
  .gallery-caption span { display: none; }
}

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