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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: #172033;
    background: #f5f7fb;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ============================================================
   VARIABLES
============================================================ */

:root {

    /* ========================================================
       BRAND
       Azul oficial da empresa: #011d73
    ======================================================== */

    --primary: #011d73;

    --primary-dark: #01175b;

    --primary-darker: #000f3d;

    --primary-light: #123b96;


    /*
     * Accent continua azul, porém mais claro que a cor
     * institucional para botões, links e elementos interativos.
     */

    --accent: #1769e0;

    --accent-hover: #0f57c2;

    --accent-light: #edf4ff;


    /* BACKGROUND */

    --background: #f5f7fb;

    --surface: #ffffff;

    --surface-soft: #f8fafc;


    /* TEXT */

    --text: #172033;

    --text-secondary: #667085;

    --text-muted: #667085;

    --text-light: #98a2b3;


    /* BORDER */

    --border: #e5eaf0;

    --border-dark: #d5dce5;


    /* STATUS */

    --success: #198754;

    --danger: #dc3545;

    --warning: #f59e0b;


    /* SHADOW */

    --shadow-sm:
        0 2px 8px rgba(16, 24, 40, 0.05);

    --shadow-md:
        0 8px 24px rgba(16, 24, 40, 0.08);

    --shadow-lg:
        0 20px 50px rgba(1, 29, 115, 0.12);

    --shadow-xl:
        0 30px 70px rgba(1, 29, 115, 0.16);


    /* BORDER RADIUS */

    --radius-sm: 10px;

    --radius-md: 14px;

    --radius-lg: 20px;

    --radius-xl: 26px;


    /* LAYOUT */

    --container-width: 1240px;


    /* HEADER */

    --header-height: 88px;


    /* ANIMATION */

    --transition:
        all 0.2s ease;
}


/* ============================================================
   GLOBAL ELEMENTS
============================================================ */

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

button,
select {
    cursor: pointer;
}

button {
    border: 0;
}

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

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


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

.container,
.header-container,
.footer-container {
    width: min(calc(100% - 40px),
            var(--container-width));

    margin-inline: auto;
}


/* ============================================================
   HEADER
============================================================ */

.site-header,
.main-header {
    width: 100%;

    min-height: var(--header-height);

    display: flex;
    align-items: center;

    background: var(--primary);
}


/*
 * Suporta tanto .container quanto .header-container.
 * Assim não ficamos dependentes de uma única estrutura
 * no base.html.
 */

.site-header .container,
.site-header .header-container,
.main-header .container,
.main-header .header-container {
    min-height: var(--header-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}


/* ============================================================
   BRAND
============================================================ */

.brand {
    display: flex;
    align-items: center;

    min-width: 0;

    flex-shrink: 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.brand-logo img {
    display: block;

    width: auto;
    height: auto;

    max-width: 220px;
    max-height: 68px;

    object-fit: contain;
}


/* ============================================================
   BRAND PLACEHOLDER
============================================================ */

.brand-placeholder {
    min-width: 125px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 20px;

    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.06);

    border:
        1px solid rgba(255, 255, 255, 0.24);

    border-radius: 10px;

    font-size: 13px;
    font-weight: 750;

    letter-spacing: 1.5px;
}


/* ============================================================
   HEADER ACTIONS
============================================================ */

.header-actions {
    display: flex;
    align-items: center;

    gap: 12px;

    flex-shrink: 0;
}


/* ============================================================
   LOGIN
============================================================ */

.header-login {
    min-height: 44px;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 0 14px;

    color:
        rgba(255, 255, 255, 0.88);

    background: transparent;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 600;

    transition: var(--transition);
}

.header-login:hover {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.08);
}

.header-action-icon {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(255, 255, 255, 0.20);

    border-radius: 50%;
}


/* ============================================================
   MINHA RESERVA
============================================================ */

.header-reservation {
    min-height: 52px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 7px 13px;

    color: var(--primary);

    background: #ffffff;

    border-radius: 12px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.10);

    transition: var(--transition);
}

.header-reservation:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.15);
}


/* ============================================================
   RESERVATION ICON
============================================================ */

.reservation-icon {
    position: relative;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 34px;

    color: var(--primary);

    background: var(--accent-light);

    border-radius: 9px;

    font-size: 15px;
}

.reservation-count {
    position: absolute;

    top: -6px;
    right: -6px;

    min-width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 4px;

    color: #ffffff;

    background: var(--accent);

    border: 2px solid #ffffff;
    border-radius: 20px;

    font-size: 9px;
    font-weight: 750;
}


/* ============================================================
   RESERVATION TEXT
============================================================ */

.reservation-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    line-height: 1.15;
}

.reservation-text small {
    margin-bottom: 3px;

    color: var(--text-light);

    font-size: 9px;
    font-weight: 600;
}

.reservation-text strong {
    color: var(--primary);

    font-size: 12px;
    font-weight: 700;
}

.reservation-arrow {
    margin-left: 3px;

    color: #a6b0bd;

    font-size: 9px;
}


/* ============================================================
   MAIN
============================================================ */

.main-content {
    flex: 1;

    width: 100%;
}


/* ============================================================
   FOOTER
============================================================ */

.main-footer {
    margin-top: auto;

    padding: 30px 0;

    color: #ffffff;

    background: var(--primary);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.footer-brand strong {
    font-size: 12px;
    font-weight: 650;
}

.footer-brand span {
    color:
        rgba(255, 255, 255, 0.62);

    font-size: 10px;
}

.footer-copy {
    color:
        rgba(255, 255, 255, 0.62);

    font-size: 10px;
}


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

[hidden] {
    display: none !important;
}


/* ============================================================
   SCROLLBAR
============================================================ */

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: #eef2f6;
}

::-webkit-scrollbar-thumb {
    background: #c2ccd7;

    border: 2px solid #eef2f6;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aab6c3;
}


/* ============================================================
   SELECTION
============================================================ */

::selection {
    color: #ffffff;

    background: var(--primary);
}


/* ============================================================
   FOCUS
============================================================ */

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline:
        3px solid rgba(1, 29, 115, 0.20);

    outline-offset: 2px;
}


/* ============================================================
   DISABLED
============================================================ */

button:disabled,
input:disabled,
select:disabled {
    cursor: not-allowed;

    opacity: 0.6;
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 768px) {

    :root {
        --header-height: 76px;
    }


    .container,
    .header-container,
    .footer-container {
        width: min(calc(100% - 28px),
                var(--container-width));
    }


    /* LOGO */

    .brand-logo img {
        max-width: 175px;
        max-height: 56px;
    }


    .brand-placeholder {
        min-width: 100px;
        height: 38px;

        padding: 0 14px;
    }


    /* LOGIN */

    .header-login span:last-child {
        display: none;
    }

    .header-login {
        padding: 0;
    }


    /* MINHA RESERVA */

    .reservation-text small {
        display: none;
    }
}


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

@media (max-width: 520px) {

    :root {
        --header-height: 68px;
    }


    .container,
    .header-container,
    .footer-container {
        width: calc(100% - 24px);
    }


    /* LOGO */

    .brand-logo img {
        max-width: 145px;
        max-height: 48px;
    }


    .brand-placeholder {
        min-width: 75px;

        padding: 0 10px;

        font-size: 10px;
    }


    /* HEADER */

    .header-actions {
        gap: 5px;
    }


    .header-action-icon {
        width: 34px;
        height: 34px;
    }


    /* MINHA RESERVA */

    .reservation-text {
        display: none;
    }

    .reservation-arrow {
        display: none;
    }

    .header-reservation {
        min-height: 42px;

        padding: 4px 7px;
    }

    .reservation-icon {
        width: 32px;
        height: 32px;

        flex-basis: 32px;
    }


    /* FOOTER */

    .footer-container {
        flex-direction: column;

        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }
}