/* VALOR Energies KYC portal - based on the guideline "Design of the KYC portal" (draft November 2026).
   Harbour for text, white pages, Jade for the primary action, square buttons/inputs, 10px radius on table frames. */

@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/nunito-sans-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/nunito-sans-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/nunito-sans-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/nunito-sans-latin-700-normal.woff2') format('woff2');
}

:root {
    --valor-harbour: #14425E;
    --valor-white: #FFFFFF;
    --valor-jade: #0C5442;
    --valor-jade-dark: #073E30;
    --valor-jade-accent: #16876B;
    --valor-jade-light: #B5D2A6;
    --valor-muted: #A37C6B;
    --valor-rule: rgba(20, 66, 94, 0.2);
    --valor-control-border: rgba(20, 66, 94, 0.6);
    --valor-hover: rgba(20, 66, 94, 0.06);
    --primary: #0C5442;
    --font-family: 'Avenir Next', 'Nunito Sans', Arial, sans-serif;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px; /* Margin bottom by footer height */
    background: var(--valor-white);
    color: var(--valor-harbour);
    font-family: var(--font-family);
    font-size: 17px;
    line-height: 1.55;
    text-align: left;
}

b, strong {
    font-weight: 700;
}

h1, .heading-large {
    color: var(--valor-harbour);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
}

h2 {
    color: var(--valor-harbour);
    font-size: 28px;
    font-weight: 600;
}

@media (min-width: 768px) {
    h1, .heading-large {
        font-size: 48px;
    }
}

a {
    color: var(--valor-jade);
}

    a:hover {
        color: var(--valor-jade-dark);
    }

:focus-visible {
    outline: 2px solid var(--valor-jade);
    outline-offset: 2px;
}

/* Header: full logo on the left on white */
.header {
    background: var(--valor-white);
    z-index: 10;
    border-bottom: 1px solid var(--valor-rule);
}

.logo, .logo img {
    max-width: 100%;
    max-height: 100%;
}

@media (min-width: 768px) {
    .logo img {
        max-height: 32px;
    }
}

.language-switch .form-control {
    border: 1px solid var(--valor-control-border);
    border-radius: 0;
    color: var(--valor-harbour);
}

.support-button {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border: 1px solid var(--valor-control-border);
    border-radius: 0;
    background-color: var(--valor-white);
    color: var(--valor-harbour);
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 500;
    font-size: 17px;
}

    .support-button img {
        margin-right: 10px;
    }

    .support-button:hover {
        background-color: var(--valor-jade);
        color: var(--valor-white);
        text-decoration: none;
    }

@media (prefers-reduced-motion: reduce) {
    .support-button {
        transition: none;
    }
}

/* Footer: calm dark Jade deep surface with white text */
footer {
    background: linear-gradient(to top right, #073E30 0%, #0C5442 64%, #3B6A53 100%);
    color: var(--valor-white);
    padding: 5rem 0;
}

    footer a {
        color: var(--valor-white);
        text-decoration: none;
    }

        footer a[href]:hover {
            color: var(--valor-jade-light);
            text-decoration: underline;
        }

    footer :focus-visible {
        outline-color: var(--valor-white);
    }

/* SurveyJS */
.sd-root-modern {
    --sjs-font-size: 17px;
}

.sd-page__title,
.sd-page__title .sv-title-actions__title {
    color: var(--valor-harbour);
    font-size: 28px;
    font-weight: 600;
}

.sd-page .sd-page__title {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.sv-title-actions .sd-action-bar {
    margin-top: 0;
}

.sd-action-bar {
    margin-top: 5px;
    margin-left: auto; /*Align right*/
}

/* Input fields are square with a border that reaches 3:1 contrast */
.sd-item__decorator {
    box-shadow: inset 0 0 0 1px var(--valor-control-border);
}

.sd-input,
.sd-dropdown {
    border: 1px solid var(--valor-control-border);
    border-radius: 0;
    background: var(--valor-white);
    box-shadow: none;
}

/* One primary action per screen in Jade, all other buttons are outlined */
.sd-btn {
    border: 1px solid var(--valor-control-border);
    border-radius: 0;
    background: var(--valor-white);
    box-shadow: none;
    color: var(--valor-harbour);
    font-weight: 600;
    margin-left: 2px;
}

    .sd-btn:hover {
        background-color: var(--valor-hover);
        color: var(--valor-harbour);
    }

.sd-btn--action,
.sd-root-modern .sd-body__navigation .sd-btn.sd-navigation__next-btn,
.sd-root-modern .sd-body__navigation .sd-btn.sd-navigation__complete-btn,
.sd-root-modern .sd-body__navigation .sd-btn.sd-navigation__start-btn {
    border-color: var(--valor-jade);
    background: var(--valor-jade);
    color: var(--valor-white);
}

    .sd-btn--action:hover,
    .sd-root-modern .sd-body__navigation .sd-btn.sd-navigation__next-btn:hover,
    .sd-root-modern .sd-body__navigation .sd-btn.sd-navigation__complete-btn:hover,
    .sd-root-modern .sd-body__navigation .sd-btn.sd-navigation__start-btn:hover {
        border-color: var(--valor-jade-dark);
        background-color: var(--valor-jade-dark);
        color: var(--valor-white);
    }

/* Accents without text on them use the lighter Jade */
.sd-progress {
    background-color: var(--valor-rule);
}

.sd-progress__bar {
    background-color: var(--valor-jade-accent);
}

/* Frames around table questions have 10px rounded corners and a 1px rule */
.sd-element--with-frame {
    border-color: var(--valor-rule);
    border-radius: 10px;
}
