:root {
    /* Official brand palette (Colour theme, p.6) */
    --tc-black: #000000;
    --tc-blue: #1A3D6D;
    --tc-navy: #202945;
    --tc-yellow: #F3C300;
    --tc-red: #FF251B;
    --tc-grey: #424953;
    --tc-band: #F8F8F8; /* even-row banding colour, reused as a section tint */
    --tc-border: #E3E5E8;
    --content-width: 1100px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Calibri, "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--tc-black);
    line-height: 1.5;
    background: #fff;
}

a { color: var(--tc-blue); }

img { max-width: 100%; display: block; }

.wrap {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 2cm;
}

/* ---------- Header ---------- */

.site-header {
    background-color: var(--tc-navy);
    color: #fff;
}

.header-bar {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 1.1rem 2cm;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.site-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
    color: #fff;
}

.site-logo .rule {
    width: 46px;
    border-top: 2px solid #fff;
    margin-bottom: 6px;
}

.site-logo .name {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.site-logo .tagline {
    font-size: 0.7rem;
    font-weight: normal;
    color: #C9D2E0;
    margin-top: 4px;
}

.navigation {
    display: flex;
    gap: 1.8rem;
}

.navigation a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.navigation a:hover,
.navigation a[aria-current="page"] {
    border-bottom-color: var(--tc-yellow);
    text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    background: linear-gradient(155deg, var(--tc-navy) 0%, var(--tc-blue) 100%);
    color: #fff;
    text-align: left;
    padding: 4.5rem 0 6rem;
    overflow: hidden;
}

.hero .wrap {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: bold;
    margin: 0 0 0.75rem;
    max-width: 16ch;
}

.hero p.subheading {
    font-size: 1.15rem;
    color: var(--tc-yellow);
    font-weight: bold;
    margin: 0;
    max-width: 46ch;
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 60px;
    display: block;
}

/* ---------- Section headings & body copy ---------- */

main { padding-bottom: 1rem; }

.section {
    padding: 3rem 0;
}

.section.tinted {
    background-color: var(--tc-band);
}

.section + .section {
    border-top: 1px solid var(--tc-border);
}

.about-layout {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1 1 50%;
}

.about-text p {
    max-width: none; /* let it fill its half of the layout instead of the 70ch cap */
}

.about-image {
    flex: 1 1 50%;
    width: 100%;
    height: 320px;
    object-fit: cover; /* crops to fill the box neatly regardless of the photo's aspect ratio */
}

@media (max-width: 720px) {
    .about-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    .about-text, .about-image {
        flex: 1 1 auto;
    }
}

h2 {
    font-size: 1.6rem;
    font-weight: normal;
    color: var(--tc-blue);
    margin: 0 0 1rem;
}

h3 {
    font-size: 1.15rem;
    color: var(--tc-navy);
    margin: 0 0 0.6rem;
}

.section p {
    max-width: 70ch;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-top: 1.75rem;
}

.card {
    border: 1px solid var(--tc-border);
    border-top: 3px solid var(--tc-blue);
    padding: 1.25rem 1.4rem;
    background: #fff;
}

.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; font-size: 0.95rem; }

/* Membership highlight block */

.membership {
    border: 1px solid var(--tc-navy);
    border-left: 6px solid var(--tc-yellow);
    padding: 1.75rem 2rem;
    margin-top: 1.75rem;
    background: #fff;
}

.membership h3 {
    color: var(--tc-navy);
    font-size: 1.3rem;
    margin-bottom: 0.9rem;
}

.membership ul { margin: 0; padding-left: 1.1rem; }
.membership li { margin-bottom: 0.4rem; }

/* Simple list styling to match brand's round bullets */

ul.plain {
    list-style: disc;
    padding-left: 1.2rem;
}
ul.plain li { margin-bottom: 0.5rem; }

/* ---------- Contact page ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 1.75rem;
    align-items: start;
}

@media (max-width: 720px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-details dt {
    font-weight: bold;
    color: var(--tc-navy);
    margin-top: 1.1rem;
}
.contact-details dt:first-child { margin-top: 0; }
.contact-details dd {
    margin: 0.2rem 0 0;
}

form.contact-form {
    display: grid;
    gap: 1rem;
}

form.contact-form label {
    display: block;
    font-weight: bold;
    color: var(--tc-navy);
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
}

form.contact-form input,
form.contact-form textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--tc-border);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--tc-black);
}

form.contact-form input:focus,
form.contact-form textarea:focus {
    outline: 2px solid var(--tc-blue);
    outline-offset: 1px;
}

form.contact-form button {
    justify-self: start;
    background-color: var(--tc-blue);
    color: #fff;
    border: none;
    font-weight: bold;
    font-size: 0.95rem;
    padding: 0.75rem 1.8rem;
    cursor: pointer;
}

form.contact-form button:hover { background-color: var(--tc-navy); }

/* ---------- Footer ---------- */

footer.site-footer {
    background-color: var(--tc-navy);
    color: #fff;
    padding: 2.5rem 0 1.5rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

footer.site-footer a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

footer.site-footer a:hover { text-decoration: underline; }

.footer-social {
    display: flex;
    gap: 0.9rem;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border: 1px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social svg { width: 16px; height: 16px; fill: #fff; }

.footer-bottom {
    padding-top: 1.2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #C9D2E0;
}

.footer-bottom a { color: #C9D2E0; }