/* cibhub.co.uk - colours from the CiB HUB opening-hours poster (docs/CiBHUB-Member-Hours-Poster.html) */
:root {
    --indigo: #2A3A8F;
    --indigo-dark: #1f2c70;
    --azure: #159FDD;
    --azure-soft: #e3f3fc;
    --ink: #141a3a;
    --text: #2b3352;
    --grey: #5c6a8c;
    --line: #dfe7f2;
    --mist: #f1f5fb;
    --page: #f6f8fc;
    --card: #ffffff;
    --radius: 18px;
    --shadow: 0 1px 2px rgba(20, 26, 58, .04), 0 8px 28px rgba(20, 26, 58, .07);
    --sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--page); color: var(--text); font-family: var(--sans); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--azure); text-underline-offset: 3px; }
a:hover { color: var(--indigo); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }
b, strong { color: var(--ink); font-weight: 650; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand img { height: 54px; width: auto; display: block; }
.menu { display: flex; gap: 6px; }
.menu a { color: var(--indigo); text-decoration: none; font-weight: 600; font-size: 16px; padding: 9px 16px; border-radius: 999px; white-space: nowrap; transition: background .15s; }
.menu a:hover { background: var(--mist); }
.menu a.on { background: var(--indigo); color: #fff; }

/* Page title */
.hero { background: radial-gradient(1200px 400px at 90% -10%, rgba(79, 192, 240, .55), transparent 60%), linear-gradient(135deg, var(--indigo-dark), var(--indigo) 55%, #2f63b8); color: #fff; padding: 56px 0 88px; }
.hero h1 { margin: 0 0 12px; font-size: clamp(30px, 5vw, 48px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.hero .lead { font-size: clamp(18px, 2.2vw, 21px); max-width: 720px; color: rgba(255, 255, 255, .9); }
.hero .lead p { margin: 0; }
.hero .lead b, .hero .lead strong { color: #fff; }
.hero .lead a { color: #fff; }
.hero-home { padding: 72px 0 104px; }

/* Blocks */
.sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 22px; align-items: start; margin-top: -56px; padding-bottom: 64px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); min-width: 0; }
.card.wide, .card:has(.addresses), .tiles, .question { grid-column: 1 / -1; }
.card h2 { margin: 0 0 12px; color: var(--ink); font-size: 23px; line-height: 1.25; font-weight: 750; letter-spacing: -.01em; }
.card h2::before { content: ""; display: block; width: 36px; height: 4px; background: var(--azure); border-radius: 2px; margin-bottom: 14px; }
.body > :first-child { margin-top: 0; }
.body > :last-child { margin-bottom: 0; }
.body p { margin: 0 0 12px; }
.body ul { padding-left: 22px; margin: 0 0 12px; }
.body ul li { margin-bottom: 6px; }
.body ul li::marker { color: var(--azure); }

/* Numbered steps */
.body ol { list-style: none; counter-reset: step; padding: 0; margin: 4px 0 14px; }
.body ol li { counter-increment: step; position: relative; padding: 2px 0 12px 46px; }
.body ol li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--azure-soft); color: var(--indigo); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.body ol li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 2px; width: 2px; background: var(--line); }

/* Home tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.tile { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); border-color: var(--azure); box-shadow: 0 12px 32px rgba(20, 26, 58, .12); color: var(--text); }
.tile-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--azure-soft); color: var(--indigo); display: flex; align-items: center; justify-content: center; }
.tile-icon svg { width: 26px; height: 26px; }
.tile-text { display: flex; flex-direction: column; gap: 4px; }
.tile-text b { color: var(--ink); font-size: 18px; }
.tile-text span { font-size: 15px; line-height: 1.5; color: var(--grey); }

/* Questions (Help) */
.question { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.question summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 24px; font-weight: 650; color: var(--ink); position: relative; }
.question summary::-webkit-details-marker { display: none; }
.question summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--azure-soft); color: var(--indigo); font-size: 20px; line-height: 28px; text-align: center; font-weight: 600; }
.question[open] summary::after { content: "\2212"; }
.question[open] summary { border-bottom: 1px solid var(--line); }
.question .body { padding: 16px 24px 20px; }

/* Opening hours */
.hours { width: 100%; border-collapse: separate; border-spacing: 0 6px; margin-top: 8px; }
.hours th, .hours td { text-align: left; padding: 10px 14px; background: var(--mist); vertical-align: top; }
.hours th { color: var(--indigo); font-weight: 650; width: 42%; border-radius: 10px 0 0 10px; }
.hours td { border-radius: 0 10px 10px 0; }
.hours tr.today th, .hours tr.today td { background: var(--azure-soft); }
.hours tr.today th::after { content: " \2022"; color: var(--azure); }

/* Prices */
.prices { list-style: none; padding: 0 !important; margin: 8px 0 0; display: grid; gap: 6px; }
.prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; border-radius: 10px; background: var(--mist); margin: 0; }
.prices b { color: var(--indigo); font-size: 19px; }

/* Email to Print addresses */
.addresses { list-style: none; padding: 0 !important; margin: 8px 0 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.addresses li { display: flex; flex-direction: column; padding: 12px 16px; border-radius: 12px; background: var(--mist); border: 1px solid var(--line); margin: 0; }
.addresses a { text-decoration: none; word-break: break-all; font-weight: 650; }
.addresses span { color: var(--grey); font-size: 15px; }


.note { background: var(--azure-soft); border-radius: 12px; padding: 14px 18px; font-size: 16px; }
.button { display: inline-block; background: var(--azure); color: #fff; text-decoration: none; font-weight: 650; padding: 11px 20px; border-radius: 999px; }
.button:hover { background: var(--indigo); color: #fff; }

/* Footer */
.foot { background: var(--ink); color: #c9d2ec; padding: 36px 0; font-size: 15px; }
.foot-row { display: flex; gap: 24px; align-items: center; }
.foot-logo { height: 44px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; flex: none; }
.foot a { color: #fff; }
.foot strong { color: #fff; }

@media (max-width: 760px) {
    body { font-size: 17px; }
    .top-row { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
    .brand img { height: 46px; margin: 0 auto; }
    .menu { flex-wrap: wrap; justify-content: center; }
    .menu a { padding: 8px 14px; font-size: 15px; background: var(--mist); }
    .menu a.on { background: var(--indigo); }
    .hero, .hero-home { padding: 36px 0 72px; }
    .card { padding: 22px 20px; }
    .foot-row { flex-direction: column; align-items: flex-start; }
}
