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

:root {
    --green: #7fa85b;
    --green-dark: #4f6f38;
    --green-light: #dcebcf;

    --cream: #f4ead8;
    --cream-light: #fffaf1;

    --brown: #3b2418;
    --brown-soft: #684736;

    --text: #30251f;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;

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

    padding: 24px;

    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);

    background:
        linear-gradient(
            rgba(41, 27, 18, 0.48),
            rgba(41, 27, 18, 0.58)
        ),
        url("media/fundo.png") center / cover no-repeat fixed;
}

button {
    font: inherit;
}

/* Language selector */

.language-menu {
    width: 100%;
    max-width: 680px;
    padding: 46px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(255, 250, 241, 0.96),
            rgba(240, 229, 207, 0.94)
        );

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 18px;

    box-shadow:
        0 24px 60px rgba(28, 17, 11, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);

    backdrop-filter: blur(8px);
}

.language-menu.hidden {
    display: none;
}

.restaurant-header {
    margin-bottom: 34px;
}

.restaurant-header h1 {
    margin-bottom: 8px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;

    color: var(--brown);
    letter-spacing: 0.02em;
}

.restaurant-header p {
    color: var(--green-dark);

    font-size: 0.95rem;
    font-weight: 600;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.language-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.language-button {
    min-height: 165px;
    padding: 22px 16px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;

    font-weight: 600;
    color: var(--brown);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.88),
            rgba(224, 235, 211, 0.88)
        );

    border: 2px solid rgba(79, 111, 56, 0.22);
    border-radius: 14px;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(59, 36, 24, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.language-button:hover {
    transform: translateY(-6px);

    border-color: var(--green-dark);

    background:
        linear-gradient(
            145deg,
            #fffdf8,
            var(--green-light)
        );

    box-shadow:
        0 15px 28px rgba(49, 31, 20, 0.22),
        0 0 0 4px rgba(127, 168, 91, 0.12);
}

.language-button:active {
    transform: translateY(-2px);
}

.language-button:focus-visible {
    outline: 3px solid rgba(79, 111, 56, 0.4);
    outline-offset: 4px;
}

.flag {
    font-size: 4.2rem;
    line-height: 1;

    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.15));
}

.language-name {
    font-size: 1.05rem;
    letter-spacing: 0.025em;
}

/* Embedded PDF viewer */

.pdf-section {
    display: none;

    width: min(1200px, 100%);
    height: calc(100vh - 48px);
    min-height: 500px;

    padding: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 250, 241, 0.97),
            rgba(240, 229, 207, 0.95)
        );

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 18px;

    box-shadow:
        0 24px 60px rgba(28, 17, 11, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);

    backdrop-filter: blur(8px);
}

.pdf-section.visible {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pdf-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.close-pdf-button {
    min-height: 42px;
    padding: 10px 18px;

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

    font-weight: 600;

    color: white;
    background-color: var(--green-dark);

    border: none;
    border-radius: 9px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.close-pdf-button:hover {
    transform: translateY(-2px);
    background-color: var(--green);

    box-shadow: 0 8px 18px rgba(48, 76, 34, 0.25);
}

.close-pdf-button:active {
    transform: translateY(0);
}

.close-pdf-button:focus-visible {
    outline: 3px solid rgba(79, 111, 56, 0.4);
    outline-offset: 3px;
}

.pdf-viewer {
    flex: 1;

    width: 100%;
    min-height: 0;

    background-color: white;

    border: none;
    border-radius: 10px;

    box-shadow: 0 10px 28px rgba(28, 17, 11, 0.24);
}

/* Mobile layout */

@media (max-width: 650px) {
    body {
        padding: 12px;
        background-attachment: scroll;
    }

    .language-menu {
        padding: 32px 20px;

        background: transparent;
        border: none;
        box-shadow: none;

        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .restaurant-header {
        margin-bottom: 26px;
    }

    .restaurant-header h1 {
        font-size: 2rem;
    }

    .restaurant-header p {
        font-size: 0.78rem;
        line-height: 1.5;
        letter-spacing: 0.06em;
    }

    .language-options {
        grid-template-columns: 1fr;
    }

    .language-button {
        min-height: 105px;
        flex-direction: row;
    }

    .flag {
        font-size: 3.2rem;
    }

    .pdf-section {
        height: calc(100vh - 24px);
        min-height: 400px;
        padding: 8px;
        border-radius: 12px;
    }

    .close-pdf-button {
        min-height: 38px;
        padding: 8px 12px;
        font-size: 0.88rem;
    }

    .pdf-viewer {
        border-radius: 6px;
    }

    .restaurant-header h1,
    .restaurant-header p {
        color: white;
    }
}