/* =========================
   Brand colours
   ========================= */

:root {
    --honest-blue: #0fc9f6;
    --hero-start: #020381;
    --hero-end: #2874FC;
    --deep-navy: #1e3a8a;
    --white: #ffffff;
}

/* =========================
   Global reset
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   Page-level layout
   ========================= */

html,
body {
    height: 100%;
}

body {
    font-family: Inter, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--honest-blue);
}

/* =========================
   Header
   ========================= */

header {
    background-color: var(--honest-blue);
    padding: 20px 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 70px;
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
}

.site-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--deep-navy);
    margin-left: 20px;
    flex: 1;
}

nav ul {
    list-style: none;
    display: flex;
}

nav li {
    margin-left: 30px;
}

nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--deep-navy);
}

/* =========================
   Page background + wrapper
   ========================= */

.page-background {
    flex: 1;
    background-color: var(--honest-blue);
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--white);
}

/* white lead-in above hero */
.content-wrapper::before {
    content: "";
    display: block;
    height: 30px;
}

/* =========================
   Hero
   ========================= */

.hero {
    background: linear-gradient(to right, var(--hero-start), var(--hero-end));
    color: var(--white);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    padding-top: 60px;
    padding-bottom: 60px;
}

.hero h2 {
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    font-weight: 300;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* =========================
   Main content
   ========================= */
main.content {
    padding: 20px 40px;
}

main.content ul {
    padding-left: 1.5em;
    margin: 0.75em 0 1em;
}

main.content ol {
    padding-left: 1.5em;
    margin-left: 0;
}

/* Space before section headings */
main.content h1 {
    margin-top: 16px;
    margin-bottom: 16px;
}

main.content h2 {
    margin-top: 16px;
    margin-bottom: 16px;
}

/* Space after headings before text */
main.content h1 + p,
main.content h1 + div,
main.content h1 + ul,
main.content h2 + p,
main.content h2 + div,
main.content h2 + ul {
    margin-top: 0;
}

/* Paragraph spacing */
main.content p {
    margin-bottom: 20px;
}

/* Reduce gap between hero and first content heading */
main.content > section:first-child > h1,
main.content > section:first-child > h2 {
    margin-top: 16px;
}

/* =========================
   Footer
   ========================= */

footer {
    background-color: var(--honest-blue);
    padding: 30px 0;
    text-align: centre;
    font-size: 14px;
    color: var(--deep-navy);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 768px) {

    .header-inner {
        flex-wrap: wrap;
    }

    .site-title {
        width: 100%;
        margin: 10px 0 0 0;
        text-align: centre;
    }

    nav {
        width: 100%;
        margin-top: 15px;
    }

    nav ul {
        justify-content: centre;
    }

    .hero h2 {
        font-size: 28px;
    }

    main.content {
        padding: 40px 20px;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.services-grid > div {
    padding: 20px 0;
}

@media (min-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Breadcrumbs */

.breadcrumb {
    font-size: 0.9em;
    margin-bottom: 8px;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.breadcrumb li + li::before {
    content: "›";
    margin: 0 0.5em;
    color: #888;
}

.breadcrumb li:last-child {
    font-weight: 600; /* semi-bold */
    color: #000;      /* ensure it’s black, not blue */
}

/* Home icon */

.breadcrumb .home-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 0;
    padding: 0;
    line-height: 1;
    color: #000; /* black icon */
}

.breadcrumb .home-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

/* Screen reader only text */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
