/* ======================================================
   ApplicaTI — Tema Dark/Light com Glassmorphism Moderno
   ====================================================== */

:root {
  --glass-bg: rgba(17, 24, 39, 0.6);
  --glass-br: 14px;
  --text-secondary: #9ca3af;
  --text-light: #e5e7eb;
  --primary: #38bdf8;
  --bg-dark: #0b0f1a;
  --bg-darker: #111827;
}

/* Transição suave entre temas */
html, body, .glass, .navbar, .card, input, select, textarea, .btn, .whats-btn {
  transition: background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease, filter 0.6s ease;
}

/* ------------------------------------------------------
   Fundo geral e gradientes (dark)
------------------------------------------------------ */
body {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0f172a 100%);
  color: var(--text-light);
  font-family: 'Inter', system-ui, Segoe UI, Roboto, Arial, sans-serif;
}

.bg-gradient {
  background: radial-gradient(1200px 600px at -10% -30%, rgba(56,189,248,.25), transparent 50%),
              radial-gradient(1000px 600px at 120% -20%, rgba(99,102,241,.18), transparent 50%),
              linear-gradient(180deg, var(--bg-dark), var(--bg-darker));
}

/* ------------------------------------------------------
   Efeito vidro e cartões
------------------------------------------------------ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border-radius: var(--glass-br);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.glass:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ------------------------------------------------------
   Ícones e cartões
------------------------------------------------------ */
.icon-wrap {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}
.icon-wrap i { font-size: 1.1rem; }
.icon-wrap:hover { background: rgba(255, 255, 255, 0.08); transform: scale(1.05); }

/* ------------------------------------------------------
   Navbar
------------------------------------------------------ */
.navbar.bg-black {
  background-color: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ------------------------------------------------------
   Botões e links
------------------------------------------------------ */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.15); transform: translateY(-2px); }
.btn-outline-light:hover { background-color: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
a:focus, button:focus { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ------------------------------------------------------
   Texto
------------------------------------------------------ */
.text-secondary { color: var(--text-secondary) !important; }
h1, h2, h3, h4, h5 { color: #fff; }

/* ------------------------------------------------------
   Botão WhatsApp
------------------------------------------------------ */
.whats-btn {
  position: fixed;
  right: 16px;
  bottom: 96px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #25D366, #1EBE5B);
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whats-btn:hover { transform: scale(1.1); box-shadow: 0 8px 16px rgba(37, 211, 102, 0.7); }

/* ------------------------------------------------------
   Inputs
------------------------------------------------------ */
header .card.glass { border: 1px solid rgba(255, 255, 255, 0.12); }
input, select, textarea {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.5); }
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(56, 189, 248, 0.25);
}

/* ------------------------------------------------------
   Responsividade
------------------------------------------------------ */
a, button, .icon-wrap, .card { transition: all 0.3s ease; }
@media (max-width: 992px) { .whats-btn { bottom: 80px; right: 12px; } }

/* ======================================================
   MODO CLARO — Brand Dark Blue Edition (ApplicaTI)
   ====================================================== */
@media (prefers-color-scheme: light) {

  :root {
    --glass-bg: rgba(245, 247, 252, 0.9);
    --text-primary: #0a0e1a;
    --text-secondary: #273046;
    --text-muted: #4b5563;
    --bg-light: #dfe5f0;
    --primary: #1d4ed8; /* Azul ApplicaTI */
  }

  body {
    background: linear-gradient(180deg, #dfe5f0 0%, #cfd6e3 100%);
    color: var(--text-primary);
  }

  .bg-gradient {
    background: radial-gradient(800px 500px at -10% -10%, rgba(29,78,216,.10), transparent 60%),
                radial-gradient(1000px 700px at 120% -10%, rgba(37,99,235,.12), transparent 60%),
                linear-gradient(180deg, #e0e6f1, #cfd6e3);
  }

  /* Glass cards */
  .glass {
    background: rgba(250, 252, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
  }

  /* Navbar */
  .navbar.bg-black {
    background-color: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
  }
  .navbar .nav-link {
    color: var(--text-primary) !important;
    font-weight: 600;
  }
  .navbar .nav-link:hover { color: var(--primary) !important; }
  .navbar .navbar-brand { color: var(--text-primary) !important; font-weight: 800; }

  /* Títulos e textos */
  h1, h2, h3, h4, h5 { color: var(--text-primary); font-weight: 700; }
  p, span, li, label { color: var(--text-secondary); }
  .text-secondary { color: var(--text-muted) !important; }

  /* Botões */
  .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
  }
  .btn-primary:hover {
    background-color: #1e40af;
    border-color: #1e3a8a;
  }
  .btn-outline-light {
    border-color: rgba(0, 0, 0, 0.25);
    color: var(--text-primary);
  }
  .btn-outline-light:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  /* Inputs */
  input, select, textarea {
    background-color: #f1f4f9 !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: var(--text-primary) !important;
  }
  input::placeholder, textarea::placeholder { color: rgba(0, 0, 0, 0.65); }
  .form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(29, 78, 216, 0.25);
  }

  /* Ícones */
  .icon-wrap {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  /* WhatsApp */
  .whats-btn {
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35);
  }

  /* Rodapé */
  footer {
    background: rgba(246, 248, 253, 0.96);
    color: var(--text-muted);
  }
  footer a { color: var(--text-muted); }
  footer a:hover { color: var(--primary); }
}

/* ======================================================
   Hero Responsivo com Altura Dinâmica (ApplicaTI)
   ====================================================== */

/* Altura e alinhamento principais */
header.hero-section {
  min-height: 85vh; /* ocupa 85% da altura da tela */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Mantém proporcional em telas médias e grandes */
@media (min-width: 992px) {
  header.hero-section {
    min-height: 88vh;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Em telas pequenas (celulares), reduz altura e padding */
@media (max-width: 768px) {
  header.hero-section {
    min-height: auto;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

/* Ajuste de espaçamento interno do container */
header.hero-section .container {
  padding-top: 0;
  padding-bottom: 0;
}

/* Títulos mais próximos e equilibrados */
header.hero-section h1.display-5 {
  margin-top: 0.5rem !important;
  margin-bottom: 1rem !important;
  line-height: 1.2;
}

/* Subtítulo */
header.hero-section p.lead {
  margin-bottom: 1.5rem !important;
  line-height: 1.5;
  font-size: 1.1rem;
  max-width: 600px;
}

/* Responsivo para o formulário */
header.hero-section .card.glass {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Animação suave de entrada */
header.hero-section .row {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1.2s ease-out forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

