/* Quote sections: scoped styles, independent of navigation and floating controls. */
.service-quote {
  padding-block: clamp(64px, 7vw, 100px);
  color: var(--ink);
  background: #edf3f2;
  border-block: 1px solid #dbe5e3;
}

.service-quote .quote-heading {
  container-type: inline-size;
  max-width: 890px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.service-quote .quote-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #346663;
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.service-quote .quote-kicker::before {
  width: 22px;
  height: 3px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: var(--coral);
  content: "";
}

.service-quote .quote-heading h2 {
  margin: 0 0 22px;
  font-size: clamp(1.85rem, 3.7vw, 3.3rem);
  /* Keep the longest word intact when the reader enlarges the text. */
  font-size: min(clamp(1.85rem, 3.7vw, 3.3rem), 16cqi);
  line-height: 1.09;
  text-wrap: balance;
}

.service-quote .quote-heading p {
  max-width: 76ch;
  margin: 0;
  color: var(--ink-soft);
}

.service-quote .quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr);
  align-items: start;
  gap: clamp(28px, 5vw, 70px);
}

.service-quote .quote-details,
.service-quote .quote-brief,
.service-quote .quote-item > div {
  min-width: 0;
}

.service-quote .quote-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
  padding-block: 25px;
  border-bottom: 1px solid #cedbd8;
}

/* Enlarged text gets a full row instead of a narrow column beside the icon. */
.service-quote .quote-item > div {
  flex: 1 1 12rem;
}

.service-quote .quote-item:first-child {
  padding-top: 7px;
}

/* Match the illustrated badges already used in the Google profile quote. */
.service-quote .quote-icon {
  --icon-surface-color: #f4fbf7;
  --icon-accent-surface-color: #c7e3d7;
  --icon-detail-color: #b7633e;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid #b9d7ce;
  border-radius: 13px;
  color: #246b62;
  background: linear-gradient(145deg, #f9fffc, #dceee6);
  box-shadow: inset 0 1px 0 #ffffffcc, 0 3px 8px -5px #203f484d;
}

.service-quote .quote-icon--sand {
  --icon-surface-color: #fffcf4;
  --icon-accent-surface-color: #edd9b4;
  --icon-detail-color: #a46535;
  border-color: #e1ccb0;
  color: #8a5c27;
  background: linear-gradient(145deg, #fffcf5, #f4e8d4);
}

.service-quote .quote-icon--blue {
  --icon-surface-color: #f5fbff;
  --icon-accent-surface-color: #c6deea;
  --icon-detail-color: #397966;
  border-color: #bad3de;
  color: #326780;
  background: linear-gradient(145deg, #f8fdff, #dceaf2);
}

.service-quote .quote-icon .ui-icon {
  width: 28px;
  height: 28px;
}

.service-quote .quote-item h3 {
  margin: 4px 0 10px;
  font-size: clamp(1.16rem, 1.6vw, 1.4rem);
  line-height: 1.25;
}

.service-quote .quote-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.service-quote .quote-reading {
  margin: 23px 0 0;
  color: var(--ink-soft);
  font-size: .94rem;
}

.service-quote .quote-reading a {
  color: #176763;
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.service-quote .quote-brief {
  position: relative;
  padding: clamp(26px, 3.2vw, 40px);
  border: 1px solid #315c60;
  border-radius: 24px;
  color: #f8fbfa;
  background: #203f48;
  box-shadow: 0 18px 38px -26px #173b4666;
}

.service-quote .quote-brief-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #b9dfd6;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.service-quote .quote-brief-label svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.service-quote .quote-brief h3 {
  margin: 0 0 24px;
  color: #f8fbfa;
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  line-height: 1.2;
}

.service-quote .quote-checklist {
  display: grid;
  gap: 18px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.service-quote .quote-checklist li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  color: #e6efef;
  font-size: 1rem;
  line-height: 1.6;
}

.service-quote .quote-checklist svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: #a7d9c9;
}

.service-quote .quote-brief .button {
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  gap: 14px;
  padding: 16px 20px;
  white-space: normal;
  text-align: left;
  line-height: 1.4;
}

.service-quote .quote-brief .quote-note {
  margin: 17px 0 0;
  color: #c6d9dc;
  font-size: .87rem;
  line-height: 1.6;
}

.service-quote a:focus-visible {
  outline: 3px solid #176b79;
  outline-offset: 5px;
}

.service-quote .quote-brief a:focus-visible {
  outline-color: #b9dfd6;
}

@media (max-width: 760px) {
  .service-quote .quote-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .service-quote .quote-brief {
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .service-quote .quote-item {
    gap: 12px;
  }

  .service-quote .quote-icon {
    width: 32px;
    flex-basis: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .service-quote .quote-icon .ui-icon {
    width: 23px;
    height: 23px;
  }

  .service-quote .quote-brief {
    padding: 24px 20px;
    border-radius: 18px;
  }
}

@media (forced-colors: active) {
  .service-quote .quote-icon {
    --icon-surface-color: Canvas;
    --icon-accent-surface-color: Canvas;
    --icon-detail-color: CanvasText;
    color: CanvasText;
    border-color: CanvasText;
    background: Canvas;
    box-shadow: none;
  }
}
