/* Reset e Variáveis CSS */
:root {
  --primary: #003d82;
  --primary-light: #0052b3;
  --primary-dark: #002a5c;
  --accent: #2e7d32;
  --accent-light: #4caf50;
  --secondary: #ff6f00;
  --secondary-light: #ff8f00;
  
  --background: #ffffff;
  --foreground: #1a1a1a;
  --muted: #f5f5f5;
  --muted-foreground: #666666;
  --border: #e0e0e0;
  
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

header .container {
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  height: 70px;
  min-height: 70px;
  max-height: 70px;
  display: flex;
  align-items: center;
}

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

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

/* Header */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: hidden;
  height: 70px;
  min-height: 70px;
  max-height: 70px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  min-height: 70px;
  max-height: 70px;
  gap: 1.5rem;
  overflow: hidden;
  flex-wrap: nowrap;
  position: relative;
}

@media (min-width: 1200px) {
  .header-content {
    gap: 2rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.125rem;
  font-weight: bold;
  flex-shrink: 0;
  white-space: nowrap;
  height: 100%;
  max-height: 70px;
  overflow: visible;
  box-sizing: border-box;
  padding: 8px 0;
}

.logo-circle {
  width: 48px;
  height: 48px;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo-image {
  height: 60px;
  width: auto;
  max-width: 60px;
  max-height: 60px;
  min-height: 50px;
  min-width: 50px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1024px) {
  .logo-image {
    height: 55px;
    max-width: 55px;
    max-height: 55px;
    min-height: 45px;
    min-width: 45px;
  }
}

@media (max-width: 768px) {
  .logo-image {
    height: 50px;
    max-width: 50px;
    max-height: 50px;
    min-height: 40px;
    min-width: 40px;
    padding: 6px;
  }
}

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

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

.nav-desktop a {
  font-weight: 500;
  transition: color 0.3s ease;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: auto;
  padding: 0.5rem 0;
  box-sizing: border-box;
  text-decoration: none;
}

.nav-desktop a:hover {
  color: #81c784;
}

.nav-desktop a i {
  font-size: 0.85em;
  opacity: 0.9;
}

.nav-desktop a:hover i {
  opacity: 1;
}

.nav-desktop .area-restrita-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.nav-desktop .area-restrita-link:hover {
  color: #ffd54f;
}

/* Removido - botões agora são links padronizados no nav-desktop */

.btn {
  padding: 0.375rem 1.25rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  font-size: 0.875rem;
  line-height: 1;
  box-sizing: border-box;
  height: 38px;
  max-height: 38px;
  margin: 0;
  vertical-align: middle;
  overflow: hidden;
}

@media (min-width: 1200px) {
  .btn {
    padding: 0.4rem 1.5rem;
    font-size: 0.9rem;
    height: 40px;
    max-height: 40px;
    min-height: 40px;
  }
}

.btn-primary {
  background-color: var(--secondary);
  color: white;
  height: 38px;
  max-height: 38px;
  box-sizing: border-box;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.btn-primary:hover {
  background-color: var(--secondary-light);
  transform: none;
}

@media (min-width: 1200px) {
  .btn-primary {
    height: 40px;
    max-height: 40px;
    min-height: 40px;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
  height: 38px;
  max-height: 38px;
  min-height: 38px;
  box-sizing: border-box;
  padding-top: calc(0.375rem - 2px);
  padding-bottom: calc(0.375rem - 2px);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
  transform: none;
}

@media (min-width: 1200px) {
  .btn-outline {
    height: 40px;
    max-height: 40px;
    min-height: 40px;
    padding-top: calc(0.4rem - 2px);
    padding-bottom: calc(0.4rem - 2px);
  }
}

/* Botão Sair - Cor destacada amarela para melhor visibilidade */
.btn-logout {
  background-color: transparent;
  color: #ffd54f;
  border: 2px solid #ffd54f;
  font-weight: 600;
  height: 38px;
  max-height: 38px;
  box-sizing: border-box;
  padding-top: calc(0.375rem - 2px);
  padding-bottom: calc(0.375rem - 2px);
}

.btn-logout:hover {
  background-color: #ffd54f;
  color: var(--primary-dark);
  transform: none;
  box-shadow: 0 2px 4px rgba(255, 213, 79, 0.2);
}

@media (min-width: 1200px) {
  .btn-logout {
    height: 40px;
    max-height: 40px;
    padding-top: calc(0.4rem - 2px);
    padding-bottom: calc(0.4rem - 2px);
  }
}

/* Botão Solicite Intérprete - Cor verde destacada para melhor visibilidade */
.btn-interprete {
  background-color: rgba(46, 125, 50, 0.2);
  color: #a5d6a7;
  border: 2px solid #81c784;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 38px;
  max-height: 38px;
  box-sizing: border-box;
  padding-top: calc(0.375rem - 2px);
  padding-bottom: calc(0.375rem - 2px);
  padding-left: 1rem;
  padding-right: 1rem;
}

.btn-interprete:hover {
  background-color: #81c784;
  color: white;
  border-color: #66bb6a;
  transform: none;
  box-shadow: 0 2px 4px rgba(129, 199, 132, 0.2);
}

.btn-interprete i {
  font-size: 0.85em;
  opacity: 0.9;
  flex-shrink: 0;
  line-height: 1;
}

.btn-interprete:hover i {
  opacity: 1;
}

@media (min-width: 1200px) {
  .btn-interprete {
    height: 40px;
    max-height: 40px;
    padding-top: calc(0.4rem - 2px);
    padding-bottom: calc(0.4rem - 2px);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  
  .btn-interprete i {
    font-size: 0.9em;
  }
}

.filter-btn {
  background-color: #d9f8e3;
  color: #1c7c3e;
  border: 2px solid #a4e4b8;
}

.filter-btn:hover,
.filter-btn:focus {
  background-color: #bff0cd;
  border-color: #87d9a3;
  color: #145e2d;
}

.filter-btn.active {
  background-color: var(--accent-light);
  border-color: var(--accent-light);
  color: white;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

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

.mobile-menu {
  display: none;
  padding-bottom: 1rem;
}

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

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu a {
  padding: 0.5rem 0;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: #81c784;
}

.mobile-menu a i {
  font-size: 0.85em;
  opacity: 0.9;
}

.mobile-menu a:hover i {
  opacity: 1;
}

.mobile-menu .area-restrita-link:hover {
  color: #ffd54f;
}

/* Removido - botões agora são links padronizados no mobile-menu nav */

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 5rem 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 100%;
  height: auto;
  max-height: 450px;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-header p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
}

.bg-muted {
  background-color: var(--muted);
}

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

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

@media (min-width: 768px) {
  .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);
  }
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-featured {
  border: 2px solid var(--accent);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-header {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.card-description {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.card-content {
  padding: 0 1.5rem 1.5rem;
  flex: 1;
}

.card-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Icon Circle */
.icon-circle {
  width: 64px;
  height: 64px;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 2rem;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-primary {
  background-color: var(--primary);
  color: white;
}

.badge-accent {
  background-color: var(--accent);
  color: white;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

/* Footer */
footer {
  background-color: var(--muted);
  color: var(--muted-foreground);
  padding: 3rem 0 1rem;
}

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

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

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

.footer-section {
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: background-color 0.3s ease;
}

/* Cores alternadas para as regiões do footer */
.footer-section:nth-child(1) {
  background-color: #f0f7ff; /* Azul claro */
}

.footer-section:nth-child(2) {
  background-color: #f5f5f5; /* Cinza claro */
}

.footer-section:nth-child(3) {
  background-color: #f0f7ff; /* Azul claro */
}

.footer-section:nth-child(4) {
  background-color: #f5f5f5; /* Cinza claro */
}

.footer-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.footer-section ul {
  list-style: none;
}

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

.footer-section a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--accent-light);
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.w-full {
  width: 100%;
}

/* Accordion */
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-trigger {
  width: 100%;
  padding: 1rem 1.5rem;
  background: white;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.accordion-trigger:hover {
  background-color: var(--muted);
}

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
  padding: 1rem 1.5rem;
  max-height: 500px;
}

/* Alert/Toast */
.alert {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 9999;
  animation: slideIn 0.3s ease;
}

.alert.show {
  display: block;
}

.alert-success {
  border-left: 4px solid var(--accent);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Link Área Restrita */
.area-restrita-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.area-restrita-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.area-restrita-link i {
  font-size: 0.75rem;
}
