/* Recreates the Twenty Twenty-Four look of the original WordPress site. */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../fonts/inter.woff2") format("woff2");
}

@font-face {
    font-family: "Cardo";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/cardo-italic.woff2") format("woff2");
}

:root {
    --base: #f9f9f9;
    --base-2: #ffffff;
    --contrast: #111111;
    --contrast-2: #636363;
    --accent: #2f495a;
    --accent-soft: #e9eff3;
    --healthy: #1f7a4d;
    --healthy-soft: #e3f3ea;

    --font-body: "Inter", sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica, Cantarell, Ubuntu, Roboto, Noto, Arial, sans-serif;
    --font-quote: "Cardo", Georgia, serif;

    --text-small: 0.9rem;
    --text-medium: 1.05rem;
    --text-large: clamp(1.39rem, 1.39rem + ((1vw - 0.2rem) * 0.767), 1.85rem);
    --text-x-large: clamp(1.85rem, 1.85rem + ((1vw - 0.2rem) * 1.083), 2.5rem);

    --space-10: 1rem;
    --space-20: min(1.5rem, 2vw);
    --space-30: min(2.5rem, 3vw);
    --space-40: min(4rem, 5vw);
    --space-50: min(6.5rem, 8vw);
    --space-60: min(10.5rem, 13vw);

    --content-size: 620px;
    --wide-size: 1280px;
}

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

body {
    margin: 0;
    background: var(--base);
    color: var(--contrast);
    font-family: var(--font-body);
    font-size: var(--text-medium);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--contrast);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

h1,
h2 {
    font-size: var(--text-x-large);
}

ul {
    padding-left: var(--space-10);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 0.75rem 1rem;
    background: var(--base-2);
    z-index: 10;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* Header */

.site-header {
    display: flex;
    justify-content: center;
    padding: 20px var(--space-50);
    background: var(--base-2);
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-20);
    font-size: var(--text-x-large);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

/* Hero */

.hero {
    padding: var(--space-50);
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: var(--space-50);
    max-width: var(--wide-size);
    margin: 0 auto;
}

.hero-text {
    flex: 1 1 60%;
}

.hero-visual {
    flex: 1 1 50%;
}

.hero-text > * + * {
    margin-top: 1.2rem;
}

.hero-text .lead {
    margin-bottom: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 1.1rem + ((1vw - 0.2rem) * 0.767), 1.5rem);
    line-height: 1.2;
}

.checklist {
    margin-bottom: 0;
    line-height: 1.75;
    list-style-type: "\2713";
}

.checklist li {
    padding-inline-start: 1ch;
}

.checklist li::marker {
    color: var(--accent);
    font-weight: 700;
}

.button {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: 0.33rem;
    background: var(--contrast);
    color: var(--base);
    font-size: var(--text-small);
    font-weight: 500;
    text-decoration: none;
}

.button:hover,
.button:focus-visible {
    background: var(--contrast-2);
}

.button:focus-visible {
    outline: 2px solid var(--contrast);
    outline-offset: 2px;
}

/* Hero visual: a stylised "managed systems" panel. */

.hero-visual {
    position: relative;
    padding: 4rem 1.5rem;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, var(--accent-soft), #f4f7f9 60%, var(--base-2));
}

.panel {
    position: relative;
    max-width: 26rem;
    margin: 0 auto;
    padding: 1.25rem;
    border: 1px solid #e3e8ec;
    border-radius: 1rem;
    background: var(--base-2);
    box-shadow: 0 1px 2px rgb(17 24 39 / 0.04), 0 12px 32px rgb(33 56 71 / 0.12);
}

.panel-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef1f4;
}

.panel-head strong,
.badge strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.panel-head span,
.badge div span {
    display: block;
    color: var(--contrast-2);
    font-size: 0.8rem;
    line-height: 1.3;
}

.panel-rows {
    margin: 0;
    padding: 0.5rem 0 0;
    list-style: none;
}

.panel-rows li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    font-size: 0.875rem;
}

.panel-rows li + li {
    border-top: 1px solid #f1f3f5;
}

.row-icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex: none;
    border-radius: 0.5rem;
    background: var(--accent-soft);
    color: var(--accent);
}

.row-label {
    flex: 1;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--healthy-soft);
    color: var(--healthy);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status::before {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: currentColor;
}

.badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid #e3e8ec;
    border-radius: 0.75rem;
    background: var(--base-2);
    box-shadow: 0 8px 24px rgb(33 56 71 / 0.14);
}

.badge-support {
    top: 0.75rem;
    right: 0;
}

.badge-local {
    bottom: 0.75rem;
    left: 0;
}

.badge-icon {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    flex: none;
    border-radius: 50%;
    background: var(--accent);
    color: var(--base-2);
}

/* Services */

.services {
    padding: var(--space-50);
    background: var(--base-2);
}

.services > h2 {
    margin-bottom: calc(var(--space-40) + 2.4rem);
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--space-20) + 1.2rem) var(--space-40);
    max-width: var(--wide-size);
    margin: 0 auto;
}

.service-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    background: var(--accent-soft);
    color: var(--accent);
}

.service h3 {
    font-family: var(--font-body);
    font-size: var(--text-medium);
    font-weight: 600;
}

.service p {
    margin: var(--space-10) 0 0;
}

/* Testimonial */

.testimonial {
    padding: var(--space-60);
    background: var(--contrast);
    color: var(--base);
}

.testimonial figure {
    max-width: var(--content-size);
    margin: 0 auto;
    text-align: center;
}

.testimonial blockquote {
    margin: 0;
}

.testimonial blockquote p {
    margin: 0;
    font-family: var(--font-quote);
    font-size: var(--text-x-large);
    font-style: italic;
    line-height: 1.2;
}

.testimonial figcaption {
    margin-top: 4.5rem;
}

/* Footer */

.site-footer {
    padding: calc(var(--space-50) + 1.2rem) var(--space-50) var(--space-50);
}

.footer-inner {
    display: flex;
    max-width: var(--wide-size);
    margin: 0 auto;
}

.footer-inner > div {
    display: flex;
    flex: 1 1 50%;
    flex-direction: column;
    align-items: center;
}

.footer-inner h2 {
    font-family: var(--font-body);
    font-size: var(--text-medium);
    font-weight: 600;
}

.footer-inner ul {
    margin: 1.2rem 0 0;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    max-width: var(--wide-size);
    margin: var(--space-50) auto 0;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    color: var(--contrast-2);
    font-size: var(--text-small);
    font-style: normal;
    text-align: center;
}

.footer-contact a {
    color: var(--accent);
    font-weight: 500;
}

/* Stack columns on narrow screens, as WordPress did below 782px. */
@media (max-width: 781px) {
    .hero-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-text,
    .hero-visual {
        flex-basis: auto;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        padding: 4rem 0.75rem;
    }

    .badge-support {
        top: 0.5rem;
        right: 0.5rem;
    }

    .badge-local {
        bottom: 0.5rem;
        left: 0.5rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: var(--space-40);
    }
}
