/* ==========================================================================
   Derby and Derbyshire Disabled Soldiers Settlement
   Lean replacement for Bootstrap 4 + Font Awesome. Built by Arden Web.
   ========================================================================== */

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/roboto.woff2") format("woff2");
}
@font-face {
    font-family: "Roboto Condensed";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/roboto-condensed.woff2") format("woff2");
}

:root {
    --navy: #1f2b4d;
    --ink: #212529;
    --muted: #555;
    --link: #2f53b6;
    --link-hover: #1e3d92;
    --light: #f4f5f7;
    --footer: #222;
    --footer-text: #c4c4c4;
    --focus: #ffbf47;
    --success: #1d6b3a;
    --error: #b3261e;
    --radius: 4px;
    --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: #e9eaee;
}
h1, h2, h3, .site-brand, .site-nav a, .btn {
    font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: 1.75rem; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }

/* Visible keyboard focus everywhere */
:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px #000;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 100;
    background: #fff; color: #000; padding: .75rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: .5rem 1rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}
.btn--lg { padding: .75rem 1.5rem; font-size: 1.125rem; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #e2e6ea; color: var(--ink); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: #111a33; color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header {
    background: var(--navy) var(--hero) center / cover no-repeat;
    color: #fff;
}
.site-header > .container {
    /* dark overlay so white text always meets contrast over the photo */
    background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
    box-shadow: 0 0 30px rgba(0,0,0,.6);
    padding-top: .75rem;
    padding-bottom: 1.5rem;
}
.topbar {
    display: flex; flex-wrap: wrap; gap: .75rem 1rem;
    align-items: center; justify-content: space-between;
}
.site-brand {
    color: #fff; text-decoration: none;
    font-size: clamp(1.15rem, 2.6vw, 1.9rem); font-weight: 700; line-height: 1.15;
}
.site-brand:hover { color: #fff; text-decoration: underline; }
.topbar__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.topbar__actions .btn { font-size: .9rem; padding: .4rem .8rem; }

.site-nav { margin-top: .75rem; }
.site-nav__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: .25rem 1.25rem;
}
.site-nav a {
    display: inline-block; padding: .35rem 0;
    color: rgba(255,255,255,.9); text-decoration: none; font-size: 1.15rem;
    border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.6); }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
.site-nav__toggle {
    background: transparent; color: #fff;
    border: 2px solid #fff; border-radius: var(--radius);
    padding: .45rem .9rem; font: inherit; font-weight: 700; cursor: pointer;
}

.hero { max-width: 44rem; padding: 2.5rem 0 1.5rem; }
.hero h1 { font-size: clamp(3rem, 9vw, 5.6rem); font-weight: 700; margin-bottom: .25em; }
.hero p { font-size: 1.25rem; margin-bottom: 1.5rem; }
.page-title { font-size: clamp(2rem, 5vw, 3rem); margin: 2rem 0 .5rem; }

/* ---------- Main content sheet ---------- */
main:focus { outline: none; }
.sheet { background: #fff; box-shadow: 0 .5rem 1rem rgba(0,0,0,.12); padding: 0; }
.content { max-width: 50rem; padding: 2rem 1.5rem 2.5rem; }
.content h2 { margin-top: 2rem; font-size: 1.6rem; }

/* Supporters logos */
.supporters { padding: 2rem 1rem 1rem; text-align: center; }
.supporters h2 { font-weight: 700; }
.logo-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 2rem 3rem; justify-content: center; align-items: center;
}
.logo-list img { height: 130px; width: auto; }

/* Alternating text/image rows */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split__text { background: var(--light); padding: 5rem 2rem; }
.split__media {
    position: relative; margin: 0; min-height: 300px;
    background: var(--img) center / cover no-repeat;
}
.split--reverse .split__text { order: 2; }
.split--reverse .split__media { order: 1; }
.split__media figcaption {
    position: absolute; left: 0; bottom: 0;
    background: rgba(0,0,0,.65); color: #fff; padding: .35rem .9rem; font-size: .95rem;
}

/* Governance */
.people { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.people__list { list-style: none; padding: 0; margin: 0; }
.people__list li { padding: .6rem 0; border-bottom: 1px solid #ddd; }
.role {
    display: inline-block; margin-left: .4rem; padding: .05rem .5rem;
    background: var(--navy); color: #fff; border-radius: 999px; font-size: .85rem;
}
.people__list .role:only-of-type { vertical-align: 1px; }
.doc-list { padding-left: 1.2rem; }
.doc-list li { margin-bottom: .5rem; }
.meta { color: var(--muted); font-size: .92rem; }

/* ---------- Forms ---------- */
.enquiry { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid #ddd; }
.form__row { margin-bottom: 1.1rem; }
.form label { display: block; font-weight: 700; margin-bottom: .3rem; }
.form input, .form textarea {
    width: 100%; font: inherit; color: var(--ink);
    padding: .6rem .75rem; border: 2px solid #6b6f76; border-radius: var(--radius); background: #fff;
}
.form input:focus, .form textarea:focus { border-color: var(--navy); }
.req { color: var(--error); }
.form__note { color: var(--muted); font-size: .95rem; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.g-recaptcha { margin-bottom: 1rem; }

.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; border-left: 6px solid; }
.alert--success { background: #e7f4ec; border-color: var(--success); color: #103d21; }
.alert--error { background: #fbeaea; border-color: var(--error); color: #6e1510; }

/* ---------- Footer ---------- */
.footer-cta { background: var(--navy); text-align: center; padding: .9rem 1rem; }
.footer-cta a { color: #fff; font-weight: 700; }
.footer-main { background: var(--footer); color: var(--footer-text); font-size: .95rem; padding: 2rem 0 1rem; }
.footer-main h2 { color: #fff; font-size: 1.3rem; }
.footer-main a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.footer-credit { border-top: 1px solid #3a3a3a; margin-top: 1rem; padding-top: 1rem; font-size: .88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; }
    .split__text { padding: 2.5rem 1.5rem; }
    /* image first on mobile for every row, matching the original layout */
    .split .split__media { order: 1; }
    .split .split__text { order: 2; }
    .people, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .js .site-nav__toggle { display: inline-block; }
    .js .site-nav__list { display: none; flex-direction: column; gap: 0; margin-top: .5rem; }
    .js .site-nav__list.is-open { display: flex; }
    .site-nav a { padding: .55rem 0; }
    .logo-list img { height: 100px; }
}
@media (min-width: 761px) {
    .site-nav__toggle { display: none !important; }
}

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

@media print {
    .site-nav, .topbar__actions, .footer-cta, .enquiry, .skip-link { display: none !important; }
    .site-header { background: none; color: #000; }
    .site-header > .container { background: none; box-shadow: none; }
    .site-brand { color: #000; }
}
