/*
Theme Name: CPD Academy
Theme URI: https://mwdigitalsolutions.com/
Template: mw-base
Author: MW Digital Solutions
Author URI: https://mwdigitalsolutions.com/
Description: CPD Academy theme. A thin child of MW Base carrying only CPD Academy's brand tokens — colours, type and radii. All layout, chrome and block markup lives in the CPD Site plugin, so this file stays small by design.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cpd
*/

/* CPD Academy brand tokens.
   These mirror the CSS variables the CPD Site plugin uses, so the plugin's
   styles and the theme agree on one palette. Change a colour here and it
   changes everywhere — including inside the block editor, because theme.json
   carries the same values through as --wp--preset--* variables.

   The blue and gold are the client's existing brand colours, lifted from the
   live site so the rebuild does not quietly re-brand them. */
:root {
    --cpd-blue: #3A7BC8;
    --cpd-blue-dark: #2C5F9E;
    --cpd-blue-deep: #1C335F;
    --cpd-blue-tint: #EAF2FB;
    --cpd-navy-bar: #273C66;
    --cpd-gold: #F8B618;
    --cpd-gold-dark: #D9990A;
    --cpd-ink: #111111;
    --cpd-body: #505050;
    --cpd-muted: #7C8798;
    --cpd-border: #E8E8E8;
    --cpd-surface: #FFFFFF;
    --cpd-bg: #F9F8F8;

    /* The reference uses barely-there corners (3–5px) and soft, wide shadows.
       The 10/18px radii here previously made every card read as a modern SaaS
       component rather than the reference's flatter, more institutional cards. */
    --cpd-radius: 4px;
    --cpd-radius-lg: 5px;
    --cpd-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
    --cpd-shadow-lg: 0 0 30px rgba(0, 0, 0, 0.10);

    /* Type is matched to the Educavo reference the client chose: Rubik for
       body copy, Nunito for headings. The previous Roboto / Roboto Slab pairing
       came from the old Elementor site and was the single biggest reason the
       rebuild did not read like the reference — a slab serif against Nunito's
       rounded geometric sans is a completely different voice. */
    --cpd-font-body: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --cpd-font-head: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Brand type. The webfonts are enqueued by the CPD Site plugin; this keeps the
   theme-level default in step with them rather than fighting them. */
body {
    font-family: var(--cpd-font-body);
    color: var(--cpd-body);
    background: var(--cpd-surface);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--cpd-font-head);
    color: var(--cpd-ink);
}

/* The site plugin owns page chrome. MW Base already lays the container out —
   including the width basis it needs as a flex child — so the child only sets
   the brand max-width. */
.mw-container {
    max-width: 1200px;
}

.mw-404 {
    padding: 90px 20px 110px;
    text-align: center;
}
