/* ==========================================================
   HCG DESIGN SYSTEM
   Executive Corporate Framework
   Approved Palette: Black / Gold / Gray / White
   ========================================================== */

:root {

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

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

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

    --heading-weight: 600;
    --body-weight: 400;

    /* ==========================
       APPROVED COLOUR SYSTEM
    ========================== */

    --black: #111111;
    --black-soft: #222222;

    --gold: #C6A15B;
    --gold-dark: #9D7A2F;
    --gold-light: #E6D6AD;

    --white: #FFFFFF;

    --gray-50: #F7F7F7;
    --gray-100: #EEEEEE;
    --gray-200: #DDDDDD;
    --gray-300: #CCCCCC;
    --gray-500: #777777;
    --gray-700: #444444;

    --primary-text: var(--black);
    --secondary-text: var(--gray-700);

    --bg-white: var(--white);
    --bg-light: var(--gray-50);
    --bg-gray: var(--gray-100);

    --accent-color: var(--gold);
    --accent-dark: var(--gold-dark);

    --border-color: var(--gray-200);

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

    --container-width: 1280px;
    --content-width: 860px;

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

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

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

    /* ==========================
       COMPONENTS
    ========================== */

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

    --transition: all .25s ease;

    --soft-shadow: 0 2px 12px rgba(17,17,17,.06);
}


/* ==========================================================
   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-size: var(--body-size);
    font-weight: var(--body-weight);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


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

h1,
.hcg-h1 {
    margin: 0 0 18px;
    color: var(--primary-text);
    font-size: var(--h1-size);
    font-weight: var(--heading-weight);
    line-height: 1.2;
    letter-spacing: -.3px;
}

h2,
.hcg-h2 {
    margin: 0 0 16px;
    color: var(--primary-text);
    font-size: var(--h2-size);
    font-weight: var(--heading-weight);
    line-height: 1.25;
}

h3,
.hcg-h3 {
    margin: 0 0 14px;
    color: var(--primary-text);
    font-size: var(--h3-size);
    font-weight: var(--heading-weight);
    line-height: 1.3;
}

h4,
.hcg-h4 {
    margin: 0 0 12px;
    color: var(--primary-text);
    font-size: var(--h4-size);
    font-weight: 600;
    line-height: 1.35;
}

h5,
.hcg-h5 {
    margin: 0 0 10px;
    color: var(--primary-text);
    font-size: var(--h5-size);
    font-weight: 600;
    line-height: 1.4;
}

p {
    max-width: 72ch;
    margin: 0 0 18px;
    color: var(--secondary-text);
    font-size: var(--body-size);
    line-height: 1.7;
}

small {
    color: var(--gray-500);
    font-size: var(--small-size);
}


/* ==========================================================
   SECTION SYSTEM
   ========================================================== */

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 {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 24px;
    box-shadow: var(--soft-shadow);
    transition: var(--transition);
}

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


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

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

    min-height: 46px;
    padding: 11px 22px;

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

    background: var(--gold);
    color: var(--black);

    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;

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

button:hover,
.wp-element-button:hover,
.hcg-btn:hover {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
    transform: translateY(-1px);
}

.hcg-btn-outline {
    background: transparent;
    color: var(--black);
    border: 1px solid var(--black);
}

.hcg-btn-outline:hover {
    background: var(--black);
    color: var(--white);
}


/* ==========================================================
   LINKS
   ========================================================== */

a {
    color: var(--gold-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--black);
}


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

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


/* ==========================================================
   FORMS
   ========================================================== */

input,
select,
textarea {
    width: 100%;
    max-width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--gray-300);
    border-radius: var(--button-radius);
    background: var(--white);
    color: var(--black);
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(198,161,91,.15);
}


/* ==========================================================
   TABLES
   ========================================================== */

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    text-align: left;
}

th {
    background: var(--black);
    color: var(--white);
    font-weight: 600;
}

td {
    background: var(--white);
}


/* ==========================================================
   WORDPRESS CONTENT
   ========================================================== */

.wp-block-image img,
.wp-block-cover img {
    max-width: 100%;
}

.wp-block-button__link {
    border-radius: var(--button-radius);
}


/* ==========================================================
   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: 21px;
        --h4-size: 18px;
        --h5-size: 17px;

        --body-size: 16px;

        --section-padding: 42px;
    }

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

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

    .hcg-card {
        padding: 20px;
    }

    button,
    .wp-element-button,
    .hcg-btn {
        min-height: 44px;
    }
}

@media (max-width: 600px) {

    :root {
        --h1-size: 26px;
        --h2-size: 23px;
        --h3-size: 20px;

        --section-padding: var(--section-padding-mobile);
    }

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

    .hcg-card {
        padding: 18px;
    }

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