/* Services page. Loaded after kee.css, page-home.css and kee-late.css.
   Everything here sits on the shared text sizes and the Kee colours. */

/* Opening */
.services-hero{padding-bottom:72px}

/* The services as small tiles. Choosing one shows what it covers underneath. */
.svc-section{background:#111110;color:#FAFAF9;padding:84px 0 28px}
.svc-head{display:flex;justify-content:space-between;align-items:end;gap:40px;margin-bottom:36px}
.svc-head h2{font:700 var(--s-section)/1.1 Syne,Arial,sans-serif;letter-spacing:-.04em;margin:0}
.svc-head .teal-word{color:#14B8C8}
.svc-head p{font-size:var(--s-body);line-height:1.45;margin:0 0 6px;color:#D8D8D2}
@media(min-width:901px){.svc-head h2{flex:none;white-space:nowrap}.svc-head p{max-width:34em}}
.svc-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.svc-tile{--svc:#CBE65A;appearance:none;border:0;margin:0;cursor:pointer;text-align:left;font:inherit;color:#FAFAF9;background:#2A2A28;border-radius:20px;padding:22px 22px 24px;min-height:196px;display:flex;flex-direction:column;transition:background-color .2s ease,color .2s ease}
.svc-tile:nth-child(1){--svc:#14B8C8}
.svc-tile:nth-child(2){--svc:#CBE65A}
.svc-tile:nth-child(3){--svc:#FFBF00}
.svc-tile:nth-child(4){--svc:#00A93C}
.svc-tile:nth-child(5){--svc:#FF6F61}
.svc-tile:nth-child(6){--svc:#B79CFF}
.svc-tile:nth-child(7){--svc:#D9B88F}
.svc-tile:nth-child(8){--svc:#6FB6FF}
.svc-tile:nth-child(9){--svc:#FF8FB8}
.svc-tile:nth-child(10){--svc:#FAFAF9}
html body .svc-ring{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:50%;border:2px solid var(--svc,#CBE65A);font:700 var(--s-hint)/1 Syne,Arial,sans-serif;letter-spacing:-.02em}
html body .svc-name{display:block;margin-top:auto;padding-top:26px;font:700 var(--s-card)/1.12 Syne,Arial,sans-serif;letter-spacing:-.035em}
html body .svc-label{display:block;margin-top:8px;font-size:var(--s-small);line-height:1.35;color:#C9C9C2}
.svc-tile:hover{background:#383836}
.svc-tile:focus-visible{outline:2px solid #CBE65A;outline-offset:3px}
.svc-tile[aria-selected="true"]{background:var(--svc);color:#111110}
.svc-tile[aria-selected="true"] .svc-ring{border-color:#111110}
html body .svc-tile[aria-selected="true"] .svc-label{color:#111110}

.svc-details{margin-top:16px}
.svc-detail{--svc:#CBE65A;background:#F3F6F5;color:#111110;border-radius:20px;padding:clamp(24px,3vw,44px);display:grid;grid-template-columns:1fr 1.25fr;gap:clamp(24px,4vw,72px);align-items:start}
.svc-detail+.svc-detail{margin-top:16px}
.svc-detail[hidden]{display:none}
.svc-detail:nth-child(1){--svc:#14B8C8}
.svc-detail:nth-child(2){--svc:#CBE65A}
.svc-detail:nth-child(3){--svc:#FFBF00}
.svc-detail:nth-child(4){--svc:#00A93C}
.svc-detail:nth-child(5){--svc:#FF6F61}
.svc-detail:nth-child(6){--svc:#B79CFF}
.svc-detail:nth-child(7){--svc:#D9B88F}
.svc-detail:nth-child(8){--svc:#6FB6FF}
.svc-detail:nth-child(9){--svc:#FF8FB8}
.svc-detail:nth-child(10){--svc:#111110}
.svc-detail-head{display:grid;gap:22px;justify-items:start}
.svc-detail-head .svc-ring{background:var(--svc);border-color:var(--svc)}
.svc-detail:nth-child(10) .svc-detail-head .svc-ring{color:#FAFAF9}
html body .svc-detail h3{font:700 var(--s-section)/1.08 Syne,Arial,sans-serif;letter-spacing:-.04em;margin:0;max-width:13ch}
html body .svc-detail p{font-size:var(--s-intro);line-height:1.4;margin:0 0 30px;max-width:34ch}
.svc-detail-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px}
html body .svc-ask{display:inline-flex;align-items:center;justify-content:space-between;gap:40px;background:#111110;color:#FFFFFF;padding:18px 24px;border-radius:6px;font-size:var(--s-action)}
.svc-ask:focus-visible,.svc-more:focus-visible{outline:2px solid #111110;outline-offset:4px}
@media (max-width:1100px){
  .svc-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .svc-tile:nth-child(10){grid-column:1 / -1;min-height:0;flex-direction:row;align-items:center;gap:18px}
  html body .svc-tile:nth-child(10) .svc-name{margin:0;padding:0}
  html body .svc-tile:nth-child(10) .svc-label{margin:0 0 0 auto}
}
@media (max-width:700px){
  .svc-section{padding:52px 0 16px}
  .svc-head{flex-direction:column;align-items:flex-start;gap:12px;margin-bottom:24px}
  .svc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .svc-tile{min-height:150px;padding:16px 16px 18px;border-radius:16px}
  .svc-tile:nth-child(10){grid-column:auto;min-height:150px;flex-direction:column;align-items:stretch;gap:0}
  html body .svc-tile:nth-child(10) .svc-name{margin-top:auto;padding-top:18px}
  html body .svc-tile:nth-child(10) .svc-label{margin:8px 0 0}
  html body .svc-ring{width:40px;height:40px}
  html body .svc-name{padding-top:18px}
  .svc-details{margin-top:12px}
  .svc-detail{grid-template-columns:1fr;border-radius:16px;gap:18px}
  .svc-detail-head{gap:16px}
  html body .svc-detail p{margin-bottom:22px}
  html body .svc-ask{width:100%}
}

/* Two ways to work follows a dark block here, so it needs no rule above it */
.services-page .home-ways{border-top:0;padding-top:84px}
.services-page .home-ways .two-ways{border-top:0}

/* One line of experience and the rating, under the services */
.svc-foot{display:flex;justify-content:space-between;align-items:baseline;gap:20px 48px;flex-wrap:wrap;margin-top:28px;padding-bottom:28px}
html body .svc-foot p{font-size:var(--s-body);line-height:1.45;margin:0;color:#D8D8D2;max-width:46em}
html body .svc-foot .svc-rating{font-size:var(--s-action);color:#FAFAF9}
.svc-foot a{color:#FAFAF9;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:rgba(250,250,249,.5)}
.svc-foot a:is(:hover,:focus-visible){text-decoration-color:currentColor}
.svc-stars{color:#14B8C8;letter-spacing:.08em;margin-right:6px}
.svc-detail h3 .svc-title-link{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px;text-decoration-color:rgba(17,17,16,.3)}
.svc-detail h3 .svc-title-link:is(:hover,:focus-visible){text-decoration-color:currentColor}

/* The service carried into the brief */
html body .svc-chosen{font-size:var(--s-body);margin:14px 0 0;color:#CBE65A}
html body .svc-chosen strong{font-weight:500;color:#FAFAF9}

/* Keeps the quick message button exactly as it is on Contact */
html body .cx-quick .cx-button{font-size:var(--s-hint);gap:12px;padding:12px 20px;letter-spacing:-.011em;appearance:none;text-align:start;margin-top:auto}

/* preview 3: rating beside the hero button, tone line under the steps */
html body .hero-copy .svc-rating{margin:18px 0 0;font-size:var(--s-action)}
html body .hero-copy .svc-rating a{color:#111110;text-decoration:none;display:inline-flex;align-items:center;gap:10px}
html body .hero-copy .svc-rating strong{font-weight:600}
html body .hero-copy .svc-stars{color:#FFBF00;font-size:var(--s-intro);letter-spacing:.06em;margin-right:0}
html body .svc-tone{font-size:var(--s-body);line-height:1.45;margin:28px 0 0;max-width:46em}
html body .hero-copy .svc-rating a .svc-rtext{text-decoration:none;border-bottom:1px solid #11111060;padding:8px 0 7px}
html body .hero-copy .svc-rating a:is(:hover,:focus-visible) .svc-rtext{border-bottom-color:#111110}
html body .hero-copy .svc-rating .svc-rcount{font-style:italic;color:#6B6F6E}
html body .services-hero .svc-actions{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
html body .services-hero .svc-actions .hero-button{margin-top:30px}
html body .services-hero .hero-copy{padding-bottom:36px}
html body .hero-copy .svc-rating{margin-top:24px}

/* One pair of actions across the page: dark primary, underlined secondary.
   Both carry the site arrow, and the arrow makes one full turn on hover or focus. */

/* secondary action sits below the primary, as the site pattern: label then teal circle */
html body .svc-detail-actions{display:flex;flex-direction:column;align-items:flex-start;gap:4px}

/* heading line height from the site setting for section headings (--lh-h2, 1.14), the same as every other section heading */
html body .home-hero.services-hero .hero-bottom--lead>p.hero-line{line-height:var(--lh-h2,1.14)}
html body .services-hero .hero-line>span{display:block}
html body .svc-head h2{line-height:var(--lh-h2,1.14)}

/* Second button: label and arrow on a hairline, below the main button.
   Same values as .page-link in kee.css. To become the shared pair at build. */
html body .svc-second{display:inline-flex;align-items:center;gap:24px;color:#111110;font-size:var(--s-action);font-weight:400;text-decoration:none;border-bottom:1px solid #11111060;padding:10px 0 12px;margin-top:10px}
html body .svc-second:hover{border-bottom-color:#111110}
html body .svc-second:focus-visible{outline:2px solid #111110;outline-offset:6px}

/* Arrow in a thin ring on both buttons. The ring stays still, the arrow makes one turn inside it.
   Ring weight follows the header menu circle (1px, quarter strength). */
html body .svc-ringed{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;box-shadow:inset 0 0 0 1px #11111040;line-height:1}
html body :is(.hero-button,.svc-ask) .svc-ringed{box-shadow:inset 0 0 0 1px rgba(255,255,255,.45)}
html body .svc-ringed>span{display:inline-block}
html body :is(.hero-button,.svc-ask,.svc-second):is(:hover,:focus-visible) .svc-ringed>span{animation:kee-arrow-turn 560ms cubic-bezier(.4,0,.2,1)}
html body :is(.hero-button,.svc-ask){padding-top:13px;padding-bottom:13px;gap:28px}
html body .svc-second{gap:18px;padding:6px 0 10px}
@media(prefers-reduced-motion:reduce){html body .svc-ringed>span{animation:none!important}}

/* Second button: the hairline sits under the words only, not under the ring. */
html body .svc-second{border-bottom:0;padding:6px 0;gap:16px}
html body .svc-second__label{border-bottom:1px solid #11111060;padding:8px 0 7px}
html body .svc-second:hover .svc-second__label{border-bottom-color:#111110}
