﻿:root {
    --navy: #1f376d;
    --white: #ffffff;
    --pink: #f06aa6;
    --cyan: #25c6de;
    --cyan-dark: #19a8bf;
    --text: #ffffff;
    --muted: #e4e8f3;
    --focus: #ffbf47;
    --banner-max: 760px;
}

@media (min-width:1024px) {
    :root {
        --banner-max: 980px;
    }
}

html, body {
    margin: 0;
    padding: 0;
    background: #f5f6fa;
    font-family: Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    line-height: 1.45;
    color: #0b0c0c;
    overflow-y: auto;
}

a {
    color: inherit
}

    a:focus {
        outline: 3px solid var(--focus);
        outline-offset: 2px
    }

.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
    white-space: nowrap;
    border: 0;
    margin: -1px;
    padding: 0
}

.preview {
    display: grid;
    place-items: center;
    padding: 1.5rem
}

.banner {
    width: min(100%,var(--banner-max));
    background: var(--navy);
    color: var(--text);
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.15);
}

.top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 18px 22px
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0
}

    .brand img {
        height: 72px;
        width: auto
    }

.nhs {
    height: 26px;
    width: auto;
    justify-self: end
}

/* CTA button in intro */
.btn {
    display: inline-block;
    background: var(--cyan);
    color: #08333a;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,.15);
    box-shadow: 0 8px 22px rgba(0,0,0,.25);
    font-size: clamp(14px,3.2vw,18px);
    letter-spacing: .2px;
}

    .btn:focus {
        outline: 3px solid var(--focus);
        outline-offset: 3px
    }

.extra-cta {
    margin: .25rem 0 .75rem
}

/* Inside content */
.extra {
    padding: 10px 22px 6px 22px;
    color: #fff
}

.extra-title {
    margin: 0 0 .6rem;
    font-size: clamp(24px,6.8vw,42px);
    line-height: 1.05;
    letter-spacing: .3px;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff
}

.extra h3 {
    margin: .9rem 0 .35rem;
    font-size: clamp(16px,3.2vw,19px);
    font-weight: 700
}

.extra p {
    margin: 0 0 .6rem;
    color: var(--muted)
}

.extra .extra-link {
    color: var(--cyan);
    text-decoration: underline
}

/* Visual cards */
.visuals {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    margin-bottom: .8rem
}

@media (min-width:700px) {
    .visuals {
        grid-template-columns: repeat(3,1fr)
    }
}

.card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s, border-color .15s
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(0,0,0,.25);
        border-color: rgba(255,255,255,.35)
    }

    .card:focus-visible {
        outline: 3px solid var(--focus);
        outline-offset: 2px
    }

    .card img {
        width: 100%;
        height: 140px;
        object-fit: cover;
        display: block
    }

.card-body {
    padding: 10px 12px;
    text-align: center;
    font-weight: 700;
    color: #fff
}

/* Events table */
.extra-table-wrap {
    overflow: auto
}

.events {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(12px,2.6vw,14px)
}

    .events th, .events td {
        padding: 6px 8px;
        border-bottom: 1px solid rgba(255,255,255,.18);
        color: #eaf2ff
    }

    .events th {
        color: #fff;
        border-bottom-color: rgba(255,255,255,.35)
    }

/* Banner headline + sub */
.content {
    padding: 0 22px 8px 22px;
    margin-top: 12px
}

.banner-title {
    margin: 0 0 .25rem;
    font-size: clamp(24px,6.8vw,42px);
    line-height: 1.05;
    letter-spacing: .3px;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff
}

.sub {
    margin: 0;
    color: var(--muted);
    font-size: clamp(15px,3.2vw,18px)
}

/* QR panel */
.qr-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 18px;
    background: var(--cyan);
    color: #08333a;
    padding: 18px 22px;
    margin-top: 10px
}

.qr {
    background: #fff;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
    width: 100%;
    max-width: 240px;
    justify-self: start
}

    .qr img {
        display: block;
        width: 100%;
        height: auto
    }

.qr-text {
    font-size: clamp(15px,3.2vw,20px);
    color: #eaffff
}

.qr-wave {
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 60%;
    height: 90px
}

    .qr-wave path {
        fill: rgba(0,0,0,.18)
    }

/* Footer */
.cta-wrap {
    position: relative;
    padding: 18px 22px 28px 22px;
    overflow: visible
}

.cta-pill {
    display: inline-block;
    background: var(--cyan);
    color: #08333a;
    font-weight: 800;
    border-radius: 999px;
    padding: 12px 16px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    border: 2px solid rgba(255,255,255,.15);
    font-size: clamp(14px,3.2vw,17px);
    letter-spacing: .4px;
    position: relative;
    z-index: 2
}

.contact {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    color: #fff;
    position: relative;
    z-index: 2
}

.tel {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: clamp(17px,4.2vw,22px)
}

.social {
    display: flex;
    gap: 12px;
    align-items: center
}

    .social a {
        display: inline-grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border-radius: 999px;
        background: #ffffff1a
    }

    .social svg {
        display: block
    }

/* Blob behind content */
.blob {
    position: absolute;
    right: -50px;
    bottom: -80px;
    width: 380px;
    height: 380px;
    pointer-events: none;
    z-index: 1
}

@media (max-width:560px) {
    .preview {
        display: block;
        padding: 12px
    }

    .banner {
        width: 100%
    }

    .qr-row {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .qr {
        max-width: 220px
    }

    .events th, .events td {
        padding: 6px
    }

    .blob {
        width: 260px;
        height: 260px;
        right: -30px;
        bottom: -60px
    }

    .cta-wrap {
        padding-bottom: 110px
    }
}

@media print {
    @page {
        size: 800mm 2000mm;
        margin: 0
    }

    body {
        background: #fff
    }

    .preview {
        padding: 0
    }

    .banner {
        width: 800mm;
        height: auto;
        border-radius: 0;
        box-shadow: none
    }
}
