/* ==========================================================================
   USA Mobile Mechanic Leads
   Static rebuild of the original Wix site.

   Every measurement below was read off the live site's computed styles at a
   1425px content width, so the desktop rendering is a 1:1 match. Below that
   the fixed Wix layout is translated into a fluid one.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* palette — lifted from the Wix theme variables */
  --ink: #000;
  --paper: #fff;
  --bar: #242323;          /* header strip */
  --wash: rgba(232, 230, 230, 0.8);
  --wash-solid: #e8e6e6;
  --link: #0057e1;
  --rule: #d8d6d6;

  /* Helvetica Neue is what Wix serves (helvetica-w01-*). Arial/Helvetica are
     metrically near-identical and universally present, so no webfont needed. */
  --font-head: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* Avenir LT Heavy is licensed and can't be redistributed. Named first so it
     renders natively where installed; Montserrat is the fallback. */
  --font-ui: "Avenir LT W01 85 Heavy", "Avenir Next", Avenir, Montserrat,
             "Segoe UI", Helvetica, Arial, sans-serif;

  /* layout containers, matching Wix's grid */
  --container: 980px;
  --container-cols: 962px;   /* 3 x 280 + 2 x 61 */
  --container-gallery: 947px; /* 3 x 289 + 2 x 40 */
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

a { color: inherit; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; font-family: var(--font-head); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* screen-reader-only, used by the skip link */
.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;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto;
  clip: auto; margin: 0; padding: 10px 18px; background: var(--paper);
  color: var(--link); font-family: var(--font-ui); border-radius: 24px;
}

:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   3. Header — 57px dark strip, centred underlined wordmark
   -------------------------------------------------------------------------- */
.site-header {
  height: 57px;
  background: var(--bar);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 20px;
}

.site-header__title {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 24px;
  line-height: 33.6px;
  font-weight: 800;
  color: var(--paper);
  text-align: center;
}

.site-header__title a { text-decoration: underline; text-underline-offset: 2px; }
.site-header__title a:hover { opacity: 0.85; }

/* --------------------------------------------------------------------------
   4. Buttons — Wix "StylableButton", square corners, 2px border, tracked caps
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  padding-inline: 10px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }

/* hero: outlined-on-image */
.btn--ghost {
  width: 142px; height: 40px;
  font-size: 16px; letter-spacing: 1.6px;
  background: transparent; color: var(--paper); border-color: var(--paper);
}
.btn--ghost:hover { background: var(--paper); color: var(--ink); }

/* hero: solid white */
.btn--solid { width: 262px; height: 57px; font-size: 18px; letter-spacing: 1.8px; }

/* mid-page CTA */
.btn--cta { width: 200px; height: 42px; font-size: 14px; }

/* leads page */
.btn--read { min-width: 179px; height: 40px; font-size: 14px; }
.btn--read-light {
  min-width: 122px; height: 42px; font-size: 14px;
  background: transparent; color: var(--paper); border-color: var(--paper);
}
.btn--read-light:hover { background: var(--paper); color: var(--ink); }

/* --------------------------------------------------------------------------
   5. Hero — full-bleed image, content sits ~25% down
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  height: min(1284px, calc(100vw * 1284 / 1425));
  min-height: 520px;
  overflow: hidden;
}

.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top left; /* Wix used al_tl */
}

/* the image is bright; the original darkens it so the white type holds up */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.32);
}

.hero__inner {
  position: absolute;
  top: 24.9%;
  left: 0; right: 0;
  z-index: 1;
  text-align: center;
  padding-inline: 20px;
}

.hero__title {
  font-size: 40px;
  line-height: 56px;
  color: var(--paper);
  max-width: 600px;
  margin: 0 auto 29px;
}

.hero__sub {
  font-size: 20px;
  line-height: 28px;
  color: var(--paper);
  font-weight: 700;
  max-width: 450px;
  margin: 0 auto 25px;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   6. Pitch section + three feature columns
   -------------------------------------------------------------------------- */
.pitch {
  background: var(--wash);
  padding: 30px 0 47px;
}

.pitch__title {
  font-size: 56px;
  line-height: 78.4px;
  text-align: center;
  max-width: 907px;
  margin: 0 auto 19px;
}

.pitch__lede {
  font-size: 18px;
  line-height: 27px;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.pitch__lede a { color: inherit; text-decoration: underline; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 280px);
  gap: 61px;
  justify-content: center;
  max-width: var(--container-cols);
  margin: 60px auto 0;
  padding-inline: 20px;
}

.feature { text-align: center; }

.feature__img {
  width: 121px; height: 121px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 33px;
}

.feature__title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
  margin-bottom: 38px;
}

.feature__body { font-size: 16px; line-height: 24px; }

/* --------------------------------------------------------------------------
   7. CTA band — text over the wavy background
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  height: 392px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.band__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.band::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.band__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  padding: 28px 20px 38px;
}

.band__title {
  font-size: 56px;
  line-height: 1.2;
  color: var(--paper);
  max-width: 980px;
  margin: 0 auto 22px;
}

.band__body {
  font-size: 18px;
  line-height: 27px;
  color: var(--paper);
  max-width: 768px;
  margin: 0 auto 33px;
}
.band__body a { color: inherit; text-decoration: underline; }

/* --------------------------------------------------------------------------
   8. Gallery — 3 x 2 grid of 289px squares
   -------------------------------------------------------------------------- */
.gallery {
  background: var(--paper);
  padding: 53px 0 63px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 289px);
  gap: 40px;
  justify-content: center;
  max-width: var(--container-gallery);
  margin-inline: auto;
  padding-inline: 20px;
}

.gallery__grid img {
  width: 289px; height: 289px;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  padding: 53px 0 18px;
}

/* white panel holding contact links + social icons */
.footer__panel {
  background: var(--paper);
  max-width: var(--container);
  margin-inline: auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 60px;
}

.footer__links { font-size: 16px; line-height: 19px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }

.footer__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 200px;
}
.footer__social img { width: 16px; height: 16px; }
.footer__social a { display: block; line-height: 0; opacity: 0.9; }
.footer__social a:hover { opacity: 1; }

.footer__address {
  color: var(--paper);
  font-size: 14px;
  line-height: 19.6px;
  text-align: center;
  font-weight: 700;
  margin-top: 11px;
  white-space: pre-line;
}

.copyright {
  background: var(--ink);
  min-height: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
}

.copyright h2, .copyright p {
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 25.2px;
  font-weight: 800;
  color: var(--paper);
  text-align: center;
  margin: 0;
}
.copyright a { text-decoration: none; }
.copyright a:hover { text-decoration: underline; }

/* ==========================================================================
   LEADS PAGE
   ========================================================================== */

/* 10. Intro — banner image with an overlapping white card */
.intro {
  background: var(--wash);
  padding: 70px 0;
}

/* Banner sits left; the white card overlaps it from the right. */
.intro__grid {
  position: relative;
  width: 1265px;
  max-width: 100%;
  height: 405px;
  margin-inline: auto;
}

.intro__media { position: absolute; left: 0; top: 0; }
.intro__media img { width: 799px; height: 362px; object-fit: cover; }

.intro__card {
  position: absolute;
  left: 466px; top: 70px;
  width: 799px;
  min-height: 335px;
  background: var(--paper);
  padding: 24px 108px;
}

.intro__title { font-size: 40px; line-height: 47px; margin-bottom: 23px; }
.intro__body { font-size: 16px; line-height: 24px; margin-bottom: 25px; }

/* 11. Split — black panel beside body copy */
.split {
  display: grid;
  grid-template-columns: 710px 1fr;
  background: var(--paper);
  min-height: 430px;
}

.split__panel {
  background: var(--ink);
  color: var(--paper);
  padding: 89px 60px 60px 135px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.split__title {
  font-size: 56px;
  line-height: 67px;
  color: var(--paper);
  max-width: 356px;   /* forces the two-line break the original has */
  margin-bottom: 76px;
}

.split__body { padding: 55px 60px 55px 60px; max-width: 530px; }
.split__heading { font-size: 30px; line-height: 36px; margin-bottom: 29px; }
.split__text { font-size: 18px; line-height: 27px; }

/* 12. Video + two-column prose */
.showcase { background: var(--wash); padding: 57px 0 62px; }

.showcase__video {
  background: var(--paper);
  max-width: 1305px;
  height: 562px;             /* matches the original video panel */
  margin: 0 auto 57px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* keep the player itself a correct 16:9 inside the wider panel */
.video-frame {
  position: relative;
  height: 100%;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  background: var(--ink);
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.showcase__cols {
  background: var(--paper);
  max-width: 1305px;
  margin-inline: auto;
  padding: 22px 131px 16px 132px;
  display: grid;
  grid-template-columns: 387px 390px;
  gap: 265px;
  align-items: start;
}

.showcase__title { font-size: 38px; line-height: 46px; margin-top: 49px; }
.showcase__text { font-size: 18px; line-height: 27px; }

/* 13. FAQ accordion */
.faq { background: var(--wash-solid); padding: 13px 0 27px; }

.faq__card {
  background: var(--paper);
  max-width: var(--container);
  margin-inline: auto;
  padding: 33px 32px 40px;
}

.faq__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.faq__title { font-size: 32px; line-height: 38px; font-weight: 400; }

.faq__search {
  width: 256px; height: 40px;
  border: 1px solid var(--rule);
  padding-inline: 14px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
}

.faq__item { border-bottom: 1px solid var(--rule); margin-bottom: 24px; }
.faq__item:last-child { margin-bottom: 0; }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 80px;
  padding: 20px 0;
  cursor: pointer;
  font-size: 20px;
  line-height: 24px;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 6px;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }

.faq__answer { font-size: 16px; line-height: 24px; padding: 0 0 24px; max-width: 916px; }
.faq__answer a { color: var(--link); }

/* 14. Contact — black panel + form */
.contact {
  display: grid;
  grid-template-columns: 475px 1fr;
  background: var(--paper);
  min-height: 566px;
}

.contact__panel {
  background: var(--ink);
  color: var(--paper);
  padding: 146px 60px 60px 90px;
}

.contact__title { font-size: 30px; line-height: 36px; color: var(--paper); margin-bottom: 24px; }
.contact__line { font-size: 16px; line-height: 25px; color: var(--paper); }
.contact__line a { text-decoration: none; }
.contact__line a:hover { text-decoration: underline; }

.contact__social { display: flex; gap: 12px; margin-top: 18px; }
.contact__social img { width: 25px; height: 25px; }
.contact__social a { display: block; line-height: 0; }

.contact__form { padding: 149px 169px 60px 170px; }

.field { margin-bottom: 9px; }

.field label {
  display: block;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  height: 37px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  padding: 0 2px;
}
.field input:focus { outline: none; border-bottom-width: 2px; }

.form__submit {
  width: 100%;
  height: 36px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.form__submit:hover { opacity: 0.85; }

.form__note { margin-top: 14px; font-size: 13px; line-height: 19px; color: #4a4a4a; }

/* honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ==========================================================================
   BLOG
   ========================================================================== */
.blog { background: var(--wash); padding: 60px 0 80px; min-height: 60vh; }

.post-card {
  background: var(--paper);
  max-width: var(--container);
  margin-inline: auto;
  padding: 40px 48px;
}

.post-card__title { font-size: 28px; line-height: 36px; margin-bottom: 16px; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; }
.post-card__excerpt { font-size: 16px; line-height: 25px; margin-bottom: 24px; }

.byline { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; }
.byline img { width: 32px; height: 32px; border-radius: 50%; }
.byline__meta { color: #545454; }

.post-stats { margin-top: 18px; font-size: 13px; color: #545454; display: flex; gap: 18px; }

/* article */
.article { background: var(--paper); padding: 56px 0 72px; }
.article__inner { max-width: 740px; margin-inline: auto; padding-inline: 20px; }
.article__title { font-size: 40px; line-height: 50px; margin-bottom: 24px; }
.article__meta { margin-bottom: 36px; }
.article__updated { font-size: 14px; color: #545454; margin-bottom: 28px; }

.article__body p { font-size: 18px; line-height: 29px; margin-bottom: 24px; }
.article__body h2 { font-size: 28px; line-height: 36px; margin: 40px 0 18px; }
.article__body ul { margin: 0 0 24px; padding-left: 22px; list-style: disc; }
.article__body ol { margin: 0 0 24px; padding-left: 22px; }
.article__body li { font-size: 18px; line-height: 29px; margin-bottom: 14px; }
.article__body blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--ink);
  font-size: 20px;
  line-height: 31px;
  font-style: italic;
}
.article__body a { color: var(--link); }

.tags { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--rule); }
.tags__label { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.tags__list { display: flex; flex-wrap: wrap; gap: 8px; }
.tags__list a {
  font-size: 13px;
  line-height: 1;
  padding: 8px 12px;
  background: var(--wash-solid);
  text-decoration: none;
}
.tags__list a:hover { background: var(--ink); color: var(--paper); }

.back-link { display: inline-block; margin-top: 36px; font-family: var(--font-ui); font-size: 14px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1320px) {
  /* unwind the overlapping banner/card into a normal stack */
  .intro__grid { position: static; width: auto; height: auto; max-width: 900px; padding-inline: 20px; }
  .intro__media { position: static; }
  .intro__media img { width: 100%; height: auto; aspect-ratio: 1102 / 362; }
  .intro__card { position: static; width: auto; margin: -60px 40px 0; padding: 40px; }

  .split { grid-template-columns: 1fr 1fr; }
  .split__panel { padding: 60px 40px; }
  .split__title { max-width: none; }
  .split__body { padding: 60px 40px; }

  .showcase__video { height: auto; }
  .video-frame { width: 100%; height: auto; }
  .showcase__cols { grid-template-columns: 1fr 1fr; gap: 60px; padding: 40px; }
  .showcase__title { margin-top: 0; }

  .contact { grid-template-columns: 400px 1fr; }
  .contact__panel { padding: 90px 40px 60px 50px; }
  .contact__form { padding: 90px 50px 60px 40px; }
  .field { margin-bottom: 24px; }
}

@media (max-width: 1040px) {
  .features { grid-template-columns: repeat(2, 280px); gap: 48px; }
  .gallery__grid { grid-template-columns: repeat(2, 289px); }
  .pitch__title { font-size: 44px; line-height: 1.35; }
  .band__title { font-size: 44px; }
  .band { height: auto; min-height: 392px; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__title { font-size: 40px; line-height: 1.2; margin-bottom: 32px; }
  .showcase__cols { grid-template-columns: 1fr; gap: 28px; }
  .contact { grid-template-columns: 1fr; }
  .contact__panel { padding: 56px 32px; }
  .contact__form { padding: 40px 32px 56px; max-width: none; }
  .footer__panel { flex-direction: column; gap: 16px; padding: 20px 32px; text-align: center; }
}

@media (max-width: 700px) {
  .site-header { height: auto; padding-block: 12px; }
  .site-header__title { font-size: 18px; line-height: 26px; }

  .hero { height: auto; min-height: 0; padding: 96px 0 110px; }
  .hero__inner { position: static; }
  .hero__title { font-size: 30px; line-height: 40px; }
  .hero__sub { font-size: 18px; line-height: 26px; }
  .hero__actions { flex-direction: column; gap: 14px; }
  .btn--ghost, .btn--solid { width: 100%; max-width: 280px; }
  .btn--solid { height: 48px; font-size: 16px; }

  .pitch { padding: 40px 0; }
  .pitch__title { font-size: 30px; line-height: 40px; padding-inline: 20px; }
  .pitch__lede { font-size: 16px; line-height: 25px; padding-inline: 20px; }

  .features { grid-template-columns: minmax(0, 320px); gap: 44px; margin-top: 44px; }
  .feature__title { margin-bottom: 20px; }

  .band { min-height: 0; padding-block: 8px; }
  .band__title { font-size: 30px; line-height: 40px; }
  .band__body { font-size: 16px; line-height: 25px; }

  .gallery { padding: 40px 0; }
  .gallery__grid { grid-template-columns: minmax(0, 289px); gap: 24px; }
  .gallery__grid img { width: 100%; height: auto; aspect-ratio: 1; }

  .intro { padding: 40px 0; }
  .intro__card { margin-inline: 16px; padding: 28px 24px; }
  .intro__title { font-size: 30px; line-height: 38px; }
  .intro__media img { height: 240px; }

  .faq__card { padding: 24px 20px 28px; }
  .faq__title { font-size: 26px; }
  .faq__search { width: 100%; }
  .faq__item summary { font-size: 17px; line-height: 23px; min-height: 0; }

  .article__title { font-size: 30px; line-height: 40px; }
  .article__body p, .article__body li { font-size: 17px; line-height: 28px; }
  .post-card { padding: 28px 24px; }

  .copyright h2, .copyright p { font-size: 15px; line-height: 22px; }
  .footer__address { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
