/* W3DD brand colours */
:root {
    --w3dd-navy: #12383c;
    --w3dd-teal: #1d5055;
    --w3dd-blue: #5b91d1;
    --w3dd-gold: #f2c443;
    --w3dd-gold-dark: #d9a91e;
    --w3dd-light-blue: #eef5fb;
    --w3dd-light-gold: #fff8df;
    --w3dd-white: #ffffff;
    --w3dd-text: #26383b;
    --w3dd-border: #d7e1e3;
}

/* General page styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--w3dd-text);
    background: var(--w3dd-white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header and navigation */
header {
    background: var(--w3dd-white);
    border-bottom: 4px solid var(--w3dd-gold);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    display: block;
    height: 75px;
    width: auto;
}

nav a {
    position: relative;
    margin-left: 24px;
    color: var(--w3dd-navy);
    text-decoration: none;
    font-weight: 700;
}

nav a:hover,
nav a:focus {
    color: var(--w3dd-blue);
}

/* Hero section */
.hero {
    padding: 85px 20px;
    color: var(--w3dd-white);
    text-align: center;
    background:
        linear-gradient(135deg,
            var(--w3dd-navy) 0%,
            var(--w3dd-teal) 100%);
    border-bottom: 6px solid var(--w3dd-gold);
}

.hero-logo {
    display: block;
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 0 auto 25px;
    padding: 12px;
    background: var(--w3dd-white);
    border-radius: 8px;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: 3rem;
    line-height: 1.15;
}

.hero-text {
    max-width: 760px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 13px 25px;
    color: var(--w3dd-navy);
    background: var(--w3dd-gold);
    border: 2px solid var(--w3dd-gold);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.btn:hover,
.btn:focus {
    color: var(--w3dd-white);
    background: var(--w3dd-gold-dark);
    border-color: var(--w3dd-gold-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--w3dd-white);
    background: transparent;
    border-color: var(--w3dd-white);
}

.btn-secondary:hover,
.btn-secondary:focus {
    color: var(--w3dd-navy);
    background: var(--w3dd-white);
    border-color: var(--w3dd-white);
}

/* Content sections */
.section {
    padding: 80px 0;
}

.section h2 {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 12px;
    color: var(--w3dd-navy);
    font-size: 2rem;
}

.section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 65px;
    height: 4px;
    background: var(--w3dd-gold);
    border-radius: 2px;
}

.section h3 {
    margin-bottom: 10px;
    color: var(--w3dd-navy);
}

.alt {
    background: var(--w3dd-light-blue);
}

/* Mission statement */
blockquote {
    max-width: 900px;
    padding: 25px 30px;
    color: var(--w3dd-navy);
    background: var(--w3dd-white);
    border-left: 6px solid var(--w3dd-gold);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 14px rgba(18, 56, 60, 0.08);
    font-size: 1.3rem;
}

/* Project card */
.project-card {
    padding: 30px;
    background: var(--w3dd-light-gold);
    border: 1px solid var(--w3dd-gold);
    border-left: 6px solid var(--w3dd-gold);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(18, 56, 60, 0.08);
}

.project-card a {
    color: var(--w3dd-teal);
    text-decoration: none;
    font-weight: 700;
}

.project-card a:hover,
.project-card a:focus {
    color: var(--w3dd-blue);
    text-decoration: underline;
}

/* Value cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}

.card {
    padding: 28px;
    background: var(--w3dd-white);
    border: 1px solid var(--w3dd-border);
    border-top: 5px solid var(--w3dd-blue);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(18, 56, 60, 0.07);
}

/* Footer */
footer {
    padding: 32px 20px;
    color: var(--w3dd-white);
    background: var(--w3dd-navy);
    border-top: 5px solid var(--w3dd-gold);
    text-align: center;
}

/* Mobile layout */
@media (max-width: 700px) {
    .nav {
        flex-direction: column;
        gap: 18px;
    }

    nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 18px;
    }

    nav a {
        margin-left: 0;
    }

    .logo img {
        height: 65px;
    }

    .hero {
        padding: 60px 18px;
    }

    .hero-logo {
        max-width: 270px;
    }

    .hero h1 {
        font-size: 2.15rem;
    }

    .hero-text {
        font-size: 1.05rem;
    }

    .section {
        padding: 60px 0;
    }
}

/* Board and governance */
.governance-content {
    max-width: 900px;
}

.governance-content p {
    margin-bottom: 18px;
}

.governance-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--w3dd-navy);
}

.governance-list {
    padding: 24px 30px 24px 48px;
    background: var(--w3dd-light-blue);
    border-left: 6px solid var(--w3dd-gold);
    border-radius: 0 8px 8px 0;
}

.governance-list li {
    margin-bottom: 10px;
}

.governance-list li:last-child {
    margin-bottom: 0;
}

/* Interior page heading */
.page-hero {
    padding: 55px 20px;
    color: var(--w3dd-white);
    text-align: center;
    background: linear-gradient(
        135deg,
        var(--w3dd-navy),
        var(--w3dd-teal)
    );
    border-bottom: 6px solid var(--w3dd-gold);
}

.page-hero h1 {
    margin-bottom: 10px;
    font-size: 2.6rem;
}

.page-hero p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Privacy policy */
.policy-content {
    max-width: 900px;
}

.policy-content h2 {
    margin-top: 42px;
    margin-bottom: 15px;
}

.policy-content h2:first-of-type {
    margin-top: 30px;
}

.policy-content p {
    margin-bottom: 16px;
}

.policy-content ul {
    margin: 0 0 22px 25px;
    padding-left: 15px;
}

.policy-content li {
    margin-bottom: 9px;
}

.policy-content address {
    padding: 22px;
    margin-top: 15px;
    background: var(--w3dd-light-blue);
    border-left: 6px solid var(--w3dd-gold);
    border-radius: 0 8px 8px 0;
    font-style: normal;
}

.policy-content a {
    color: var(--w3dd-teal);
    font-weight: 700;
}

.back-link {
    margin-top: 40px;
}

/* Footer links */
.footer-links {
    margin-top: 16px;
}

.footer-links a {
    color: var(--w3dd-gold);
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
    text-decoration: underline;
}

/* Get involved page */
.involved-intro,
.contribution-guidelines,
.get-involved-contact {
    max-width: 900px;
}

.involved-intro p,
.contribution-guidelines p,
.get-involved-contact p {
    margin-bottom: 18px;
}

.involvement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.involvement-card {
    padding: 28px;
    background: var(--w3dd-white);
    border: 1px solid var(--w3dd-border);
    border-top: 5px solid var(--w3dd-blue);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(18, 56, 60, 0.07);
}

.involvement-card h3 {
    margin-bottom: 12px;
    color: var(--w3dd-navy);
}

.contribution-guidelines ul {
    margin: 20px 0 24px 25px;
    padding-left: 15px;
}

.contribution-guidelines li {
    margin-bottom: 10px;
}

.contribution-notice {
    max-width: 900px;
    padding: 28px;
    background: var(--w3dd-white);
    border-left: 6px solid var(--w3dd-gold);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 14px rgba(18, 56, 60, 0.07);
}

.contribution-notice p {
    margin-bottom: 16px;
}

.contribution-notice p:last-child {
    margin-bottom: 0;
}

.get-involved-contact .btn {
    margin-top: 10px;
}

.contact-note {
    margin-top: 22px;
    font-size: 0.95rem;
}

.footer-links span {
    margin: 0 8px;
    color: var(--w3dd-white);
}