/* Homepage services (after Froxen's services list; the same rows as /drivenos/ "From first enquiry to repeat customer", A111).
   A soft green glow in the top-left corner; the head (name left, line and "All services" right); then our
   four services in hairline-ruled rows, one open at a time (the first to start with): its line, pills and link on the left,
   its picture on the right. home-services.js adds .is-ready; without it every row stays open. */
.hs { --hs-accent: var(--accent); --hs-line: #24242b; position: relative; isolation: isolate; overflow: clip; }
.hs::before { content: ''; position: absolute; z-index: -1; top: -220px; left: -140px; width: 560px; aspect-ratio: 1; border-radius: 50%;
  background: rgb(44 221 127); opacity: .14; filter: blur(150px); pointer-events: none; }

/* The head, as on Froxen: "Services." in the left 62%; its line and the "All services" button from the right, level with the
   foot of the name (name, line and button styles: the homepage's shared .sec-head in index.html, A137) */
#services .hs-head { display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 30fr); column-gap: 8%; align-items: end; }
#services .hs-lead .sec-line { margin: 0; }
.hs-lead .roll { margin-top: 28px; }

/* The rows */
.hs-acc { border-bottom: 1px solid var(--hs-line); }
.hs-acc__item { border-top: 1px solid var(--hs-line); }
.hs-acc__title { margin: 0; font: inherit; }
.hs-acc__title button { display: flex; align-items: center; gap: 24px; width: 100%; padding: 32px 0; border: 0; background: none; color: #fff;
  font: 800 clamp(37px, 4.62vw, 70px)/1.1 "Sofia Sans Extra Condensed", "Satoshi", sans-serif; letter-spacing: .005em; text-align: left; text-transform: uppercase;
  cursor: pointer; transition: color .35s var(--ease); }
.hs-acc__item.is-open .hs-acc__title button { color: var(--hs-accent); }   /* the open service leads in Pine */
.hs-acc__title button:focus-visible { outline: 2px solid var(--hs-accent); outline-offset: 4px; border-radius: 6px; }
.hs .hs-acc__title .hs-acc__num { flex: none; width: 24px; color: #b8b8b8; font: 400 18px/1.6 Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.hs-acc__icon { display: flex; flex: none; margin-left: auto; width: 24px; height: 24px; color: #fff; transition: color .35s var(--ease), rotate .45s var(--ease); }
.hs-acc__icon svg { width: 100%; height: 100%; }
.hs-acc__item.is-open .hs-acc__icon { rotate: 45deg; color: var(--hs-accent); }   /* the plus turns into a Pine cross */
.hs-acc__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .6s var(--ease); }
.hs-acc.is-ready .hs-acc__item:not(.is-open) .hs-acc__panel { grid-template-rows: 0fr; }
.hs-acc.is-instant :is(.hs-acc__panel, .hs-acc__icon) { transition: none; }
.hs-acc__clip { min-height: 0; overflow: hidden; }
.hs-acc__body { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding: 0 0 32px 48px; }   /* indented past the number */
.hs-acc__copy { flex: 0 1 520px; }
.hs-acc__copy p { max-width: 440px; margin: 0; color: #b8b8b8; font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.hs-acc__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.hs-acc__tags li { padding: 8px 16px; border: 1px solid rgb(158 240 79 / .35); border-radius: 999px; background: rgb(158 240 79 / .07);
  color: var(--detail); font: 600 12px/1.6 Inter, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.hs-acc__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: var(--detail); font: 600 15px/1.4 Inter, system-ui, sans-serif; }
.hs-acc__link svg { width: 18px; height: 18px; transition: translate .3s var(--ease); }
.hs-acc__link:hover svg, .hs-acc__link:focus-visible svg { translate: 4px 0; }
.hs-acc__link:hover span { text-decoration: underline; text-underline-offset: 4px; }
/* The picture: short enough that, with the open row under the menu, the next row's title still shows */
.hs-acc__pic { flex: 0 1 auto; width: min(600px, (100svh - 405px) * 1.333); aspect-ratio: 4 / 3; margin: 0; overflow: hidden; border-radius: 16px; background: #111115; }
.hs-acc__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  #services .hs-head { grid-template-columns: 1fr; row-gap: 24px; }
  .hs-acc__body { flex-direction: column; align-items: stretch; gap: 28px; padding-left: 48px; }   /* text first, then the picture (WEBSITE-RULES 11) */
  .hs-acc__copy { flex: none; }
  .hs-acc__pic { width: 100%; max-width: 600px; }
}
@media (max-width: 600px) {
  .hs-acc__title button { gap: 16px; padding: 24px 0; }
  .hs-acc__body { padding-left: 0; }
  .hs-acc__copy p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-acc__panel, .hs-acc__icon, .hs-acc__title button, .hs-acc__link svg { transition: none; }
}
