/* ==========================================================================
   VARIÁVEIS E CONFIGURAÇÕES GLOBAIS
   ========================================================================== */
:root {
  --primary-green: #83ba30;
  --dark-green: #05752e;
  --text-dark: #14261c;
  --text-gray: #4e5652;
  --bg-dark: #151515;
  --max-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   CABEÇALHO E NAVEGAÇÃO
   ========================================================================== */
header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.logo {
  flex: 0 0 auto;
  width: 180px;
  min-width: 180px;
  display: flex;
  align-items: center;
}

.logo a {
  display: inline-flex;
  align-items: center;
  width: 180px;
  height: 59px;
}

.logo img {
  width: 180px;
  height: 59px;
  aspect-ratio: 180 / 59;
  display: block;
}

.nav-drawer {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 992px) {
  .navbar {
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    align-items: center;
    height: 90px;
  }

  .logo {
    grid-column: 1;
  }

  .nav-drawer {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: static;
    transform: none;
    left: auto;
  }
}

.header-actions {
  flex: 0 0 auto;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none !important;
}

.drawer-header {
  display: none;
}

.menu-overlay {
  display: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary-green);
  transition: color 0.25s;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: normal;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--dark-green);
}

.nav-flags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 0;
}

.flag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 3px;
  transition: transform 0.2s, opacity 0.2s;
  text-decoration: none;
  cursor: pointer;
}

.flag-btn:hover {
  transform: scale(1.1);
}

.flag-btn img {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
}

.flag-btn.active img {
  box-shadow: 0 0 0 2px var(--primary-green), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--primary-green);
  cursor: pointer;
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
footer {
  background-color: var(--bg-dark);
  color: #fff;
  padding: 65px 0 25px;
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.footer-col.logo-col {
  grid-column: span 1;
}

.footer-col.logo-col img {
  max-width: 170px;
  height: auto;
}

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  border-bottom: 2px solid #282828;
  padding-bottom: 8px;
}

.footer-col p {
  color: #bbb;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-col a {
  color: #ccc;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary-green);
}

.social-bar {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 25px 0;
  border-top: 1px solid #252525;
  border-bottom: 1px solid #252525;
  margin-bottom: 25px;
}

.social-bar a {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.social-bar a:hover {
  color: var(--primary-green);
}

.copyright {
  text-align: center;
  font-size: 13px;
  color: #777;
}

/* ==========================================================================
   BOTÃO WHATSAPP FLUTUANTE
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: var(--dark-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: transform 0.25s ease, background 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #045a23;
}

/* ==========================================================================
   RESPONSIVIDADE GLOBAL (HEADER, FOOTER)
   ========================================================================== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
  }

  .footer-col.logo-col {
    grid-column: span 2;
    margin-bottom: 20px;
  }

  .footer-col h4 {
    border-bottom: none;
  }
}

@media (max-width: 991px) {
  .navbar {
    height: 72px;
    padding: 0 20px;
  }

  .logo {
    min-width: auto;
    flex: 0 0 auto;
  }

  .logo img {
    max-width: 120px;
    max-height: 36px;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #14261c;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
  }

  .menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .menu-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  /* DRAWER MÓVEL - DESIGN DO FIGMA (ALINHADO AO TOPO E À ESQUERDA) */
  .nav-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    transform: translateX(100%) !important;
    width: 324px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; /* Alinhamento ao topo, sem centralização vertical */
    align-items: stretch !important;        /* Ocupa a largura total */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    overflow-y: auto;
  }

  .nav-drawer.open {
    transform: translateX(0) !important;
  }

  .drawer-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 55px;
    min-height: 55px;
    padding: 0 16px;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
  }

  .menu-close {
    background: transparent;
    border: 1px dashed #3a3a3a;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 15px;
    color: #333333;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }

  .menu-close:hover {
    color: #83ba30;
    border-color: #83ba30;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: stretch;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
    padding: 0;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Alinhamento do texto à esquerda */
    text-align: left;             /* Garante o texto à esquerda */
    width: 100%;
    height: 65px;
    padding: 0 25px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #83ba30;
    text-decoration: none;
    letter-spacing: normal;
    transition: color 0.2s ease, background-color 0.2s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: #05752e;
    background-color: #fbfbfb;
  }

  .nav-links li.nav-flags {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    height: 65px;
    padding: 0 25px;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-links li.nav-flags .flag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 4px;
    margin: 0;
  }

  .nav-links li.nav-flags .flag-btn img {
    width: 28px;
    height: 19px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .footer-col.logo-col {
    grid-column: span 1;
  }

  .footer-col.logo-col img {
    margin: 0 auto;
  }

  .social-bar {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .copyright {
    font-size: 13px;
    text-align: center;
  }
}

/* ==========================================================================
   BOTÃO PADRÃO (DESIGN SYSTEM INSTOR)
   ========================================================================== */
.instor-btn,
.servicos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  background-color: #4c662b;
  color: #ffffff;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 16px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.15px;
}

.instor-btn:hover,
.servicos-btn:hover {
  background-color: #3d5222;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 102, 43, 0.3);
  color: #ffffff;
}

.instor-btn:active,
.servicos-btn:active {
  transform: translateY(0);
}

