/* NLP Northern Ireland ink-and-bronze theme
   Tokens + header/footer + Courses/About blocks only.
   Linked from _InkBronzeLayout. Not site.css. */

/* ── Tokens ── */
:root {
    --ink: #0f161d;
    --ink-mid: #202b37;
    --bronze: #785c30;
    --bronze-hover: #5a4422;
    --paper: #f7f4f0;
    --cream: #f5ead8;
    --muted: #5a6a7a;
    --border: #d9cfc2;
    --white: #ffffff;
    --nav-edge: #1a2530;
    --font: "Inter", sans-serif;
    --serif: Georgia, "Times New Roman", serif;
    --r-btn: 8px;
    --r-card: 12px;
    --wrap: 1100px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: clip;
}
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-mid);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; border: 0; display: block; }
a { color: var(--bronze); text-decoration: none; }
a:hover, a:focus-visible { color: var(--bronze-hover); }
button, input, textarea { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; margin: 0; color: inherit; }
p { margin: 0 0 1.25em; }
ul, ol { margin: 0; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; }
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* ── Shared wrap ── */
.wrap {
    width: min(var(--wrap), calc(100% - 2rem));
    margin-inline: auto;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0;
    border-radius: var(--r-btn);
    padding: 12px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-bronze {
    background: var(--bronze);
    color: var(--white);
}
.btn-bronze:hover,
.btn-bronze:focus-visible {
    background: var(--bronze-hover);
    color: var(--white);
}
.btn-lg { padding: 14px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-outline {
    background: transparent;
    color: var(--bronze);
    border: 2px solid var(--bronze);
}
.btn-outline:hover,
.btn-outline:focus-visible {
    background: var(--bronze);
    color: var(--white);
}

/* ════════════════════════════════
   Header (slim, /enrol style)
   ════════════════════════════════ */
.site-header {
    background: var(--ink);
    border-bottom: 1px solid var(--nav-edge);
    padding: 12px 0;
}
.site-header-inner {
    width: min(var(--wrap), calc(100% - 2rem));
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.site-wordmark img { height: 48px; width: auto; }
.nav-toggle-input { display: none; }
.nav-burger {
    display: none;
    width: 42px; height: 42px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: var(--r-btn);
    color: var(--white);
    cursor: pointer;
}
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
    display: block;
    width: 18px; height: 2px;
    background: var(--white);
    position: relative;
    transition: transform 0.15s;
}
.nav-burger span::before,
.nav-burger span::after {
    content: "";
    position: absolute;
    left: 0;
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
    color: rgba(255,255,255,0.78);
    font-size: 0.9rem;
    font-weight: 600;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-current { color: var(--bronze); }

/* Enrol sections (page body bands) */
.enrol-section { padding: 3.25rem 0; }
.enrol-section.paper { background: var(--paper); }
.enrol-section.white { background: var(--white); }
.enrol-section.cream { background: var(--cream); }

.close-cta { text-align: center; }
.close-cta h2 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    color: var(--ink);
}
.close-cta .close-lede {
    color: var(--muted);
    max-width: 460px;
    margin: 0 auto 1.75rem;
    font-size: 0.97rem;
}

/* ════════════════════════════════
   Page hero (Courses, About)
   ════════════════════════════════ */
.page-hero,
.room-courses .page-hero,
.room-about .page-hero {
    background: #0f161d;
    color: #f7f4f0;
    padding: 2.25rem 0;
}
.page-hero h1,
.room-courses .page-hero h1,
.room-about .page-hero h1 {
    font-size: clamp(1.45rem, 2.4vw, 1.7rem);
    font-weight: 800;
    color: #f7f4f0;
    margin: 0 0 0.45rem;
}
.page-hero .page-lede,
.room-courses .page-hero .page-lede,
.room-about .page-hero .page-lede {
    margin: 0;
    color: #f7f4f0;
    opacity: 0.92;
    font-size: 1.05rem;
    max-width: 40rem;
}

/* ════════════════════════════════
   Courses
   ════════════════════════════════ */
.room-courses { background: var(--paper); }
.courses-intro {
    max-width: 42rem;
    margin: 0 auto 2.25rem;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--muted);
}
.course-row {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr) 11.5rem;
    gap: 1.5rem 1.75rem;
    align-items: start;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}
.course-row.is-last { border-bottom: 0; padding-bottom: 0; }
.course-mark {
    display: flex;
    justify-content: center;
    padding-top: 0.2rem;
}
.course-mark img {
    max-height: 60px;
    width: auto;
    margin-inline: auto;
}
.course-pill {
    display: inline-block;
    background: var(--bronze);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    line-height: 1.2;
    text-align: center;
}
.course-pill.is-free { background: var(--muted); }
.course-pill.is-ink { background: var(--ink); }
.course-kicker {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--bronze);
    margin: 0 0 0.3rem;
}
.course-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 0.55rem;
}
.course-body p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 0.9rem;
}
.course-checks {
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
    padding-inline-start: 0;
}
.course-checks li {
    list-style: none;
    list-style-type: none;
    position: relative;
    margin: 0 0 0.45rem;
    padding: 0 0 0 1.85rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--ink-mid);
}
.course-checks li:last-child { margin-bottom: 0; }
.course-checks li::marker { content: none; }
.course-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.28rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bronze);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.2 10.4l3.1 3.1 6.5-6.6' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}
.course-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding-top: 0.15rem;
}
.course-actions .btn { width: 100%; }
.courses-trust {
    max-width: 40rem;
    text-align: center;
}
.courses-trust-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* ════════════════════════════════
   About
   ════════════════════════════════ */
.room-about { background: var(--paper); }
.about-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 260px;
    gap: 2.25rem;
    align-items: start;
}
.about-portrait img {
    width: 100%;
    max-width: 260px;
    height: auto;
    margin-inline: auto;
}
.about-bio h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 0.25rem;
}
.about-role {
    color: var(--muted);
    margin: 0 0 1.15rem;
    font-size: 1rem;
}
.about-bio p {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--ink-mid);
    margin: 0 0 1.1rem;
}
.about-bio .btn { margin-top: 0.35rem; }
.academy-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 1.4rem 1.45rem 1.5rem;
}
.academy-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 0.85rem;
}
.academy-card p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--muted);
    margin: 0 0 0.75rem;
}
.academy-card .academy-strong {
    font-weight: 700;
    color: var(--ink-mid);
    margin-bottom: 0.2rem;
}
.academy-card .btn { margin-top: 0.35rem; width: 100%; }
.about-keynote {
    padding: 0 0 3.25rem;
    background: var(--paper);
}
.about-keynote img {
    max-width: min(900px, 100%);
    margin-inline: auto;
    border-radius: var(--r-card);
    box-shadow: 0 8px 28px rgba(15,22,29,0.08);
}

/* ════════════════════════════════
   Footer (live NLP NI structure)
   ════════════════════════════════ */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,0.72);
    padding: 3rem 0 1.75rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.site-footer .foot-logo { max-width: 220px; margin-bottom: 0.85rem; }
.site-footer .blurb { font-size: 0.875rem; color: rgba(255,255,255,0.6); margin: 0; }
.site-footer h2 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.85rem;
}
.foot-links { list-style: none; }
.foot-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}
.foot-links a:hover { color: var(--white); }
.academy-name {
    display: block;
    color: var(--white);
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}
.academy-name:hover { color: var(--bronze); }
.site-footer .meta { font-size: 0.875rem; color: rgba(255,255,255,0.6); margin: 0 0 0.2rem; }

.footer-rule {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    margin: 1.75rem 0;
}
.stay {
    max-width: 420px;
    margin: 0 auto;
}
.stay h2 { margin-bottom: 1rem; }
.stay label.block {
    display: block;
    margin-bottom: 0.75rem;
}
.stay input[type="text"],
.stay input[type="email"] {
    width: 100%;
    padding: 0.55rem 0.7rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 6px;
    color: var(--white);
    font-size: 0.875rem;
}
.stay input::placeholder { color: rgba(255,255,255,0.5); }
.stay .prompt {
    font-size: 0.8rem;
    color: var(--white);
    margin: 0.15rem 0 0.45rem;
}
.stay .req { color: #dc3545; }
.stay .check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}
.stay .check input { accent-color: var(--bronze); margin-top: 0.15rem; }
.stay .privacy { color: rgba(255,255,255,0.55); text-decoration: underline; }
.stay .btn { margin-top: 0.5rem; padding: 8px 22px; font-size: 0.85rem; }

.footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
}
.footer-base a {
    color: rgba(255,255,255,0.55);
    margin-left: 1rem;
}
.footer-base a:hover { color: var(--white); }

/* ════════════════════════════════
   Responsive
   ════════════════════════════════ */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr; }
    .course-row { grid-template-columns: 1fr; gap: 0.85rem; }
    .course-mark { justify-content: flex-start; }
    .course-actions { max-width: 16rem; }
    .about-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .about-portrait { text-align: center; }
}

@media (max-width: 767px) {
    body { font-size: 15px; }
    .nav-burger { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        left: 0; right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--ink);
        border-bottom: 1px solid var(--nav-edge);
        padding: 0.4rem 1rem 0.8rem;
    }
    .site-header { position: relative; }
    .site-nav a {
        padding: 0.8rem 0.2rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        font-size: 1rem;
    }
    .nav-toggle-input:checked ~ .site-nav { display: flex; }
    .course-row {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .course-mark { justify-content: flex-start; }
    .course-actions { flex-direction: row; flex-wrap: wrap; }
    .course-actions .btn { width: auto; }
    .about-grid { grid-template-columns: 1fr; }
    .btn { padding: 0.5rem 1.15rem; font-size: 0.88rem; }
    .btn-lg { padding: 0.65rem 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, a { transition: none; }
}
