/* Google Ads landing page only. Loaded on mobile-detailing-quote.html and nowhere else. */

.lp .ph { border-bottom-color: var(--red); }

/* Header: logo, call and quote only, so the form stays the focus */
.lp-header { gap: 12px; }
.lp-header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 4px;
  font-weight: 500;
  text-decoration: none;
}
.lp-header-call:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 0.3em; }

/* Hero with the form */
.lp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}
.lp-hero-photo { position: absolute; z-index: -2; inset: 0 0 auto; height: 620px; }
.lp-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.lp-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 620px;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0.58) 50%, var(--black));
}
.lp-hero-grid { display: grid; gap: 24px; padding: clamp(32px, 7vw, 48px) var(--gutter) clamp(28px, 6vw, 40px); }
.lp-hero h1 { font-size: clamp(3rem, 2.2rem + 4vw, 6.75rem); }
.lp-hero-area { display: block; margin-top: 0.35em; font-family: "Jost", system-ui, sans-serif; text-transform: none; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.35rem); font-weight: 400; letter-spacing: 0.02em; line-height: 1.3; opacity: 0.85; }
.lp-hero :focus-visible { outline-color: var(--white); }
.lp-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 14px;
  padding: 6px 14px 6px 10px;
  background: var(--white);
  color: var(--black);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  text-shadow: none;
}
.lp-google-badge svg { flex: none; }
.lp-google-badge:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 0.25em; }
.lp-hero-price {
  margin-top: 12px;
  font-family: var(--display);
  font-size: clamp(1.75rem, 1.5rem + 1.4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.05;
  text-transform: uppercase;
}
.lp-hero-book { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; }
.lp-hero-book span { font-weight: 500; text-shadow: 0 1px 10px rgb(0 0 0 / 0.6); }
.lp-hero-price strong { font-weight: 500; white-space: nowrap; box-shadow: inset 0 -3px 0 var(--red); }

.lp-hero-more { text-shadow: 0 1px 14px rgb(0 0 0 / 0.55); }
.lp-hero-more .lp-hero-lead { margin-top: 0; }

/* Corner video: a still image until tapped, and hidden whenever it would touch the form or call/text buttons */
.lp-mini {
  position: fixed;
  z-index: 24;
  right: 12px;
  bottom: calc(var(--bar-h) + 10px);
  width: 88px;
  aspect-ratio: 9 / 16;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.32);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
.lp-mini[hidden] { display: none; }
.lp-mini.is-on { opacity: 1; visibility: visible; transition: opacity 0.2s ease; }
.lp-mini-open {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid var(--white);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
}
.lp-mini-open img { width: 100%; height: 100%; object-fit: cover; }
.lp-mini-open svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  padding: 7px;
  transform: translate(-50%, -50%);
  background: rgb(0 0 0 / 0.72);
}
.lp-mini-close {
  position: absolute;
  top: -12px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.lp-mini-close svg circle { fill: var(--black); stroke: var(--white); }
.lp-mini-close svg path { fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; }
.lp-mini :focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Full player, opened only by tapping the corner video */
.lp-vsl-dialog {
  width: min(calc(100vw - 32px), calc((100dvh - 48px) * 9 / 16), 460px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: var(--black);
  overflow: hidden;
}
.lp-vsl-dialog::backdrop { background: rgb(0 0 0 / 0.78); }
.lp-vsl-dialog video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; }
.lp-vsl-dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / 0.72);
  cursor: pointer;
}
.lp-vsl-dialog-close svg path { fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; }
.lp-vsl-dialog-close:focus-visible { outline: 2px solid var(--white); outline-offset: -4px; }
.lp-hero-lead { max-width: 36ch; margin-top: 16px; font-size: var(--step-1); line-height: 1.3; }
.lp-points { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-top: 18px; }
.lp-points li { position: relative; padding-left: 18px; font-weight: 500; line-height: 1.25; }
.lp-points li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 10px;
  height: 2px;
  background: var(--white);
}

.lp-form-panel {
  padding: clamp(20px, 5vw, 36px);
  background: var(--white);
  color: var(--black);
  scroll-margin-top: calc(var(--header-h) + 8px);
}
.lp-form-panel :focus-visible { outline-color: var(--red); }
.lp-form-panel h2 { margin-bottom: 16px; font-size: clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem); }
.lp-form-panel .btn { width: 100%; }
.lp-form-panel .form-foot { grid-template-columns: 1fr; justify-items: stretch; }
.lp-form-alt { margin-top: 14px; }
.lp-form-alt a { font-weight: 500; text-underline-offset: 0.25em; }

/* Services */
.lp-services { display: grid; gap: clamp(28px, 4vw, 32px); margin-top: clamp(24px, 4vw, 44px); }
.lp-service-photo { position: relative; color: var(--white); }
.lp-service-photo .clip { aspect-ratio: 4 / 3; }
.lp-service-photo::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.82), transparent);
  pointer-events: none;
}
.lp-service-photo h3 {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 12px;
  font-family: var(--display);
  font-size: clamp(2rem, 1.7rem + 1vw, 2.75rem);
  font-weight: 500;
  line-height: 0.95;
  text-transform: uppercase;
}
.lp-service > p { max-width: 42ch; margin-top: 12px; color: var(--text-2); }
.lp-service .link { margin-top: 2px; }

/* What to expect */
.lp-expect-grid { display: grid; gap: clamp(28px, 5vw, 48px); }
.lp-expect-photo { aspect-ratio: 4 / 3; }
.lp-expect .index-list { border-color: var(--line-dark); }
.lp-expect .index-list li { border-color: var(--line-dark); }

/* Process */
.lp-intro { margin-top: 14px; }
.lp-steps { display: grid; gap: 16px; margin-top: clamp(24px, 4vw, 44px); counter-reset: lp-step; }
.lp-step { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; counter-increment: lp-step; }
.lp-step .clip { aspect-ratio: 4 / 5; }
.lp-step h3 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}
.lp-step h3::before {
  content: counter(lp-step);
  display: block;
  margin-bottom: 4px;
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  line-height: 1.2;
}
.lp-step p { margin-top: 6px; color: var(--text-2); }

/* Reviews */
.lp-reviews { background: var(--foam); }
.lp-review-grid { display: grid; gap: clamp(32px, 5vw, 48px); margin-top: clamp(24px, 4vw, 44px); }
.lp-pull {
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem);
  font-weight: 500;
  line-height: 0.98;
  text-transform: uppercase;
}

/* Social proof */
.lp-proof h2 { font-size: clamp(2.75rem, 1.7rem + 4vw, 5.5rem); }
.lp-proof .lead { margin-top: 14px; }
.lp-proof-grid { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; }
.lp-proof-list { display: grid; }
.lp-proof-list > div { padding-block: 14px; border-top: 1px solid var(--line-dark); }
.lp-proof-list dt { color: var(--text-2-dark); }
.lp-proof-list dd { font-size: var(--step-1); font-weight: 500; }
.lp-proof-list a { text-underline-offset: 0.25em; }
.lp-proof :focus-visible { outline-color: var(--white); }

/* Work */
.lp-work {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px) clamp(10px, 1.6vw, 20px);
  margin-top: clamp(24px, 4vw, 44px);
}
.lp-work .clip { aspect-ratio: 4 / 5; }

/* Brands */
.lp-brands-grid { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; }
.lp-brand-name {
  margin-block: 6px 10px;
  font-family: var(--display);
  font-size: clamp(4rem, 3rem + 5vw, 8rem);
  font-weight: 500;
  line-height: 0.95;
  text-transform: uppercase;
}
.lp-brand-more { margin-top: 16px; font-weight: 500; }
.lp-brand-photo { width: 100%; height: auto; }

/* Final call to action */
.lp-final h2 { font-size: clamp(3rem, 1.9rem + 5vw, 6.5rem); }
.lp-final .lead { max-width: 60ch; margin-top: 14px; }
.lp-final-row { display: grid; gap: 24px; }
.lp-final .actions { margin-top: 0; }
.lp-final :focus-visible { outline-color: var(--white); }

/* Footer */
.lp-footer { padding-block: 24px; background: var(--black); color: var(--text-2-dark); border-top: 1px solid var(--line-dark); }
.lp-footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.lp-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.lp-footer a:hover { color: var(--white); }
.lp-footer :focus-visible { outline-color: var(--white); }

@media (max-width: 859px) {
  .lp-header-call { display: none; }
}

@media (min-width: 620px) {
  .lp-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-work { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

@media (min-width: 960px) {
  .lp-hero-photo, .lp-hero::before { height: 100%; }
  .lp-hero::before { background: linear-gradient(90deg, rgb(0 0 0 / 0.84), rgb(0 0 0 / 0.5) 58%, rgb(0 0 0 / 0.28)), linear-gradient(to top, rgb(0 0 0 / 0.5), transparent 40%); }
  .lp-hero-photo img { object-position: 50% 50%; }
  .lp-hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
    min-height: calc(100vh - var(--header-h));
    padding-block: clamp(32px, 4vw, 56px);
  }
  .lp-points { max-width: 620px; }
  .lp-services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lp-service-photo .clip { aspect-ratio: 3 / 4; }
  .lp-expect-grid { grid-template-columns: 5fr 7fr; align-items: center; }
  .lp-expect-photo { aspect-ratio: 4 / 5; }
  .lp-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lp-step { grid-template-columns: 1fr; align-items: start; }
  .lp-step .clip { aspect-ratio: 3 / 4; }
  .lp-review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-proof-grid { grid-template-columns: 6fr 6fr; }
  .lp-work { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lp-work .clip { aspect-ratio: 9 / 16; }
  .lp-brands-grid { grid-template-columns: 5fr 7fr; }
  .lp-final-row { grid-template-columns: 1fr auto; align-items: end; }
}

/* Let the car show through; text contrast comes from the dark paint plus a lighter shade. */
.lp-hero::before { background: linear-gradient(to bottom, rgb(0 0 0 / 0.42), rgb(0 0 0 / 0.5) 45%, rgb(0 0 0 / 0.82) 78%, var(--black)); }
.lp-hero-copy { text-shadow: 0 1px 14px rgb(0 0 0 / 0.55); }

/* Grid children may shrink, so long words can't push past their column. */
.lp-steps > li, .lp-services > article, .lp-work > figure, .lp-review-grid > article { min-width: 0; }

@media (min-width: 960px) {
  .lp-hero::before { background: linear-gradient(90deg, rgb(0 0 0 / 0.66), rgb(0 0 0 / 0.34) 52%, rgb(0 0 0 / 0.12)), linear-gradient(to top, rgb(0 0 0 / 0.5), transparent 45%); }
  .lp-hero-photo img { object-position: 42% 50%; }
  .lp-step h3 { font-size: clamp(1.375rem, 0.6rem + 1.45vw, 2.25rem); }
  .lp-hero-grid { grid-template-columns: minmax(0, 6fr) minmax(340px, 5fr); }
}

/* One column in the form until the panel is wide enough for two. */
@media (min-width: 960px) and (max-width: 1279px) {
  .lp-form-panel .quote-form { grid-template-columns: 1fr; }
}

/* Brands */
.lp-brand-list {
  margin-block: 8px 16px;
  font-family: var(--display);
  font-size: clamp(3rem, 2.2rem + 3.6vw, 5.5rem);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}
.lp-brand-more { font-weight: 400; }
.lp-brand-more a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.lp-brand-more a:hover { text-decoration-color: var(--red); }
.lp-footer-call { margin-left: 14px; color: var(--white); text-decoration: underline !important; text-underline-offset: 0.25em; }

/* Separate the brand names from the heading above them */
.lp-brand-list { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 619px) {
  .lp-footer-call { display: flex !important; width: fit-content; margin-left: 0; min-height: 44px; }
}

/* Get quote buttons after each section */
.lp-cta { margin-top: clamp(28px, 4vw, 44px); }
.lp-selected { margin-top: 12px; color: var(--text-2); }
.lp-selected a { color: var(--black); text-underline-offset: 0.25em; }
.lp-selected a:hover { text-decoration-color: var(--red); }

/* Review pop-up card: small, closable, and never full screen */
.lp-popup {
  position: fixed;
  z-index: 25;
  left: 12px;
  right: 12px;
  bottom: calc(var(--bar-h) + 10px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: center;
  max-width: 400px;
  padding: 12px 12px 12px 16px;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  box-shadow: 0 10px 34px rgb(0 0 0 / 0.28);
  opacity: 0;
  transform: translateY(14px);
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.35s var(--arrive), visibility 0s linear 0.35s;
}
.lp-popup[hidden] { display: none; }
.lp-popup.is-on { opacity: 1; transform: none; visibility: visible; transition: opacity 0.25s ease, transform 0.35s var(--arrive); }
.lp-popup.is-top { top: calc(var(--header-h) + 8px); bottom: auto; transform: translateY(-14px); }
.lp-popup.is-top.is-on { transform: none; }
.lp-popup-close {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -8px -8px -8px 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.lp-popup-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.lp-popup-pull {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}
.lp-popup-text {
  grid-column: 1 / -1;
  display: -webkit-box;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.lp-popup-source { grid-column: 1; font-size: 0.9375rem; font-weight: 500; }
.lp-popup-cta { grid-column: 2; grid-row: 3; align-self: end; padding-inline: 16px; }
.lp-popup :focus-visible { outline-color: var(--red); }

@media (min-width: 960px) {
  .lp-popup { left: var(--gutter); right: auto; bottom: 20px; width: 380px; }
  .lp-popup-text { -webkit-line-clamp: 3; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-popup { transition: none; transform: none; }
}

/* Card placement while the form is on screen */
@media (max-width: 959px) {
  .lp-popup.is-top .lp-popup-text { display: none; }
}
@media (min-width: 960px) {
  .lp-popup.is-top { top: calc(var(--header-h) + 16px); bottom: auto; }
  .lp-popup { width: 360px; }
}

/* Keeps the headline and photo in the first screen beside the taller form */
@media (min-width: 960px) {
  .lp-hero-photo, .lp-hero::before { height: min(100vh, 900px); }
  .lp-hero::before { background: linear-gradient(to top, var(--black), rgb(0 0 0 / 0.2) 24%, transparent 40%), linear-gradient(90deg, rgb(0 0 0 / 0.66), rgb(0 0 0 / 0.34) 52%, rgb(0 0 0 / 0.12)); }
  .lp-hero-grid { align-items: start; }
  .lp-hero-copy { padding-top: clamp(150px, 22vh, 220px); }
  /* On phones the form follows the headline; here it sits beside both text blocks. */
  .lp-hero-grid { grid-template-rows: auto 1fr; row-gap: 16px; }
  .lp-hero-copy { grid-column: 1; grid-row: 1; }
  .lp-hero-more { grid-column: 1; grid-row: 2; }
  .lp-form-panel { grid-column: 2; grid-row: 1 / span 2; }
  .lp-mini { right: var(--gutter); bottom: 20px; width: 108px; }
}
