/* ==========================================================================
   Tático Especialista — Folha de Estilos Principal
   ========================================================================== */

/* VARIÁVEIS GLOBAIS */
:root {
  --bg: #0D0D0F;
  --bg-alt: #1A1A1D;
  --bg-card: #15151A;
  --border: #2A2A2E;
  --border-bright: #3A3A40;
  --text: #F2F2F4;
  --text-dim: #A5A8AD;
  --text-mute: #7A7D82;
  --silver: #C5C8CC;
  --green: #4A7C3A;
  --green-hover: #5A9447;
  --whatsapp: #25D366;
  --whatsapp-hover: #1FB956;
  --warning: #F5A623;
}

/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ==========================================================================
   BARRA DE URGÊNCIA SUPERIOR
   ========================================================================== */
.trust-bar {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
}

.trust-bar span {
  margin: 0 12px;
}

/* ==========================================================================
   CABEÇALHO
   ========================================================================== */
header {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 48px;
  width: auto;
}

.logo-img-footer {
  height: 60px;
  width: auto;
  margin-bottom: 18px;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.btn-wa,
.btn-call {
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  border-radius: 4px;
}

.btn-wa {
  background: var(--whatsapp);
  color: #fff;
}

.btn-wa:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
}

.btn-call {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-bright);
}

.btn-call:hover {
  border-color: var(--silver);
  color: var(--silver);
}

.btn-wa svg,
.btn-call svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   SEÇÃO HERO (TOPO)
   ========================================================================== */
.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  background:
    radial-gradient(circle at 20% 30%, rgba(74, 124, 58, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(197, 200, 204, 0.04) 0%, transparent 50%),
    var(--bg);
  position: relative;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-logo {
  max-width: 280px;
  width: 100%;
  height: auto;
  margin: 0 auto 32px;
  filter: drop-shadow(0 8px 32px rgba(74, 124, 58, 0.3));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(74, 124, 58, 0.12);
  border: 1px solid var(--green);
  color: var(--green);
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 32px;
  border-radius: 4px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.hero h1 .accent {
  background: linear-gradient(135deg, #E8E9EC 0%, #8A8D92 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto 32px;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  margin-bottom: 36px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-benefits .benefit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-benefits svg {
  width: 18px;
  height: 18px;
  stroke: var(--green);
  fill: none;
  stroke-width: 3;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-primary {
  background: var(--whatsapp);
  color: #fff;
  padding: 18px 36px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.25);
}

.btn-primary:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 18px 36px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--border-bright);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  border-radius: 6px;
}

.btn-secondary:hover {
  border-color: var(--silver);
  color: var(--silver);
}

.btn-primary svg,
.btn-secondary svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   SEÇÕES GERAIS
   ========================================================================== */
section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   SEÇÃO SERVIÇOS
   ========================================================================== */
.services {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  grid-template-columns: repeat(6, 1fr);
}

.service-card {
  grid-column: span 2;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

/* Centraliza os últimos 2 cards na segunda linha */
.service-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.service-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.service-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  stroke: var(--silver);
  fill: none;
  stroke-width: 1.5;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text);
}

.service-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--whatsapp);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: gap 0.2s;
}

.service-card .service-link:hover {
  gap: 10px;
}

/* ==========================================================================
   SEÇÃO DIFERENCIAIS
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.why-card {
  text-align: center;
  padding: 32px 22px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: 4px;
  transition: all 0.3s;
}

.why-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
}

.why-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  background: rgba(74, 124, 58, 0.12);
  border: 1px solid var(--green);
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.why-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
}

.why-card h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ==========================================================================
   BANNER CTA INTERMEDIÁRIO
   ========================================================================== */
.cta-banner {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--green) 0%, #3A6B2C 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  color: #fff;
  margin-bottom: 14px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta-banner {
  background: #fff;
  color: var(--green);
  padding: 18px 38px;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  border-radius: 6px;
}

.btn-cta-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.btn-cta-banner svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   SEÇÃO ÁREA DE ATENDIMENTO
   ========================================================================== */
.area {
  text-align: center;
}

.area-cta {
  text-align: center;
  margin-top: 32px;
}

/* ==========================================================================
   SEÇÃO FAQ
   ========================================================================== */
.faq {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--border-bright);
}

.faq-item[open] {
  border-color: var(--green);
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--green);
  font-weight: 300;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 24px 22px;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   SEÇÃO FORMULÁRIO
   ========================================================================== */
.form-section {
  background: var(--bg);
}

.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 44px 38px;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  border-radius: 4px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.btn-submit {
  width: 100%;
  background: var(--whatsapp);
  color: #fff;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
}

.btn-submit svg {
  width: 20px;
  height: 20px;
}

.form-privacy {
  text-align: center;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-mute);
}

.form-privacy svg {
  width: 12px;
  height: 12px;
  vertical-align: middle;
  stroke: var(--green);
  fill: none;
  stroke-width: 3;
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
footer {
  background: #08080A;
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 36px;
}

.footer-col h5 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--silver);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-col p,
.footer-col a {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.9;
  display: block;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  text-align: center;
  color: var(--text-mute);
  font-size: 0.82rem;
}

/* ==========================================================================
   BOTÃO FLUTUANTE WHATSAPP
   ========================================================================== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.5);
  z-index: 99;
  transition: all 0.3s;
  animation: float-bounce 3s ease-in-out infinite;
}

.wa-float:hover {
  transform: scale(1.1);
  background: var(--whatsapp-hover);
}

.wa-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

@keyframes float-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: auto;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .trust-bar {
    font-size: 0.7rem;
    padding: 6px 12px;
  }
  .trust-bar span {
    margin: 0 5px;
  }
  header {
    top: 28px;
  }
  .header-actions .btn-call span,
  .header-actions .btn-wa span {
    display: none;
  }
  .btn-wa,
  .btn-call {
    padding: 10px 12px;
  }
  .logo-img {
    height: 40px;
  }
  section {
    padding: 60px 0;
  }
  .hero {
    padding: 110px 0 50px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
  .form-wrapper {
    padding: 32px 22px;
  }
  .hero-benefits {
    gap: 12px 20px;
    font-size: 0.88rem;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}
