body, html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.bebas-neue-regular {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.exo-2  {
  font-family: "Exo 2", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

@media (max-width: 768px) {
  .navbar.fundo-mobile {
    background-color: #000 !important; /* preto */
  }
}

/* ---------------- Botão ENVIAR ---------------- */
.btn-enviar {
  background-color: #077bff !important;
  color: #fff !important;
  font-weight: 500;
  border: none;
  border-radius: 10px;
  padding: 0.6rem;
  transition: background-color 0.3s ease;
  font-size: 1.1rem;
  height: 78px;
  width: 100%; /* sempre ocupa o card */
}

.btn-enviar:hover {
  background-color: #0f85b4 !important;
}

/* Tablets (768px a 992px) */
@media (min-width: 768px) and (max-width: 991px) {
  .btn-enviar {
    height: auto !important;
    padding: 12px 20px !important;
    font-size: 0.95rem;
    width: auto !important;
    min-width: unset;
  }

  .form-contato .d-flex {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .contato-info-card h5 {
    font-size: 1rem !important;
  }

  .contato-info-card .btn {
    font-size: 0.85rem;
    padding: 10px;
  }

  /* Cards de contato em 1 por linha no tablet */
  .contato-info-card .row > div {
    border-left: none !important;
    margin-top: 20px;
    padding-left: 0 !important;
  }
}

/* Celulares (≤576px) */
@media (max-width: 576px) {
  .btn-enviar {
    width: 100% !important;
    height: auto !important;
    font-size: 1rem !important;
    padding: 14px !important;
    min-width: unset;
  }
}

/* ---------------- Seções ---------------- */
.section {
  position: relative;
  min-height: 100vh;
  padding: 100px 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  z-index: 1;
}
.section .container { position: relative; z-index: 2; }
.section .overlay {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Logo topo */
.logo_topo { width: 180px; }

/* Navbar */
.navbar-nav .nav-link { font-size: 2rem; font-weight: 500; padding: 0 0.5rem; }
.navbar-brand { font-weight: bold; }

/* Botão hamburguer */
.custom-toggler {
  background: none; border: none;
  width: 30px; height: 30px;
  position: relative; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
}
.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
  content: ''; display: block;
  background-color: #fff;
  height: 3px; width: 28px;
  border-radius: 3px;
  position: absolute; left: 0;
  transition: all 0.3s ease-in-out;
}
.hamburger-icon { top: 50%; transform: translateY(-50%); }
.hamburger-icon::before { top: -10px; }
.hamburger-icon::after { top: 10px; }
.custom-toggler:not(.collapsed) .hamburger-icon { background-color: transparent; }
.custom-toggler:not(.collapsed) .hamburger-icon::before { transform: rotate(45deg); top: 0; }
.custom-toggler:not(.collapsed) .hamburger-icon::after { transform: rotate(-45deg); top: 0; }

/* Menu lateral */
#navbarNav {
  position: fixed; top: 0; right: 0;
  width: 80%; max-width: 300px; height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
  z-index: 1050;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
}
#navbarNav.show { transform: translateX(0); }

@media (max-width: 991.98px) {
  .side-nav { display: none !important; width: 0 !important; height: 0 !important; overflow: hidden !important; }
  .navbar-nav { display: flex; flex-direction: column; align-items: flex-end; gap: 1.5rem; }
}
@media (max-width: 576px) {
  .logo_topo { width: 140px; }
  .navbar-nav .nav-link { font-size: 1.5rem; padding: 0.5rem 0; }
  #navbarNav { width: 100%; padding: 4rem 1.5rem 2rem; }
}

/* Fundos */
.bg-inicio    { background-image: url('imagens/inicio.jpg'); }
.bg-sobre     { background-image: url('imagens/inicio.jpg'); }
.bg-projetos  { background-image: url('imagens/projetos.jpg'); }
.bg-marketing { background-image: url('imagens/marketing.jpg'); }
.bg-contato   { background-image: url('imagens/contato.jpg'); }

/* Formulário */
form .form-control { background-color: rgba(255, 255, 255, 0.85); border: none; }
form .btn { background-color: #ffffff; color: #000; border: none; }
form .btn:hover { background-color: #dddddd; }

/* SOBRE */
#sobre h2 { font-size: 3rem; font-weight: bold; margin-bottom: 1rem; }
#sobre h3 { font-size: 2rem; color: #077bff; font-weight: 500; margin-top: 2rem; animation: fadeIn 1s ease forwards; }
#sobre p, #sobre p.fst-italic { font-size: 1.2rem; color: #f8f9fa; margin-bottom: 1.5rem; animation: fadeInUp 1s ease forwards; }
#sobre p:first-of-type { margin-bottom: 5rem; }
#sobre ul { list-style: none; padding: 0; font-size: 1rem; animation: fadeIn 1.4s ease forwards; }
#sobre ul li { position: relative; padding-left: 30px; margin-bottom: 10px; text-align: left; opacity: 0; animation: slideInLeft 0.5s ease forwards; animation-delay: calc(0.2s * var(--i)); }

/* Scroll reveal */
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* Animações */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
#sobre ul li:nth-child(1) { --i: 1; }
#sobre ul li:nth-child(2) { --i: 2; }
#sobre ul li:nth-child(3) { --i: 3; }
#sobre ul li:nth-child(4) { --i: 4; }
#sobre ul li:nth-child(5) { --i: 5; }
#sobre ul li:nth-child(6) { --i: 6; }

/* Textos auxiliares */
.subtitle { font-size: 1.1rem; color: #ccc; margin-top: -10px; margin-bottom: 30px; font-style: italic; }
.title-bar { position: relative; padding-left: 20px; font-weight: 700; }
.title-bar::before { content: ''; position: absolute; left: 0; top: 6px; width: 6px; height: 80%; background: #ffc107; border-radius: 3px; }
.titulo { color: #077bff; font-weight: 500; margin-bottom: 10px; font-size: 2.0rem; }

/* Navegação lateral */
.side-nav { position: fixed; left: 20px; top: 50%; transform: translateY(-50%); z-index: 2000; }
.side-nav .dot { display: block; width: 14px; height: 14px; margin: 10px 0; background-color: #ccc; border-radius: 50%; transition: background-color 0.3s, transform 0.3s; }
.side-nav .dot:hover, .side-nav .dot.active { background-color: #077bff; transform: scale(1.3); }
.side-nav .dot:first-child::before { content: '↑'; display: block; font-size: 22px; text-align: center; margin-top: -35px; color: #ccc; }
.side-nav .dot:last-child::after { content: '↓'; display: block; font-size: 22px; text-align: center; margin-top: 10px; color: #ccc; }

/* Rodapé */
.footer-fixed { position: fixed; bottom: 0; left: 0; width: 100%; background-color: rgba(0, 0, 0, 0.85); padding: 10px 0; font-size: 0.9rem; z-index: 999; color: #fff; text-align: center; }
.footer { width: 100%; background-color: rgba(0, 0, 0, 0.861); padding: 10px 0; font-size: 0.9rem; color: #fff; text-align: center; }

/* Cards */
.missao-card, .marketing-card, .projeto-card {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-radius: 15px;
  transition: all 0.3s ease;
  color: #fff;
}

.missao-card {
  display: flex;
  flex-direction: column;
}

.missao-card:hover, .marketing-card:hover, .projeto-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); }
.missao-card i, .marketing-card i, .projeto-card i { color: #077bff; }

/* Flip Cards */
.flip-card { perspective: 1000px; height: 100%; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d; }
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
  position: absolute; width: 100%; height: 100%;
  border-radius: 10px; backface-visibility: hidden;
  background-color: rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 1.5rem; color: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.flip-card-back { transform: rotateY(180deg); }
.flip-card-back p { font-size: 1rem; line-height: 1.5; margin: 80px 0 0; max-width: 90%; text-align: center; }
.small-icon { position: absolute; top: 12px; right: 16px; font-size: 1rem; color: #ccc; }
.flip-card-back .close-btn { position: absolute; top: 10px; right: 12px; background: none; border: none; color: #077bff; font-size: 1.5rem; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .flip-card:hover .flip-card-inner { transform: rotateY(180deg); } }

/* Contato */
.contato-card {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  color: #fff !important;
  transition: transform 0.3s;
}
.contato-card:hover { transform: translateY(-5px); }
.card-title { font-size: 1.5rem; color: #077bff; }
.input-estilizado {
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff; border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: border 0.3s, background 0.3s;
}
textarea.input-estilizado { height: 87px; }
.input-estilizado:focus { background-color: rgba(255, 255, 255, 0.1); border-color: #077bff; outline: none; box-shadow: none; }

/* reCAPTCHA */
.recaptcha-wrapper { width: 100%; max-width: 300px; }
.d-flex { display: flex !important; align-items: center !important; gap: 12px; }
@media (max-width: 576px) {
  .recaptcha-wrapper { width: 100%; transform: scale(1.16); transform-origin: 0 0; margin-bottom: 10px; }
}

/* Links contato */
.link-contato { color: #77cfff; text-decoration: none; font-weight: 500; }
.link-contato:hover { color: #fff; text-decoration: underline; }
.email { color: #ddd; font-style: italic; }
.contato-info-card { background-color: rgba(255, 255, 255, 0.03) !important; border-left: 3px solid #077bff; }
.borda-lateral-azul { border-left: 4px solid #077bff !important; }

/* Botão WhatsApp */
#enviar_whatsapp {
  height: 78px;
  margin-top: 50px !important;
  margin-bottom: 6px !important;
  font-size: 1.1rem;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}


/* Garante que os cards da seção Missão tenham altura igual */
#missao .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch; /* força as colunas a ficarem da mesma altura */
}

#missao .col-md-4 {
  display: flex;
}

#missao .missao-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* equal height - escopo apenas para a seção sobre */
#sobre .row { align-items: stretch; }
#sobre .col-md-4.d-flex { display: flex; }
#sobre .missao-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* garante que o inner do flip ocupe toda a altura do card */
#sobre .flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

/* frente e verso ocupam todo o espaço do card */
#sobre .flip-card-front,
#sobre .flip-card-back {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  box-sizing: border-box;
}


/* Garante altura mínima para os cards */
#sobre .flip-card {
  min-height: 200px; /* ajuste conforme necessário */
  display: flex;
}

#sobre .flip-card-inner {
  height: 100%;
}

/* frente e verso ocupam toda a altura */
#sobre .flip-card-front,
#sobre .flip-card-back {
  height: 100%;
}
