/* ==========================================================================
   1. VARIÁVEIS E CONFIGURAÇÕES GERAIS (GLOBAL)
   ========================================================================== */
:root {
  --primary-color: #04066b;      /* Azul Escuro */
  --accent-color: #ff4a00;       /* Laranja */
  --accent-hover: #e03f00;
  
  --bg-light: #f8f9fa;           
  --bg-white: #ffffff;           
  --text-dark: #1e2022;          
  --text-muted: #677788;         
  --text-light: #ffffff;         
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(4, 6, 107, 0.08);
  
  --font-family: 'Montserrat', sans-serif;
}

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

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-light);
  font-family: var(--font-family);
  color: var(--text-dark);
  line-height: 1.6;
}

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

/* ==========================================================================
   2. HEADER E MENU DE NAVEGAÇÃO (GLOBAL)
   ========================================================================== */
.main-header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #eaeaea;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 40px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--accent-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-menu a:hover, 
.nav-menu a.active {
  color: var(--accent-color);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 19px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

/* ==========================================================================
   3. BOTÕES DO SISTEMA (GLOBAL)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--text-light);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
}

.btn-outline {
  background-color: transparent;
  border-color: #dcdfe3;
  color: var(--text-dark);
}

.btn-outline:hover {
  background-color: #f1f2f4;
  border-color: #ccd0d4;
}

.btn-disabled {
  background-color: #e9ecef;
  color: #adb5bd;
  cursor: not-allowed;
}

/* ==========================================================================
   4. RODAPÉ DO SITE (GLOBAL)
   ========================================================================== */
.main-footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.25fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about {
  max-width: 450px;
}

.footer-about h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.footer-about h3 span {
  color: var(--accent-color);
}

.footer-nav h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
}

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

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--text-light);
}

.footer-contact h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-contact-link:hover {
  color: var(--text-light);
  transform: translateX(3px);
}

.footer-contact-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255,255,255,0.08);
  color: var(--text-light);
}

.footer-contact-icon svg {
  width: 18px;
  height: 18px;
}

.footer-contact-text {
  font-size: 0.9rem;
  font-weight: 600;
  word-break: break-word;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-credit {
  padding: 12px 20px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  background-color: rgba(0,0,0,0.12);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-credit:hover {
  background-color: #ffd200;
  color: var(--text-dark);
}

.footer-credit strong {
  color: inherit;
}

.footer-credit a {
  color: inherit;
  text-decoration: none;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  text-decoration: underline;
}

/* ==========================================================================
   5. REGRAS DE RESPONSIVIDADE (GLOBAL)
   ========================================================================== */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-white);
    z-index: 1000;
    transition: left 0.3s cubic-bezier(0.1, 0.7, 0.6, 1);
    box-shadow: var(--shadow-sm);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    padding: 40px;
    gap: 25px;
  }

  .nav-menu a {
    font-size: 1.25rem;
    display: block;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-contact h4 {
    display: none;
  }

  .footer-contact-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-contact-link {
    width: 44px;
    height: 44px;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.08);
  }

  .footer-contact-icon {
    background-color: transparent;
  }

  .footer-contact-text {
    display: none;
  }
}
