/* Town pages (/services/{service}/{town}) additions. Owned by the town template (contract C10). */

/* Uplink sentence to the service hub in the hero */
.allpave-service-page .allpave-service-hero p.sp-town-uplink {
  margin-top: 0.9rem;
  font-size: 0.98rem;
  line-height: 1.6;
}

.allpave-service-page .sp-town-uplink a {
  color: #ffe56c;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 229, 108, 0.5);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 2px;
}

.allpave-service-page .sp-town-uplink a:hover,
.allpave-service-page .sp-town-uplink a:focus-visible {
  text-decoration-color: #ffe56c;
}

/* Optional quote form fields (budget, photos) */
.allpave-service-page .sp-town-optional-fields {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 1rem;
}

.allpave-service-page .sp-town-optional-fields > summary {
  cursor: pointer;
  padding: 0.75rem 0;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  list-style-position: inside;
}

.allpave-service-page .sp-town-optional-fields[open] > summary {
  margin-bottom: 0.5rem;
}

.allpave-service-page .sp-town-optional-grid {
  padding-bottom: 1rem;
}

/* Keep the success or error message clear of the sticky header when focused */
.allpave-service-page #quote .neo-alert,
.allpave-service-page #quote .neo-errors {
  scroll-margin-top: 7rem;
}

.allpave-service-page #quote .neo-alert:focus,
.allpave-service-page #quote .neo-errors:focus {
  outline: 3px solid #ffe56c;
  outline-offset: 3px;
}

/* Review strip under the quote form */
.allpave-service-page .sp-town-reviews:has(> *) {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* Repairs, costs and installation sections (#repairs, #costs, #installation) */
.allpave-service-page .sp-town-guides-grid {
  display: grid;
  gap: 1.2rem;
}

.allpave-service-page .sp-town-guide {
  scroll-margin-top: 7rem;
}

.allpave-service-page .allpave-service-section .sp-town-guide:hover {
  transform: none;
}

.allpave-service-page
  .allpave-service-section
  .sp-town-guide
  .sp-town-guide-title {
  margin: 0 0 0.9rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.allpave-service-page .sp-town-guide-body {
  max-width: 78ch;
}

.allpave-service-page .allpave-service-section .sp-town-guide-body,
.allpave-service-page .allpave-service-section .sp-town-guide-body p,
.allpave-service-page .allpave-service-section .sp-town-guide-body li {
  color: rgba(245, 248, 255, 0.84);
}

.allpave-service-page .sp-town-guide-body h3,
.allpave-service-page .sp-town-guide-body h4 {
  margin: 1.25rem 0 0.5rem;
  color: #fff;
}

.allpave-service-page .sp-town-guide-body ul,
.allpave-service-page .sp-town-guide-body ol {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
}

.allpave-service-page .sp-town-guide-body a {
  color: #ffe56c;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.allpave-service-page .sp-town-guide-cta {
  margin: 1.25rem 0 0;
}

/* Alphabetical crawl ring, kept outside the nearby ItemList */
.allpave-service-page .allpave-service-section.sp-town-more-areas {
  padding: 2.5rem 0;
}

.allpave-service-page .sp-town-more-areas .sp-town-more-title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.allpave-service-page .sp-town-more-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 2rem;
  margin: 0;
}

.allpave-service-page .sp-town-more-list li + li {
  margin-top: 0;
}

/* Small terms link under the trust proof actions (shared partial) */
.allpave-trust-proof-actions .allpave-trust-proof-terms {
  flex-basis: 100%;
  margin: 0;
  text-align: right;
  font-size: 0.85rem;
}

.allpave-trust-proof-actions .allpave-trust-proof-terms a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.allpave-trust-proof-actions .allpave-trust-proof-terms a:hover,
.allpave-trust-proof-actions .allpave-trust-proof-terms a:focus-visible {
  color: #fff;
}

@media (max-width: 820px) {
  .allpave-trust-proof-actions .allpave-trust-proof-terms {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .allpave-service-page .sp-town-more-list {
    display: block;
  }

  .allpave-service-page .sp-town-more-list li + li {
    margin-top: 0.35rem;
  }
}
