/* Moe's Mobile Detailing, commercial page.

   This page reuses homepage.css for the nav and buttons and site.css for
   everything shared. What lives here is only what this page adds: a solid
   working header instead of the kit's photo hero, the alternating service
   sections, the terms list and the FAQ.

   The homepage hero is the kit's panel and stays a photograph. This page is
   a sales document for a buyer at work, so its header is flat navy: quieter,
   faster, and honest about being a page you read rather than a poster. */

/* --------------------------------------------------------------- header */

/* neutralise the photo-hero geometry from homepage.css */
.subhero.hero {
  aspect-ratio: auto;
  display: block;
  background: var(--navy);
  overflow: visible;
}

.subhero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(var(--s4), 5vw, 80px);
  align-items: center;
  padding-top: clamp(var(--s5), 6vw, 96px);
  padding-bottom: clamp(var(--s5), 6vw, 96px);
}

.subhero__headline {
  margin: clamp(15px, 1.25vw, 18px) 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 2.9vw, 42px);
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--white);
}

.subhero__lede {
  margin: var(--s3) 0 0;
  max-width: 34em;
  font-size: clamp(14.7px, 1.15vw, 17px);
  line-height: 1.7;
  color: var(--silver);
}

.subhero__photo {
  margin: 0;
}

.subhero__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-panel);
}

/* -------------------------------------------------------- service blocks */

.svc__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(var(--s4), 5vw, 80px);
  align-items: center;
}

.svc__grid--flip {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.svc__grid--flip .svc__copy {
  order: 1;
}

.svc__grid--flip .svc__photo {
  order: 0;
}

.svc--alt {
  background: var(--surface);
}

.svc__copy > p {
  margin: var(--s3) 0 0;
  max-width: 40em;
  color: var(--muted);
}

.svc__copy h3 {
  margin-top: var(--s4);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--muted);
}

.svc__list {
  margin: var(--s3) 0 0;
  padding: 0;
  list-style: none;
  max-width: 36em;
}

.svc__list li {
  padding: var(--s2) 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.55;
  color: var(--graphite);
}

.svc__list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.svc__aside {
  font-size: 14px;
}

.svc__photo {
  margin: 0;
}

.svc__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-panel);
}

/* ----------------------------------------------------------------- terms */

.terms__list {
  margin: var(--s5) 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

.terms__list dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
}

.terms__list dd {
  margin: var(--s2) 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/* ------------------------------------------------------------------- faq */

.faq {
  background: var(--surface);
}

.faq__list {
  margin-top: var(--s5);
}

.faq__list details {
  background: var(--white);
  border-radius: var(--r-tile);
  margin-bottom: var(--s2);
}

.faq__list summary {
  padding: var(--s3) var(--s4);
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  position: relative;
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

/* the trade's own mark for "this opens": a plain plus that becomes a minus */
.faq__list summary::after {
  content: "+";
  position: absolute;
  right: var(--s4);
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--royal);
}

.faq__list details[open] summary::after {
  content: "\2212";
}

.faq__list summary:hover {
  color: var(--royal);
}

.faq__list p {
  margin: 0;
  padding: 0 var(--s4) var(--s3);
  max-width: 44em;
  color: var(--muted);
}

/* ------------------------------------------------------------- narrower */

@media (max-width: 980px) {
  .subhero__grid,
  .svc__grid,
  .svc__grid--flip {
    grid-template-columns: 1fr;
  }

  .svc__grid--flip .svc__photo {
    order: 1;
  }

  .subhero__photo img,
  .svc__photo img {
    aspect-ratio: 16 / 10;
  }

  .terms__list {
    grid-template-columns: 1fr;
  }
}
