/*
 * sp-layout.css (owned by the layout and home group)
 * Shared partials: review strip, form privacy notice, and homepage additions.
 * Linked on every public page by layouts/public.blade.php with ?v=filemtime.
 */

/* Review strip (partials/review-strip.blade.php) */
.sp-review-strip {
  margin: 1.25rem 0 0;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 48px rgba(10, 16, 42, 0.14);
  color: #15253d;
  text-align: left;
}

.sp-review-strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
}

.sp-review-strip-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: #09122f;
  font-family: var(--site-font-display, sans-serif);
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sp-review-strip-mark {
  display: inline-flex;
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: conic-gradient(
    from -20deg,
    #4285f4 0 26%,
    #34a853 26% 48%,
    #fbbc05 48% 72%,
    #ea4335 72% 100%
  );
  color: #ffffff;
  font-family: var(--site-font-body, sans-serif);
  font-size: 0.9rem;
  font-weight: 900;
}

.sp-review-strip-all {
  color: #1f219c;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(31, 33, 156, 0.3);
  text-underline-offset: 0.18em;
}

.sp-review-strip-all:hover,
.sp-review-strip-all:focus-visible {
  text-decoration-color: currentColor;
}

.sp-review-strip-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-review-strip-card {
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  background: #f6f8fc;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-left: 4px solid #fbbc05;
}

.sp-review-strip-text {
  margin: 0;
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.6;
}

.sp-review-strip-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.75rem;
  margin: 0.5rem 0 0;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.sp-review-strip-author {
  color: #0f172a;
  font-weight: 900;
}

a.sp-review-strip-author {
  text-decoration: underline;
  text-decoration-color: rgba(15, 23, 42, 0.25);
  text-underline-offset: 0.18em;
}

/* Form privacy notice (partials/form-privacy-notice.blade.php) */
.sp-form-privacy-notice {
  margin: 0.8rem 0 0;
  color: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.55;
  opacity: 0.9;
}

.sp-form-privacy-notice a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Homepage: Popular in Preston row */
.allpave-home .allpave-popular-local {
  padding: 1.6rem 0 1.8rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.allpave-home .allpave-popular-local-inner {
  display: grid;
  gap: 0.85rem;
}

.allpave-home .allpave-popular-local-title {
  margin: 0;
  color: #09122f;
  font-family: var(--site-font-display, sans-serif);
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.allpave-home .allpave-popular-local-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.allpave-home .allpave-popular-local-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: #f1f4fb;
  border: 1px solid rgba(31, 33, 156, 0.16);
  color: #1f219c;
  font-size: 0.94rem;
  font-weight: 800;
}

.allpave-home .allpave-popular-local-list a:hover,
.allpave-home .allpave-popular-local-list a:focus-visible {
  background: #ffd300;
  border-color: #ffbf00;
  color: #09122f;
}

/* Homepage review section additions */
.allpave-home .allpave-reviews-more {
  display: inline-flex;
  margin-top: 0.75rem;
  color: #ffe56c;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 720px) {
  .sp-review-strip {
    padding: 0.95rem 0.9rem 1rem;
  }

  .allpave-home .allpave-popular-local-list a {
    font-size: 0.9rem;
  }
}
