/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --vinho: #4A0E14;
    --vinho-hover: #3a0b10;
    --cinza-grafite: #1E1E1E;
    --cinza-claro: #F5F5F5;
    --branco: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--cinza-grafite);
    background: var(--branco);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--cinza-grafite);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    line-height: 1.7;
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border: none;
    background: none;
    transition: all 0.3s ease;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Buttons */
.btn-primary {
    padding: 0.875rem 2rem;
    background: var(--vinho);
    color: white;
    border-radius: 2px;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--vinho-hover);
}

.btn-secondary {
    padding: 0.875rem 2rem;
    border: 2px solid var(--vinho);
    color: var(--vinho);
    border-radius: 2px;
    font-size: 1rem;
    font-weight: 500;
}

.btn-secondary:hover {
    background: var(--vinho);
    color: white;
}

.btn-primary-small {
    padding: 0.5rem 1rem;
    background: var(--vinho);
    color: white;
    border-radius: 2px;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-secondary-small {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    color: var(--cinza-grafite);
    border-radius: 2px;
    font-size: 0.875rem;
    background: white;
}

.btn-outline-small {
    padding: 0.5rem 1rem;
    border: 2px solid var(--vinho);
    color: var(--vinho);
    border-radius: 2px;
    font-size: 0.875rem;
    background: transparent;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    background: transparent;
}

.logo img{
    width: 100%;
    max-width: 200px;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--vinho);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
}

.logo-text {
    display: none;
}

@media (min-width: 640px) {
    .logo-text {
        display: block;
    }
}

.logo-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--vinho);
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #666;
}

/* Navigation */
.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-dropdown,
.nav-dropdown-mobile {
    position: relative;
}

.nav-dropdown summary,
.nav-dropdown-mobile summary {
    all: unset;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.nav-dropdown summary {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-dropdown-mobile summary {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
}

.nav-dropdown summary::marker,
.nav-dropdown-mobile summary::marker {
    display: none;
}

.nav-dropdown summary:hover,
.nav-dropdown-mobile summary:hover,
.nav-link:hover,
.nav-link.active {
    color: var(--vinho);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
    padding: 0.5rem 0;
    display: none;
    z-index: 40;
}

.nav-dropdown[open] .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-link,
.nav-dropdown-menu-mobile .nav-dropdown-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    transition: background 0.2s, color 0.2s;
}

.nav-dropdown-link:hover,
.nav-dropdown-menu-mobile .nav-dropdown-link:hover {
    background: #f9fafb;
    color: var(--vinho);
}

.nav-dropdown-mobile .nav-dropdown-menu-mobile {
    display: none;
    padding-left: 0.75rem;
}

.nav-dropdown-mobile[open] .nav-dropdown-menu-mobile {
    display: block;
}

.nav-dropdown-mobile .nav-dropdown-link {
    padding-left: 1rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--vinho);
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: #374151;
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

.nav-mobile {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
}

.nav-mobile.active {
    display: block;
}

.nav-link-mobile {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.3s;
}

.nav-link-mobile:hover,
.nav-link-mobile.active {
    color: var(--vinho);
    background: #f9fafb;
}

/* Main Content */
main {
    min-height: 100vh;
    padding-top: 80px;
}

/* Section */
.section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
}

/* Footer */
.footer {
    background: var(--cinza-grafite);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1280px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img{
    width: 100%;
    max-width: 200px;
}

.footer-logo-title {
    font-weight: 600;
}

.footer-logo-subtitle {
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer-description {
    font-size: 0.875rem;
    color: #9ca3af;
    line-height: 1.6;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-links li {
    font-size: 0.875rem;
    color: #9ca3af;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer-contact svg {
    color: var(--vinho);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact a:hover {
    color: white;
}

.footer-divider {
    height: 1px;
    background: #374151;
    margin: 2rem 0;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    font-size: 0.875rem;
}

.footer-legal a {
    color: #9ca3af;
}

.footer-legal a:hover {
    color: white;
}

.footer-legal span {
    color: #4b5563;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: white;
    border-top: 2px solid #e5e7eb;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
}

.cookie-content {
    max-width: 1280px;
    margin: 0 auto;
}

.cookie-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cookie-main {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.cookie-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.cookie-info svg {
    color: var(--vinho);
    flex-shrink: 0;
    margin-top: 4px;
}

.cookie-info h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.cookie-info p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.cookie-info a {
    color: var(--vinho);
}

.cookie-info a:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cookie-settings {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.cookie-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.close-btn {
    padding: 0.25rem;
    color: #6b7280;
}

.close-btn:hover {
    color: var(--cinza-grafite);
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 2px;
}

.cookie-option-info {
    flex: 1;
}

.cookie-option h5 {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.cookie-option p {
    font-size: 0.875rem;
    color: #6b7280;
}

.cookie-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--vinho);
}

.cookie-settings-actions {
    display: flex;
    gap: 0.75rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

/* Responsive Typography */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
}

/* Cards */
.card {
    background: white;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

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

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Icon spacing fix */
svg {
    color: inherit;
    vertical-align: middle;
}

i[data-lucide] {
    display: inline-block;
}

/* ===========================================
   CLASSES FALTANDO PARA SEÇÕES "SETORES ATENDIDOS" (FASE 2)
   ===========================================

   As seguintes classes CSS estão sendo usadas nas seções "Setores Atendidos"
   adicionadas na Fase 2, mas não estão definidas no CSS atual:

   1. .text-cinza-medio { color: #6B7280; }  // Cinza médio para texto descritivo
   2. .bg-cinza-claro { background: #F5F5F5; }  // Fundo cinza claro para botões
   3. .py-12 { padding-top: 3rem; padding-bottom: 3rem; }  // Padding vertical grande
   4. .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }  // Padding horizontal
   5. .max-w-4xl { max-width: 56rem; }  // Largura máxima do container
   6. .text-2xl { font-size: 1.5rem; line-height: 2rem; }  // Tamanho de texto grande
   7. .font-bold { font-weight: 700; }  // Texto em negrito
   8. .gap-4 { gap: 1rem; }  // Espaçamento entre elementos do grid
   9. .p-4 { padding: 1rem; }  // Padding interno dos cards
   10. .rounded-lg { border-radius: 0.5rem; }  // Bordas arredondadas
   11. .border-l-4 { border-left-width: 4px; }  // Borda esquerda grossa
   12. .border-vinho { border-color: var(--vinho); }  // Cor da borda vinho
   13. .hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }  // Sombra no hover
   14. .transition-shadow { transition: box-shadow 0.15s ease-in-out; }  // Transição da sombra
   15. .text-sm { font-size: 0.875rem; line-height: 1.25rem; }  // Texto pequeno
   16. .font-semibold { font-weight: 600; }  // Texto semi-negrito
   17. .flex { display: flex; }  // Display flex
   18. .flex-wrap { flex-wrap: wrap; }  // Quebra de linha no flex
   19. .inline-block { display: inline-block; }  // Display inline-block
   20. .px-4 { padding-left: 1rem; padding-right: 1rem; }  // Padding horizontal médio
   21. .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }  // Padding vertical pequeno
   22. .rounded { border-radius: 0.25rem; }  // Bordas levemente arredondadas
   23. .hover\:bg-vinho:hover { background-color: var(--vinho); }  // Fundo vinho no hover
   24. .hover\:text-white:hover { color: white; }  // Texto branco no hover
   25. .transition-colors { transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out; }  // Transição de cores

   Adicione essas classes abaixo para que as seções "Setores Atendidos" funcionem corretamente.
   =========================================== */

/* Classes para seções "Setores Atendidos" - Fase 2 */
.text-cinza-medio { color: #6B7280; }
.bg-cinza-claro { background: #F5F5F5; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.max-w-4xl { max-width: 56rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-bold { font-weight: 700; }
.gap-4 { gap: 1rem; }
.p-4 { padding: 1rem; }
.rounded-lg { border-radius: 0.5rem; }
.border-l-4 { border-left-width: 4px; }
.border-vinho { border-color: var(--vinho); }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.transition-shadow { transition: box-shadow 0.15s ease-in-out; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-semibold { font-weight: 600; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.inline-block { display: inline-block; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.rounded { border-radius: 0.25rem; }
.hover\:bg-vinho:hover { background-color: var(--vinho); }
.hover\:text-white:hover { color: white; }
.transition-colors { transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out; }

.setor-card{
    padding: 15px;
}
.setor-card div{
    max-width: fit-content;
    padding: 5px;
}
.grid-autoridade{
    gap: 15px;
    display: flex;
    flex-direction: column;
}


/* Container utilities */
.mx-auto { margin-left: auto; margin-right: auto; }
