/* public/css/style.css */

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header e Navegação */
header {
    background: #2c3e50; /* Azul escuro */
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e74c3c; /* Vermelho vibrante */
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #e74c3c;
}

/* Seções Principais */
main {
    padding: 20px 0;
}

section {
    padding: 60px 0;
    text-align: center;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

section:nth-of-type(even) {
    background-color: #ecf0f1; /* Cinza claro */
}

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

h1 {
    font-size: 3rem;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    color: #34495e;
    margin-bottom: 15px;
}

p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Seção Hero */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    border-radius: 0; /* Remove border-radius para ocupar a largura total */
    box-shadow: none;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.hero button {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hero button:hover {
    background: #c0392b;
}

/* Seção de Funcionalidades */
.features {
    padding-top: 80px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto;
}

.feature-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1rem;
    color: #666;
}

/* Seções de Mapa (Combustível e Restaurantes) */
.map-section {
    padding-top: 80px;
}

.map-section #fuel-map,
.map-section #restaurant-map {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#fuel-prices-display,
#restaurant-details-display {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin: 20px auto;
    text-align: left;
    max-width: 800px;
}

#fuel-prices-display h3, #restaurant-details-display h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

#fuel-prices-display h4 {
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

#fuel-prices-display ul {
    list-style: none;
    padding-left: 0;
}

#fuel-prices-display ul li {
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

#fuel-prices-display ul li:last-child {
    border-bottom: none;
}

#fuel-prices-display img,
#restaurant-details-display img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-top: 15px;
}

#fuel-prices-display button,
#restaurant-details-display button {
    background: #28a745; /* Verde para navegação */
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s ease;
}

#fuel-prices-display button:hover,
#restaurant-details-display button:hover {
    background: #218838;
}

/* Formulário de Contato */
.contact-form {
    max-width: 700px;
    margin: 40px auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: left;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 30px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #34495e;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: calc(100% - 20px);
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button[type="submit"] {
    display: block;
    width: 100%;
    background: #3498db; /* Azul para enviar */
    color: #fff;
    border: none;
    padding: 15px 20px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button[type="submit"]:hover {
    background: #2980b9;
}

/* Rodapé */
footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

/* Mensagens Flash */
.flash-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid transparent;
}

.flash-message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.flash-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Responsividade Básica */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }

    header nav ul li {
        margin: 10px 0;
        text-align: center;
        width: 100%;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    p {
        font-size: 0.95rem;
    }
}

/* Estilo para links de política/termos */
.policy-content {
    padding: 40px;
    max-width: 900px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: left;
}

.policy-content h1, .policy-content h2 {
    text-align: left;
    color: #2c3e50;
    margin-bottom: 20px;
}

.policy-content h2 {
    margin-top: 30px;
    font-size: 1.8rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.policy-content p, .policy-content ul {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.policy-content ul {
    margin-left: 25px;
    list-style-type: disc;
}