/* ------------------------------
   GLOBAL STYLES
------------------------------ */
:root {
    --brand-blue: #1f3c78; /* slightly darker blue */
    --brand-blue-dark: #162a55;
    --text-color: #0b0c0c;
    --bg-light: #ffffff;
    --font-main: "Aptos", Arial, sans-serif;
}

html {
    font-size: 18px; /* BASE FONT SIZE */
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-light);
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
}

/* ------------------------------
   SKIP LINK
------------------------------ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    z-index: 100;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* ------------------------------
   TOP HEADER NAV
------------------------------ */
.header {
    background: var(--brand-blue);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    padding: 6px 4px;
}

/* Hover state */
.nav-links a:hover {
    background: var(--brand-blue-dark);
    color: #ffffff;
}

/* ACTIVE PAGE LINK */
.nav-links a.active {
    background: #e5e5e5;   /* light grey */
    color: #000000;        /* black text */
    padding: 6px 8px;      /* slightly wider */
    border-radius: 4px;
}

/* KEYBOARD FOCUS */
.nav-links a:focus {
    outline: 3px solid #ffbf47; /* GOV.UK yellow */
    outline-offset: 2px;
}

/* ------------------------------
   MAIN CONTENT
------------------------------ */
.main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.main h1 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--brand-blue);
}

.section p {
    margin-bottom: 10px;
    font-size: 1rem;
}

/* ------------------------------
   LIST SPACING
------------------------------ */
ul, ol {
    line-height: 1.5;
    margin: 0 0 20px 0;
    padding-left: 30px;
}

li {
    margin-bottom: 10px;
    font-size: 1rem;
}

/* ------------------------------
   IMAGE STYLES
------------------------------ */
.half-image {
    width: 50%;
    max-width: 50%;
    height: auto;
    margin-bottom: 30px;
    border: 2px solid #ccc;
    background: #d9d9d9;
}

/* ------------------------------
   FOOTER
------------------------------ */
.footer {
    background: var(--brand-blue);
    color: #ffffff;
    padding: 20px 24px;
    margin-top: 60px;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
/* ------------------------------
   CONTACT FORM
------------------------------ */

.contact-form {
    margin-top: 40px;
    max-width: 900px;        /* matches your main content width */
    width: 100%;
}

.form-group {
    margin-bottom: 30px;     /* double line spacing between fields */
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;       /* approx 18px */
}

/* Input, Select, Textarea — all same width */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;             /* full width of content area */
    padding: 14px;           /* larger padding for readability */
    font-size: 1.1rem;       /* approx 18px */
    border: 2px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-main);
    box-sizing: border-box;  /* ensures perfect width */
}

/* Hover + Focus highlight */
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--brand-blue);
    outline: 3px solid #ffbf47; /* GOV.UK yellow */
    outline-offset: 2px;
}

/* Textarea height */
textarea {
    min-height: 160px;
    resize: vertical;
}

/* Submit button */
.submit-button {
    background: var(--brand-blue);
    color: #fff;
    padding: 14px 24px;
    font-size: 1.1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.submit-button:hover,
.submit-button:focus {
    background: var(--brand-blue-dark);
    outline: 3px solid #ffbf47;
    outline-offset: 2px;
}

/* Hide honeypot */
.hidden {
    display: none;
}
