/* ==========================================================================
   APPNWEB - Child (inner) service pages: their extra pieces
   Loaded AFTER new-home.css and service-page.css. It declares no colours,
   fonts or type scale of its own - every value comes from the --nh-* tokens -
   and only adds the few pieces the parent service pages do not have:
   in-text links, the "43%" stat, tool/standard cards with logos, and the
   hire-experts check list. Everything is scoped under .sd-page.
   ========================================================================== */

/* In-text links (.ss-link): base style in service-page.css ("Links in body text"). */

/* ------------------------------------------------------------------ WHY -- */
/* The two paragraphs next to the sticky heading read as body copy, not as a dim intro. */
.ss-prose { display: grid; gap: 18px; }
.ss-prose .nh-lede { font-size: 15px; line-height: 1.8; }

/* ------------------------------------------------------ SERVICES (cards) -- */
/* Six "poster cards", one column on phones and two from 768px. The card itself (.sd-who__card, its curtain, plus button,
   number and glow) is styled in service-page.css under "WHO"; one card is open at a time, the first by default (see service-child.js).
   Two wide cards per row, not three narrow ones: the face and the curtain share one grid cell, so a card is as tall as
   its longest description. Wide cards need fewer lines, so they stay short and the resting face has no empty gap. */
.ss-who { display: grid; gap: 20px; margin-top: 64px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ss-who { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
.ss-who .sd-who__card { min-height: 270px; cursor: pointer; }
.ss-who .sd-who__face { position: relative; }
/* real content stays above the outlined icon */
.ss-who .sd-who__top, .ss-who .sd-who__icon, .ss-who .sd-who__headline { position: relative; z-index: 1; }
/* Icon and heading sit together at the bottom; the free space beside them holds the big outlined icon. */
.ss-who .sd-who__icon { width: 68px; height: 68px; margin-top: auto; }
.ss-who .sd-who__icon svg { width: 30px; height: 30px; }
.ss-who .sd-who__headline { margin-top: 0; padding-top: 22px; max-width: 82%; font-size: clamp(1.45rem, 2vw, 1.9rem); }
.ss-who .sd-who__title { margin-top: 24px; }
/* Big outlined copy of the card's own icon as artwork (the same icon, drawn large with a hairline stroke) - on the
   resting face in orange, and on the dark curtain in white. It sits below the plus button, behind the text. */
.ss-who__ghost {
    position: absolute;
    right: 44px;
    top: 56%;
    z-index: 0;
    width: clamp(120px, 14vw, 170px);
    aspect-ratio: 1;
    transform: translateY(-50%) rotate(-8deg);
    color: rgba(229, 72, 30, 0.34);
    pointer-events: none;
    transition: transform 0.8s var(--nh-ease);
}
.ss-who__ghost svg,
.ss-who .sd-who__big svg { display: block; width: 100%; height: 100%; stroke-width: 1.5px; }
.ss-who__ghost svg *,
.ss-who .sd-who__big svg * { vector-effect: non-scaling-stroke; } /* hairline at any size */
/* Icons exported from a design tool bring their own drawing and weight (ServiceSectionView::inlineSvg tags them), so
   the big watermark copies are redrawn in the same hairline as the page's line icons:
   - .sd-icon--drawn: real strokes with their own width (e.g. 15 on a 512 canvas) - given the hairline width instead.
   - .sd-icon__fill: a solid shape (these icons draw their lines as thick closed shapes) - only its outline is drawn,
     as a hairline, instead of the bold silhouette. */
.ss-who__ghost svg.sd-icon--drawn *,
.ss-who .sd-who__big svg.sd-icon--drawn * { stroke-width: 1.5px; }
.ss-who__ghost svg .sd-icon__fill,
.ss-who .sd-who__big svg .sd-icon__fill { fill: none; stroke: currentColor; stroke-width: 1.25px; }
/* ...and that outline is only the fallback: service-child.js redraws such icons as their single centre line
   (.sd-icon__line), the same hairline as the line icons. */
.ss-who__ghost svg .sd-icon__line,
.ss-who .sd-who__big svg .sd-icon__line {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ss-who .sd-who__card:hover .ss-who__ghost { transform: translateY(-50%) rotate(0deg) scale(1.06); }
/* The faint watermark inside the curtain: the icon instead of the shared big number */
.ss-who .sd-who__big {
    top: 54px;
    right: 28px;
    width: 150px;
    height: 150px;
    font-size: 0;
    line-height: 0;
    color: rgba(255, 255, 255, 0.08);
}
/* Links inside the dark curtain */
.sd-page .sd-who__text .ss-link { color: var(--nh-primary); }
.sd-page .sd-who__text .ss-link:hover { color: #fff; }

/* ------------------------------------------------------------ HIRE list -- */
.ss-hire { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1024px) {
    .ss-hire { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
}
.ss-hire__note { margin-top: 28px; font-size: 15px; font-weight: 600; line-height: 1.6; color: #000; }
.ss-checks { grid-template-columns: 1fr; }
.ss-checks .sd-check { gap: 16px; padding: 22px 0; font-size: 16px; font-weight: 600; color: #000; }
.ss-checks .sd-check__icon { width: 28px; height: 28px; }
.ss-checks .sd-check__icon svg { width: 14px; height: 14px; }

/* --------------------------------------------------------- WHY APPNWEB -- */
/* Six dark tiles (icon, heading, one line) on the ink band. Hover / keyboard focus: the tile lifts, an orange edge sweeps
   across its top, the icon fills orange and a soft glow follows the pointer (--mx / --my are set in service-child.js). */
.ss-why__grid { display: grid; gap: 16px; margin-top: 64px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ss-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ss-why__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

.ss-why__tile {
    position: relative;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    overflow: hidden;
    padding: 34px 30px 38px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    outline: none;
    transition: transform 0.5s var(--nh-ease), border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.5s var(--nh-ease);
}
.ss-why__tile::before { /* orange edge that sweeps across the top */
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    height: 3px;
    width: 0;
    background: var(--nh-primary);
    transition: width 0.6s var(--nh-ease);
}
.ss-why__tile::after { /* glow that follows the pointer */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(229, 72, 30, 0.26), transparent 62%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.ss-why__tile:hover,
.ss-why__tile:focus-visible {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(229, 72, 30, 0.6);
    box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.9);
}
.ss-why__tile:focus-visible { outline: 2px solid var(--nh-primary); outline-offset: 3px; }
.ss-why__tile:hover::before,
.ss-why__tile:focus-visible::before { width: 100%; }
.ss-why__tile:hover::after,
.ss-why__tile:focus-visible::after { opacity: 1; }

.ss-why__icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    color: var(--nh-primary);
    border: 1px solid rgba(229, 72, 30, 0.5);
    background: rgba(229, 72, 30, 0.1);
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.6s var(--nh-ease);
}
.ss-why__icon svg { width: 28px; height: 28px; }
/* Icons uploaded as PNG / JPG (.sd-icon-img, see service-page.css): same size as the SVGs. */
.sd-page .ss-why__icon .sd-icon-img { width: 28px; height: 28px; }
.sd-page .ss-who .sd-who__icon .sd-icon-img { width: 30px; height: 30px; }
.ss-why__tile:hover .ss-why__icon,
.ss-why__tile:focus-visible .ss-why__icon {
    background: var(--nh-primary);
    border-color: var(--nh-primary);
    color: var(--nh-primary-fg);
    transform: rotate(-8deg) scale(1.06);
}
.ss-why__title {
    margin-top: 28px;
    font-family: var(--nh-display);
    font-size: clamp(1.35rem, 1.8vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-transform: none;
    color: var(--nh-ink-fg);
}
.ss-why__text { margin-top: 12px; font-size: 15px; line-height: 1.7; color: rgba(246, 245, 242, 0.72); transition: color 0.4s ease; }
.ss-why__tile:hover .ss-why__text,
.ss-why__tile:focus-visible .ss-why__text { color: rgba(246, 245, 242, 0.95); }
