/* Net Assessment
   Palette from the original logo: charcoal wordmark, orchid / olive / aqua bars,
   and the deep plum of the old site's sidebar. */

@font-face {
    font-family: "Jost";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Jost";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/jost-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url("../fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url("../fonts/source-serif-4-latin-ext-opsz-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Source Serif 4";
    font-style: italic;
    font-weight: 200 900;
    font-display: swap;
    src: url("../fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: light;

    --paper: #ffffff;
    --mist: #f4f3f7;
    --ink: #2b2a30;
    --graphite: #5d5e62;
    --muted: #64636c;
    --rule: #e3e1e8;
    --field-border: #bdb9c7;
    --plum: #462470;
    --plum-deep: #2f1650;
    --orchid: #bd76b0;
    --olive: #b8bd9d;
    --aqua: #b6e2e2;
    --error: #b3261e;
    --error-tint: #fbefee;

    --sans: "Jost", "Avenir Next", "Century Gothic", system-ui, sans-serif;
    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

    --wrap: 72rem;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --section: clamp(4rem, 9vw, 7.5rem);
    --radius: 3px;
}

/* Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.125rem;
    line-height: 1.65;
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    margin: 0;
    font-family: var(--sans);
    font-weight: 500;
    line-height: 1.12;
    color: var(--ink);
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5rem);
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.02;
}

h2 {
    font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.6rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--plum); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--plum-deep); }

:focus-visible {
    outline: 2px solid var(--plum);
    outline-offset: 3px;
    border-radius: 2px;
}

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: -4rem;
    z-index: 10;
    padding: 0.6rem 1rem;
    background: var(--plum);
    color: #fff;
    font-family: var(--sans);
    text-decoration: none;
}
.skip-link:focus { top: 0.75rem; color: #fff; }

/* Buttons and links ----------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3rem;
    padding: 0.75rem 1.6rem;
    border: 0;
    border-radius: var(--radius);
    background: var(--plum);
    color: #fff;
    font-family: var(--sans);
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.button:hover { background: var(--plum-deep); color: #fff; }
.button[disabled], .button[aria-busy="true"] { cursor: progress; opacity: 0.8; }

.text-link {
    font-family: var(--sans);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--plum);
    text-decoration: underline;
    text-decoration-color: var(--orchid);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3em;
}
.text-link:hover { text-decoration-color: currentColor; }

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
}

/* Wordmark: bold NET, light ASSESSMENT, three bars beneath ------------- */

.wordmark {
    display: inline-flex;
    flex-direction: column;
    width: max-content;
    gap: 0.3em;
    font-family: var(--sans);
    font-size: 1.3rem;
    line-height: 1;
    color: var(--graphite);
}
.wordmark__text {
    font-weight: 300;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.wordmark__text b { font-weight: 700; }
.wordmark__bars { display: grid; gap: 0.1em; }
.wordmark__bars i { display: block; height: 0.2em; }
.wordmark__bars i:nth-child(1) { width: 25%; background: var(--orchid); }
.wordmark__bars i:nth-child(2) { width: 17.5%; background: var(--olive); }
.wordmark__bars i:nth-child(3) { width: 10%; background: var(--aqua); }

/* Header ---------------------------------------------------------------- */

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.5rem;
}
.site-header__brand { text-decoration: none; }

.site-nav {
    display: flex;
    gap: clamp(1rem, 3vw, 2.25rem);
    font-family: var(--sans);
    font-size: 1.0625rem;
}
.site-nav a {
    padding-block: 0.4rem;
    white-space: nowrap;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--plum); border-bottom-color: var(--orchid); }
.site-nav a[aria-current="page"] { color: var(--plum); border-bottom-color: var(--plum); }

/* Position bars: the logo's three bars at full scale ------------------- */

.position-bars {
    --bar: clamp(0.9rem, 0.6rem + 1.1vw, 1.6rem);
    display: grid;
    gap: calc(var(--bar) * 0.35);
}
.position-bars span {
    display: block;
    height: var(--bar);
    transform-origin: left center;
}
.position-bars span:nth-child(1) { width: 76%; background: var(--orchid); }
.position-bars span:nth-child(2) { width: 53%; background: var(--olive); }
.position-bars span:nth-child(3) { width: 30%; background: var(--aqua); }

.position-bars--quiet { --bar: clamp(0.4rem, 0.3rem + 0.4vw, 0.65rem); }

@media (prefers-reduced-motion: no-preference) {
    .position-bars span { animation: bar-in 1.1s cubic-bezier(0.2, 0.7, 0.15, 1) both; }
    .position-bars span:nth-child(2) { animation-delay: 0.12s; }
    .position-bars span:nth-child(3) { animation-delay: 0.24s; }
}

@keyframes bar-in {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

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

.hero { padding-top: clamp(3rem, 8vw, 6.5rem); }

.hero__inner {
    display: grid;
    gap: 2rem;
    padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 { max-width: 12ch; }

.hero__lede {
    display: grid;
    gap: 1.1rem;
    max-width: 40rem;
    font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem);
    line-height: 1.55;
}
.hero__lede p:first-child { color: var(--ink); }
.hero__lede p + p { color: var(--muted); }

.hero .actions { margin-top: 0.5rem; }

@media (min-width: 60rem) {
    .hero__inner {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        column-gap: clamp(2rem, 5vw, 5rem);
        align-items: end;
    }
    .hero h1 { grid-row: span 2; align-self: start; }
    .hero__lede, .hero .actions { grid-column: 2; }
}

/* Sections ------------------------------------------------------------- */

.section { padding-block: var(--section); }

.section__head {
    display: grid;
    gap: 1rem;
    max-width: 44rem;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__head p { color: var(--muted); font-size: 1.1875rem; }

/* Two-by-two list with a short coloured rule above each item. */
.services {
    display: grid;
    gap: clamp(2.25rem, 4vw, 3.5rem) clamp(2rem, 5vw, 5rem);
}
@media (min-width: 46rem) {
    .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.service { display: grid; gap: 0.75rem; align-content: start; max-width: 34rem; }
.service::before,
.principle::before {
    content: "";
    display: block;
    width: 3rem;
    height: 0.3rem;
    margin-bottom: 0.6rem;
    background: var(--accent, var(--orchid));
}
.service p { color: var(--muted); }

.service--orchid, .principle--orchid { --accent: var(--orchid); }
.service--olive, .principle--olive { --accent: var(--olive); }
.service--aqua, .principle--aqua { --accent: var(--aqua); }
.service--plum { --accent: var(--plum); }

/* Plum band, a nod to the old site's sidebar. */
.band {
    padding-block: var(--section);
    background: var(--plum);
    color: #ece6f3;
}
.band h2, .band h3 { color: #fff; }
.band .section__head p { color: #d6cce2; }
.band :focus-visible { outline-color: #fff; }

.principles {
    display: grid;
    gap: 2.5rem clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 52rem) {
    .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.principle { display: grid; gap: 0.75rem; align-content: start; }

/* Questions */
.questions__list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--rule);
}
.questions__list li {
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: clamp(1.25rem, 1.1rem + 0.55vw, 1.6rem);
    font-style: italic;
    line-height: 1.4;
    color: var(--ink);
}
@media (min-width: 56rem) {
    .questions__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: clamp(2rem, 5vw, 5rem);
        border-top: 0;
    }
    .questions__list li:nth-child(-n + 2) { border-top: 1px solid var(--rule); }
}

/* Steps: a real sequence, so numbered. */
.steps,
.next-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
.steps {
    display: grid;
    gap: 2.5rem clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.steps li {
    counter-increment: step;
    display: grid;
    gap: 0.6rem;
    align-content: start;
    padding-top: 1.25rem;
    border-top: 2px solid var(--plum);
}
.steps li::before {
    content: counter(step);
    font-family: var(--sans);
    font-size: 2.75rem;
    font-weight: 300;
    line-height: 1;
    color: var(--plum);
}
.steps p { color: var(--muted); }

/* Phones: number beside the step instead of above it. */
@media (max-width: 39.99rem) {
    .steps { gap: 2rem; }
    .steps li { grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: 0.75rem; }
    .steps li::before { grid-row: span 2; font-size: 2.25rem; }
}

/* Call to action */
.cta {
    padding-block: clamp(3.5rem, 7vw, 5.5rem);
    background: var(--mist);
}
.cta__inner {
    display: grid;
    gap: 1.75rem;
    align-items: center;
}
.cta__inner p { margin-top: 0.75rem; max-width: 36rem; color: var(--muted); }
.cta .button { justify-self: start; }
@media (min-width: 52rem) {
    .cta__inner { grid-template-columns: 1fr auto; gap: 3rem; }
}

/* Page heads (About, Contact, 404) ------------------------------------- */

.page-head { padding-top: clamp(3rem, 7vw, 5.5rem); }
.page-head .wrap {
    display: grid;
    gap: 1.5rem;
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.page-head__lede {
    max-width: 42rem;
    font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
    line-height: 1.55;
}
.page-head__org {
    font-family: var(--sans);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--graphite);
}
.page-head--short { padding-bottom: var(--section); }
.page-head--contact .wrap { padding-bottom: clamp(2rem, 4vw, 3rem); }

/* Contact -------------------------------------------------------------- */

.contact { padding-bottom: var(--section); }

.contact__inner {
    display: grid;
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: start;
}
@media (min-width: 62rem) {
    .contact__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}

.contact__panel {
    position: relative;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    background: var(--paper);
    border: 1px solid var(--rule);
    border-top: 4px solid var(--plum);
    border-radius: var(--radius);
    box-shadow: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(47, 22, 80, 0.35);
}
.contact__panel:focus { outline: none; }

/* Phones: drop the card so the form (and Turnstile's 300px widget) gets the full width. */
@media (max-width: 35.99rem) {
    .contact__panel {
        padding: 1.75rem 0 0;
        border-width: 4px 0 0;
        border-radius: 0;
        box-shadow: none;
    }
}

.contact__aside { display: grid; gap: 1.5rem; padding-top: 0.5rem; }
.contact__aside h2 { font-size: 1.5rem; }

.next-steps { display: grid; gap: 1.1rem; }
.next-steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.75rem;
    color: var(--muted);
}
.next-steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1.5px solid var(--plum);
    border-radius: 50%;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--plum);
}

.contact__note {
    display: grid;
    gap: 0.4rem;
    padding: 1.25rem 1.4rem;
    background: var(--mist);
    border-left: 3px solid var(--olive);
}
.contact__note h3 { font-size: 1.0625rem; }
.contact__note p { font-size: 1rem; color: var(--muted); }

/* Form */
.form { display: grid; gap: 1.75rem; }

.form__grid {
    display: grid;
    gap: 1.35rem 1.25rem;
}
@media (min-width: 36rem) {
    .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field--company, .field--enquiry { grid-column: 1 / -1; }
}

.field { display: grid; gap: 0.45rem; align-content: start; }

.field label {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
}
.field__optional { font-weight: 400; color: var(--muted); }

.field input,
.field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--field-border);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.45;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 10rem; resize: vertical; }

.field input:hover,
.field textarea:hover { border-color: var(--graphite); }

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--plum);
    box-shadow: 0 0 0 3px rgba(70, 36, 112, 0.2);
}

.field [aria-invalid="true"] { border-color: var(--error); background: var(--error-tint); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.2); }

.field__hint { font-size: 0.95rem; line-height: 1.5; color: var(--muted); }

.field__error {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--error);
}

/* Off-screen trap field; real visitors never see or reach it. */
.field--trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field--turnstile { min-height: 65px; }

.form__status {
    padding: 0.9rem 1.1rem;
    border-left: 3px solid var(--error);
    background: var(--error-tint);
    color: var(--error);
    font-family: var(--sans);
    font-weight: 500;
}
.form__status:focus { outline: none; }

.form__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}
.form__privacy { font-size: 0.95rem; color: var(--muted); }

.form-success {
    display: grid;
    gap: 1rem;
    padding-block: clamp(1rem, 4vw, 2.5rem);
    justify-items: start;
}
.form-success h2:focus { outline: none; }
.form-success p { max-width: 32rem; color: var(--muted); }
.form-success__bars { display: grid; gap: 0.3rem; width: 7rem; margin-bottom: 0.5rem; }
.form-success__bars span { display: block; height: 0.55rem; transform-origin: left center; }
.form-success__bars span:nth-child(1) { width: 100%; background: var(--orchid); }
.form-success__bars span:nth-child(2) { width: 70%; background: var(--olive); }
.form-success__bars span:nth-child(3) { width: 40%; background: var(--aqua); }
@media (prefers-reduced-motion: no-preference) {
    .form-success:not([hidden]) .form-success__bars span { animation: bar-in 0.8s cubic-bezier(0.2, 0.7, 0.15, 1) both; }
    .form-success__bars span:nth-child(2) { animation-delay: 0.1s; }
    .form-success__bars span:nth-child(3) { animation-delay: 0.2s; }
}

/* Footer ---------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--rule); }
.site-footer__inner {
    display: grid;
    gap: 1.5rem 3rem;
    padding-block: 2.5rem;
    font-family: var(--sans);
    font-size: 1rem;
    color: var(--muted);
}
.site-footer__brand { display: grid; gap: 0.9rem; }
.site-footer__brand .wordmark { font-size: 1.05rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.site-footer__nav a { padding-block: 0.4rem; color: var(--ink); text-decoration: none; }
.site-footer__nav a:hover { color: var(--plum); text-decoration: underline; }

@media (min-width: 52rem) {
    .site-footer__inner {
        grid-template-columns: 1fr auto;
        align-items: end;
    }
    .site-footer__legal { grid-column: 1 / -1; }
}

/* Small screens ---------------------------------------------------------- */

@media (max-width: 26rem) {
    .wordmark { font-size: 1.05rem; }
    .site-nav { font-size: 1rem; gap: 0.9rem; }
}

@media (max-width: 23.4rem) {
    .site-nav__suffix { display: none; }
}

@media print {
    .site-nav, .position-bars, .cta, .skip-link { display: none; }
    body { font-size: 11pt; }
}
