/* --- VARIÁVEIS E RESET --- */
:root {
    --primary-color: #005b96; 
    --primary-light: #0370b5;
    --secondary-color: #00b894; 
    --accent-color: #fab1a0; 
    --text-dark: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --bg-light: #f4f7f6;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* COMPORTAMENTO DE SCROLL SUAVE ADICIONADO AQUI */
html {
    scroll-behavior: smooth; /* Faz a animação de rolagem suave */
    scroll-padding-top: 80px; /* Compensa a altura do header fixo para não cobrir o conteúdo */
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- UTILITÁRIOS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,91,150,0.3);
}

.btn-success {
    background-color: var(--secondary-color);
    color: var(--white);
}
.btn-success:hover {
    background-color: #019e7f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,184,148,0.4);
}

.section-padding { padding: 80px 0; }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- HEADER & NAV --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    transition: var(--transition);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:not(.login-btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:not(.login-btn):hover::after { width: 100%; }

/* Login Form no Header */
.header-login-form {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #f0f2f5;
    padding: 5px 15px;
    border-radius: 30px;
}

.header-login-form input {
    border: none;
    background: transparent;
    padding: 8px;
    font-size: 0.85rem;
    width: 120px;
    outline: none;
}

.header-login-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}
.header-login-form button:hover { background: var(--primary-light); }

.mobile-toggle { display: none; cursor: pointer; font-size: 1.5rem; color: var(--primary-color); }

/* --- HERO SLIDER --- */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active { opacity: 1; }

.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,91,150,0.8), rgba(0,0,0,0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    color: var(--white);
    margin-left: 10%; 
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s forwards 0.5s;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s forwards 0.7s;
}

.hero-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    opacity: 0;
    animation: slideIn 0.8s forwards 0.9s;
}

.hero-tag {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
}

.hero-btn-group {
    opacity: 0;
    animation: fadeIn 1s forwards 1.2s;
}

@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn { to { opacity: 1; } }

/* --- CARDS (EQUIPE & SERVIÇOS) --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 20px;
    border: 1px solid #eee;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,91,150,0.15);
}

.img-wrapper {
    height: 250px;
    overflow: hidden;
    margin-bottom: 20px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .img-wrapper img {
    transform: scale(1.1);
}

.team-card h3 { font-size: 1.3rem; margin-bottom: 5px; }
.team-card p { color: var(--text-light); padding: 0 15px; font-size: 0.9rem; }
.role-tag {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

/* --- MAPA & CONTATO --- */
.location-section {
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contact-info-box {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.map-frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
}

/* --- FOOTER --- */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* --- BOTÃO WHATSAPP FLUTUANTE --- */
.fab-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.fab-whatsapp:hover {
    transform: scale(1.1);
    background-color: #1ebc57;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}


/* --- ESTILOS ADICIONAIS DO PROJETO ANTERIOR --- */
.login-container {
    max-width: 400px;
    margin: 120px auto;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.form-group input[type="file"] {
    padding: 5px;
}

/* --- OFERTAS TABLE --- */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: var(--shadow);
}

.responsive-table th, 
.responsive-table td {
    padding: 12px 15px;
    text-align: left;
}

.responsive-table thead tr {
    background-color: var(--primary-color);
    color: white;
}

.responsive-table tbody tr {
    border-bottom: 1px solid #dddddd;
    transition: background-color 0.2s;
}

.responsive-table tbody tr:hover {
    background-color: var(--bg-light);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }

    /* --- Tabela de Ofertas Responsiva --- */
    .table-responsive {
        overflow-x: hidden; /* Remove a barra de rolagem horizontal */
    }

    .responsive-table {
        box-shadow: none;
    }

    .responsive-table thead {
        display: none; /* Oculta o cabeçalho em telas pequenas */
    }

    .responsive-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: var(--shadow);
    }
    
    .responsive-table tbody tr {
        border-bottom: none;
    }

    .responsive-table td {
        display: block;
        text-align: right;
        padding: 12px 15px 12px 50%; /* Deixa espaço para o label */
        position: relative;
        border-bottom: 1px solid #eee;
    }

    .responsive-table td:last-child {
        border-bottom: none;
    }

    .responsive-table td::before {
        content: attr(data-label); /* Pega o texto do atributo data-label */
        position: absolute;
        left: 15px;
        width: calc(50% - 30px); /* Metade do espaço menos o padding */
        text-align: left;
        font-weight: bold;
        color: var(--primary-color);
    }

    .responsive-table td[data-label="Ação"] { padding: 15px; text-align: center; }
    .responsive-table td[data-label="Ação"]::before { display: none; }
    .responsive-table td[data-label="Ação"] .btn { width: 100%; }
    
    .nav-links {
        position: absolute;
        top: 70px; /* Ajuste a altura do header */
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); 
        transition: all 0.4s ease-in-out;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); 
    }

    .header-login-form {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        background: transparent;
        padding: 0;
    }
    .header-login-form input { width: 100%; border-bottom: 1px solid #ddd; border-radius: 0;}
    .header-login-form button { width: 100%; margin-top: 10px;}

    .hero-content { margin-left: 20px; margin-right: 20px; text-align: center;}
    .hero-features { justify-content: center; }
    .section-title { font-size: 2rem; }
}

/* --- Admin Layout --- */
.admin-header {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 15px 0;
}
.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-header .logo a {
    color: var(--white);
}
.admin-header .nav-links a {
    color: var(--white);
    font-weight: 400;
}
.admin-header .nav-links a:hover {
    color: var(--secondary-color);
}
main.admin-content {
    padding-top: 80px; /* Espaço para o header */
}

/* Se você já usa Flexbox em .team-grid */
.team-grid2 {
    display: flex;
    flex-wrap: wrap; /* Permite quebrar linha */
    justify-content: space-between; /* Espaçamento entre os cards */
    gap: 30px; /* Espaço entre as linhas */
}

.team-card {
    /* Ocupa pouco menos de 50% da largura para caber dois lado a lado */
    flex: 0 0 calc(50% - 15px); /* Subtrai metade do gap */
    margin-bottom: 20px; /* Margem extra entre as linhas */
}

/* Em telas menores (mobile), força 1 por linha */
@media (max-width: 768px) {
    .team-card {
        flex: 0 0 100%;
    }
}

/* --- MODAL --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
    backdrop-filter: blur(5px);
}

.modal-on-top {
    z-index: 2001; /* Garante que este modal fique sobre os outros */
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 0;
    border: 1px solid #888;
    width: 90%; 
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    position: relative;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from { top: -100px; opacity: 0; }
    to { top: 0; opacity: 1; }
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.modal-header,
.modal-body,
.modal-footer {
    padding: 20px 30px;
}

.modal-header {
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    text-align: center;
    margin-bottom: 0;
    font-size: 1.5rem;
}

.modal-header h2 i {
    margin-right: 10px;
}

.modal-body p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 20px;
}

.modal-body h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-body ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.modal-body ul li {
    margin-bottom: 5px;
    color: var(--text-light);
}

.modal-body-scrollable {
    max-height: 60vh; /* Altura máxima antes de a rolagem aparecer */
    overflow-y: auto; /* Adiciona rolagem vertical quando necessário */
    text-align: left; /* Alinha o texto à esquerda para melhor legibilidade */
}

.modal-body-scrollable p, .modal-body-scrollable ul {
    text-align: left;
}

.modal-body form .btn {
    width: 100%;
    margin-top: 20px;
}

.form-group .checkbox-label {
    display: inline-block;
    font-weight: normal;
    color: var(--text-light);
    margin-left: 5px;
}

.form-group .terms-link {
    font-size: 0.9rem;
    color: var(--primary-light);
    text-decoration: underline;
    margin-left: 5px;
}

.form-group .terms-link:hover {
    color: var(--secondary-color);
}

.modal-footer {
    background-color: var(--bg-light);
    text-align: center;
    border-top: 1px solid #eee;
    border-radius: 0 0 15px 15px;
    font-size: 0.9rem;
    padding-top: 15px;
    padding-bottom: 15px;
}

.modal-footer p {
    margin: 0;
}

.modal-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* --- DROPDOWN MENU --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
}

.dropdown-content a {
    color: black !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {background-color: #f1f1f1;}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Filtros da Tabela */
.filter-input {
    width: 100%;
    padding: 5px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
}