/* ============================================================
   HALIZONA, services pages (/services/, /services/<service>/,
   /services/<service>/<town>/, /projects/<client>/)
   Loads after site.css and insights.css, which supply the tokens, the
   green hero band, the reading column and the shared responsive block
   for the header and footer. This file only adds what these pages need:
   breadcrumbs, hero actions, case-study cards, the FAQ and the closing
   band. Built into /services/assets/ by content/services/build.js.
   ============================================================ */

/* ---------- hero ---------- */
.svc-hero .wrap{max-width:1000px}
.svc-crumbs ol{
  display:flex;flex-wrap:wrap;align-items:center;gap:.3rem .55rem;
  margin:0 0 20px;padding:0;list-style:none;
  font-size:.8rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  color:rgba(48,0,96,.78);
}
.svc-crumbs li{display:inline-flex;align-items:center;gap:.55rem}
.svc-crumbs li + li::before{content:"\203A";font-size:1.1em;line-height:1;color:rgba(48,0,96,.55)}
.svc-crumbs a{color:var(--purple);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px}
.svc-crumbs a:hover{text-decoration-thickness:2.5px}
.svc-crumbs [aria-current]{color:var(--purple)}
.svc-hero h1{max-width:22ch;text-wrap:balance}
.svc-answer{max-width:62ch}

.svc-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin-top:28px}
.svc-tel{
  display:inline-flex;align-items:center;gap:.55rem;
  padding:.85rem 1.35rem;border-radius:999px;border:2px solid var(--purple);
  color:var(--purple);font-weight:800;letter-spacing:.04em;font-size:1rem;
  transition:background .25s,color .25s,transform .25s var(--ease);
}
.svc-tel svg{width:18px;height:18px}
.svc-tel:hover{background:var(--purple);color:#fff;transform:translateY(-2px)}
.svc-tel--dark{border-color:rgba(255,255,255,.55);color:#fff}
.svc-tel--dark:hover{background:#fff;color:var(--purple)}

.svc-proof{
  display:flex;gap:.75rem;align-items:flex-start;
  margin-top:26px;max-width:62ch;
  background:#fff;color:var(--purple);
  border-radius:var(--radius);padding:.95rem 1.15rem;
  font-size:1rem;line-height:1.45;font-weight:600;
}
.svc-proof svg{width:20px;height:20px;flex:0 0 auto;color:var(--green-deep);margin-top:.15rem}
.svc-proof b{font-weight:800}

/* ---------- body ---------- */
.svc-body--after{padding-top:clamp(52px,7vh,80px)}
.ins-body .svc-body-lead{font-size:1.16rem}

/* labelled facts: one label set everywhere, so a client reads the same on every page */
table.svc-facts{width:100%;border-collapse:collapse;margin:.9rem 0 1.1rem;border-top:1px solid var(--line)}
.svc-facts th,.svc-facts td{padding:.65rem 0;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}
.svc-facts th{
  width:clamp(140px,22%,190px);padding-right:1.2rem;
  font-size:.74rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
  color:#5b4a73;padding-top:.87rem;
}
.svc-facts td{font-size:1rem;line-height:1.5;color:#3d2a58}
.svc-facts td a{font-weight:700}
.svc-facts--lead{
  background:var(--bg-alt);border:2px solid var(--line);border-radius:var(--radius-lg);
  padding:clamp(14px,2.6vw,26px) clamp(20px,3.4vw,34px);
  margin:0 0 clamp(40px,5vh,60px);border-top:0;
}
.svc-facts--lead tr:last-child th,.svc-facts--lead tr:last-child td{border-bottom:0}

/* case-study cards */
.svc-cases{display:grid;gap:clamp(20px,3vw,28px);margin:1.4rem 0 .4rem}
.svc-case{
  background:#fff;border:2px solid var(--line);border-radius:var(--radius-lg);
  padding:clamp(22px,3.4vw,34px);
}
.ins-body .svc-case h3{font-size:clamp(1.3rem,2.3vw,1.6rem);margin:0 0 .5rem}
.svc-case-img{margin:.9rem 0 1rem;border-radius:var(--radius);overflow:hidden}
.svc-case-img img{width:100%;height:auto;display:block;aspect-ratio:3/2;object-fit:cover}
.ins-body .svc-case p{margin-bottom:.9rem}
.svc-case .ins-result{margin:1rem 0 1.15rem}
.ins-body .svc-case a.svc-case-link{
  display:inline-flex;align-items:center;gap:.45rem;
  font-weight:800;color:var(--purple);text-decoration:none;
}
.svc-case-link svg{width:18px;height:18px;transition:transform .25s var(--ease)}
.ins-body .svc-case a.svc-case-link:hover{text-decoration:underline;text-underline-offset:3px}
.svc-case-link:hover svg{transform:translateX(4px)}

.ins-body .svc-cases + p{margin-top:1.4rem}
.svc-also{
  background:var(--bg-alt);border-radius:var(--radius-lg);
  padding:clamp(20px,3vw,30px);margin:1.2rem 0 .4rem;
}
.ins-body .svc-also h3{font-size:1.1rem;margin:0 0 .8rem}
.svc-also .ins-list{margin:0}

/* towns with their own page */
.svc-areas{display:flex;flex-wrap:wrap;gap:10px;margin:1.1rem 0 1.6rem;padding:0;list-style:none}
.ins-body .svc-areas a.svc-area,
.svc-area-plain{
  display:inline-flex;align-items:center;gap:.45rem;
  padding:.6rem 1.05rem;border-radius:999px;border:2px solid var(--line);
  font-weight:800;font-size:.98rem;color:var(--purple);text-decoration:none;
  transition:border-color .25s,background .25s,transform .25s var(--ease);
}
.svc-areas svg{width:16px;height:16px;color:var(--green-deep)}
.ins-body .svc-areas a.svc-area:hover{border-color:var(--green);transform:translateY(-2px)}
.ins-body .svc-areas a.svc-area[aria-current="page"]{background:var(--purple);border-color:var(--purple);color:#fff}
.ins-body .svc-areas a.svc-area[aria-current="page"] svg{color:var(--green)}

/* figures */
.svc-figure{margin:1.4rem 0 1.7rem}
.svc-figure img{width:100%;height:auto;display:block;border-radius:var(--radius)}
.svc-figure figcaption{font-size:.93rem;line-height:1.5;color:#5b4a73;margin-top:.65rem}
.ins-body .svc-townlist{font-weight:700;color:var(--purple);line-height:1.75}

/* questions */
.svc-faq{border-top:2px solid var(--line);margin:1rem 0 clamp(40px,5vh,60px)}
.svc-faq details{border-bottom:2px solid var(--line)}
.svc-faq summary{
  list-style:none;cursor:pointer;
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:1.15rem 0;
}
.svc-faq summary::-webkit-details-marker{display:none}
.ins-body .svc-faq summary h3{margin:0;font-size:clamp(1.05rem,1.8vw,1.22rem);line-height:1.32}
.svc-faq summary::after{
  content:"";flex:0 0 auto;width:30px;height:30px;border-radius:50%;
  background:
    linear-gradient(var(--purple),var(--purple)) center/12px 2.5px no-repeat,
    linear-gradient(var(--purple),var(--purple)) center/2.5px 12px no-repeat,
    var(--bg-alt);
  transition:transform .25s var(--ease);
}
.svc-faq details[open] summary::after{transform:rotate(45deg)}
.svc-faq summary:focus-visible{outline:3px solid var(--purple);outline-offset:4px;border-radius:6px}
.ins-body .svc-faq-a p{margin:0 0 1.25rem}

/* the diagram sits full width between the two reading columns */
.svc-body + .eco{margin-top:0}

/* closing band */
.svc-close{background:var(--purple-deep);color:#fff;padding:clamp(64px,9vh,104px) 0 clamp(120px,14vh,150px)}
.svc-close .wrap{max-width:860px}
.svc-close h2{color:#fff;font-size:clamp(1.8rem,3.6vw,2.6rem);max-width:22ch}
.svc-close p{color:rgba(255,255,255,.86);max-width:56ch;margin-top:1rem;font-size:1.08rem;line-height:1.6}

/* not yet confirmed: preview builds only, a release build refuses to run with any */
mark.tbc{
  background:#fff3a6;color:inherit;border-radius:4px;padding:.05em .3em;
  box-shadow:inset 0 0 0 2px #e0b800;
}
mark.tbc::before{content:"To confirm: ";font-weight:800;font-size:.82em;color:#6b4f00}

@media (max-width:640px){
  .svc-actions{align-items:stretch}
  .svc-actions .btn,.svc-tel{width:100%;justify-content:center}
  .svc-facts th,.svc-facts td{display:block;width:auto;padding:.2rem 0}
  .svc-facts th{padding-top:.7rem;border-bottom:0}
  .svc-facts td{padding-bottom:.7rem}
  .svc-faq summary::after{width:26px;height:26px}
}
@media (prefers-reduced-motion:reduce){
  .svc-tel,.svc-case-link svg,.svc-faq summary::after,.ins-body .svc-areas a.svc-area{transition:none}
}

/* ---------- town hubs: every service, linked to the best page for the town ---------- */
table.svc-services{width:100%;border-collapse:collapse;margin:1.2rem 0 1.6rem;font-size:1rem}
.svc-services th,.svc-services td{padding:.7rem .9rem .7rem 0;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}
.svc-services thead th{font-size:.74rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#5b4a73}
.svc-services td:first-child{white-space:nowrap;padding-right:1.4rem}
.ins-body .svc-services td a{font-weight:800;color:var(--purple);text-decoration:none}
.ins-body .svc-services td a:hover{text-decoration:underline;text-underline-offset:3px}
.svc-services td:last-child{color:#3d2a58;line-height:1.5}
.svc-nearby{margin:.6rem 0 1.4rem;font-size:1.02rem;line-height:1.6;color:#3d2a58}
@media (max-width:560px){
  .svc-services thead{display:none}
  .svc-services tr{display:block;padding:.4rem 0;border-bottom:1px solid var(--line)}
  .svc-services td,.svc-services td:first-child{display:block;border:0;padding:.15rem 0;white-space:normal}
}

/* ---------- case-study index ---------- */
.svc-projects{display:grid;gap:clamp(16px,2.2vw,24px);grid-template-columns:repeat(auto-fit,minmax(280px,1fr));margin:1.4rem 0 1.8rem}
/* .ins-body a:not(.ins-dl):not(.btn) in insights.css carries 0,3,1, so these
   selectors match it and win on source order. */
.ins-body .svc-projects a.svc-proj{
  display:flex;flex-direction:column;gap:.45rem;
  background:#fff;border:2px solid var(--line);border-radius:var(--radius-lg);overflow:hidden;
  text-decoration:none;color:var(--purple);font-weight:600;
  transition:border-color .25s,transform .25s var(--ease),box-shadow .25s;
}
.ins-body .svc-projects a.svc-proj:hover{border-color:var(--green);transform:translateY(-3px);box-shadow:var(--shadow-md)}
.ins-body .svc-projects a.svc-proj:hover .svc-proj-name{text-decoration:underline;text-underline-offset:3px}
.svc-proj img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;display:block}
.svc-proj-name{font-weight:800;font-size:1.2rem;padding:12px 20px 0}
.svc-proj-meta{font-size:.9rem;color:#5b4a73;padding:0 20px}
.svc-proj-result{font-size:.98rem;line-height:1.5;color:#3d2a58;padding:0 20px 18px}
.svc-proj-result b{color:var(--green-deep)}

/* ---------- news ----------
   /news/ wears the Insights index look (insights.css): its hero and the
   /insights/ cards. David, 11 Nov 2026: the first version, built on the
   service-page hero and a dated list, looked "way off".

   A story is a plain newsroom page. David, 11 Nov 2026, on the green
   Insights-style story with its big caps headline and the picture beside it:
   "Big text hero, massive photo, looks bad and very AI built". */

/* the index: the /insights/ cards, two across so four stories sit 2 + 2 */
.ins-body .news-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.news-cards .ins-card h2{font-size:clamp(1.2rem,1.9vw,1.5rem)}
.news-cards .news-src{display:block;margin:-.6rem 0 1.2rem;font-size:.86rem;font-weight:600;color:#5b4a73}
@media (max-width:760px){
  .ins-body .news-cards{grid-template-columns:1fr}
}
.news-body .ins-more{margin-top:clamp(48px,6vh,72px)}

/* a story (and /about/reviews/, which shares the layout): no green hero, so the
   header shows its solid bar from the top, as the subpages without a hero do */
.plain-page .site-header{background:url("/assets/images/website-flat.jpg") center/cover var(--green);border-bottom:1px solid var(--green-deep)}
.news-article,.plain-article{padding:clamp(132px,16vh,172px) 0 clamp(110px,12vh,140px);background:#fff}
.news-wrap{max-width:768px}  /* a 720px column inside the usual 24px gutters */

.news-dateline{
  display:flex;flex-wrap:wrap;align-items:center;gap:.55rem;
  font-size:.78rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--green-deep);
}
.news-dateline a{color:var(--green-deep);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1.5px}
.news-dateline a:hover{color:var(--purple)}
.news-head h1{
  margin-top:14px;max-width:21ch;text-wrap:balance;
  font-size:clamp(1.85rem,1.2rem + 2.3vw,2.85rem);line-height:1.12;letter-spacing:-.022em;color:var(--purple);
}
.news-lede{margin-top:18px;max-width:60ch;font-size:clamp(1.08rem,1rem + .4vw,1.25rem);line-height:1.55;color:#3d2a58}

.news-copy{margin-top:clamp(30px,4.5vh,42px);padding-top:clamp(28px,4vh,38px);border-top:1px solid var(--line)}
.news-copy::after{content:"";display:block;clear:both}
.news-copy p,.news-about p{font-size:1.06rem;line-height:1.7;color:#3d2a58;margin:0 0 1.1rem}
.news-copy a,.news-about a{color:var(--green-deep);font-weight:700;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:2px}
.news-copy a:hover,.news-about a:hover{color:var(--purple)}

/* the picture: small, beside the first lines of the story, with a caption */
.news-fig{margin:0 0 24px}
.news-fig img{display:block;width:100%;height:auto;aspect-ratio:1/1;border-radius:14px}
.news-fig figcaption{font-size:.86rem;line-height:1.45;color:#5b4a73}
@media (min-width:760px){
  .news-fig{float:right;width:280px;margin:6px 0 18px 36px}
  .news-fig figcaption{margin-top:10px}
}
@media (max-width:759px){
  .news-fig{display:grid;grid-template-columns:116px 1fr;gap:14px;align-items:center}
}

.news-about,.news-more{margin-top:clamp(36px,5vh,52px);padding-top:clamp(26px,3.5vh,34px);border-top:1px solid var(--line)}
.news-about h2,.news-more h2{margin:0 0 .85rem;font-size:1.15rem;letter-spacing:-.01em;color:var(--purple)}
.news-about p{font-size:1rem;line-height:1.65}
.news-more ul{margin:0;padding:0;list-style:none}
.news-more li{padding:14px 0;border-bottom:1px solid var(--line)}
.news-more li:first-child{padding-top:2px}
.news-more time{display:block;margin-bottom:4px;font-size:.74rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--green-deep)}
.news-more li a{font-weight:700;line-height:1.4;color:var(--purple)}
.news-more li a:hover{text-decoration:underline;text-underline-offset:3px}
.news-all{display:inline-flex;gap:.45rem;margin-top:18px;font-size:.8rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--purple)}
.news-all::after{content:"\2192";transition:transform .25s var(--ease)}
.news-all:hover::after{transform:translateX(4px)}
.news-dateline a:focus-visible,.news-copy a:focus-visible,.news-about a:focus-visible,.news-more a:focus-visible{outline:3px solid var(--purple);outline-offset:3px;border-radius:3px}
@media (prefers-reduced-motion:reduce){.news-all::after{transition:none}}

/* ---------- /about/reviews/: reviews and recognition ----------
   David, 11 Nov 2026: "List our reviews, have a trust bar, and list the awards
   and chamber stuff". Same plain layout as a news story, on a wider column. */
.rv-wrap{max-width:1128px}  /* a 1080px column inside the usual 24px gutters */

/* the trust bar: rating, the two finalist places, the founding year */
.rv-trust{
  list-style:none;margin:clamp(28px,4vh,40px) 0 0;padding:0;
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  border:1px solid var(--line);border-radius:18px;background:#fff;
}
.rv-trust li{display:flex;min-width:0}
.rv-trust li + li{border-left:1px solid var(--line)}
.rv-trust li{align-items:center;gap:14px;padding:18px 20px;color:var(--purple)}
.rv-trust svg{width:30px;height:30px;flex:none}
.rv-trust img{width:52px;height:52px;flex:none;border-radius:8px}
.rv-trust b{display:block;font-size:1.02rem;font-weight:800;line-height:1.25}
.rv-trust span span{display:block;margin-top:2px;font-size:.84rem;line-height:1.35;color:#5b4a73}
.rv-trust .rv-stars{display:inline;margin:0 0 0 4px;font-size:.9rem;color:#f5b425}
.rv-year{flex:none;font-size:1.65rem;font-weight:800;letter-spacing:-.02em;color:var(--purple)}
@media (max-width:960px){
  .rv-trust{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rv-trust li:nth-child(3){border-left:0}
  .rv-trust li:nth-child(n+3){border-top:1px solid var(--line)}
}
@media (max-width:520px){
  .rv-trust{grid-template-columns:1fr}
  .rv-trust li + li{border-left:0;border-top:1px solid var(--line)}
}

.rv-section{margin-top:clamp(52px,7vh,76px)}
.rv-section-head{
  display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 28px;
  padding-bottom:16px;margin-bottom:clamp(24px,3.5vh,32px);border-bottom:1px solid var(--line);
}
.rv-section-head h2{margin:0;font-size:clamp(1.4rem,1.1rem + 1vw,1.8rem);letter-spacing:-.02em;color:var(--purple)}
.rv-section-head p{margin:0;max-width:64ch;font-size:.95rem;line-height:1.55;color:#5b4a73}
.rv-section-head a,.rv-award-more a{color:var(--green-deep);font-weight:700;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:2px}
.rv-section-head a:hover,.rv-award-more a:hover{color:var(--purple)}

/* the reviews: quoted exactly, newest first in reading order, three to a row on
   a laptop. Cards in a row share a height and the names sit at the foot. */
.rv-list{display:grid;gap:18px;grid-template-columns:minmax(0,1fr)}
@media (min-width:900px){
  .rv-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(18px,2.2vw,28px)}
  .rv-card.is-long{grid-column:span 2}
}
.rv-card{display:flex;flex-direction:column;margin:0;padding:22px 22px 20px;border:1px solid var(--line);border-radius:16px;background:#fff}
.rv-stars{margin:0 0 10px;font-size:.95rem;letter-spacing:2px;color:#f5b425}
.rv-stars-off{color:#ddd6e8}
.rv-card blockquote{margin:0}
.rv-card blockquote p{margin:0;font-size:1rem;line-height:1.6;color:#3d2a58;overflow-wrap:anywhere}
.rv-card figcaption{margin-top:auto;padding-top:14px;font-size:.9rem;line-height:1.35}
.rv-card figcaption b{display:block;font-weight:800;color:var(--purple)}
.rv-card figcaption span{display:block;margin-top:2px;color:#5b4a73}

/* the awards */
#awards h3{margin:0 0 .5rem;font-size:1.15rem;color:var(--purple)}
.rv-award-intro{max-width:62ch;margin:0 0 22px;font-size:1.02rem;line-height:1.6;color:#3d2a58}
.rv-finals{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:760px}
.rv-finals li{display:flex;align-items:center;gap:18px;padding:16px;border:1px solid var(--line);border-radius:16px}
.rv-finals img{flex:none;width:112px;height:112px;border-radius:10px}
.rv-final-label{display:block;margin-bottom:4px;font-size:.74rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--green-deep)}
.rv-finals a{font-size:1.05rem;font-weight:800;line-height:1.3;color:var(--purple);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px}
.rv-finals a:hover{color:var(--green-deep)}
.rv-award-more{margin:22px 0 0;font-size:1rem;line-height:1.6;color:#3d2a58}
.rv-section-head a:focus-visible,.rv-finals a:focus-visible,.rv-award-more a:focus-visible{outline:3px solid var(--purple);outline-offset:3px;border-radius:3px}
@media (max-width:640px){
  .rv-finals{grid-template-columns:1fr}
  .rv-finals img{width:84px;height:84px}
}
