/* ==============================
   Reset básico e tipografia
   ============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333333;
    line-height: 1.6;
}

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

h1 {
    font-size: 2rem;
    margin-top: 20px;
}

h2 {
    font-size: 1.5rem;
    margin-top: 20px;
}

h3 {
    font-size: 1.2rem;
    margin-top: 15px;
}

/* ==============================
   Navbar
   ============================== */
nav {
    background-color: #2c3e50;
    padding: 15px 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #e67e22;
}

/* ==============================
   Container principal
   ============================== */
.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ==============================
   Inputs e selects
   ============================== */
input[type="number"], select {
    width: 100%;
    padding: 12px;
    margin: 8px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

input[type="number"]:focus, select:focus {
    border-color: #e67e22;
    outline: none;
    box-shadow: 0 0 5px rgba(230, 126, 34, 0.5);
}

/* ==============================
   Botões
   ============================== */
button {
    background-color: #e67e22;
    color: #fff;
    padding: 12px 25px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
}

button:hover {
    background-color: #d35400;
    transform: scale(1.05);
}

/* ==============================
   Resultados
   ============================== */
#resultado, #tdee {
    background-color: #ecf0f1;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    color: #2c3e50;
}

/* ==============================
   Seções / Cards explicativos
   ============================== */
.container p {
    margin-bottom: 15px;
}

.container ul {
    margin: 10px 0 15px 20px;
    list-style-type: disc;
}

.container ul li {
    margin-bottom: 8px;
}

/* ==============================
   FAQ
   ============================== */
h3 {
    margin-top: 12px;
    color: #e67e22;
}

/* ==============================
   Responsividade
   ============================== */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 10px;
    }

    .container {
        margin: 15px;
        padding: 15px;
    }

    button {
        width: 100%;
    }
}

.home-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.home-buttons .btn-link {
    display: inline-block;
    background-color: #e67e22;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
}

.home-buttons .btn-link:hover {
    background-color: #d35400;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .home-buttons {
        flex-direction: column;
        gap: 15px;
    }
}
