/* Concept: the visit, written up the way the shop writes it. A fender cover thrown over the hero (the same black cover that sits on the Mustang in their own bay photo), the repair order's Concern / Cause / Estimate / Correction as the walk-through, the truck on the lift labelled like a parts diagram, and the 2-year / 24,000-mile warranty as the service sticker on your windshield. Every form here is an object a Tulare Automotive customer already handles. */
:root {
  /* color: sampled from the real bay photo and the logo */
  --ink: #17191C;         /* the black fender cover, the shop floor in shadow */
  --lift: #1F4E9C;        /* the blue two-post lifts in the bay */
  --orange: #F58220;      /* the logo's gear: fills, large type, rules only */
  --orange-deep: #9C4208; /* the same orange taken down to 5.1:1 for text on concrete */
  --concrete: #E3E4E1;    /* the bay floor in daylight: the page ground */
  --steel: #55585C;       /* the logo's "Repair" grey, deepened to 5.6:1 */
  --sheet: #FFFFFF;       /* the repair order and the sticker */
  --mist: #B4B8BC;        /* quiet text on ink (8.8:1) */
  --rule: #B9BBB7;

  /* type: Rubik for display, the same softened heavy grotesque as the TAR wordmark on their sign;
     Schibsted Grotesk for reading, a plain sturdy grotesque with clear figures for miles, dates and phone numbers */
  --display: "Rubik", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

  --fs-hero: clamp(2.375rem, 1.1rem + 3.9vw, 4.25rem); /* 38 on a phone, 68 on desktop */
  --fs-h2: clamp(2rem, 1.45rem + 1.6vw, 2.75rem);      /* 32 to 44 */
  --fs-quote: clamp(1.5rem, 1.15rem + 1vw, 2rem);
  --fs-body: 1.125rem;                                 /* 18 */
  --fs-small: 0.9375rem;

  --gutter: 16px;
  --max: 1200px;
  --space: clamp(72px, 9vw, 136px);
  --head-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; text-wrap: balance; margin: 0; }
h2 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
figure { margin: 0; }

:focus-visible { outline: 3px solid var(--lift); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--orange); }

.skip {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 16px; font-weight: 700;
}
.skip:focus { top: 8px; }
.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;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- header: sticky, under 64 px, logo / menu / call ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--sheet);
  border-bottom: 3px solid var(--orange);
}
.bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  min-height: var(--head-h);
}
.brand { margin-right: auto; display: flex; align-items: center; min-height: 44px; }
.brand img { height: 36px; width: auto; }
.menu-btn {
  display: none; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 10px;
  font: 600 1rem/1 var(--display); color: var(--ink);
  background: transparent; border: 2px solid var(--ink); border-radius: 6px; cursor: pointer;
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 16px; height: 2px; background: currentColor; position: relative; content: "";
}
.menu-btn__bars::before { position: absolute; top: -5px; }
.menu-btn__bars::after { position: absolute; top: 5px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { top: 0; transform: rotate(-45deg); }
.js .menu-btn { display: inline-flex; }

.call {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px;
  background: var(--lift); color: #fff; text-decoration: none;
  font: 700 1rem/1 var(--display); border-radius: 6px;
}
.call svg { width: 18px; height: 18px; flex: none; }
.call__num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nav { width: 100%; order: 5; }
.nav ul { list-style: none; margin: 0; padding: 0 0 8px; }
.nav a {
  display: flex; align-items: center; min-height: 48px;
  text-decoration: none; font: 600 1.125rem/1.2 var(--display);
  border-bottom: 1px solid #D5D6D3;
}
.nav a:hover { color: var(--lift); }
.nav a[aria-current="page"] { color: var(--orange-deep); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.js .nav {
  display: none;
  position: absolute; top: calc(100% + 3px); left: 0; right: 0;
  background: var(--sheet); border-bottom: 3px solid var(--orange);
  padding: 4px var(--gutter) 12px;
}
.js .nav.is-open { display: block; }

@media (min-width: 1000px) {
  :root { --head-h: 64px; }
  .bar { flex-wrap: nowrap; }
  .brand img { height: 44px; }
  .js .menu-btn { display: none; }
  .nav, .js .nav { display: block; position: static; width: auto; order: 0; padding: 0; border: 0; background: none; }
  .nav ul { display: flex; gap: 2px; padding: 0; }
  .nav a { min-height: 44px; padding: 0 10px; border: 0; font-size: 1rem; }
  .call { padding: 0 16px; }
  .call__short { display: none; }
  .call__num { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* ---------- buttons that mean something ---------- */
.btn-call {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 0 22px;
  background: var(--orange); color: var(--ink);
  font: 800 1.1875rem/1 var(--display); text-decoration: none;
  border-radius: 6px;
}
.btn-call svg { width: 20px; height: 20px; }
.btn-call:hover { background: #FF9A45; }
.textlink { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- hero: the real bay, a fender cover thrown over its edge ---------- */
.hero { position: relative; }
.hero__photo { position: relative; }
.hero__photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 74% 50%;
}
.hero__photo figcaption {
  position: absolute; right: 8px; top: 8px;
  background: var(--sheet); color: var(--ink);
  font-size: 0.875rem; font-weight: 500; padding: 4px 10px;
}
.hero__wrap { position: relative; margin-top: -40px; }
.cover {
  position: relative;
  background:
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.6px) 0 0 / 5px 5px,
    var(--ink);
  color: #fff;
  border-top: 8px solid var(--orange);
  border-radius: 3px 3px 22px 22px;
  padding: 26px 22px 30px;
  animation: drape .7s cubic-bezier(.2,.7,.2,1) both;
}
.cover::before { /* the stitched hem */
  content: ""; position: absolute; inset: 8px;
  border: 1.5px dashed rgba(255,255,255,.26);
  border-radius: 2px 2px 15px 15px; pointer-events: none;
}
.cover__print {
  position: relative;
  font: 800 0.875rem/1.3 var(--display); color: var(--orange);
  text-transform: uppercase; letter-spacing: .14em;
  margin-bottom: 16px;
}
.cover h1 { position: relative; font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.015em; line-height: 1.02; }
.cover__deck { position: relative; margin-top: 18px; max-width: 34em; color: #E9EAEB; font-size: 1.125rem; }
.cover__act { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 24px; }
.cover__act .textlink { color: #fff; }
.cover__when { position: relative; margin-top: 18px; color: var(--mist); font-size: var(--fs-small); }
@keyframes drape { from { transform: translateY(-14px); } to { transform: none; } }

@media (min-width: 700px) {
  .hero__photo img { aspect-ratio: auto; height: clamp(500px, 74vh, 740px); object-position: 62% 45%; }
  .hero__photo figcaption { top: auto; bottom: 16px; right: 16px; }
  .hero__wrap { margin-top: -300px; }
  .cover { max-width: 660px; padding: 34px 40px 40px; }
  .cover::before { inset: 10px; }
}
@media (min-width: 1000px) {
  .hero__wrap { margin-top: -340px; }
  .cover { max-width: 740px; }
}

/* ---------- the repair order ---------- */
.visit { padding-top: var(--space); }
.visit__intro p { margin-top: 12px; max-width: 36em; color: var(--steel); }
.visit__grid { display: grid; gap: 28px; }
.visit__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 45% 50%; }
.visit__photo { position: relative; }
.visit__photo figcaption {
  position: absolute; left: 8px; top: 8px; max-width: calc(100% - 16px);
  background: var(--sheet); color: var(--ink); padding: 4px 10px; font-size: 0.875rem; font-weight: 500;
}
.ro {
  position: relative; margin: -64px 10px 0;
  background: var(--sheet); border: 2px solid var(--ink);
}
.ro__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 2px 16px; background: var(--ink); color: #fff; padding: 12px 18px;
}
.ro__title { font: 800 1.0625rem/1.3 var(--display); color: var(--orange); text-transform: uppercase; letter-spacing: .1em; }
.ro__shop { font-size: 0.875rem; color: var(--mist); }
.ro__rows { margin: 0; }
.ro__row { display: grid; gap: 2px; padding: 14px 18px; border-bottom: 1px solid #C9CBC7; }
.ro__row dt { font: 700 1rem/1.4 var(--display); color: var(--lift); }
.ro__row dd { margin: 0; font-size: 1.0625rem; line-height: 1.5; }
.ro__ok { display: flex; align-items: flex-end; gap: 12px; padding: 22px 18px 6px; font: 700 1rem/1 var(--display); }
.ro__sig { flex: 1; height: 26px; border-bottom: 2px solid var(--ink); }
.ro__note { padding: 0 18px 18px; font-size: var(--fs-small); color: var(--steel); }

@media (min-width: 600px) {
  .ro__row { grid-template-columns: 7rem 1fr; gap: 16px; }
}
@media (min-width: 1000px) {
  .visit__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
  .visit__intro { grid-column: 1 / span 8; }
  .visit__photo { grid-column: 1 / span 7; grid-row: 2; }
  .visit__photo img { aspect-ratio: 5 / 4; }
  .visit__photo figcaption { position: static; max-width: none; background: none; padding: 0; margin-top: 8px; font-size: var(--fs-small); font-weight: 400; color: var(--steel); }
  .ro { grid-column: 7 / span 6; grid-row: 2; margin: 120px 0 0; }
}

/* ---------- the noise nobody could find: one dark band ---------- */
.stubborn { position: relative; margin-top: var(--space); background: var(--ink); color: #fff; }
.stubborn__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 30% 50%; }
.stubborn__words { padding-block: 44px 64px; }
.stubborn h2 { color: #fff; }
.q blockquote { margin: 0; }
.q figcaption { margin-top: 10px; font-size: var(--fs-small); color: var(--mist); }
.q--big { margin-top: 28px; padding-top: 22px; border-top: 4px solid var(--orange); }
.q--big blockquote p { font: 600 var(--fs-quote)/1.28 var(--display); }
.q--small { margin-top: 32px; max-width: 30em; }
.q--small blockquote p { font-size: 1.1875rem; line-height: 1.55; }
@media (min-width: 1000px) {
  .stubborn { min-height: 640px; }
  .stubborn__photo { position: absolute; top: 0; bottom: 0; right: 0; width: 50%; }
  .stubborn__photo img { height: 100%; aspect-ratio: auto; }
  .stubborn__words { width: calc(50% - 40px); padding-block: 104px 112px; }
}

/* ---------- the truck on the lift, labelled like a parts diagram ---------- */
.bay { padding-top: var(--space); }
.bay__head p { margin-top: 12px; max-width: 34em; color: var(--steel); }
.bay__fig { position: relative; margin-top: 32px; }
.bay__fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bay__tags {
  list-style: none; margin: 0; padding: 16px var(--gutter) 0;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px;
}
.bay__tags a {
  display: flex; align-items: center; min-height: 52px;
  font: 600 1rem/1.25 var(--display); text-decoration: none;
  border-bottom: 2px solid var(--ink);
}
.bay__tags a::after { content: "\2192"; margin-left: auto; padding-left: 8px; color: var(--orange-deep); }
.bay__more { margin-top: 24px; max-width: 46em; }
@media (min-width: 1000px) {
  .bay__tags { position: absolute; inset: 0; padding: 0; display: block; }
  .bay__tags li { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
  .bay__tags li::before {
    content: ""; position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--orange); border: 3px solid var(--ink); outline: 3px solid rgba(255,255,255,.9);
  }
  .bay__tags li::after { content: ""; position: absolute; left: -1px; bottom: 12px; width: 2px; height: 40px; background: #fff; }
  .bay__tags a {
    position: absolute; bottom: 52px; left: -14px; white-space: nowrap;
    min-height: 44px; padding: 0 14px; background: var(--sheet); color: var(--ink);
    border: 0; border-left: 5px solid var(--orange);
    transition: background-color .15s, color .15s;
  }
  .bay__tags a::after { display: none; }
  .bay__tags a:hover { background: var(--ink); color: #fff; }
  .bay__tags .flip a { left: auto; right: -14px; border-left: 0; border-right: 5px solid var(--orange); }
  .bay__tags .below::after { bottom: auto; top: 12px; }
  .bay__tags .below a { bottom: auto; top: 52px; }
}

/* ---------- the people at the counter ---------- */
.counter { padding-top: var(--space); }
.counter__grid { display: grid; gap: 28px; }
.counter__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 38% 40%; }
.counter__words > p { margin-top: 14px; max-width: 34em; }
.counter .q--big { border-top-color: var(--lift); }
.counter .q figcaption { color: var(--steel); }
.counter__proof { margin-top: 28px; font-weight: 500; }
.counter__proof a { color: var(--lift); font-weight: 700; }
@media (min-width: 1000px) {
  .counter__grid { grid-template-columns: 6fr 5fr; column-gap: 64px; align-items: start; }
  .counter__photo img { aspect-ratio: 4 / 5; object-position: 40% 50%; }
  .counter__words { padding-top: 64px; }
}

/* ---------- the warranty, as the sticker on your windshield ---------- */
.warranty { padding-block: var(--space); }
.warranty__grid { display: grid; gap: 32px; }
.warranty__words p + p { margin-top: 14px; }
.warranty__words p { max-width: 30em; }
.warranty__words .textlink { color: var(--lift); }
.glass {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(162deg, #2B4262 0%, #17212E 46%, #0D1014 100%);
  border-radius: 44px 44px 12px 12px;
  padding: 70px 22px 30px;
}
.glass::before { /* the black ceramic frit band along the top of every windshield */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 54px;
  background:
    linear-gradient(#050607 0 18px, transparent 18px),
    radial-gradient(circle, #050607 0 2.4px, transparent 2.9px) 0 16px / 9px 9px repeat;
  -webkit-mask-image: linear-gradient(#000 35%, transparent);
  mask-image: linear-gradient(#000 35%, transparent);
}
.glass::after { /* a streak of daylight across the glass */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(116deg, transparent 0 50%, rgba(255,255,255,.07) 50% 58%, transparent 58% 62%, rgba(255,255,255,.04) 62% 65%, transparent 65%);
}
.sticker {
  position: relative; z-index: 1;
  width: min(300px, 100%);
  background: var(--sheet); color: var(--ink);
  border-radius: 12px; padding-bottom: 10px;
  transform: rotate(-2deg);
}
.sticker__logo { padding: 14px 18px 10px; }
.sticker__logo img { width: 150px; height: auto; }
.sticker__title {
  background: var(--orange); color: var(--ink);
  font: 800 1rem/1 var(--display); text-transform: uppercase;
  padding: 9px 18px;
}
.sticker dl { margin: 0; }
.sticker dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 18px; border-bottom: 1px dashed #8D9094; }
.sticker dt { font-size: 0.875rem; color: var(--steel); }
.sticker dd { margin: 0; font: 700 1.0625rem/1.2 var(--display); }
.sticker__foot { padding: 8px 18px 0; font-size: 0.8125rem; color: var(--steel); }
.odo { display: none; position: relative; z-index: 1; margin-top: 30px; max-width: 320px; }
.js .odo { display: block; }
.odo label { display: block; margin-bottom: 8px; font-size: 1rem; }
.odo input {
  width: 100%; min-height: 54px; padding: 8px 14px;
  font: 700 1.5rem/1 var(--display); letter-spacing: .08em;
  color: #fff; background: #0A0C0F;
  border: 2px solid #8A8D90; border-radius: 6px;
}
.odo input::placeholder { color: #8F949A; opacity: 1; }
.odo input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (min-width: 1000px) {
  .warranty__grid { grid-template-columns: 7fr 5fr; column-gap: 64px; row-gap: 20px; }
  .glass { grid-column: 1; grid-row: 1 / span 2; }
  .warranty__h { grid-column: 2; grid-row: 1; align-self: end; }
  .warranty__words { grid-column: 2; grid-row: 2; align-self: start; }
  .glass { padding: 90px 56px 48px; min-height: 460px; }
}

/* ---------- find us: the lift-blue closing ---------- */
.find { background: var(--lift); color: #fff; padding-block: 72px 88px; }
.find__grid { display: grid; gap: 28px; }
.find__photo img { width: 100%; max-width: 400px; border: 6px solid var(--sheet); }
.find__photo figcaption { margin-top: 10px; max-width: 400px; font-size: var(--fs-small); color: #E3E8F2; }
.find h2 { color: #fff; }
.find__words > p { margin-top: 14px; max-width: 36em; }
.find__hours { font: 600 1.25rem/1.4 var(--display); }
.find__act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 28px; }
.find .textlink { color: #fff; }
@media (min-width: 1000px) {
  .find { padding-block: 112px 120px; }
  .find__grid { grid-template-columns: 412px 1fr; column-gap: 72px; align-items: start; }
}

/* ---------- stub pages ---------- */
.stub__band img { width: 100%; height: clamp(180px, 32vw, 380px); object-fit: cover; }
.stub__body { padding-block: 48px var(--space); }
.stub__body h1 { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.015em; }
.stub__body p { margin-top: 18px; max-width: 36em; font-size: 1.1875rem; }
.stub__body .find__act { margin-top: 32px; }
.stub__body .textlink { color: var(--lift); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--mist); padding-block: 56px 36px; font-size: 1rem; }
.site-footer a { color: #fff; }
.foot__grid { display: grid; gap: 28px; }
.foot__name { font: 800 1.375rem/1.15 var(--display); color: #fff; }
.foot__grid p { margin-top: 8px; }
.foot__nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.foot__nav a { display: inline-flex; align-items: center; min-height: 40px; }
.foot__mock { margin-top: 40px; padding-top: 18px; border-top: 1px solid #3A3D42; font-size: 0.875rem; }
@media (min-width: 1000px) {
  .foot__grid { grid-template-columns: 1.3fr 1fr 0.9fr; column-gap: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
