/* ================================================================
   STYLE.CSS — GEDILSON PONTES Advocacia
   Landing Page Trabalhista
   Cores: #0e1634 (navy) · #e4b762 (gold) · #dedddd (lgray)
================================================================ */

/* ── Variáveis ──────────────────────────────────────────────── */
:root {
  --navy:       #0e1634;
  --navy-light: #192347;
  --gold:       #e4b762;
  --gold-dark:  #c9973e;
  --lgray:      #dedddd;
  --white:      #ffffff;
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar          { width: 5px; }
::-webkit-scrollbar-track    { background: var(--navy); }
::-webkit-scrollbar-thumb    { background: var(--gold); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ── Focus ──────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ================================================================
   HEADER
================================================================ */
#header {
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#header.scrolled {
  background-color: var(--navy);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* ================================================================
   HERO — padrão de fundo
================================================================ */
.hero-pattern {
  background-image:
    linear-gradient(30deg,  rgba(228,183,98,.06) 12%, transparent 12.5%, transparent 87%, rgba(228,183,98,.06) 87.5%),
    linear-gradient(150deg, rgba(228,183,98,.06) 12%, transparent 12.5%, transparent 87%, rgba(228,183,98,.06) 87.5%);
  background-size: 60px 104px;
}

/* ================================================================
   SECTION LABEL (chapéu de seção)
================================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ================================================================
   GOLD RULE (divisor dourado)
================================================================ */
.gold-rule {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  border-radius: 2px;
}

/* ================================================================
   BOTÕES
================================================================ */

/* WhatsApp principal */
.btn-wa-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn-wa-primary:hover {
  background-color: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
}

/* Outline dourado */
.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid var(--gold);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-outline-gold:hover {
  background-color: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

/* ================================================================
   TRUST ITEMS
================================================================ */
.trust-item {
  padding: 16px 8px;
  transition: transform 0.25s ease;
}

.trust-item:hover {
  transform: translateY(-4px);
}

/* ================================================================
   AREA CARDS
================================================================ */
.area-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.area-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(228, 183, 98, 0.18);
  border-color: var(--gold) !important;
}

/* ================================================================
   STEP CARDS
================================================================ */
.step-card {
  padding: 32px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(228, 183, 98, 0.12);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(228, 183, 98, 0.3);
}

/* ================================================================
   FORMULÁRIO
================================================================ */
.form-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #f9f9f9;
}

.form-input:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(228, 183, 98, 0.18);
  background-color: #fff;
  outline: none;
}

.form-input.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* Select seta customizada */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 44px;
  cursor: pointer;
}

/* ================================================================
   FAB WHATSAPP
================================================================ */
#whatsapp-fab {
  transition: transform 0.25s ease, background-color 0.2s ease;
}

#whatsapp-fab:hover {
  transform: scale(1.12);
}

/* Pulse ring */
.fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: fab-pulse 2.5s ease-out infinite;
}

@keyframes fab-pulse {
  0%   { transform: scale(1);   opacity: 0.5; }
  70%  { transform: scale(1.75); opacity: 0; }
  100% { transform: scale(1.75); opacity: 0; }
}

/* ================================================================
   VOLTAR AO TOPO
================================================================ */
#back-to-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ================================================================
   REVEAL — animação ao rolar
================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   RESPONSIVO
================================================================ */
@media (max-width: 640px) {
  #hero h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .btn-wa-primary,
  .btn-outline-gold {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
  }
}

/* ================================================================
   IMPRESSÃO
================================================================ */
@media print {
  #header, #whatsapp-fab, #back-to-top { display: none !important; }
  body { font-size: 12pt; color: #000; }
}
