/* ==========================================================================
   Professional Training: stylesheet
   Change the colours below to rebrand the whole site in one place.
   ========================================================================== */

:root {
    --primary: #1f3a5f;       /* navy: header, headings, footer */
    --accent: #e0a526;        /* gold: button and highlights */
    --text: #2b2b2b;          /* main body text */
    --muted: #5f6b7a;         /* secondary text */
    --background: #ffffff;    /* page background */
    --background-alt: #f4f6f9;/* alternate section background */
    --radius: 8px;
}

/* ---------- Basics ---------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;      /* smooth scrolling for nav links */
    scroll-padding-top: 80px;     /* stop the sticky header covering headings */
}

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
}

h1, h2, h3 {
    color: var(--primary);
    line-height: 1.25;
}

a {
    color: var(--primary);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.container.narrow {
    max-width: 760px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.logo {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 22px;
    font-size: 0.95rem;
}

.nav a:hover {
    color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
    /* The photo is shown in its natural colours (navy only shows if the photo is missing) */
    background: var(--hero-image) center / cover no-repeat, var(--primary);
    color: #fff;
    text-align: center;
    padding: 130px 0;
}

/* A dark shadow around the letters keeps white text readable on the photo */
.hero h1,
.tagline {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 18px rgba(0, 0, 0, 0.7);
}

.hero h1 {
    color: #fff;
    font-size: 2.6rem;
    max-width: 800px;
    margin: 0 auto 20px;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 600;
    max-width: 680px;
    margin: 0 auto 32px;
}

.button {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    padding: 14px 32px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform 0.15s ease;
}

.button:hover {
    transform: translateY(-2px);
}

/* ---------- Sections ---------- */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--background-alt);
}

.section h2 {
    font-size: 2rem;
    text-align: center;
    margin: 0 0 40px;
}

.narrow p {
    text-align: center;
}

/* Cards stack automatically on small screens */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-top: 4px solid var(--accent);
    margin: 0;
}

.card h3 {
    margin-top: 0;
}

.duration {
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 0;
}

.benefit {
    text-align: center;
    padding: 0 10px;
}

/* ---------- Testimonials ---------- */
.testimonial blockquote {
    margin: 0 0 20px;
    font-style: italic;
}

.testimonial figcaption span {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ---------- Contact ---------- */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    text-align: center;
}

.contact-list li {
    margin-bottom: 12px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 24px 0;
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
}

/* ---------- Small screens (phones) ---------- */
@media (max-width: 720px) {
    .header-inner {
        flex-direction: column;
        padding: 12px 20px;
    }

    .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
        margin-top: 8px;
    }

    .nav a {
        margin-left: 0;
    }

    html {
        scroll-padding-top: 120px;
    }

    .hero {
        padding: 70px 0;
    }

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

    .section {
        padding: 60px 0;
    }
}
