/* Other work - page chrome for the public pages other than the home page
   (pricing, demo, terms): colours, top bar, buttons and the page header.
   It matches the home page exactly; the home page keeps its own copy inline
   because its hero and sign-in cards are built around it.
   Load together with /site.css (sections and footer). */

:root {
    --ow-page-scale: 0.6666667;
    --ow-primary: #4682B4;
    --ow-primary-dark: #225ca2;
    --ow-navy: #0A2A52;
    --ow-navy-2: #0F3B70;
    --ow-text: #1f2937;
    --ow-muted: #50607a;
    --ow-bg: #e4ebfb;
    --ow-card: #FFFFFF;
    --ow-border: #c9d3e6;
    --ow-accent: #fcdb6c;
    --ow-success: #1a8f3a;
    --ow-error: #c62828;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: var(--ow-bg);
    color: var(--ow-text);
    zoom: var(--ow-page-scale);
}

/* Top bar - same as the home page */
.tm-nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 52px;
    background: linear-gradient(90deg, #0f477f 0%, #0b3568 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(10, 42, 82, 0.20);
    position: sticky;
    top: 0;
    z-index: 50;
}

.tm-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    height: 76px;
    width: 272px;
    min-width: 272px;
    text-decoration: none;
    overflow: hidden;
    flex: 0 0 auto;
}

.tm-nav-logo-img {
    display: block;
    height: 54px;
    width: auto;
    max-width: 272px;
    object-fit: contain;
}

.tm-nav-toggle {
    display: none;
}

.tm-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    font-size: 17px;
    font-weight: 700;
}

    .tm-nav-links a {
        color: rgba(255,255,255,0.88);
        text-decoration: none;
        position: relative;
        cursor: pointer;
    }

        .tm-nav-links a:hover,
        .tm-nav-links a.active {
            color: #ffffff;
        }

        .tm-nav-links a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -7px;
            width: 0;
            height: 3px;
            border-radius: 999px;
            background: var(--ow-accent);
            transition: width 0.16s ease-out;
        }

        .tm-nav-links a:hover::after,
        .tm-nav-links a.active::after {
            width: 100%;
        }

.tm-nav-login {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: 5px;
    color: #ffffff !important;
    background: rgba(255,255,255,0.06);
}

    .tm-nav-login:hover {
        background: rgba(255,255,255,0.14);
    }

    .tm-nav-login::after {
        display: none;
    }

/* Buttons */
.tm-btn-primary,
.tm-btn-outline {
    appearance: none;
    -webkit-appearance: none;
    min-height: calc(46 * var(--px));
    padding: 0 calc(24 * var(--px));
    border-radius: 5px;
    font-family: inherit;
    font-size: calc(15 * var(--px));
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: transform 0.08s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.tm-btn-primary {
    background: linear-gradient(180deg, #fde88a 0%, #fcdb6c 50%, #f5c830 100%);
    border: 1px solid #c9a800;
    color: #3a2800;
    box-shadow: 0 8px 18px rgba(197,144,0,0.24);
}

    .tm-btn-primary:hover:not(:disabled) {
        background: linear-gradient(180deg, #feee99 0%, #fde27a 50%, #f8d040 100%);
    }

.tm-btn-outline {
    background: rgba(255,255,255,0.82);
    border: 1px solid var(--ow-primary-dark);
    color: var(--ow-primary-dark);
    box-shadow: 0 8px 16px rgba(10,42,82,0.06);
}

    .tm-btn-outline:hover:not(:disabled) {
        background: #ffffff;
        box-shadow: 0 8px 18px rgba(10,42,82,0.10);
    }

    .tm-btn-primary:disabled,
    .tm-btn-outline:disabled {
        cursor: wait;
        opacity: 0.78;
    }

    .tm-btn-primary:active,
    .tm-btn-outline:active {
        transform: translateY(1px);
    }

/* Page header: the soft blue band under the top bar, with the skyline
   artwork fading in at the bottom like the home page hero. */
.ow-page-hero {
    position: relative;
    overflow: hidden;
    padding: calc(56 * var(--px)) calc(20 * var(--px)) calc(70 * var(--px));
    background: linear-gradient(180deg, #fbfdff 0%, var(--ow-bg) 100%);
    text-align: center;
}

    .ow-page-hero::before {
        content: "";
        position: absolute;
        inset: auto 0 0 0;
        height: calc(220 * var(--px));
        background: url("/assets/brand/other-work-hero-bg-uk-subtle-fit.png?v=3") no-repeat center bottom / 100% auto;
        opacity: 0.45;
        pointer-events: none;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
    }

    .ow-page-hero > * {
        position: relative;
    }

    .ow-page-hero h1 {
        max-width: calc(820 * var(--px));
        margin: 0 auto calc(14 * var(--px));
        color: var(--ow-navy);
        font-size: calc(38 * var(--px));
        font-weight: 900;
        line-height: 1.15;
        text-wrap: balance;
    }

    .ow-page-hero .tm-mk-lead {
        margin-bottom: 0;
    }

.ow-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(12 * var(--px));
    margin-top: calc(26 * var(--px));
}

/* Form messages */
.tm-msg {
    margin-top: calc(12 * var(--px));
    font-size: calc(14 * var(--px));
    font-weight: 700;
    line-height: 1.45;
}

    .tm-msg:empty {
        display: none;
    }

    .tm-msg.success {
        color: var(--ow-success);
    }

    .tm-msg.error {
        color: var(--ow-error);
    }

@media (max-width: 760px) {
    :root {
        --ow-page-scale: 1;
    }

    body {
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
    }

    .tm-nav {
        min-height: 56px;
        gap: 10px;
        padding: 8px 12px;
    }

    .tm-logo {
        height: 40px;
        width: 168px;
        min-width: 0;
    }

    .tm-nav-logo-img {
        height: 30px;
        max-width: 168px;
    }

    .tm-nav-toggle {
        appearance: none;
        -webkit-appearance: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        width: 42px;
        height: 38px;
        margin-left: auto;
        border: 1px solid rgba(255,255,255,0.70);
        border-radius: 6px;
        background: rgba(255,255,255,0.08);
        color: #ffffff;
        cursor: pointer;
    }

        .tm-nav-toggle span {
            display: block;
            width: 18px;
            height: 2px;
            border-radius: 999px;
            background: currentColor;
        }

    .tm-nav-links {
        position: absolute;
        top: calc(100% + 6px);
        left: 10px;
        right: 10px;
        display: none;
        max-height: calc(100dvh - 78px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 6px;
        border: 1px solid rgba(10,42,82,0.16);
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 16px 34px rgba(10,42,82,0.20);
        font-size: 14px;
    }

    .tm-nav.tm-nav-open .tm-nav-links {
        display: flex;
    }

    .tm-nav-links a {
        width: 100%;
        padding: 11px 12px;
        border-radius: 6px;
        color: #0A2A52;
        line-height: 1.15;
    }

        .tm-nav-links a:hover,
        .tm-nav-links a.active {
            color: #0A2A52;
            background: rgba(70,130,180,0.10);
        }

        .tm-nav-links a::after {
            display: none;
        }

    .tm-nav-login {
        min-height: 40px;
        padding: 0 14px;
        border-color: #0f477f;
        background: #0f477f;
    }

    .ow-page-hero {
        padding: calc(32 * var(--px)) calc(16 * var(--px)) calc(48 * var(--px));
    }

        .ow-page-hero::before {
            height: calc(110 * var(--px));
        }

        .ow-page-hero h1 {
            font-size: calc(28 * var(--px));
        }

    .ow-hero-actions .tm-btn-primary,
    .ow-hero-actions .tm-btn-outline {
        flex: 1 1 100%;
    }
}
