/* ==========================================================================
   VARIÁVEIS GERAIS
   ========================================================================== */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa;
  scroll-behavior: smooth;
  margin-top: 70px; /* espaço para navbar fixa */
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar-brand img {
  max-height: 50px;
}

/* ==========================================================================
   HERO MODERNO
   ========================================================================== */
.hero-modern {
  position: relative;
  width: 100%;
  height: 600px;
  background:
    url('../imagens/banner.png') center/cover no-repeat,
    linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-modern__overlay {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.6),
    rgba(255,255,255,0.1)
  );
  pointer-events: none;
}

.hero-modern__content {
  position: relative;
  max-width: 700px;
  padding: 2rem;
  text-align: center;
}

.hero-modern__title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #222;
}
/* Sobrescreve .text-primary apenas dentro do hero-modern__title */
.hero-modern__title .text-primary {
  color: #FF5A00 !important;  /* usa o laranja da sua logo */
}

.hero-modern__title .text-primary {
  color: #0d6efd;
}

.hero-modern__subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: #444;
}

.hero-modern__subtitle {
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;           /* 16px */
  font-weight: 400;
  color: #555555;            /* cinza intermediário */
  line-height: 1.6;          /* espaçamento de linha confortável */
  max-width: 700px;          /* largura máxima para quebrar linha melhor */
  margin: 0 auto 2rem;       /* centraliza e dá espaçamento embaixo */
  text-align: center;
}


.hero-modern__btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border: 2px solid #fff;
  border-radius: 50px;
  color: #fff !important;
  background: transparent;
  transition: background-color 0.3s ease,
              color 0.3s ease;
}
.hero-modern__btn:hover {
  background-color: #fff;
  color: #0d6efd !important;
}

/* ==========================================================================
   BOTÕES CUSTOMIZADOS (para outros usos)
   ========================================================================== */
.btn-modern {
  background-color: #e63946;
  color: #fff !important;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  transition: background-color 0.3s ease,
              transform 0.3s ease;
}
.btn-modern:hover {
  background-color: #d62839;
  transform: translateY(-2px) scale(1.03);
}

/* ==========================================================================
   +1200 FUNCIONALIDADES (CÍRCULO ANIMADO)
   ========================================================================== */
#funcoes {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 700px;
}

.funcoes-wrapper {
  position: relative;
  width: 600px;
  height: 600px;
}

.funcoes-item {
  --angle: 0deg;
  --color: #222;
  --index: 0;

  position: absolute;
  top: 50%; left: 50%;
  width: 96px; height: 96px;
  padding: 0.5rem;
  background: var(--color);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.1;
  transform: rotate(var(--angle))
             translate(250px)
             rotate(calc(-1*var(--angle)))
             scale(0);
  animation: explode 0.8s cubic-bezier(.6,.2,.1,1)
             both calc(var(--index)*0.08s);
  transition: transform 0.3s ease;
}

.funcoes-item i {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.funcoes-item p {
  margin: 0;
}

.funcoes-center-text {
  position: absolute;
  top: 50%; left: 60%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  text-align: center;
}

.funcoes-center-text h3 {
  margin: 0;
  font-size: 1.75rem;
  color: #222;
}

.funcoes-center-text p {
  margin: 0.25rem 0 0;
  color: #666;
}

.funcoes-item:hover {
  transform: rotate(var(--angle))
             translate(250px)
             rotate(calc(-1*var(--angle)))
             scale(1.1);
}

@keyframes explode {
  to {
    transform: rotate(var(--angle))
               translate(250px)
               rotate(calc(-1*var(--angle)))
               scale(1);
  }
}

/* ==========================================================================
   RECURSOS (CARDS)
   ========================================================================== */
#recursos {
  padding: 0;
}

#recursos .row {
  margin: 0;
}

#recursos .card {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
}

#recursos .card h5 {
  margin-top: 0.5rem;
}

/* ==========================================================================
   SOBRE NÓS
   ========================================================================== */
.quem-somos-img {
  max-width: 400px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  font-size: 0.9rem;
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
/* Large tablets (≤992px): reduz wrapper e raio */
@media (max-width: 992px) {
  #funcoes {
    height: 500px;
  }
  .funcoes-wrapper {
    width: 400px;
    height: 400px;
  }
  .funcoes-item {
    transform: rotate(var(--angle))
               translate(180px)
               rotate(calc(-1*var(--angle)))
               scale(0);
    animation: explode 0.8s both
               calc(var(--index)*0.06s);
  }
}

/* Tablets e mobile (≤768px): oculta funcionalidade */
@media (max-width: 768px) {
  #funcoes {
    display: none !important;
  }
}

/* Celulares (≤576px): recursos em 2 colunas + botão full-width */
@media (max-width: 576px) {
  #recursos .col-md-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .btn-modern,
  .btn-danger {
    width: 100%;
    text-align: center;
  }
}


.hero-modern__btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  background-color: #ffffff;        /* fundo branco */
  color: #0d6efd !important;       /* texto azul */
  border: 2px solid #0d6efd;       /* borda azul */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-modern__btn:hover {
  background-color: #0d6efd;       /* fundo vira azul */
  color: #fff !important;          /* texto vira branco */
}
