/* The Hive Young People's Centre — public site styles ("Honeycomb") */

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("fonts/bricolage-grotesque.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

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

:root {
    --navy: #060f2c;
    --navy-2: #0d2748;
    --navy-3: #1c3762;
    --yellow: #ffd21f;
    --yellow-dark: #f2c200;
    --cyan: #22c3e6;
    --pink: #ec2d8c;
    --purple: #7a4bd6;
    --paper: #f3f7fc;
    --white: #ffffff;
    --ink: #060f2c;
    --ink-soft: #3a4866;
    --on-dark: #f3f7fc;
    --on-dark-soft: #c3cfe4;
    --line-light: #d5deee;
    --danger: #b3123f;
    --success: #0f7a4d;
    --radius: 22px;
    --radius-sm: 12px;
    --display: "Bricolage Grotesque", system-ui, sans-serif;
    --body: "Figtree", system-ui, sans-serif;
    --hex: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--navy);
    color: var(--on-dark);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: #ffe866; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--yellow); color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* ---------- Header ---------- */

.site-header { position: relative; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.brand img { width: 84px; height: 84px; border-radius: 18px; }

.nav { display: flex; align-items: center; gap: 4px 24px; flex-wrap: wrap; }
.nav a { color: var(--on-dark); text-decoration: none; font-weight: 600; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--yellow); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; }

.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }

@media (max-width: 900px) {
    .nav-desktop { display: none; }
    .menu { display: block; }
    .menu-panel {
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--navy-2); border-top: 1px solid var(--navy-3);
        padding: 12px clamp(16px, 4vw, 32px) 24px;
        display: flex; flex-direction: column; gap: 2px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    }
    .menu-panel a { color: var(--on-dark); text-decoration: none; font-weight: 700; font-size: 1.2rem; padding: 12px 0; border-bottom: 1px solid var(--navy-3); }
    .menu-panel .btn { margin-top: 16px; align-self: flex-start; border-bottom: 0; }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 24px; border-radius: 999px;
    font-family: var(--body); font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
    text-decoration: none; cursor: pointer; border: 2px solid transparent;
    transition: transform 0.12s ease, background-color 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: #ffe866; color: var(--navy); }
.btn-outline { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.btn-outline:hover { color: var(--yellow); border-color: var(--yellow); }
.btn-dark { background: var(--navy); color: var(--yellow); }
.btn-dark:hover { background: var(--navy-2); color: var(--yellow); }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.125rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.menu-button {
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px;
    border-radius: 999px; border: 2px solid var(--on-dark); color: var(--on-dark); font-weight: 700;
}

/* ---------- Typography helpers ---------- */

.kicker {
    display: inline-block; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.kicker-pill { border: 2px solid var(--yellow); color: var(--yellow); padding: 6px 14px; border-radius: 999px; }
.text-yellow { color: var(--yellow); }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); }
.muted { color: var(--on-dark-soft); }
.light .muted { color: var(--ink-soft); }

.display-xl { font-size: clamp(3.4rem, 8vw, 7.25rem); line-height: 0.92; font-weight: 800; letter-spacing: -0.03em; }
.display-lg { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
.display-md { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.light { background: var(--paper); color: var(--ink); }
.light a { color: var(--navy); }
.white { background: var(--white); color: var(--ink); }
.white a { color: var(--navy); }
.yellow { background: var(--yellow); color: var(--navy); }
.yellow a { color: var(--navy); }
.bordered { border-top: 1px solid var(--navy-3); border-bottom: 1px solid var(--navy-3); }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 56px); align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin-bottom: 36px; }

/* ---------- Hero ---------- */

.hero { padding: clamp(32px, 6vw, 64px) 0 clamp(72px, 9vw, 104px); }
.hero .split { align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-copy .lead { max-width: 540px; color: #d5deee; }

.honeycomb { position: relative; height: clamp(360px, 42vw, 520px); }
.hex {
    position: absolute; clip-path: var(--hex); aspect-ratio: 1 / 0.9;
    display: flex; align-items: center; justify-content: center; text-align: center;
    background: var(--navy-3); color: var(--on-dark-soft); overflow: hidden;
}
.hex img { width: 100%; height: 100%; object-fit: cover; }
.hex-1 { left: 4%; top: 0; width: 56%; }
.hex-2 { right: 0; top: 24%; width: 50%; background: #173e6e; }
.hex-3 {
    left: 18%; bottom: 0; width: 44%; background: var(--yellow); color: var(--navy);
    font-family: var(--display); font-weight: 800; font-size: clamp(1.1rem, 2.2vw, 1.65rem); line-height: 1.05; padding: 8%;
}
.hex-dot { position: absolute; clip-path: var(--hex); aspect-ratio: 1 / 0.9; }
.hex-dot.cyan { background: var(--cyan); }
.hex-dot.pink { background: var(--pink); }
.hex-dot.purple { background: var(--purple); }
.hex-placeholder { font-size: 0.9rem; padding: 18%; }

/* Inner page hero */
.page-hero { padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 80px); position: relative; overflow: hidden; }
.page-hero .container { position: relative; display: flex; flex-direction: column; gap: 18px; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); font-weight: 800; max-width: 16ch; }
.page-hero .lead { max-width: 640px; color: #d5deee; }
.page-hero .hex-dot { opacity: 0.9; }

/* ---------- Timetable ---------- */

.day-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.day-tab {
    font: inherit; font-weight: 700; min-height: 48px; padding: 12px 22px; border-radius: 999px; cursor: pointer;
    border: 2px solid var(--navy); background: transparent; color: var(--navy);
}
.day-tab[aria-selected="true"] { background: var(--navy); color: var(--yellow); }
.day-panel + .day-panel { margin-top: 32px; }
.js .day-panel + .day-panel { margin-top: 0; }
.day-panel h3.day-heading { font-size: 1.5rem; margin-bottom: 14px; }
.js .day-panel h3.day-heading { display: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.card {
    background: var(--white); color: var(--ink); border: 2px solid var(--navy); border-radius: var(--radius);
    padding: 26px; display: flex; flex-direction: column; gap: 10px; box-shadow: 6px 6px 0 var(--navy);
}
.card h3 { font-size: 1.75rem; font-weight: 800; }
.card p { color: var(--ink-soft); }
.card .card-foot { margin-top: auto; padding-top: 6px; }
.chip { align-self: flex-start; display: inline-block; font-weight: 700; font-size: 0.875rem; padding: 5px 12px; border-radius: 999px; }
.chip-dark { background: var(--navy); color: var(--yellow); }
.chip-soft { background: #e6edf8; color: var(--navy); }
.chip-pink { background: #fde3f0; color: #9c0f55; }
.term-note { font-size: 0.9rem; font-weight: 700; color: #9c0f55; }

/* ---------- Pathway tiles ---------- */

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.tile {
    border-radius: 26px; padding: 30px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
    text-decoration: none; background: var(--navy-2); color: var(--on-dark); transition: transform 0.12s ease;
}
.tile:hover { transform: translateY(-3px); color: var(--on-dark); }
.tile .kicker { color: var(--on-dark-soft); }
.tile strong { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.02; }
.tile-yellow { background: var(--yellow); color: var(--navy); }
.tile-yellow:hover { color: var(--navy); }
.tile-yellow .kicker { color: var(--navy); }

/* ---------- Stats ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 14px; }
.stat { border: 2px solid var(--navy-3); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.stat strong { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.1rem); color: var(--yellow); line-height: 1; }

/* ---------- Quote & video ---------- */

.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: var(--navy-2); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.quote { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; }

/* ---------- Content (rich text) ---------- */

.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 2rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.45rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--yellow); font-size: 1.15em; }
.light .prose blockquote, .white .prose blockquote { border-left-color: var(--navy); }

/* ---------- Panels, lists & tables ---------- */

.panel { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line-light); }
.panel-dark { background: var(--navy-2); color: var(--on-dark); border-color: var(--navy-3); }
.rates { list-style: none; margin: 0; padding: 0; }
.rates li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.rates li:last-child { border-bottom: 0; }
.rates strong { font-family: var(--display); font-size: 1.2rem; }
.rates small { display: block; color: var(--ink-soft); }

.doc-folder + .doc-folder { margin-top: 44px; }
.doc-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.doc-link {
    display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius-sm);
    background: var(--white); border: 1px solid var(--line-light); color: var(--ink); text-decoration: none;
}
.doc-link:hover { border-color: var(--navy); }
.doc-badge {
    flex: 0 0 auto; width: 52px; height: 46px; clip-path: var(--hex); background: var(--navy); color: var(--yellow);
    display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 800;
}
.doc-meta { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Forms ---------- */

.form { display: flex; flex-direction: column; gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 700; }
.field .hint { font-size: 0.92rem; color: var(--ink-soft); }
.req { color: var(--danger); }
.input, .select, .textarea {
    font: inherit; color: var(--ink); background: var(--white); width: 100%;
    min-height: 50px; padding: 12px 14px; border: 2px solid #b3c1d6; border-radius: var(--radius-sm);
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--navy); outline: 3px solid rgba(34, 195, 230, 0.45); outline-offset: 0; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.error { color: var(--danger); font-weight: 600; font-size: 0.95rem; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
    position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px;
    border: 2px solid #b3c1d6; border-radius: 999px; background: var(--white); cursor: pointer; font-weight: 600;
}
.choice input { width: 20px; height: 20px; accent-color: var(--navy); margin: 0; }
.choice:has(input:checked) { border-color: var(--navy); background: #fff6cc; }
.check { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--navy); flex: 0 0 auto; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius-sm); padding: 16px 20px; font-weight: 600; }
.alert-success { background: #dcf5e9; color: #064d30; border: 2px solid #0f7a4d; }
.alert-error { background: #fde4ea; color: #7d0a2b; border: 2px solid var(--danger); }

.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.amount { justify-content: center; font-family: var(--display); font-size: 1.35rem; font-weight: 800; border-radius: var(--radius-sm); }

.child-card { border: 2px dashed #b3c1d6; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.child-card h3 { font-size: 1.35rem; }
.date-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.date-option { border-radius: var(--radius-sm); justify-content: space-between; }
.date-option.full { opacity: 0.55; cursor: not-allowed; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-light); }
.summary-total { font-family: var(--display); font-weight: 800; font-size: 1.6rem; }

/* ---------- Map & cookies ---------- */

.map {
    min-height: 260px; border-radius: var(--radius); background: var(--yellow-dark); color: var(--navy);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; overflow: hidden;
}
.map iframe { width: 100%; height: 320px; border: 0; }
.light .map, .white .map { background: #e6edf8; }

.cookie-bar {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 640px; margin: 0 auto;
    background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 20px 22px;
    box-shadow: 0 20px 50px rgba(6, 15, 44, 0.35); display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.cookie-bar p { flex: 1 1 280px; font-size: 0.95rem; }
.cookie-bar[hidden] { display: none; }

/* ---------- Footer ---------- */

.site-footer { background: var(--yellow); color: var(--navy); }
.site-footer a { color: var(--navy); font-weight: 700; }
.site-footer .top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding: clamp(56px, 7vw, 76px) 0 40px; }
.site-footer .top > * { flex: 1 1 360px; }
.site-footer .bottom {
    border-top: 2px solid var(--navy); padding: 22px 0 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 0.95rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-safe { background: var(--navy); color: var(--on-dark); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 0.95rem; }
.footer-safe a { color: var(--yellow); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
    .site-header, .site-footer, .cookie-bar { display: none; }
    body { background: #fff; color: #000; }
}

.day-panel[hidden] { display: none; }
@media (max-width: 700px) {
    .page-hero .hex-dot { display: none; }
    .brand img { width: 68px; height: 68px; }
}

/* Buttons keep their own text colour wherever they sit (nav, yellow bands, panels). */
.btn-primary, .btn-primary:hover { color: var(--navy) !important; }
.btn-dark, .btn-dark:hover { color: var(--yellow) !important; }
.panel a:not(.btn) { color: var(--navy); }
.panel-dark a:not(.btn) { color: var(--yellow); }
