/* ------------------------------------------------------------------ */
/* Fonts — Montserrat variable font, self-hosted (offline-safe kiosk) */
/* ------------------------------------------------------------------ */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/montserrat-latin.woff2') format('woff2');
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
        U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/montserrat-latin-ext.woff2') format('woff2');
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
        U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
        U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ */
/* Design tokens (from Figma: DISPLAY RD-ADP TC SCREEN LIST)           */
/* ------------------------------------------------------------------ */
:root {
    --font-family: 'Montserrat', sans-serif;

    /* Colors */
    --color-bg: #eeeef1;
    --color-nav: #fafafa;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-primary: #8eb440;
    --color-error: #d80000;
    --color-error-soft: #ff4a4a;
    --color-hint-red: #ff6262;
    --color-zone-red: #fc4646;
    --color-ok-green: #42ff43;
    --color-gray-text: #7d7d7d;
    --color-gray-list: #828282;
    --color-gray-disabled: #e2e2e2;
    --color-gray-muted: #bdbdbd;
    --color-gray-date: #c1c1c1;
    --color-peach: #fff1e2;
    --color-text-soft: #555555;

    /* Dark theme (Drive in Assistant + indications footer) */
    --gradient-dark-radial: radial-gradient(
        180% 100% at 50% 0%,
        #34455f 0%,
        #243042 50%,
        #141a24 100%
    );
    --gradient-dark-linear: linear-gradient(90deg, #364b6a 16%, #18202c 100%);

    /* Layout */
    --nav-height: 139px;
    --radius-card: 21px;
    --radius-pill: 100px;
    --radius-back: 12px;
    --shadow-pill: 0 0 8px 6px rgba(0, 0, 0, 0.09);
    --shadow-key: 0 3px 10px rgba(0, 0, 0, 0.12);
}

html {
    height: 100%;
    background-color: var(--color-bg);
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-black);
}

/* Fixed kiosk canvases — each screen declares its design resolution; /js/fit.js
   pins the nav/indications bars full-width at the top/bottom of the viewport
   and uniformly scales the main content to fit the space between them. */
.screen-1920 {
    --design-w: 1920;
    --design-h: 1080;
}

.screen-1280 {
    --design-w: 1280;
    --design-h: 1024;
}

.screen-1080 {
    --design-w: 1080;
    --design-h: 1920;
}

.nav,
.indications {
    flex-shrink: 0;
}

/* Flexible area between the bars; fit.js wraps <main> in it and scales it. */
.stage {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.stage > main {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center;
}

/* Utilities */
.uppercase {
    text-transform: uppercase;
}

.hidden {
    display: none !important;
}

/* ------------------------------------------------------------------ */
/* Navigation bar (logo + language switcher)                           */
/* ------------------------------------------------------------------ */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    padding: 0 47px 0 52px;
    background-color: var(--color-nav);
}

.nav-logo {
    display: flex;
    align-items: flex-end;
    gap: 13px;
}

.nav-logo .logo-icon {
    width: 27px;
    height: 36px;
}

.nav-logo .logo-wordmark {
    width: 165px;
    height: 38px;
}

.lang {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 344px;
    height: 69px;
    padding: 0 35px;
    background-color: var(--color-white);
    border-radius: 42px;
    box-shadow: var(--shadow-pill);
    font-size: 30px;
    font-weight: 500;
}

.lang-btn .lang-label {
    flex: 1;
    text-align: center;
}

.flag {
    width: 48px;
    height: 29px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 344px;
    padding: 8px 0;
    background-color: var(--color-white);
    border-radius: 24px;
    box-shadow: var(--shadow-pill);
    z-index: 10;
}

.lang.open .lang-menu {
    display: block;
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px 35px;
    font-size: 30px;
    font-weight: 500;
}

/* ------------------------------------------------------------------ */
/* Indications footer (max height / weight / width road signs)         */
/* ------------------------------------------------------------------ */
.indications {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 162px;
    height: var(--nav-height);
    background: var(--gradient-dark-linear);
}

.indication {
    display: flex;
    align-items: center;
    gap: 15px;
}

.indication img {
    width: 97px;
    height: 97px;
}

.indication span {
    font-size: 30px;
    font-weight: 600;
    color: var(--color-white);
    white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Shared buttons                                                      */
/* ------------------------------------------------------------------ */
.btn-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 116px;
    padding: 0 54px;
    border-radius: var(--radius-pill);
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 35px;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-pill:disabled {
    background-color: var(--color-gray-disabled);
    cursor: default;
}

.btn-pill img {
    width: 60px;
    height: 52px;
}
