/* =========================================================
   MW BUSINESS SOLUTIONS
   Main stylesheet
   ========================================================= */


/* ---------- BRAND COLOURS ---------- */

:root {
    --navy: #0d1b3d;
    --navy-hover: #17356f;

    --black: #111111;

    --light-blue: #6fa8dc;
    --accent-text: #356c9f;

    --white: #ffffff;
    --off-white: #f7f9fc;

    --grey: #596372;
    --light-border: #e8edf4;
}


/* ---------- GLOBAL STYLES ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--white);
    color: var(--black);
}

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


/* ---------- HEADER / NAVIGATION ---------- */

header {
    background: var(--white);
    border-bottom: 1px solid var(--light-border);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 32px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* ---------- BRAND / LOGO ---------- */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--navy);
    text-decoration: none;

    font-size: 1.2rem;
    font-weight: 700;
}

.brand-logo {
    width: 48px;
    height: auto;
}


/* ---------- NAVIGATION LINKS ---------- */

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    position: relative;

    color: var(--navy);
    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 500;

    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent-text);
}


/* ---------- HERO ---------- */

.hero {
    background: var(--off-white);
}

.hero-content {
    max-width: 1200px;
    min-height: 560px;

    margin: 0 auto;
    padding: 80px 32px;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;

    align-items: center;
    gap: 60px;
}


/* ---------- HERO TEXT ---------- */

.hero-text h1 {
    margin: 0 0 24px;

    color: var(--navy);

    font-size: clamp(3rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-text p {
    max-width: 560px;
    margin: 0 0 32px;

    color: var(--grey);

    font-size: 1.15rem;
    line-height: 1.7;
}


/* ---------- HERO BUTTONS ---------- */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}


/* ---------- BUTTONS ---------- */

.button {
    display: inline-block;

    padding: 14px 24px;

    border-radius: 8px;

    text-decoration: none;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.button-primary {
    background: var(--navy);
    color: var(--white);

    border: 1px solid var(--navy);
}

.button-primary:hover {
    background: var(--navy-hover);
    border-color: var(--navy-hover);

    transform: translateY(-2px);
}

.button-secondary {
    background: transparent;
    color: var(--navy);

    border: 1px solid var(--navy);
}

.button-secondary:hover {
    background: var(--navy);
    color: var(--white);

    transform: translateY(-2px);
}


/* ---------- HERO VISUAL ---------- */

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual img {
    width: 310px;
    max-width: 100%;

    opacity: 0.95;
}


/* ---------- KEYBOARD ACCESSIBILITY ---------- */

a:focus-visible {
    outline: 3px solid var(--light-blue);
    outline-offset: 4px;
}

/* ---------- SERVICES / WHAT I DO ---------- */

.services-section {
    background: var(--white);
    padding: 100px 32px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 52px;
}

.section-label {
    display: inline-block;
    margin-bottom: 14px;

    color: var(--accent-text);

    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0 0 20px;

    color: var(--navy);

    font-size: 2.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-heading p {
    margin: 0;

    color: var(--grey);

    font-size: 1.1rem;
    line-height: 1.7;
}


/* ---------- SERVICE CARDS ---------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 32px;

    background: var(--off-white);

    border: 1px solid var(--light-border);
    border-radius: 14px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);

    border-color: #d5e3f2;

    box-shadow:
        0 12px 30px rgba(13, 27, 61, 0.08);
}

.service-number {
    display: block;
    margin-bottom: 28px;

    color: var(--accent-text);

    font-size: 0.85rem;
    font-weight: 700;
}

.service-card h3 {
    margin: 0 0 14px;

    color: var(--navy);

    font-size: 1.35rem;
}

.service-card p {
    margin: 0;

    color: var(--grey);

    line-height: 1.7;
}

/* ---------- FEATURED SOLUTION ---------- */

.featured-solution {
    background: var(--off-white);
    padding: 100px 32px;
}

.featured-solution-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 70px;
}

.featured-solution-copy h2 {
    margin: 0 0 20px;

    color: var(--navy);

    font-size: 2.8rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.featured-solution-intro {
    max-width: 520px;
    margin: 0 0 28px;

    color: var(--grey);

    font-size: 1.1rem;
    line-height: 1.7;
}

.solution-points {
    margin: 0 0 32px;
    padding: 0;

    list-style: none;
}

.solution-points li {
    position: relative;

    margin-bottom: 14px;
    padding-left: 28px;

    color: var(--navy);
    line-height: 1.5;
}

.solution-points li::before {
    content: "✓";

    position: absolute;
    left: 0;

    color: var(--light-blue);
    font-weight: 700;
}

.solution-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.featured-solution-image {
    display: block;
    overflow: hidden;

    padding: 12px;

    background: var(--white);

    border: 1px solid var(--light-border);
    border-radius: 14px;

    box-shadow:
        0 16px 40px rgba(13, 27, 61, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

}

.featured-solution-image:hover {
    transform: translateY(-4px);

    box-shadow:
        0 20px 50px rgba(13, 27, 61, 0.12);
}

.featured-solution-image img {
    width: 100%;
    height: auto;
}


/* ---------- CASE STUDY HERO ---------- */

.case-study-hero {
    background: var(--off-white);
    padding: 90px 32px;
}



.case-study-hero-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    align-items: center;
    gap: 45px;
}

.case-study-hero h1 {
    margin: 0 0 24px;

    color: var(--navy);

    font-size: clamp(2.8rem, 4.3vw, 3.7rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.case-study-intro {
    max-width: 580px;
    margin: 0 0 32px;

    color: var(--grey);

    font-size: 1.15rem;
    line-height: 1.7;
}

.case-study-hero-image {
    padding: 8px;

    background: var(--white);

    border: 1px solid var(--light-border);
    border-radius: 14px;

    box-shadow:
        0 16px 40px rgba(13, 27, 61, 0.08);
}

.case-study-hero-image img {
    width: 100%;
    height: auto;
}


/* ---------- RESULTS ---------- */

.results-section {
    background: var(--white);
    padding: 100px 32px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.result-card {
    padding: 32px;

    background: var(--off-white);

    border: 1px solid var(--light-border);
    border-radius: 14px;
}

.result-value {
    display: block;
    margin-bottom: 14px;

    color: var(--accent-text);

    font-size: 2.4rem;
    font-weight: 700;
}

.result-card h3 {
    margin: 0 0 12px;

    color: var(--navy);

    font-size: 1.25rem;
}

.result-card p {
    margin: 0;

    color: var(--grey);
    line-height: 1.6;
}


/* ---------- CASE STUDY: PROBLEM ---------- */

.problem-section {
    background: var(--off-white);
    padding: 100px 32px;
}

.problem-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: start;
}

.problem-section h2 {
    margin: 0 0 20px;

    color: var(--navy);

    font-size: 2.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.problem-section p {
    margin: 0;

    color: var(--grey);

    font-size: 1.05rem;
    line-height: 1.7;
}

.staffing-rules h3 { margin: 0 0 12px; color: var(--navy); font-size: 1.25rem; }
.staffing-rules > p { margin: 0 0 20px; }

.problem-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.problem-item {
    color: var(--navy);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 18px 22px;

    background: var(--white);

    border: 1px solid var(--light-border);
    border-radius: 10px;
}

.problem-item span {
    color: var(--accent-text);

    font-size: 0.85rem;
    font-weight: 700;
}

.problem-item p {
    color: var(--navy);
    font-weight: 500;
}

/* ---------- HOW IT WORKS ---------- */

.workflow-section {
    background: var(--white);
    padding: 100px 32px;
}

.workflow-section .section-container {
    max-width: 1400px;
}

/* ---------- WORKFLOW CARDS ---------- */

.workflow-grid {
    display: grid;
    gap: 32px;
}


.workflow-card {
    display: grid;
    grid-template-columns: 1.9fr 0.6fr;

    align-items: center;
    gap: 30px;

    padding: 28px;

    background: var(--off-white);

    border: 1px solid var(--light-border);
    border-radius: 14px;
}

.workflow-card-reverse {
    grid-template-columns: 0.6fr 1.9fr;
}

.workflow-card-reverse .workflow-image {
    order: 2;
}

.workflow-card-reverse .workflow-copy {
    order: 1;
}

.workflow-image img {
    width: 100%;
    height: auto;

    background: var(--white);

    border: 1px solid var(--light-border);
    border-radius: 8px;
}

.workflow-copy {
    padding: 10px;
}

.workflow-step {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 42px;
    height: 42px;

    margin-bottom: 22px;

    background: var(--navy);
    color: var(--white);

    border-radius: 50%;

    font-size: 0.85rem;
    font-weight: 700;
}

.workflow-card h3 {
    margin: 0 0 14px;

    color: var(--navy);

    font-size: 1.4rem;
}

.workflow-card p {
    margin: 0;

    color: var(--grey);

    line-height: 1.7;
}

.workflow-card-output {
    grid-template-columns: 1fr;
}

.workflow-card-output .workflow-image {
    width: 100%;
}

.workflow-card-output .workflow-copy {
    max-width: 700px;
}

.workflow-card-output .workflow-image {
    overflow: hidden;

    border: 1px solid var(--light-border);
    border-radius: 8px;

    background: var(--white);
}

.workflow-card-output .workflow-image img {
    width: 100%;
    max-width: 100%;
    height: auto;

    border: 0;
    border-radius: 0;
}



/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */


/* ---------- TABLETS / SMALLER SCREENS ---------- */

@media (max-width: 850px) {


    .case-study-hero {
        padding: 75px 24px;
    }

    .case-study-hero-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .results-section {
        padding: 80px 24px;
    }

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

    .navbar {
        padding: 18px 24px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;

        min-height: auto;
        padding: 70px 24px;

        gap: 50px;

        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-visual img {
        width: 220px;
    }

    .services-section {
        padding: 80px 24px;
    }

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

    .featured-solution {
        padding: 80px 24px;
    }

    .featured-solution-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .featured-solution-copy {
        text-align: center;
    }

    .featured-solution-intro {
        margin-left: auto;
        margin-right: auto;
    }

    .solution-points {
        display: inline-block;
        text-align: left;
    }

    .solution-actions {
        justify-content: center;
    }

    .problem-section {
        padding: 80px 24px;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }


    .workflow-section {
        padding: 80px 24px;
    }

    .workflow-card,
    .workflow-card-reverse {
        grid-template-columns: 1fr;
    }

    .workflow-card-reverse .workflow-image,
    .workflow-card-reverse .workflow-copy {
        order: initial;
    }
}


/* ---------- MOBILE ---------- */

@media (max-width: 600px) {

    .navbar {
        padding: 16px 20px;
    }

    .brand {
        font-size: 1rem;
    }

    .brand-logo {
        width: 40px;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .hero-content {
        padding: 55px 20px;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.7rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        text-align: center;
    }

    .hero-visual img {
        width: 180px;
    }

    .services-section {
        padding: 65px 20px;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .service-card {
        padding: 26px;
    }


    .featured-solution {
        padding: 65px 20px;
    }

    .featured-solution-copy h2 {
        font-size: 2.2rem;
    }

    .solution-actions {
        flex-direction: column;
    }

    .solution-actions .button {
        text-align: center;
    }
}

/* ---------- SHARED PAGE FINISHING ---------- */
body { line-height: 1.6; }
a { color: var(--navy); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; cursor: pointer; }
button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 4px; }
section[id], main[id] { scroll-margin-top: 24px; }
h1, h2, h3 { text-wrap: balance; }
.nav-links a { padding-block: 10px; }
.nav-links [aria-current] { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px 20px; background: var(--navy); color: white; z-index: 20; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.brand-logo { flex-shrink: 0; }
.navbar, .hero-content { max-width: 1264px; }
.hero-visual img { aspect-ratio: 10 / 9; }
.case-study-hero h1 { font-size: clamp(2.5rem, 4.1vw, 3.5rem); }
.case-study-hero-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.back-link { display: block; width: fit-content; margin-bottom: 24px; color: var(--grey); font-size: .95rem; }
.case-nav { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 20px 32px; border-top: 1px solid var(--light-border); }
.case-nav a { font-weight: 600; padding-block: 8px; }
.evidence-note { max-width: 840px; margin: 28px 0 0; color: var(--grey); font-size: .95rem; line-height: 1.7; border-left: 3px solid var(--light-blue); padding-left: 20px; }
.screenshot-link { display: block; text-decoration: none; border-radius: 8px; overflow: hidden; background: white; }
.screenshot-link:hover .enlarge-hint { color: var(--navy); background: #eaf1f8; }
.enlarge-hint { display: block; padding: 9px 14px; color: var(--accent-text); font-size: .85rem; font-weight: 600; text-align: right; border-top: 1px solid var(--light-border); }
.workflow-card { grid-template-columns: minmax(0, 1.9fr) minmax(210px, .6fr); }
.workflow-card-reverse { grid-template-columns: minmax(210px, .6fr) minmax(0, 1.9fr); }
.workflow-card-output { grid-template-columns: minmax(0, 1fr); }
.workflow-card-output .workflow-copy { max-width: 780px; }
.service-card:hover { transform: none; box-shadow: none; border-color: var(--light-border); }

/* Related blue shades distinguish the services without implying a sequence. */
.services-section .service-card {
    border-top: 4px solid #79a8cf;
    background: #f1f6fb;
}
.services-section .service-card:nth-child(2) {
    border-color: #b8d0e5;
    border-top-color: #477da9;
    background: #c1d8ed;
}
.services-section .service-card:nth-child(2) p { color: #294665; }
.services-section .service-card:nth-child(3) {
    border-color: #203d60;
    border-top-color: #79a8cf;
    background: #203d60;
}
.services-section .service-card:nth-child(3) h3 { color: #fff; }
.services-section .service-card:nth-child(3) p { color: #e3edf7; }

/* ---------- SOLUTIONS AND UPCOMING CASE STUDY ---------- */
.saving-explainer { padding: 20px 32px 0; }
.saving-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; border: 1px solid var(--light-border); border-radius: 12px; overflow: hidden; background: var(--off-white); }
.saving-flow li { padding: 24px 28px; border-right: 1px solid var(--light-border); }
.saving-flow li:last-child { border: 0; }
.saving-flow strong { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }
.saving-flow span { display: block; color: var(--grey); font-size: .95rem; }
.comparison-detail { margin-top: 40px; }
.comparison-detail > .comparison-hint { display: none; }
.comparison-detail h3 { color: var(--navy); font-size: 1.4rem; margin: 0 0 14px; }
.comparison-scroll { overflow-x: auto; border: 1px solid var(--light-border); border-radius: 10px; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 520px; color: var(--navy); font-variant-numeric: tabular-nums; }
.comparison-table caption { padding: 14px 18px; text-align: left; color: var(--grey); font-size: .9rem; }
.comparison-table th, .comparison-table td { padding: 14px 18px; text-align: right; border-top: 1px solid var(--light-border); }
.comparison-table th:first-child { text-align: left; }
.comparison-table thead { background: #e6eff8; }
.comparison-table tbody th { font-weight: 500; }
.comparison-table td:last-child { color: var(--accent-text); font-weight: 700; }
.comparison-detail > p { max-width: 900px; color: var(--grey); font-size: .95rem; margin: 18px 0 0; }
.rota-features { padding: 80px 32px; border-bottom: 1px solid var(--light-border); }
.feature-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.feature-details article { border-top: 3px solid #c1d8ed; padding-top: 20px; }
.feature-details h3, .laptop-note h3 { margin: 0 0 10px; font-size: 1.25rem; color: var(--navy); }
.feature-details p, .laptop-note p { color: var(--grey); margin: 0; }
.laptop-note { margin-top: 40px; padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; border-radius: 12px; border: 1px solid var(--light-border); background: var(--off-white); }
.laptop-note h4 { color: var(--navy); margin: 0 0 12px; font-size: 1rem; }
@media (max-width: 850px) {
    .saving-flow, .feature-details, .laptop-note { grid-template-columns: minmax(0, 1fr); }
    .saving-flow li { border-right: 0; border-bottom: 1px solid var(--light-border); }
    .laptop-note { gap: 24px; }
}
@media (max-width: 600px) {
    .saving-explainer { padding: 16px 20px 0; }
    .saving-flow li { padding: 20px 24px; }
    .rota-features { padding: 56px 20px; }
    .laptop-note { padding: 24px; }
    .comparison-table th, .comparison-table td { padding: 12px; }
    .comparison-detail > .comparison-hint { display: block; margin: 0 0 12px; font-size: .85rem; }
}
.page-hero { background: var(--off-white); padding: 72px 32px; }
.page-hero h1 { margin: 0 0 24px; color: var(--navy); font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1.1; letter-spacing: -.03em; }
.page-intro { max-width: 730px; color: var(--grey); font-size: 1.15rem; margin: 0; line-height: 1.8; }
.catalogue-section, .approach-section, .upcoming-section, .outputs-section, .bespoke-section { padding: 88px 32px; }
.solution-catalogue { display: grid; gap: 36px; }
.catalogue-card { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--light-border); border-radius: 14px; overflow: hidden; }
.catalogue-image { display: flex; align-items: center; padding: 32px; background: var(--off-white); }
.catalogue-image img { width: 100%; height: auto; border: 1px solid var(--light-border); border-radius: 6px; box-shadow: 0 10px 30px #0d1b3d0d; }
.catalogue-copy { padding: 40px; }
.catalogue-copy h2 { color: var(--navy); font-size: 2rem; line-height: 1.2; margin: 0 0 18px; letter-spacing: -.02em; }
.catalogue-copy p { color: var(--grey); margin: 0 0 20px; }
.catalogue-copy .card-note { font-size: .95rem; }
.status-badge { display: inline-block; border: 1px solid #cbd9e7; border-radius: 100px; color: #355c7e; background: #edf3f9; font-size: .8rem; font-weight: 700; letter-spacing: .05em; padding: 5px 12px; margin-bottom: 20px; }
.coming-visual { background: var(--off-white); display: flex; align-items: center; justify-content: center; min-height: 240px; }
.document-symbol { width: 112px; height: 144px; padding: 32px 22px; background: white; border: 2px solid #cbd9e7; border-radius: 8px; transform: rotate(-5deg); }
.document-symbol span { display: block; height: 5px; background: #cbd9e7; margin-bottom: 16px; border-radius: 3px; }
.document-symbol span:last-child { width: 60%; background: var(--light-blue); }
.text-link { display: inline-block; padding-block: 8px; font-weight: 600; }
.cta-section { padding: 48px 32px; background: var(--off-white); border-top: 1px solid var(--light-border); }
.cta-section .section-container { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-section h2 { color: var(--navy); margin: 0 0 8px; font-size: 1.8rem; line-height: 1.25; }
.cta-section p { color: var(--grey); max-width: 680px; margin: 0; }
.cta-section .button { flex-shrink: 0; }
.upcoming-section h2, .bespoke-section h2, .contact-section h2 { font-size: clamp(2rem, 3vw, 2.5rem); color: var(--navy); line-height: 1.2; margin: 0 0 24px; letter-spacing: -.02em; }
.upcoming-section p, .bespoke-section p { color: var(--grey); }
.next-case, .bespoke-details { padding: 32px; border: 1px solid var(--light-border); background: var(--off-white); border-radius: 14px; }
.next-case h2 { font-size: 1.65rem; }
.bespoke-details h3 { color: var(--navy); margin: 0 0 24px; }
.bespoke-details .solution-points { display: block; }
.outputs-section { background: var(--off-white); }
.output-figure { margin: 0 0 32px; background: white; padding: 20px; border: 1px solid var(--light-border); border-radius: 14px; }
.output-figure:last-child { margin-bottom: 0; }
.output-figure img { width: 100%; height: auto; }
.output-figure figcaption { padding: 24px 8px 4px; }
.output-figure h3 { margin: 0 0 8px; font-size: 1.4rem; color: var(--navy); }
.output-figure p { margin: 0; max-width: 850px; color: var(--grey); }

/* ---------- CONTACT AND FOOTER ---------- */
.contact-section { padding: 80px 32px; background: var(--navy); color: white; }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: center; }
.contact-section .section-label { color: #a9ceef; }
.contact-section h2 { color: white; }
.contact-section p { color: #d3ddeb; max-width: 650px; }
.contact-details { padding-left: 32px; border-left: 1px solid #41516f; }
.contact-details h3 { margin-top: 0; font-size: 1.2rem; }
.contact-section a { color: white; overflow-wrap: anywhere; }
.contact-section .button { background: white; color: var(--navy); border-color: white; }
.site-footer { padding: 32px; border-top: 1px solid var(--light-border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.site-footer .brand { font-size: 1rem; }
.site-footer .brand-logo { width: 36px; }
.site-footer p { color: var(--grey); font-size: .9rem; margin: 0; }
.site-footer > div > a:last-child { font-size: .95rem; padding-block: 10px; }

/* ---------- ACCESSIBLE SCREENSHOT VIEWER ---------- */
.image-dialog { width: min(1500px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 20px; border: 1px solid var(--light-border); border-radius: 14px; color: var(--navy); box-shadow: 0 24px 80px #0005; }
.image-dialog::backdrop { background: #07142be6; }
.preview-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; position: sticky; top: 0; z-index: 1; background: white; }
.preview-toolbar h2 { font-size: 1rem; margin: 0 auto 0 0; }
.preview-toolbar button { min-height: 44px; padding: 8px 16px; background: var(--off-white); border: 1px solid #bbc9d9; border-radius: 6px; color: var(--navy); font-weight: 600; }
.preview-toolbar button:hover { background: #e5eef8; }
.preview-scroll { overflow: auto; max-height: 65dvh; border: 1px solid var(--light-border); background: var(--off-white); }
.preview-image { width: auto; max-width: 100%; max-height: 65dvh; margin: auto; object-fit: contain; }
.preview-scroll.is-zoomed .preview-image { max-width: none; max-height: none; margin: 0; }
.preview-caption { font-size: .9rem; margin: 16px 0 8px; color: var(--grey); }
.preview-original { font-size: .9rem; display: inline-block; padding-block: 4px; }

@media (max-width: 1000px) {
    .navbar { gap: 24px; }
    .nav-links { gap: 20px; }
    .workflow-card, .workflow-card-reverse { grid-template-columns: minmax(0, 1fr); }
    .workflow-card-reverse .workflow-image, .workflow-card-reverse .workflow-copy { order: initial; }
    .workflow-copy { max-width: 700px; }
    .catalogue-copy { padding: 28px; }
    .contact-grid { gap: 40px; }
    .cta-section .section-container { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 850px) {
    .navbar { flex-wrap: wrap; }
    .case-study-hero-grid, .catalogue-card, .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-visual { order: initial; }
    .hero-visual img { width: 150px; }
    .hero-content { gap: 36px; }
    .contact-details { padding: 24px 0 0; border-left: 0; border-top: 1px solid #41516f; }
    .coming-visual { min-height: 210px; }
    .catalogue-image { padding: 32px; }
}
@media (max-width: 600px) {
    .navbar { gap: 12px; }
    .nav-links { width: 100%; justify-content: space-between; gap: 8px; }
    .nav-links a { font-size: .9rem; }
    .brand { font-size: 1rem; }
    .hero-text h1 { font-size: clamp(2.25rem, 9vw, 2.7rem); }
    .hero-visual { display: none; }
    .hero-text, .featured-solution-copy { text-align: left; }
    .hero-buttons { align-items: stretch; }
    .hero-content { padding-block: 60px; }
    .case-study-hero, .results-section, .problem-section, .workflow-section, .page-hero, .catalogue-section, .approach-section, .upcoming-section, .outputs-section, .bespoke-section, .contact-section { padding: 56px 20px; }
    .case-study-hero h1 { font-size: 2.5rem; }
    .case-study-intro, .page-intro { font-size: 1.05rem; }
    .section-heading { margin-bottom: 32px; }
    .problem-section h2 { font-size: 2rem; }
    .workflow-card { padding: 14px; gap: 20px; }
    .workflow-copy { padding: 6px; }
    .workflow-step { margin-bottom: 14px; }
    .result-card { padding: 26px; }
    .case-nav { padding: 16px 20px; gap: 6px 24px; }
    .catalogue-image { padding: 20px; }
    .catalogue-copy { padding: 26px; }
    .catalogue-copy .button, .cta-section .button { width: 100%; }
    .output-figure { padding: 10px; }
    .output-figure figcaption { padding: 20px 10px 10px; }
    .next-case, .bespoke-details { padding: 26px; }
    .cta-section { padding: 40px 20px; }
    .site-footer { padding: 28px 20px; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
    .image-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 12px; }
    .preview-toolbar { flex-wrap: wrap; gap: 8px; }
    .preview-toolbar h2 { flex-basis: 100%; }
    .preview-toolbar button { padding-inline: 12px; }
    .preview-close { margin-left: auto; }
}
@media (max-height: 500px) {
    .preview-scroll, .preview-image { max-height: 35dvh; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
