/* Visalia Auto Hause: bold trade / poster */

:root {
  --ink: #141414;
  --char: #222120;
  --yellow: #ffc20e;
  --paper: #f3f0e8;
  --white: #ffffff;
  --muted-dark: #c9c6bf;
  --rule: 4px;
  --head: "Anton", "Oswald", Impact, "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

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

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

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

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

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.why :focus-visible,
.btn-yellow:focus-visible {
  outline-color: var(--ink);
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--yellow);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 22px;
  border: 3px solid transparent;
  border-radius: 0;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: none; }

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

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

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

.visit .btn-yellow { border-color: var(--ink); }
.visit .btn-yellow:hover { background: var(--ink); color: var(--yellow); }

.btn-lg { min-height: 58px; font-size: 1.125rem; padding: 12px 26px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--white);
  border-bottom: var(--rule) 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;
  text-transform: uppercase;
}
.logo-top {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  color: var(--yellow);
}
.logo-main {
  font-family: var(--head);
  font-size: 1.75rem;
  letter-spacing: 0.02em;
}

.nav { display: none; }

.header-call { min-height: 48px; padding: 8px 16px; }
.call-long { display: none; }

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

@media (min-width: 880px) {
  .nav {
    display: flex;
    gap: 32px;
    margin-left: auto;
  }
  .nav a {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 6px 0;
    border-bottom: 3px solid transparent;
  }
  .nav a:hover { border-bottom-color: var(--yellow); }
  .header-call { margin-left: 16px; }
}

/* ---------- Hazard stripe ---------- */

.hazard {
  height: 20px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 20px,
    var(--ink) 20px 40px
  );
}

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: var(--white);
}

.hero-grid {
  display: grid;
  gap: 40px;
  padding-top: 44px;
  padding-bottom: 52px;
}

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

.hero h1 {
  font-size: clamp(3rem, 13vw, 7.25rem);
  line-height: 0.92;
}
.hl { color: var(--yellow); }

.lede {
  margin: 24px 0 30px;
  font-size: 1.15rem;
  max-width: 36ch;
  color: var(--muted-dark);
}

.hero .btn-row .btn { flex: 1 1 240px; }

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-weight: 600;
  font-size: 1.05rem;
}
.star { color: var(--yellow); flex-shrink: 0; }

.fact-card {
  border: var(--rule) solid var(--yellow);
  background: var(--char);
  align-self: start;
}
.fact-card-head {
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--head);
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  padding: 10px 20px 8px;
}
.fact-card dl { margin: 0; }
.fact-card dl > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 16px 20px;
  border-top: 2px solid #3a3835;
}
.fact-card dl > div:first-child { border-top: 0; }
.fact-card dt {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--yellow);
  padding-top: 3px;
}
.fact-card dd {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 96px;
  }
  .hero .btn-row .btn { flex: 0 0 auto; }
}

/* ---------- Section titles ---------- */

.section-title {
  font-size: clamp(2.5rem, 9vw, 4.75rem);
  margin-bottom: 36px;
}
.section-title::after {
  content: "";
  display: block;
  width: 88px;
  height: 10px;
  margin-top: 16px;
  background: var(--yellow);
}
.section-title.on-yellow::after { background: var(--ink); }
.visit .section-title::after,
.services .section-title::after { background: var(--ink); }

/* ---------- Services ---------- */

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

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--rule);
  background: var(--ink);
  border: var(--rule) solid var(--ink);
}

.service-grid li {
  background: var(--paper);
  padding: 28px 22px 32px;
  position: relative;
}

.service-grid .num {
  display: inline-block;
  font-family: var(--head);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--ink);
  background: var(--yellow);
  padding: 6px 12px 2px;
  margin-bottom: 20px;
}

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

.service-grid p { max-width: 42ch; }

@media (min-width: 720px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid li { padding: 36px 36px 40px; }
}

@media (min-width: 1100px) {
  .services { padding: 104px 0 112px; }
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service-grid li { padding: 36px 28px 44px; }
  .service-grid .num { font-size: 4.5rem; }
}

/* ---------- Why ---------- */

.why {
  background: var(--yellow);
  color: var(--ink);
  padding: 64px 0 72px;
}

.why-list {
  display: grid;
  gap: 0;
}

.why-item {
  border-top: var(--rule) solid var(--ink);
  padding: 22px 0 26px;
}
.why-item:last-child { border-bottom: var(--rule) solid var(--ink); }
.why-item h3 {
  font-size: 1.85rem;
  margin-bottom: 8px;
}
.why-item p { font-weight: 600; max-width: 46ch; }

@media (min-width: 960px) {
  .why { padding: 104px 0; }
  .why-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 64px;
    align-items: start;
  }
  .why-item { padding: 28px 0 30px; }
  .why-item h3 { font-size: 2.25rem; }
}

/* ---------- Visit ---------- */

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

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

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 1.1rem;
}
.info-table th,
.info-table td {
  text-align: left;
  vertical-align: top;
  padding: 16px 0;
  border-bottom: 2px solid var(--ink);
}
.info-table tr:first-child th,
.info-table tr:first-child td { border-top: var(--rule) solid var(--ink); }
.info-table th {
  width: 110px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  padding-top: 19px;
}
.info-table td { font-weight: 600; }
.info-table a { text-decoration-thickness: 2px; text-underline-offset: 3px; }

.map { margin: 0; }
.map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: var(--rule) solid var(--ink);
  background: var(--muted-dark);
}
.map figcaption {
  background: var(--ink);
  color: var(--white);
  padding: 14px 18px;
  font-weight: 600;
}
.map figcaption a {
  color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (min-width: 960px) {
  .visit { padding: 104px 0 112px; }
  .visit-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 64px;
    align-items: start;
  }
  .map iframe { height: 440px; }
}

/* ---------- Final CTA ---------- */

.cta {
  background: var(--ink);
  color: var(--white);
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding-top: 56px;
  padding-bottom: 64px;
}
.cta h2 {
  font-size: clamp(2.5rem, 10vw, 5.5rem);
  max-width: 14ch;
}
.cta .btn { width: 100%; }

@media (min-width: 720px) {
  .cta .btn { width: auto; }
}

@media (min-width: 960px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 88px;
    padding-bottom: 96px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--char);
  color: var(--muted-dark);
  border-top: var(--rule) solid var(--yellow);
  padding: 32px 0 40px;
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  align-items: baseline;
}
.footer-name {
  font-family: var(--head);
  text-transform: uppercase;
  font-size: 1.4rem;
  color: var(--white);
  width: 100%;
}
.site-footer a { color: var(--white); }

@media (min-width: 720px) {
  .footer-name { width: auto; margin-right: auto; }
}

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