/* CleanCa site CSS (front end + editor canvas). Theme palette: primary = navy, secondary = light blue. */

/* Top bar: the theme prints its links in white, unreadable on the light blue secondary. */
.olympus-main-nav.accelerator .olympus-top-nav {
  background: var(--wp--preset--color--primary);
}

/* ---- Service pages ---------------------------------------------------- */

/* Banner buttons under the title. */
.cleanca-banner-buttons {
  margin-top: var(--wp--preset--spacing--40, 1.5rem);
}

/* Intro paragraph a touch larger than body text. */
.cleanca-service-intro p:first-of-type {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

.cleanca-service-intro .wp-block-image img,
.cleanca-service-intro .wp-block-gallery img {
  border-radius: 12px;
}

/* "What's included": two-column checklist with check marks. */
ul.cleanca-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2 300px;
  column-gap: var(--wp--preset--spacing--60, 3rem);
}

ul.cleanca-checklist > li {
  position: relative;
  break-inside: avoid;
  margin: 0 0 1rem;
  padding-left: 2.25rem;
  line-height: 1.55;
}

ul.cleanca-checklist > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .1em;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E") center / .9rem no-repeat;
}

.cleanca-included-card {
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .06);
}

/* ---- Header over the home hero ---------------------------------------- */

/* The accelerator header is transparent until scrolled: its dark links vanish on the dark home hero.
   Use the scrolled look from the start on pages with the CleanCa hero. */
body:has(.cleanca-hero) .olympus-main-nav.accelerator {
  background-color: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---- Services cards (accelerator-new) ---------------------------------- */

/* A card left alone on the last row is centred. The sector label is the grid's first child, so cards
   start at child 2: an orphan in 3 columns is a last child at 3n+2, in 2 columns at 2n. */
@media (min-width: 992px) {
  .olympus-services.accelerator-new.service-card .olympus-services-wrapper > .olympus-svc-small--accelerator-new:last-child:nth-child(3n+2) {
    grid-column: 2;
  }
}

@media (min-width: 601px) and (max-width: 991px) {
  .olympus-services.accelerator-new.service-card .olympus-services-wrapper > .olympus-svc-small--accelerator-new:last-child:nth-child(2n) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 50%;
  }
}

/* Space between "What's included" and its checklist. */
h2 + ul.cleanca-checklist {
  margin-top: var(--wp--preset--spacing--50, 2rem);
}
