/* Extras for the service pages (/services/<slug>/).
   The home page sections keep their own styles (post-2.css); these style the service-only sections
   in src/components/service/, using the theme's spacing, radius and colour variables. */

.svc-section {
  background: #fff;
  padding: var(--vc-container-space-m, 64px) var(--vc-container-gutter, 20px);
  color: var(--e-global-color-text, #525252);
}
.svc-section--tint { background: var(--e-global-color-8ec627d, #FDF4E3); }
.svc-inner { max-width: 1260px; margin: 0 auto; }
.svc-inner--narrow { max-width: 860px; }

.svc-h2,
.svc-card h3,
.svc-faq h3,
.svc-related__name {
  font-family: var(--e-global-typography-primary-font-family, "PT Serif"), serif;
  font-weight: 700;
  color: var(--e-global-color-primary, #222);
}
.svc-h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.2; margin: 0 0 16px; }
.svc-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.svc-head p { font-size: 1.1rem; margin: 0; }

/* Buttons match the site's Elementor buttons */
/* The theme colours every link (.elementor-kit-709 a), so the button colours need the extra weight. */
body .svc-button, body .svc-button:visited {
  display: inline-block;
  background: var(--gc-brand);
  color: #fff;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--vc-radius, 8px);
  text-decoration: none;
  transition: background 0.2s;
}
body .svc-button:hover, body .svc-button:focus-visible { background: var(--gc-brand-dark); color: #fff; }

/* The intro section is the home page's photo + text block, which has no top padding there because it
   sits under the service cards. Here it follows a full section, so give it the same padding as the others. */
body .elementor-2 .elementor-element.elementor-element-21bc8e9 {
  --padding-top: var(--vc-container-space-m);
  --padding-bottom: var(--vc-container-space-m);
}

/* "Are you struggling with..." */
.svc-problems { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.svc-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.svc-checklist li {
  position: relative;
  padding-left: 36px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--e-global-color-primary, #222);
}
.svc-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gc-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.svc-problems__answer {
  background: #fff;
  border: 1px solid #e8e1d8;
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--vc-box-shadow, none);
}
.svc-problems__answer p { font-size: 1.1rem; line-height: 1.65; margin: 0 0 24px; }

/* Card grids */
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
  background: #fff;
  border: 1px solid #e8e1d8;
  border-radius: 16px;
  padding: 28px;
}
.svc-section--tint .svc-card { border-color: #eadfcd; }
.svc-card h3 { font-size: 1.3rem; margin: 0 0 10px; }
.svc-card p { margin: 0; line-height: 1.6; }
.svc-card__num {
  display: block;
  font-family: var(--e-global-typography-primary-font-family, "PT Serif"), serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--gc-brand);
  margin-bottom: 8px;
}

/* FAQs */
.svc-faq { display: grid; gap: 12px; }
.svc-faq details {
  border: 1px solid #e8e1d8;
  border-radius: 12px;
  background: #fff;
}
.svc-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  position: relative;
}
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gc-brand);
}
.svc-faq details[open] summary::after { content: "\2212"; }
.svc-faq h3 { display: inline; font-size: 1.15rem; margin: 0; }
.svc-faq details p { margin: 0; padding: 0 24px 22px; line-height: 1.65; }
.svc-faq summary:focus-visible { outline: 2px solid var(--gc-brand); outline-offset: 2px; border-radius: 12px; }

/* Related services */
.svc-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-related__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eadfcd;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.svc-related__card:hover, .svc-related__card:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(51, 20, 0, 0.12); }
.svc-related__card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.svc-related__body { padding: 20px 24px 24px; display: grid; gap: 6px; }
.svc-related__name { font-size: 1.25rem; }
.svc-related__more { color: var(--gc-brand); font-weight: 600; }
.svc-related__more::after { content: " \2192"; }
.svc-areas { text-align: center; margin: 36px auto 0; max-width: 820px; line-height: 1.7; }
.svc-areas a { color: var(--gc-brand); font-weight: 600; }

@media (max-width: 1024px) {
  .svc-cards, .svc-related { grid-template-columns: repeat(2, 1fr); }
  .svc-problems { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 767px) {
  .svc-cards, .svc-related { grid-template-columns: 1fr; }
  .svc-problems__answer { padding: 24px; }
  .svc-head { margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-related__card { transition: none; }
  .svc-related__card:hover { transform: none; }
}

/* "Everything We Build" hub (/what-we-build/) */
/* Table of contents under the hero */
.hub-toc { padding-top: var(--vc-container-space-s, 48px); padding-bottom: var(--vc-container-space-s, 48px); }
.hub-toc__box {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid #e8e1d8;
  border-radius: 16px;
  padding: 28px 32px;
  background: #fff;
  box-shadow: var(--vc-box-shadow, none);
}
body .hub-toc .hub-toc__title {
  font-family: var(--e-global-typography-primary-font-family, "PT Serif"), serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--e-global-color-primary, #222);
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eadfcd;
}
.hub-toc__list {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 40px;
}
.hub-toc__list li { counter-increment: toc; break-inside: avoid; }
body .hub-toc__list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  color: var(--e-global-color-primary, #222);
  text-decoration: none;
}
.hub-toc__list a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--e-global-typography-primary-font-family, "PT Serif"), serif;
  font-weight: 700;
  color: var(--gc-brand);
  min-width: 2ch;
}
.hub-toc__name { font-weight: 600; }
body .hub-toc__list a:hover .hub-toc__name, body .hub-toc__list a:focus-visible .hub-toc__name { color: var(--gc-brand); text-decoration: underline; }
[id^="cat-"], #areas { scroll-margin-top: 90px; }
@media (max-width: 767px) {
  .hub-toc__list { columns: 1; }
  .hub-toc__box { padding: 22px 20px; }
}
.hub-card { display: flex; flex-direction: column; }
.hub-card h3 { font-size: 1.15rem; }
.hub-card p { font-size: 0.95rem; }
body a.hub-card--live { text-decoration: none; border-color: var(--gc-brand); transition: transform 0.2s, box-shadow 0.2s; }
a.hub-card--live:hover, a.hub-card--live:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(51, 20, 0, 0.12); }
.hub-card__more { margin-top: auto; padding-top: 14px; color: var(--gc-brand); font-weight: 600; }
.hub-card__more::after { content: " \2192"; }
.hub-towns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hub-town h3 { font-size: 1.15rem; margin-bottom: 12px; }
body .hub-town h3 a, body .hub-town li a { color: var(--gc-brand); }
.hub-town ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.95rem; }
@media (max-width: 1024px) { .hub-towns { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .hub-towns { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { a.hub-card--live { transition: none; } a.hub-card--live:hover { transform: none; } }
/* Text inside linked hub cards keeps the card colours, not the theme's link colour */
body a.hub-card--live h3 { color: var(--e-global-color-primary, #222); }
body a.hub-card--live p { color: var(--e-global-color-text, #525252); }
