/* ==========================================================
   HCG DESIGN SYSTEM — STEP 1
   Foundation only: tokens + shared primitives.
   Content, section-specific styling and module behavior are
   intentionally left untouched for the next steps.
========================================================== */

:root {

    /* ======================================================
       TYPOGRAPHY
       Keep these as shared tokens so HCG sections can inherit
       one consistent type hierarchy.
    ====================================================== */

    --h1-size: 30px;
    --h2-size: 26px;
    --h3-size: 22px;
    --h4-size: 19px;
    --h5-size: 17px;

    --body-size: 17px;
    --small-size: 14px;

    --hcg-font-sans: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --hcg-font-display: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* ======================================================
       COLOUR SYSTEM
       Engineering / technology palette.
       Orange is intentionally removed from the shared system;
       section-specific files will be handled separately.
    ====================================================== */

    --primary-text: #102A43;
    --secondary-text: #52657A;

    --accent-color: #0B7C83;
    --accent-dark: #075C63;
    --accent-light: #DDF1F0;

    --brand-navy: #0B2345;
    --brand-navy-deep: #071A33;
    --brand-teal: #0B7C83;
    --brand-lime: #A8C63D;

    --bg-white: #FFFFFF;
    --bg-light: #F6F8FA;
    --bg-soft: #EEF3F6;

    --border-color: #DCE4EA;
    --border-strong: #C8D4DD;

    /* ======================================================
       LAYOUT
    ====================================================== */

    --container-width: 1360px;
    --content-width: 820px;

    /* ======================================================
       SPACING
    ====================================================== */

    --section-padding: 56px;
    --section-padding-mobile: 34px;

    --content-gap: 18px;
    --card-gap: 24px;

    /* ======================================================
       COMPONENTS
       Deliberately restrained radii: engineering/corporate,
       not a rounded SaaS template.
    ====================================================== */

    --card-radius: 6px;
    --button-radius: 3px;

    --transition: all .22s ease;

    --soft-shadow:
        0 1px 2px rgba(11, 35, 69, .04),
        0 8px 24px rgba(11, 35, 69, .06);

    --focus-ring: 0 0 0 3px rgba(11, 124, 131, .16);
}


/* ==========================================================
   GLOBAL RESET
========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--bg-white);
    color: var(--secondary-text);

    font-family: var(--hcg-font-sans);
    font-size: var(--body-size);
    font-weight: 400;
    line-height: 1.65;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}


/* ==========================================================
   TYPOGRAPHY
========================================================== */

h1,
.hcg-h1 {
    margin: 0 0 16px;

    color: var(--primary-text);
    font-family: var(--hcg-font-display);
    font-size: var(--h1-size);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.7px;
}

h2,
.hcg-h2 {
    margin: 0 0 14px;

    color: var(--primary-text);
    font-family: var(--hcg-font-display);
    font-size: var(--h2-size);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.4px;
}

h3,
.hcg-h3 {
    margin: 0 0 12px;

    color: var(--primary-text);
    font-family: var(--hcg-font-display);
    font-size: var(--h3-size);
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

h4,
.hcg-h4 {
    margin: 0 0 10px;

    color: var(--primary-text);
    font-family: var(--hcg-font-display);
    font-size: var(--h4-size);
    font-weight: 650;
    line-height: 1.3;
}

h5,
.hcg-h5 {
    margin: 0 0 8px;

    color: var(--primary-text);
    font-family: var(--hcg-font-display);
    font-size: var(--h5-size);
    font-weight: 600;
    line-height: 1.35;
}

p {
    max-width: 72ch;
    margin: 0 0 18px;

    color: var(--secondary-text);
    font-size: var(--body-size);
    line-height: 1.72;
}

small {
    font-size: var(--small-size);
}

a {
    color: var(--accent-dark);
}

button,
input,
select,
textarea {
    font: inherit;
}


/* ==========================================================
   SECTION SYSTEM
   Shared baseline only. Individual sections may refine this
   in their own CSS files.
========================================================== */

section,
.hcg-section {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}


/* ==========================================================
   CONTAINER SYSTEM
========================================================== */

.hcg-container,
.container,
[class*="container"] {
    width: 100%;
    max-width: var(--container-width);

    margin-left: auto;
    margin-right: auto;

    padding-left: 24px;
    padding-right: 24px;
}


/* ==========================================================
   GRID SPACING
========================================================== */

.row,
.grid {
    gap: var(--card-gap);
}


/* ==========================================================
   CARD SYSTEM
========================================================== */

.hcg-card {
    padding: 22px;

    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);

    box-shadow: var(--soft-shadow);

    transition: var(--transition);
}

.hcg-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}


/* ==========================================================
   BUTTON SYSTEM
========================================================== */

button,
.wp-element-button,
.hcg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 10px 20px;

    border: 1px solid transparent;
    border-radius: var(--button-radius);

    background: var(--brand-teal);
    color: #FFFFFF;

    font-family: var(--hcg-font-sans);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;

    cursor: pointer;
    transition: var(--transition);
}

button:hover,
.wp-element-button:hover,
.hcg-btn:hover {
    background: var(--accent-dark);
    color: #FFFFFF;
    transform: translateY(-1px);
}

button:focus-visible,
.wp-element-button:focus-visible,
.hcg-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.hcg-btn-outline {
    background: transparent;
    color: var(--brand-navy);
    border-color: var(--border-strong);
}

.hcg-btn-outline:hover {
    background: var(--brand-navy);
    border-color: var(--brand-navy);
    color: #FFFFFF;
}


/* ==========================================================
   IMAGES
========================================================== */

img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* ==========================================================
   SPACING UTILITIES
========================================================== */

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 18px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 991px) {

    :root {
        --h1-size: 28px;
        --h2-size: 24px;
        --h3-size: 20px;
        --h4-size: 18px;
        --h5-size: 16px;

        --body-size: 16px;
        --section-padding: var(--section-padding-mobile);
    }

    .hcg-container,
    .container,
    [class*="container"] {
        padding-left: 18px;
        padding-right: 18px;
    }

    p {
        max-width: 100%;
        line-height: 1.62;
    }

    .hcg-card {
        padding: 18px;
    }

    button,
    .wp-element-button,
    .hcg-btn {
        width: auto;
    }
}

@media (max-width: 600px) {
    button,
    .wp-element-button,
    .hcg-btn {
        width: 100%;
    }
}
