/* ==========================================================================
   Service page builder
   Blocks rendered by template-parts/service-blocks/*.php
   ========================================================================== */

.service-builder main {
  overflow-x: clip;
}

.sb .container.mini {
  width: 900px;
  max-width: 100%;
}

/* --- Shared -------------------------------------------------------------- */

.sb-section-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 20px;
}

.sb-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 25px;
}

.sb-buttons-center {
  justify-content: center;
}

.sb .book-button {
  font-family: inherit;
  /* Transparent by default so <button> CTAs lose the UA border, but keep the
     box the same size as the outlined .white variant. */
  border: 2px solid transparent;
  /* The shared .book-button is a fixed 220px; block CTA labels vary in length,
     so let them size to their text instead of wrapping onto two lines. */
  width: auto;
  min-width: 200px;
  padding: 0 24px;
  white-space: nowrap;
}

.sb .book-button.white {
  border-color: #000;
}

.book-button-icon {
  margin-right: 8px;
}

.sb-rich p {
  margin-bottom: 12px;
}

.sb-rich h2 {
  font-size: 28px;
  font-weight: 600;
  margin: 32px 0 14px;
}

.sb-rich h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 24px 0 12px;
}

.sb-rich ul,
.sb-rich ol {
  margin: 0 0 14px 24px;
}

.sb-rich ul li {
  list-style-type: disc;
  margin-bottom: 6px;
}

.sb-rich ol li {
  list-style-type: decimal;
  margin-bottom: 6px;
}

.sb-rich a {
  color: #b8860b;
  text-decoration: underline;
}

.sb-rich a:hover {
  color: var(--golden);
}

/* --- Breadcrumbs --------------------------------------------------------- */

.sb-breadcrumbs {
  padding: 18px 0 0;
  font-size: 14px;
}

.sb-breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.sb-breadcrumbs-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sb-breadcrumbs-item a {
  color: #b8860b;
}

.sb-breadcrumbs-item a:hover {
  color: var(--golden);
}

.sb-breadcrumbs-item [aria-current="page"] {
  font-weight: 500;
}

.sb-breadcrumbs-sep {
  color: #999;
}

/* --- Hero ---------------------------------------------------------------- */

.sb-hero {
  padding: 40px 0 60px;
}

.sb-hero-grid {
  display: flex;
  align-items: center;
  gap: 50px;
}

.sb-hero-text {
  flex: 1 1 55%;
  min-width: 0;
}

.sb-hero-media {
  flex: 0 1 45%;
  min-width: 0;
}

.sb-hero-title {
  font-size: 46px;
  line-height: 1.15;
  font-weight: 600;
  margin-bottom: 20px;
}

.sb-hero-intro {
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 24px;
}

.sb-hero-intro p {
  margin-bottom: 10px;
}

.sb-hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sb-hero-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
}

.sb-hero-benefit-icon,
.sb-point-icon {
  color: var(--golden-darker);
  margin-top: 4px;
}

.sb-hero-media img,
.sb-hero-media picture {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* --- Card grids ---------------------------------------------------------- */

.sb-cards {
  display: grid;
  gap: 24px;
}

.sb-cards-2 { grid-template-columns: repeat(2, 1fr); }
.sb-cards-3 { grid-template-columns: repeat(3, 1fr); }
.sb-cards-4 { grid-template-columns: repeat(4, 1fr); }

.sb-card {
  border: 1px solid #ddd;
  border-right: 3px solid var(--golden);
  border-bottom: 3px solid var(--golden);
  border-radius: 6px;
  padding: 24px 22px;
  background: #fff;
  transition: .3s;
}

.sb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.sb-card-icon-wrap {
  font-size: 28px;
  color: var(--golden-darker);
  margin-bottom: 12px;
}

.sb-card-title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}

.sb-card-text {
  font-size: 15px;
  line-height: 1.55;
}

/* --- Inline CTA row ------------------------------------------------------ */

.sb-cta-row {
  padding: 10px 0 30px;
}

.sb-inline-cta {
  margin-top: 40px;
  padding: 24px 30px;
  border: 2px solid #000;
  border-radius: 6px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.sb-cta-row .sb-inline-cta {
  margin-top: 0;
}

.sb-inline-cta-text {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

/* --- Text + image -------------------------------------------------------- */

.sb-split {
  display: flex;
  align-items: center;
  gap: 50px;
}

.sb-image-left .sb-split {
  flex-direction: row-reverse;
}

.sb-split-text {
  flex: 1 1 55%;
  min-width: 0;
}

.sb-split-media {
  flex: 0 1 45%;
  min-width: 0;
}

.sb-split-media img,
.sb-split-media picture {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* No image supplied: keep the copy at a readable measure instead of letting it
   run the full width of the container. */
.sb-no-media .sb-split-text {
  max-width: 900px;
  margin: 0 auto;
}

.sb-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.sb-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* --- Steps --------------------------------------------------------------- */

.sb-steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: sb-step;
}

.sb-step {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 26px 22px;
  text-align: center;
  background: #fff;
}

.sb-step-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.sb-step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--golden);
  color: #000;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.sb-step-icon {
  font-size: 26px;
  color: var(--blue-darker);
}

.sb-step-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.sb-step-text {
  font-size: 15px;
  line-height: 1.55;
}

/* --- Why choose ---------------------------------------------------------- */

.sb-why {
  background: #f6f6f6;
}

.sb-cards-plain .sb-card {
  border: 1px solid #e2e2e2;
  border-right-width: 1px;
  border-bottom-width: 1px;
}

/* --- Brands -------------------------------------------------------------- */

.sb-brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.sb-brand {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sb-brand img,
.sb-brand picture {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Brand with no logo file: same tile, name set in type. */
.sb-brand-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .5px;
  color: #4a4a4a;
  text-align: center;
}

.sb-brands-note {
  margin-top: 20px;
  font-size: 13px;
  color: #666;
  text-align: center;
}

/* --- Areas --------------------------------------------------------------- */

.sb-area-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.sb-area {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #000;
  border-radius: 30px;
  padding: 8px 18px;
  background: var(--golden);
  font-size: 16px;
}

.sb-area a {
  color: #000;
}

.sb-area a:hover {
  text-decoration: underline;
}

/* --- Reviews ------------------------------------------------------------- */

.sb-review-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sb-review {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 24px 22px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sb-review-rating {
  color: var(--golden-darker);
  font-size: 15px;
  letter-spacing: 2px;
}

.sb-review-text {
  font-size: 15px;
  line-height: 1.6;
  font-style: italic;
  flex: 1;
}

.sb-review-text::before { content: "\201C"; }
.sb-review-text::after  { content: "\201D"; }

.sb-review-author {
  font-size: 15px;
}

.sb-review-name {
  font-weight: 600;
}

.sb-review-city::before {
  content: " \00B7 ";
  color: #999;
}

/* --- SEO copy ------------------------------------------------------------ */

.sb-seo-copy {
  font-size: 16px;
  line-height: 1.65;
}

/* --- FAQ ----------------------------------------------------------------- */

.sb-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sb-accordion-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.sb-accordion-item[open] {
  border-color: var(--golden);
}

.sb-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}

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

.sb-accordion-summary:hover,
.sb-accordion-summary:focus-visible {
  background: #faf7ee;
}

.sb-accordion-summary:focus-visible {
  outline: 3px solid var(--golden-darker);
  outline-offset: -3px;
}

.sb-accordion-question {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

.sb-accordion-marker {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.sb-accordion-marker::before,
.sb-accordion-marker::after {
  content: "";
  position: absolute;
  background: var(--blue-darker);
  transition: transform .25s ease;
}

.sb-accordion-marker::before {
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
}

.sb-accordion-marker::after {
  top: 0;
  left: 8px;
  width: 2px;
  height: 18px;
}

.sb-accordion-item[open] .sb-accordion-marker::after {
  transform: scaleY(0);
}

.sb-accordion-panel {
  padding: 0 22px 20px;
  font-size: 16px;
  line-height: 1.6;
}

/* --- Final CTA ----------------------------------------------------------- */

.sb-final-cta {
  background: #f6f6f6;
  text-align: center;
  position: relative;
}

.sb-final-cta.has-bg {
  background-size: cover;
  background-position: center;
  color: #fff;
}

.sb-final-cta.has-bg a {
  color: #fff;
}

.sb-final-cta .container {
  position: relative;
  z-index: 2;
}

.sb-final-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sb-final-cta-title {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 16px;
}

.sb-final-cta-text {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.55;
}

.sb-final-cta-phone {
  font-size: 32px;
  font-weight: 600;
  margin-top: 18px;
}

/* --- Related links ------------------------------------------------------- */

.sb-link-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 30px;
}

.sb-link-item {
  border-left: 3px solid var(--golden);
  padding: 6px 0 6px 16px;
}

.sb-link-anchor {
  font-size: 17px;
  font-weight: 500;
  color: #b8860b;
}

.sb-link-anchor:hover {
  color: var(--golden);
}

.sb-link-desc {
  display: block;
  font-size: 14px;
  color: #555;
  margin-top: 2px;
}

/* --- Sticky mobile CTA --------------------------------------------------- */

.sb-sticky-cta {
  display: none;
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1199px) {
  .sb-hero-title { font-size: 38px; }
  .sb-cards-4 { grid-template-columns: repeat(3, 1fr); }
  .sb-brand-grid { grid-template-columns: repeat(4, 1fr); }
  .sb-review-list { grid-template-columns: repeat(2, 1fr); }
  .sb-steps-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  .sb-hero-grid,
  .sb-split {
    flex-direction: column;
    align-items: stretch;
  }

  .sb-image-left .sb-split {
    flex-direction: column;
  }

  .sb-hero-media,
  .sb-split-media {
    order: -1;
  }

  .sb-hero-title { font-size: 32px; }
  .sb-cards-3,
  .sb-cards-4 { grid-template-columns: repeat(2, 1fr); }
  .sb-link-list { grid-template-columns: repeat(2, 1fr); }
  .sb-final-cta-title { font-size: 32px; }
}

@media (max-width: 767px) {
  .sb-hero { padding: 24px 0 36px; }
  .sb-hero-title { font-size: 28px; }
  .sb-hero-intro { font-size: 16px; }
  .sb-section-title { font-size: 26px; }

  .sb-cards,
  .sb-cards-2,
  .sb-cards-3,
  .sb-cards-4,
  .sb-steps-list,
  .sb-review-list,
  .sb-link-list {
    grid-template-columns: 1fr;
  }

  .sb-brand-grid { grid-template-columns: repeat(3, 1fr); }

  .sb-inline-cta {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .sb-buttons { justify-content: center; }
  .sb .book-button {
    width: 100%;
    max-width: 320px;
    white-space: normal;
  }

  .sb-final-cta-title { font-size: 26px; }
  .sb-final-cta-phone { font-size: 24px; }

  .sb-accordion-question { font-size: 16px; }
  .sb-accordion-summary { padding: 14px 16px; }
  .sb-accordion-panel { padding: 0 16px 16px; }

  /* Sticky call/book bar replaces the floating call bubble on phones. */
  .sb-sticky-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    border-top: 1px solid rgba(0, 0, 0, .15);
    box-shadow: 0 -4px 14px rgba(0, 0, 0, .12);
  }

  .sb-sticky-btn {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 56px;
    border: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
  }

  .sb-sticky-call {
    background: #000;
    color: var(--golden);
  }

  .sb-sticky-call:hover { color: #fff; }

  .sb-sticky-book {
    background: var(--golden);
    color: #000;
  }

  .service-builder .fixed-call { display: none; }
  .service-builder .footer-bottom { padding-bottom: 76px; }
}

@media (max-width: 481px) {
  /* styles/header.css absolutely positions the header's Book button at top:63px,
     so it floats over the first thing on the page. Reserve the space here rather
     than changing the shared header for every template. */
  .service-builder .sb-breadcrumbs {
    padding-top: 62px;
  }
}

@media (max-width: 480px) {
  .sb-brand-grid { grid-template-columns: repeat(2, 1fr); }
  .sb-sticky-btn { font-size: 14px; }
}
