/* Service pages ------------------------------------------------------------

   A design of its own, deliberately not the training-page look. Where the
   course pages use a dark photographic hero with a white form floating on it,
   pill section labels and rows of lifting cards, the service pages invert
   that: a light hero with a dark form panel, editorial rule-and-label section
   heads, hairline grids instead of floating cards, a horizontal stepper, and
   a dark band for the closing argument.

   Everything here is prefixed svc- or otherwise unique, so it never collides
   with home.css or training.css. */

/* --gradient-deep runs up into a bright violet at the far end, which leaves
   white body copy sitting on a light field and swallows the gradient submit
   button. The dark surfaces here stay in the navy range instead, and get
   their colour from the radial accents layered over them. */
.page-service {
    --svc-deep: linear-gradient(155deg, #070d20 0%, #0d1c47 46%, #141c56 100%);
}

/* Hero -------------------------------------------------------------------- */

.svc-hero {
    position: relative;
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
    background-color: var(--blue-tint);
    overflow: hidden;
}

.svc-hero::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto 30%;
    height: 46rem;
    background: radial-gradient(38% 46% at 60% 50%, rgba(45, 110, 231, 0.16), transparent 70%),
        radial-gradient(34% 44% at 92% 34%, rgba(122, 69, 230, 0.14), transparent 70%);
    pointer-events: none;
}

.svc-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background-image: var(--gradient-rule);
}

.svc-hero__grid {
    position: relative;
    display: grid;
    gap: var(--space-5);
    align-items: center;
}

.svc-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue-deep);
}

.svc-hero__eyebrow::before {
    content: "";
    width: 2.5rem;
    height: 2px;
    flex: none;
    background-image: var(--gradient-primary);
}

.svc-hero__title {
    margin-top: var(--space-3);
    max-width: 16ch;
    font-size: clamp(2rem, 1.1rem + 3.1vw, 3.25rem);
}

.svc-hero__lede {
    margin-top: var(--space-4);
    max-width: 54ch;
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
    line-height: 1.7;
    color: var(--ink-soft);
}

.svc-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4) var(--space-5);
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid var(--rule-strong);
}

.svc-stat__value {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background-image: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.svc-stat__label {
    margin-top: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.svc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-5);
}

/* The number is spelled out on wider screens; on a phone the button shortens
   to "Call Now" so both actions still fit on one line. */
.svc-hero__phone-alt {
    display: none;
}

/* button--outline is built for dark backgrounds. The hero here is light, so
   it needs an ink-on-light equivalent. */
.button--ink {
    border-color: var(--rule-strong);
    background-color: var(--paper);
    color: var(--ink-strong);
}

.button--ink:hover {
    border-color: var(--ink-strong);
    color: var(--ink-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

/* Dark enquiry panel ------------------------------------------------------ */

.svc-panel {
    position: relative;
    border-radius: var(--radius-lg);
    background-image: var(--svc-deep);
    color: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-lift);
    overflow: hidden;
}

.svc-panel::before {
    content: "";
    position: absolute;
    inset: -60% -30% auto -10%;
    height: 24rem;
    background: radial-gradient(45% 55% at 26% 55%, rgba(20, 180, 232, 0.26), transparent 70%),
        radial-gradient(45% 55% at 84% 42%, rgba(122, 69, 230, 0.26), transparent 70%);
    pointer-events: none;
}

.svc-panel__head {
    position: relative;
    padding: clamp(1.25rem, 3vw, 1.5rem) clamp(1.25rem, 3vw, 1.75rem);
    border-bottom: 1px solid var(--rule-inverse);
}

.svc-panel__title {
    font-size: var(--step-1);
    color: var(--paper);
}

.svc-panel__lede {
    margin-top: var(--space-1);
    font-size: 0.875rem;
    line-height: 1.55;
}

.svc-panel__body {
    position: relative;
    padding: clamp(1.25rem, 3vw, 1.75rem);
}

.svc-panel__grid {
    display: grid;
    gap: var(--space-2);
}

/* The panel sits beside the hero copy, so the form has to stay compact —
   short inputs and a two-line message box rather than the page default. */
.svc-panel .field {
    gap: 0.25rem;
}

.svc-panel .field__input {
    min-height: 2.625rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
}

.svc-panel textarea.field__input {
    min-height: 4.25rem;
}

.svc-panel .field__label {
    color: rgba(255, 255, 255, 0.92);
}

.svc-panel .field__optional {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
}

.svc-panel .field__input {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.24);
    color: var(--paper);
}

.svc-panel .field__input::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.svc-panel .field__input:focus {
    border-color: #8fb8ff;
    box-shadow: 0 0 0 3px rgba(143, 184, 255, 0.28);
}

.svc-panel select.field__input {
    padding-right: 2.5rem;
    background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.7) 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.7) 50%, transparent 50%);
}

/* The native dropdown list is painted by the OS, so it needs light-on-dark
   undone or the options are unreadable. */
.svc-panel select.field__input option {
    background-color: var(--paper);
    color: var(--ink);
}

.svc-panel .field__error {
    color: #ffb3ab;
}

.svc-panel .field.is-invalid .field__input {
    border-color: #ff8a80;
}

.svc-panel .form-alert {
    border-left-color: #8fb8ff;
    background-color: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.82);
}

.svc-panel .form-alert strong {
    color: var(--paper);
}

.svc-panel .form-alert--error {
    border-left-color: #ff8a80;
    background-color: rgba(255, 138, 128, 0.14);
}

.svc-panel__submit {
    width: 100%;
    margin-top: var(--space-3);
}

.svc-panel__note {
    margin-top: var(--space-2);
    font-size: 0.75rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.58);
}

/* Section head ------------------------------------------------------------ */

.svc-head {
    display: grid;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    padding-top: var(--space-4);
    border-top: 2px solid var(--ink-strong);
}

.svc-head__label {
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.svc-head__label b {
    font-weight: 500;
    color: var(--blue);
}

.svc-head__title {
    max-width: 24ch;
}

.svc-head__lede {
    max-width: var(--measure);
    font-size: var(--step-1);
    color: var(--ink-soft);
}

/* Overview ---------------------------------------------------------------- */

.svc-overview {
    display: grid;
    row-gap: var(--space-5);
}

.svc-figure {
    position: relative;
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lift);
}

.svc-figure img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

.svc-prose {
    color: var(--ink-soft);
}

.svc-prose p {
    max-width: 82ch;
    text-align: justify;
    hyphens: auto;
}

.svc-prose p + p {
    margin-top: var(--space-4);
}

/* What we do -------------------------------------------------------------- */

.svc-matrix {
    display: grid;
    gap: 1px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background-color: var(--rule);
    overflow: hidden;
}

.svc-matrix__item {
    position: relative;
    display: grid;
    align-content: start;
    gap: var(--space-3);
    padding: clamp(1.75rem, 3vw, 2.25rem);
    background-color: var(--paper);
    transition: background-color var(--transition);
}

.svc-matrix__item::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background-image: var(--gradient-rule);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 450ms var(--ease-out);
}

.svc-matrix__item:hover {
    background-color: var(--blue-tint);
}

.svc-matrix__item:hover::after {
    transform: scaleX(1);
}

.svc-matrix__icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border: 1px solid var(--rule-strong);
    border-radius: 50%;
    color: var(--blue);
    background-color: var(--paper);
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.svc-matrix__icon .icon {
    width: 1.625rem;
    height: 1.625rem;
}

.svc-matrix__item:hover .svc-matrix__icon {
    border-color: transparent;
    background-image: var(--gradient-primary);
    color: var(--paper);
}

.svc-matrix__name {
    font-size: var(--step-2);
}

.svc-matrix__copy {
    font-size: 0.9375rem;
    color: var(--ink-soft);
    text-align: justify;
    hyphens: auto;
}

/* Process stepper --------------------------------------------------------- */

.svc-steps {
    position: relative;
    display: grid;
    gap: var(--space-5);
}

.svc-step {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: var(--space-4);
    align-items: start;
}

.svc-step__marker {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-image: var(--gradient-primary);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    box-shadow: var(--shadow-blue);
}

.svc-step__title {
    font-size: var(--step-1);
}

.svc-step__copy {
    margin-top: var(--space-2);
    font-size: 0.9375rem;
    color: var(--ink-soft);
    text-align: justify;
    hyphens: auto;
}

/* Why us — dark band ------------------------------------------------------ */

.svc-band {
    position: relative;
    padding-block: clamp(3.5rem, 8vw, 6rem);
    background-image: var(--svc-deep);
    color: rgba(255, 255, 255, 0.78);
    overflow: hidden;
}

.svc-band::before {
    content: "";
    position: absolute;
    inset: -30% -10% auto -10%;
    height: 34rem;
    background: radial-gradient(40% 50% at 22% 55%, rgba(20, 180, 232, 0.22), transparent 70%),
        radial-gradient(40% 50% at 82% 40%, rgba(122, 69, 230, 0.22), transparent 70%);
    pointer-events: none;
}

.svc-band .container {
    position: relative;
}

.svc-band .svc-head {
    border-top-color: rgba(255, 255, 255, 0.5);
}

.svc-band .svc-head__label {
    color: rgba(255, 255, 255, 0.6);
}

.svc-band .svc-head__label b {
    color: #8fb8ff;
}

.svc-band .svc-head__title {
    color: var(--paper);
}

.svc-reasons {
    display: grid;
    gap: var(--space-4) var(--space-5);
}

.svc-reason {
    padding-top: var(--space-3);
    border-top: 1px solid var(--rule-inverse);
}

.svc-reason__icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(143, 184, 255, 0.14);
    color: #8fb8ff;
}

.svc-reason__icon .icon {
    width: 1.375rem;
    height: 1.375rem;
}

.svc-reason__title {
    margin-top: var(--space-3);
    font-size: 1rem;
    color: var(--paper);
}

.svc-reason__copy {
    margin-top: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.55;
    text-align: justify;
    hyphens: auto;
}

/* FAQ --------------------------------------------------------------------- */

/* The FAQ title repeats the page name, so it sits a step below the other
   section headings rather than competing with the h1. */
#faq .svc-head__title {
    font-size: var(--step-3);
}

.svc-qa {
    display: grid;
    gap: var(--space-3);
}

.svc-qa__item {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background-color: var(--paper);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.svc-qa__item[open] {
    border-color: transparent;
    box-shadow: var(--shadow-card);
}

.svc-qa__q {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink-strong);
    cursor: pointer;
    list-style: none;
}

.svc-qa__q::-webkit-details-marker {
    display: none;
}

.svc-qa__num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--blue);
}

.svc-qa__item[open] .svc-qa__q {
    color: var(--blue-deep);
}

.svc-qa__sign {
    position: relative;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition), border-color var(--transition);
}

.svc-qa__sign::before,
.svc-qa__sign::after {
    content: "";
    position: absolute;
    width: 0.6875rem;
    height: 2px;
    background-color: var(--ink-soft);
    transition: transform var(--transition), background-color var(--transition);
}

.svc-qa__sign::after {
    transform: rotate(90deg);
}

.svc-qa__item[open] .svc-qa__sign {
    border-color: transparent;
    background-image: var(--gradient-primary);
}

.svc-qa__item[open] .svc-qa__sign::before,
.svc-qa__item[open] .svc-qa__sign::after {
    background-color: var(--paper);
}

.svc-qa__item[open] .svc-qa__sign::after {
    transform: rotate(0deg);
}

.svc-qa__a {
    padding: 0 var(--space-4) var(--space-4);
    font-size: 0.9375rem;
    color: var(--ink-soft);
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 39.999em) {
    .svc-hero__eyebrow {
        justify-content: center;
    }

    /* The rule before the eyebrow only reads well against left-aligned text. */
    .svc-hero__eyebrow::before {
        display: none;
    }

    /* The title is capped at 16ch, so it needs centring as a block as well as
       centring its text. */
    .svc-hero__title {
        max-width: none;
        font-size: 1.625rem;
        text-align: center;
        text-wrap: balance;
    }

    .svc-hero__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-3);
    }

    .svc-stat__value {
        font-size: 1.125rem;
    }

    .svc-stat__label {
        font-size: 0.5625rem;
        letter-spacing: 0.06em;
    }

    .svc-hero__actions {
        flex-wrap: nowrap;
        gap: var(--space-2);
    }

    .svc-hero__actions .button {
        flex: 1 1 0;
        min-width: 0;
        min-height: 2.875rem;
        padding-inline: 0.875rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .svc-hero__phone {
        display: none;
    }

    .svc-hero__phone-alt {
        display: inline;
    }

    /* Closing CTA: the button and the two contact links centre up, and the
       links share one row — mono at the desktop size is too wide for that, so
       they drop to the body face on a phone. */
    .cta__inner {
        padding: var(--space-4);
    }

    .cta__title {
        text-align: center;
    }

    .cta__actions {
        align-items: center;
        text-align: center;
    }

    .cta__contact {
        display: flex;
        justify-content: center;
        gap: var(--space-2);
        font-family: var(--font-body);
        font-size: 0.75rem;
    }

    .cta__contact a {
        min-height: 2rem;
        white-space: nowrap;
    }
}

@media (min-width: 40em) {
    .svc-panel__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: var(--space-3);
        row-gap: var(--space-2);
    }

    .svc-panel__field--wide {
        grid-column: 1 / -1;
    }

    .svc-matrix {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .svc-figure img {
        aspect-ratio: 21 / 9;
    }
}

@media (min-width: 64em) {
    .svc-hero__grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        column-gap: clamp(2.5rem, 5vw, 4rem);
    }

    .svc-hero__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .svc-head {
        grid-template-columns: 13rem minmax(0, 1fr);
        column-gap: var(--space-6);
        align-items: start;
    }

    .svc-head__label {
        grid-row: 1 / span 2;
        padding-top: 0.5rem;
    }

    .svc-head__title,
    .svc-head__lede {
        grid-column: 2;
    }

    .svc-overview {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
        column-gap: clamp(2.5rem, 5vw, 4rem);
        align-items: stretch;
    }

    .svc-overview .svc-prose {
        grid-area: 1 / 1;
    }

    .svc-overview .svc-figure {
        grid-area: 1 / 2;
        min-height: 20rem;
    }

    /* The figure takes its height from the prose column beside it, so the image
       is pulled out of flow and fills whatever the text ends up being. */
    .svc-overview .svc-figure img {
        position: absolute;
        inset: 0;
        aspect-ratio: auto;
    }

    .svc-matrix {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .svc-steps {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: var(--space-4);
    }

    /* One rule behind the whole row, so the markers sit on a single line
       rather than each step drawing its own connector across the gap. */
    .svc-steps::before {
        content: "";
        position: absolute;
        top: 1.3125rem;
        left: 1.375rem;
        right: 1.375rem;
        height: 2px;
        background-image: linear-gradient(90deg, var(--blue) 0%, rgba(45, 110, 231, 0.25) 100%);
    }

    .svc-step {
        grid-template-columns: minmax(0, 1fr);
        row-gap: var(--space-4);
    }

    .svc-reasons {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: var(--space-5);
    }
}

@media (min-width: 40em) and (max-width: 63.999em) {
    .svc-reasons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {

    .svc-matrix__item,
    .svc-matrix__item::after {
        transition: none;
    }
}
