:root {
    --bg: #07121b;
    --panel: #0d1d29;
    --panel-2: #132838;
    --line: rgba(116, 184, 215, 0.18);
    --line-strong: rgba(173, 209, 224, 0.36);
    --text: #f4f1e8;
    --muted-white-text: #c2c2c2;
    --muted: #a7bdc4;
    --amber: #c7a253;
    --amber-hover: #d8b466;
    --danger: #ff5f4f;
    --section-eyebrow-size: clamp(1.15rem, 1.05vw, 1.6rem);
    --section-heading-size: clamp(3.25rem, 4.15vw, 5.35rem);
    --section-copy-size: clamp(1.18rem, 1.2vw, 1.46rem);
    --btn-text-dark: #07121b;
    --btn-height: 56px;
    --btn-pad-x: 28px;
    --btn-fs: 1rem;
    --btn-ls: 0.18em;
    --btn-radius: 6px;
    --link: #65d8f5;
    --link-hover: #8be7ff;
    --paragraph-line-height: 1.5;
    --section-header-subtext-colour: rgba(244, 241, 232, 0.78);
    --contact-font-size: 1.75rem;
    --page-content-x-padding: clamp(22px, calc(var(--public-layout-vw, 1vw) * 6), 92px)
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 110px;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Raleway, Helvetica, Arial, sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
p,
dl {
    margin-top: 0;
}

h1 {
    /* max-width: 820px; */
    margin-bottom: 30px;
    font-size: clamp(3.35rem, calc(var(--public-layout-vw, 1vw) * 4), 6rem);
    line-height: 1.06;
    font-weight: 950;
    text-transform: uppercase;
    white-space: normal;
}

h2 {
    margin-bottom: 0;
    font-size: var(--section-heading-size);
    line-height: 0.92;
    font-weight: 950;
    text-transform: uppercase;
}

p {
    font-size: clamp(
        1.5rem,
        calc(var(--public-layout-vw, 1vw) * 1.2),
        2.5rem
    ) !important;
    line-height: var(--paragraph-line-height);
}

input,
textarea {
    color: white;
}

.btn,
.btn-primary-amber {
    display: inline-flex;
    min-height: var(--btn-height);
    align-items: center;
    justify-content: center;
    padding: 0 var(--btn-pad-x);
    border: 1px solid var(--line-strong);
    border-radius: var(--btn-radius);
    font-size: var(--btn-fs);
    font-weight: 950;
    letter-spacing: var(--btn-ls);
    line-height: 1;
    text-transform: uppercase;
}

.btn-primary,
.btn-primary-amber {
    border-color: var(--amber);
    background: var(--amber);
    color: var(--btn-text-dark);
}

.btn-primary:hover,
.btn-primary.btn:focus,
.btn-primary-amber:hover,
.btn-primary-amber:focus {
    border-color: var(--amber-hover);
    background: var(--amber-hover);
    color: var(--btn-text-dark);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.btn-secondary:hover,
.btn-secondary.btn:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--amber);
}

.btn:hover,
.btn:focus,
.btn-primary-amber:hover {
    transform: translateY(-1px);
}

/*-------------------------------
    Brand Logo
 --------------------------------*/

.brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.brand-logo {
    display: block;
    width: 19rem;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.68));
}

/*-------------------------------
    Custom Bootstrap Icons Sizes
 --------------------------------*/

.icon-xlarge {
    font-size: 6rem;
}

.icon-large {
    font-size: 4rem;
}

.icon-medium {
    font-size: 3rem;
}

.icon-small {
    font-size: 2rem;
}

/*-------------------------------
    Custom Bootstrap Icons Colours
 --------------------------------*/

.icon-amber {
    color: var(--amber);
}

/*-------------------------------
    Custom CakePHP Message CSS
 --------------------------------*/

.message {
    position: relative;
    z-index: 12;
    width: min(1040px, calc(100% - 36px));
    margin: 130px auto -82px;
    padding: 16px 18px;
    border: 1px solid var(--line-strong);
    background: rgba(13, 29, 41, 0.96);
    box-shadow: 0 18px 44px rgba(2, 10, 16, 0.32);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    line-height: 1.45;
    text-transform: uppercase;
}

.message::before {
    content: "Notice";
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.32em;
}

.message.success {
    border-color: rgba(199, 162, 83, 0.72);
    background: linear-gradient(
        135deg,
        rgba(28, 51, 46, 0.98),
        rgba(13, 29, 41, 0.96)
    );
}

.message.success::before {
    content: "Success";
    color: var(--amber);
}

.message.error {
    border-color: rgba(255, 95, 79, 0.72);
    background: linear-gradient(
        135deg,
        rgba(62, 27, 25, 0.98),
        rgba(13, 29, 41, 0.96)
    );
}

.message.error::before {
    content: "Action Required";
    color: var(--danger);
}

.message.warning::before {
    content: "Check";
    color: var(--amber);
}

.message.hidden {
    display: none;
}

/*-------------------------------
    Section Header & Eyebrows
 --------------------------------*/
.section-code,
.eyebrow {
    margin: 0;
    font-weight: 900;
    text-transform: uppercase;
}

.section-code {
    margin-bottom: 24px;
    color: rgba(244, 241, 232, 0.72);
    font-size: clamp(1.25rem, calc(var(--public-layout-vw, 1vw) * 1.3), 1.8rem);
    letter-spacing: 0.62em;
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--amber);
    font-size: var(--section-eyebrow-size);
    font-weight: 950;
    letter-spacing: 0.32em;
    line-height: 1.1;
}

.section-heading {
    width: 100%;
    max-width: 1600px;
    position: relative;
    z-index: 1;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns:
        minmax(180px, calc(var(--public-layout-vw, 1vw) * 32))
        minmax(0, 1fr);
    gap: 24px;
    align-items: end;
    margin-bottom: clamp(34px, calc(var(--public-layout-vw, 1vw) * 5), 68px);
}

.section-heading .eyebrow {
    margin-bottom: 0;
}

.section-heading h2 {
    justify-self: stretch;
    min-width: 0;
    max-width: 100%;
    text-align: right;
    overflow-wrap: normal;
    word-break: normal;
    white-space: normal;
    hyphens: none;
}

/*-------------------------------
    Back Track Buttons
 --------------------------------*/
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--link);
    font-size: 1.3rem;
    font-weight: 750;
}

.back-link:hover,
.back-link:focus {
    color: var(--link-hover);
}

/*-------------------------------
    Global Buttons
 --------------------------------*/
.btn-primary-amber {
    min-width: 160px;
    min-height: 48px;
    max-width: fit-content;
    margin: 0;
    border: 1px solid rgba(237, 199, 107, 0.78);
    border-radius: 6px;
    background: linear-gradient(180deg, #d6b35f, var(--amber));
    color: var(--btn-text-dark);
    font-size: 1.04rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 14px 34px rgba(199, 162, 83, 0.2);
}

.btn-primary-amber:hover,
.btn-primary-amber:focus {
    border-color: #f3d586;
    background: #f3d586;
    color: var(--btn-text-dark);
}

@media (max-width: 1180px) {
    :root {
        --section-eyebrow-size: clamp(0.9rem, 1.8vw, 1.3rem);
        --section-heading-size: clamp(2.7rem, 5.4vw, 3.55rem);
        --section-copy-size: clamp(1rem, 1.8vw, 1.18rem);
    }

    .section-heading {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: var(--section-heading-size);
    }
}

@media (max-width: 768px) {
    .section-heading {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-heading h2 {
        text-align: left;
    }
}

@media (max-width: 620px) {
    :root {
        --section-eyebrow-size: 1rem;
        --section-heading-size: clamp(2.18rem, 10.5vw, 3.4rem);
        --section-copy-size: 1rem;
    }

    .brand-logo {
        width: clamp(8.4rem, 35vw, 10.8rem);
    }

    .section-code {
        font-size: 1rem;
        line-height: 1.45;
        letter-spacing: 0.42em;
    }

    .eyebrow {
        letter-spacing: 0.24em;
    }

    .section-heading h2 {
        font-size: var(--section-heading-size);
    }

    h1 {
        max-width: 100%;
        font-size: clamp(2.05rem, 8.5vw, 2.72rem);
        line-height: 1.05;
    }

    .btn {
        width: 100%;
        padding: 0 16px;
        font-size: 1rem;
        letter-spacing: 0.2em;
    }
}
