/* style_front.css - Layout Final e Responsivo, com Hero Animado, Navbar Fixa, FAQ, Modal etc. */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #f6f6f6;
    color: #333;
}

/* Navbar fixa */
.top-nav {
    position: fixed;
    width: 100%;
    background: #fff;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.brand-logo {
    font-size: 20px;
    color: #0170FE;
    font-weight: bold;
}

.top-nav nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.top-nav nav li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

.top-nav nav li a:hover {
    color: #0170FE;
}

/* Espaço para navbar fixa */
body::before {
    content: "";
    display: block;
    height: 60px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 50vh; 
    min-height: 300px;
    background: linear-gradient(135deg, #111, #0078a6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: radial-gradient(#00cdd7, transparent, #003544);
    animation: rotateBg 15s infinite linear;
    opacity: 0.4;
    z-index: 0;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-section > div {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-section h1 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.hero-section p {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 15px;
}

/* Seções e container */
section {
    padding: 60px 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0,0,0,0.05);
}

.title {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #0078a6;
    font-weight: bold;
}

.subtitle {
    text-align: center;
    font-size: 18px;
    margin: 20px 0 10px;
}

/* Form de busca */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-form label {
    font-weight: bold;
    font-size: 0.95rem;
}

.search-form input[type="text"] {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-form button {
    background: #0170FE;
    color: #fff;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #005ad4;
}

/* Alert e Resultados */
.alert {
    background: #ffd9d9;
    color: #a33;
    border: 1px solid #a33;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 15px;
}

.cards-container {
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px;
}

.result-card {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    flex: 1 1 calc(300px);
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.info-row {
    display: flex;
    margin-bottom: 8px;
}

.info-row strong {
    width: 100px;
    flex-shrink: 0;
    color: #555;
}

/* FAQ */
.faq-section .faq-item {
    margin-bottom: 20px;
}

.faq-question {
    font-weight: bold;
    color: #0170FE;
    margin-bottom: 5px;
}

.faq-answer {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-size: 0.9rem;
}

/* Contato */
.contact-list {
    list-style: none;
    margin-top: 15px;
}

.contact-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-list a {
    color: #0170FE;
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

/* Rodapé */
footer {
    background: #fff;
    margin-top: 40px;
    text-align: center;
    padding: 20px;
}

footer .container {
    background: none;
    box-shadow: none;
}

/* Botão 'Voltar ao Topo' */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0170FE;
    color: #fff;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

#scrollTopBtn.visible {
    opacity: 1;
    visibility: visible;
}

/* Modal de Abrir Chamado */
.modal-container {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 10000;
}

.modal-container.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.4s forwards;
}

@keyframes slideDown {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
}

.ticket-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.ticket-form input,
.ticket-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.ticket-form button {
    background: #0170FE;
    color: #fff;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.ticket-form button:hover {
    background: #005ad4;
}

/* Responsivo */
@media (max-width: 768px) {
    .info-row strong {
        width: 80px;
    }
    .cards-container {
        flex-direction: column;
    }
}
