:root {
    --primary-color: #D9A477; /* Marrom Dourado Chamativo */
    --accent-color: #88451f; /* Variação do marrom */
    --page-bg: #1c1c1c; /* Fundo escuro (quase preto) */
    --card-bg: #2a2a2a; /* Fundo para cards e seções */
    --text-color: #f0f0f0; /* Texto claro */
    --text-color-muted: #a0a0a0; /* Texto secundário */
    --font-primary: 'Lato', sans-serif;
    --font-logo: 'Lobster', cursive;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    --border-radius: 12px;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--page-bg);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/background.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 2rem 1rem; /* Padding reduzido para mobile */
    text-align: center;
    border-bottom: 5px solid var(--primary-color);
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0; /* Garante que não haja margens inesperadas */
}

/* Keyframes para o efeito de fogo/brasa */
@keyframes fire-glow {
    0%, 100% {
        box-shadow: 0 0 15px 5px rgba(255, 165, 0, 0.5), 0 0 25px 10px rgba(255, 69, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 8px rgba(255, 165, 0, 0.7), 0 0 35px 15px rgba(255, 69, 0, 0.6);
    }
}

/* Keyframes para o efeito de fumaça */
@keyframes smoke-rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }
    100% {
        transform: translateY(-40px) scale(1.5);
        opacity: 0;
    }
}

.logo-icon {
    height: 70px; /* Logo maior */
    width: 70px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    flex-shrink: 0;
    position: relative; /* Necessário para os pseudo-elementos */
    animation: fire-glow 3s infinite ease-in-out;
}

/* Efeito de fumaça */
.logo-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 80%;
    width: 50%;
    height: 60%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.15), transparent);
    border-radius: 50%;
    transform: translateX(-50%);
    filter: blur(5px);
    animation: smoke-rise 5s infinite linear;
    z-index: -1;
}

header .logo span {
    font-family: var(--font-logo);
    font-size: 2.8rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-animation 5s ease infinite;
    text-shadow: none;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-link:hover {
    background-color: #25D366;
    transform: scale(1.05);
}

.price-sidebar {
    background: var(--card-bg);
    padding: 1.5rem;
    margin: 1rem auto;
    width: 95%;
    max-width: 300px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.price-sidebar h2 {
    color: var(--primary-color);
    border-bottom: 2px solid #444;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.price-sidebar ul {
    list-style: none;
}

.price-sidebar li {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0.5rem;
    font-weight: bold;
    border-bottom: 1px solid #444;
}

.price-sidebar li:last-child {
    border-bottom: none;
}

main {
    padding: 2rem 0;
}

#menu-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem; /* Fonte menor para mobile */
}

#order-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    border: 1px solid #444;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.form-section:hover {
    border-color: var(--primary-color);
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Espaçamento entre o título e o campo */
    margin-bottom: 1rem; /* Espaçamento entre os campos */
}

.form-group label {
    font-weight: bold;
    color: var(--text-color-muted);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #555;
    background-color: #333;
    color: var(--text-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder {
    color: #888;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(217, 164, 119, 0.3);
}

#menu-items .item, #size-options .size-option, #payment-options .payment-option {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    background-color: #333;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
    border: 2px solid #555;
}

#menu-items .item:hover, #size-options .size-option:hover, #payment-options .payment-option:hover {
    transform: translateY(-2px);
    background-color: #444;
}

input[type="checkbox"]:checked ~ label, input[type="radio"]:checked ~ label {
    color: var(--primary-color);
    font-weight: bold;
}

input[type="radio"]:checked + .size-option, input[type="radio"]:checked + .payment-option {
    border-color: var(--primary-color);
    background-color: #3a3a3a;
}

label.item, label.size-option, label.payment-option {
    width: 100%;
}

#menu-items .item input, #size-options .size-option input, #payment-options .payment-option input {
    margin-right: 15px;
    transform: scale(1.2);
}

#change-section, #pix-section {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #333;
    border-radius: 8px;
    border: 1px dashed var(--primary-color);
}

#change-section input {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #444;
    color: var(--text-color);
}

#change-value {
    margin-top: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

#copy-pix-btn {
    background-color: var(--primary-color);
    color: #1c1c1c;
    font-weight: bold;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#copy-pix-btn:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 1rem;
    margin-top: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: #1c1c1c;
    border: none;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(109, 76, 65, 0.4);
}

#confirmation-message {
    text-align: center;
    margin-top: 1rem;
    padding: 1.5rem;
    background-color: #2e7d32;
    color: #ffffff;
    border: 1px solid #388e3c;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: bold;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#confirmation-message:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none;
}

footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    background: #111;
    color: var(--text-color-muted);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color);
}

/* Estilo para o link 'secreto' do admin no rodapé */
#admin-link {
    text-decoration: none;
    color: inherit; /* Herda a cor do texto do rodapé */
    transition: color 0.3s ease;
}

#admin-link:hover {
    color: #fff; /* Muda a cor ao passar o mouse para dar um feedback */
}

/* Responsividade - Layout para telas maiores (Desktop) */
@media (min-width: 1024px) {
    body {
        display: grid;
        grid-template-columns: 340px 1fr;
        grid-template-rows: auto 1fr auto;
        grid-template-areas:
            "header header"
            "sidebar main"
            "footer footer";
        gap: 2rem;
        padding: 1rem;
    }

    header {
        grid-area: header;
        padding: 4rem 0; /* Restaura o padding maior */
    }

    header .logo span {
        font-size: 4rem;
    }

    .logo-icon {
        height: 90px; /* Logo maior no desktop */
        width: 90px;
    }

    #menu-section h2 {
        font-size: 2.5rem; /* Restaura a fonte maior */
    }

    .price-sidebar {
        grid-area: sidebar;
        margin: 1rem 0 0 0;
        max-width: none;
        height: fit-content;
    }

    main {
        grid-area: main;
        padding: 1rem 0 0 0;
    }

    footer {
        grid-area: footer;
    }

    .container {
        margin: 0 auto;
        padding: 0;
    }
}
