/* Gateway Automotive Repair — bold trade / poster */

:root {
  --ink: #141414;
  --char: #222120;
  --yellow: #ffc61a;
  --paper: #f3efe4;
  --white: #ffffff;
  --grey: #b9b5ab;
  --head: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --border: 4px solid var(--ink);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--ink);
  padding: 6px 10px;
}

.kicker-dark { background: var(--ink); color: var(--yellow); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  font-family: var(--head);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 4px solid var(--ink);
  border-radius: 0;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.btn:hover { transform: translate(-3px, -3px); }

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
  box-shadow: 6px 6px 0 var(--white);
}
.btn-primary:hover { box-shadow: 9px 9px 0 var(--white); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary:hover { background: var(--white); color: var(--ink); }

.btn-dark {
  background: var(--ink);
  color: var(--yellow);
  box-shadow: 6px 6px 0 var(--white);
}
.btn-dark:hover { box-shadow: 9px 9px 0 var(--white); }

.btn-call {
  min-height: 48px;
  padding: 0 16px;
  font-size: 1.125rem;
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}
.btn-call:hover { transform: none; background: var(--white); border-color: var(--white); }

.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ink);
  color: var(--white);
  border-bottom: 4px solid var(--yellow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}
.logo-main {
  font-family: var(--head);
  font-size: 1.75rem;
  text-transform: uppercase;
  color: var(--yellow);
  letter-spacing: 0.03em;
}
.logo-sub {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 3px;
}

.nav { display: none; }

.call-long { display: none; }

/* Hero */

.hero {
  background: var(--ink);
  color: var(--white);
  padding-top: 40px;
}

.hero-grid {
  display: grid;
  gap: 40px;
  padding-bottom: 48px;
}

.hero h1 {
  font-size: clamp(3.4rem, 15vw, 8.5rem);
  margin: 20px 0 22px;
}
.hero h1 .hl {
  display: inline;
  color: var(--yellow);
}

.lede {
  font-size: 1.125rem;
  max-width: 36em;
  color: #e9e6de;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 30px 0 24px;
}

.rating { font-size: 1rem; color: #e9e6de; }
.rating strong { color: var(--white); }
.stars { color: var(--yellow); letter-spacing: 2px; }

.fact-card {
  background: var(--yellow);
  color: var(--ink);
  border: var(--border);
  outline: 4px solid var(--yellow);
  align-self: end;
}

.fact-score {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: var(--border);
}
.score {
  font-family: var(--head);
  font-size: 5rem;
  line-height: 0.9;
}
.score-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  line-height: 1.3;
}

.facts { margin: 0; }
.facts div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 2px solid var(--ink);
}
.facts div:last-child { border-bottom: 0; }
.facts dt {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 3px;
}
.facts dd { margin: 0; font-weight: 500; line-height: 1.4; }

.hazard {
  height: 22px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 22px,
    var(--ink) 22px 44px
  );
}
.hazard-thin { height: 12px; }

/* Services */

.services { padding: 64px 0 72px; }

.section-head { margin-bottom: 32px; }
.section-head h2,
.why h2,
.visit h2 {
  font-size: clamp(2.6rem, 9vw, 5rem);
  margin-top: 14px;
}

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  border: var(--border);
  background: var(--white);
}

.service-grid li {
  position: relative;
  padding: 26px 22px 28px;
  border-bottom: var(--border);
}
.service-grid li:last-child { border-bottom: 0; }

.num {
  display: inline-block;
  font-family: var(--head);
  font-size: 1.5rem;
  line-height: 1;
  background: var(--ink);
  color: var(--yellow);
  padding: 8px 10px 6px;
  margin-bottom: 16px;
}

.service-grid h3 {
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.service-grid li:hover { background: var(--yellow); }
.service-grid li:hover .num { background: var(--ink); }

/* Why */

.why {
  background: var(--yellow);
  padding: 64px 0;
  border-top: var(--border);
  border-bottom: var(--border);
}

.why h2 { margin: 0 0 36px; max-width: 16em; text-wrap: balance; }

.why-grid {
  display: grid;
  gap: 0;
  border-top: var(--border);
}

.why-item {
  padding: 26px 0 30px;
  border-bottom: 2px solid var(--ink);
}
.why-item:last-child { border-bottom: 0; padding-bottom: 0; }

.why-big {
  font-family: var(--head);
  font-size: 4.5rem;
  line-height: 1;
  text-transform: uppercase;
}
.why-big span {
  font-size: 1.5rem;
  margin-left: 8px;
  vertical-align: top;
  display: inline-block;
  margin-top: 8px;
}

.why-item h3 {
  font-size: 1.6rem;
  margin: 10px 0 8px;
}

/* Visit */

.visit { padding: 64px 0 72px; }

.visit-grid { display: grid; gap: 40px; }

.visit h2 { margin: 0 0 28px; }

.hours {
  width: 100%;
  border-collapse: collapse;
  border: var(--border);
  background: var(--white);
  margin-bottom: 28px;
}
.hours th,
.hours td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--ink);
}
.hours tr:last-child th,
.hours tr:last-child td { border-bottom: 0; }
.hours th {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}
.hours td { text-align: right; font-weight: 500; }

.address-block .label {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 16px;
}
.address-block p:not(.label) { font-size: 1.25rem; font-weight: 500; }

.phone-link {
  font-family: var(--head);
  font-size: 2.25rem;
  text-decoration: none;
  border-bottom: 4px solid var(--yellow);
}
.phone-link:hover { background: var(--yellow); }

.map-frame {
  border: var(--border);
  background: var(--char);
  aspect-ratio: 4 / 3;
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-caption {
  background: var(--ink);
  color: var(--white);
  padding: 12px 16px;
  font-size: 0.95rem;
}
.map-caption a { color: var(--yellow); font-weight: 700; }

/* CTA */

.cta {
  background: var(--ink);
  color: var(--white);
  padding: 64px 0;
  border-top: 12px solid var(--yellow);
}
.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.cta h2 {
  flex: 1;
  font-size: clamp(2.6rem, 10vw, 5.5rem);
  max-width: 12em;
  text-wrap: balance;
}
.cta .btn-dark {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

/* Footer */

.site-footer {
  background: var(--char);
  color: #dcd8cf;
  font-size: 0.95rem;
}
.footer-inner {
  padding-top: 32px;
  padding-bottom: 40px;
  display: grid;
  gap: 4px;
}
.footer-name {
  font-family: var(--head);
  text-transform: uppercase;
  font-size: 1.5rem;
  color: var(--yellow);
  margin-bottom: 6px;
}
.site-footer a { color: var(--white); }
.copy { margin-top: 12px; color: var(--grey); }

/* Larger screens */

@media (min-width: 640px) {
  .wrap { padding: 0 32px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid li { border-right: var(--border); }
  .service-grid li:nth-child(2n) { border-right: 0; }
  .service-grid li:nth-last-child(-n + 2) { border-bottom: 0; }
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 720px) {
  .call-short { display: none; }
  .call-long { display: inline; }
}

@media (min-width: 960px) {
  body { font-size: 1.125rem; }
  .nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
  }
  .nav a {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 3px solid transparent;
  }
  .nav a:hover { border-bottom-color: var(--yellow); }
  .header-inner { min-height: 80px; }
  .logo-main { font-size: 2.1rem; }

  .hero { padding-top: 64px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 64px;
    align-items: end;
    padding-bottom: 72px;
  }
  .lede { font-size: 1.25rem; }

  .services { padding: 96px 0 104px; }
  .section-head { margin-bottom: 40px; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid li { padding: 34px 30px 38px; border-bottom: var(--border); border-right: var(--border); }
  .service-grid li:nth-child(2n) { border-right: var(--border); }
  .service-grid li:nth-child(3n) { border-right: 0; }
  .service-grid li:nth-last-child(-n + 3) { border-bottom: 0; }

  .why { padding: 96px 0; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .why-item {
    padding: 32px 32px 0 0;
    border-bottom: 0;
    border-right: 2px solid var(--ink);
  }
  .why-item + .why-item { padding-left: 32px; }
  .why-item:last-child { border-right: 0; }
  .why-big { font-size: 6rem; }

  .visit { padding: 96px 0 104px; }
  .visit-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 56px;
    align-items: start;
  }
  .map-frame { aspect-ratio: auto; height: 520px; }

  .cta { padding: 88px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
