/* ==========================================================
   GESIEL LIMA ADVOCACIA TRIBUTÁRIA — Design System Global
   ========================================================== */

/* --- Fontes --- */
@import url('https://fonts.googleapis.com/css2?family=Fahkwang:wght@300;400;500;600&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* --- Variáveis --- */
:root {
  /* Cores primárias */
  --navy:        #07224F;
  --navy-dark:   #040f1f;
  --navy-mid:    #0a2d6b;
  --gold:        #8E7833;
  --gold-light:  #b09940;
  --gold-lighter:#c4ad55;
  --silver:      #9D9D9E;
  --silver-light:#c4c4c5;

  /* Neutras */
  --white:       #FFFFFF;
  --off-white:   #F8F7F4;
  --text-dark:   #1a1a1a;
  --text-mid:    #3a3a3a;
  --text-muted:  #6b6b6b;

  /* Funcionais */
  --border-light:  rgba(142, 120, 51, 0.2);
  --border-gold:   rgba(142, 120, 51, 0.5);
  --overlay-navy:  rgba(7, 34, 79, 0.85);
  --overlay-dark:  rgba(4, 15, 31, 0.7);

  /* Gradientes */
  --gradient-navy: linear-gradient(135deg, #07224F 0%, #040f1f 100%);
  --gradient-gold: linear-gradient(135deg, #8E7833 0%, #c4ad55 100%);
  --gradient-hero: linear-gradient(160deg, #07224F 0%, #0a2d6b 50%, #040f1f 100%);

  /* Tipografia */
  --font-display: 'Fahkwang', serif;
  --font-body:    'Montserrat', sans-serif;

  /* Espaçamento */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  80px;
  --space-2xl: 120px;

  /* Layout */
  --container-max:             1200px;
  --container-padding:         0 40px;
  --container-padding-mobile:  0 20px;
  --section-padding:           100px 0;
  --section-padding-mobile:    60px 0;

  /* Misc */
  --radius:      8px;
  --transition:  0.3s ease;
}

/* ==========================================================
   RESET & BASE
   ========================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================
   UTILITÁRIOS
   ========================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* Seções */
.section {
  padding: var(--section-padding);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--dark {
  background: var(--navy-dark);
  color: var(--white);
}

.section--off-white {
  background: var(--off-white);
}

.section--white {
  background: var(--white);
}

/* Label de seção */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-lighter);
  margin-bottom: var(--space-sm);
}

/* Títulos de seção */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  color: inherit;
}

.section-title--lg {
  font-size: clamp(32px, 4vw, 44px);
}

.section-title--md {
  font-size: clamp(26px, 3vw, 36px);
}

/* Linha decorativa dourada */
.gold-line {
  display: block;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  margin: 16px 0 32px;
  transition: width 0.8s ease 0.3s;
}

.gold-line.visible {
  width: 60px;
}

.gold-line--center {
  margin: 16px auto 32px;
}

/* Texto de corpo */
.body-text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-mid);
}

.body-text--light {
  color: rgba(255, 255, 255, 0.82);
}

/* ==========================================================
   ANIMAÇÕES DE SCROLL
   ========================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-in {
  opacity: 0;
}

.fade-in.visible {
  animation: fadeIn 0.7s ease forwards;
}

.fade-in.visible:nth-child(2) { animation-delay: 0.1s; }
.fade-in.visible:nth-child(3) { animation-delay: 0.2s; }
.fade-in.visible:nth-child(4) { animation-delay: 0.3s; }
.fade-in.visible:nth-child(5) { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .fade-in, .gold-line {
    transition: none;
    opacity: 1;
    transform: none;
    width: 60px;
  }
}

/* ==========================================================
   BOTÕES
   ========================================================== */
.btn-primary {
  background: var(--gradient-gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(142, 120, 51, 0.4);
  background: linear-gradient(135deg, #b09940 0%, #d4bc65 100%);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-lighter);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 35px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: rgba(142, 120, 51, 0.25);
  color: #e8d07a;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1.5px solid var(--gold-lighter);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-outline-gold:hover {
  background: var(--gradient-gold);
  color: var(--navy);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(142, 120, 51, 0.35);
}

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  background: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.site-header.scrolled {
  background: var(--navy);
  border-bottom-color: var(--border-light);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

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

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver-light);
  transition: color var(--transition);
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--gold);
}

.header-nav a:hover::after,
.header-nav a.active::after {
  width: 100%;
}

.header-cta {
  flex-shrink: 0;
}

/* Botão CTA no header */
.btn-header-cta {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 26px;
  border: 1.5px solid var(--gold-lighter);
  border-radius: var(--radius);
  color: #e8d07a;
  background: rgba(142, 120, 51, 0.25);
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.btn-header-cta:hover {
  background: var(--gradient-gold);
  color: var(--navy);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(142, 120, 51, 0.4);
}

/* Hamburguer */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--silver-light);
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu mobile */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--silver-light);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--gold);
}

.mobile-menu .btn-primary {
  margin-top: 16px;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: var(--navy-dark);
  color: var(--silver);
  padding: 64px 0 32px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-gold);
  opacity: 0.6;
}

/* Layout principal do footer (classe usada no HTML) */
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 56px;
  margin-bottom: 40px;
}

/* Alias para compatibilidade */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

/* Logo no footer — a classe está na própria img */
img.footer-logo {
  height: 72px;
  width: auto;
  margin-bottom: 20px;
  opacity: 0.92;
}

/* Fallback para estrutura antiga */
.footer-logo img {
  height: 72px;
  width: auto;
  margin-bottom: 20px;
  opacity: 0.92;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(157, 157, 158, 0.7);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 8px;
}

.footer-oab {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(157, 157, 158, 0.5);
  text-transform: uppercase;
  line-height: 1.6;
}

/* Título de coluna */
.footer-col-title,
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

/* Coluna de navegação */
.footer-col-nav nav,
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-nav nav a,
.footer-nav a {
  font-size: 13px;
  color: rgba(157, 157, 158, 0.7);
  transition: color var(--transition);
  line-height: 1.5;
}

.footer-col-nav nav a:hover,
.footer-nav a:hover {
  color: var(--gold);
}

/* Coluna de contato */
.footer-contact-list,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-contact-list a,
.footer-contact a,
.footer-contact span {
  font-size: 13px;
  color: rgba(157, 157, 158, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
  line-height: 1.4;
}

.footer-contact-list a:hover,
.footer-contact a:hover {
  color: var(--gold);
}

.footer-contact-list svg,
.footer-contact svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.6;
}

/* Redes sociais */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(157, 157, 158, 0.2);
  border-radius: var(--radius);
  color: rgba(157, 157, 158, 0.5);
  transition: color var(--transition), border-color var(--transition);
}

.footer-social a:hover {
  color: var(--gold);
  border-color: rgba(142, 120, 51, 0.4);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(157, 157, 158, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(157, 157, 158, 0.4);
  letter-spacing: 0.03em;
}

/* ==========================================================
   WHATSAPP FLUTUANTE
   ========================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse-whatsapp 3s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
  animation: none;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  bottom: 50%;
  transform: translateY(50%);
  background: var(--navy-dark);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  border: 1px solid var(--border-light);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

@keyframes pulse-whatsapp {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================
   CARD DE DEPOIMENTO
   ========================================================== */
.card-depoimento {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  transition: border-color var(--transition);
}

.card-depoimento:hover {
  border-color: var(--border-gold);
}

.card-depoimento__aspas {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.25;
  display: block;
  margin-bottom: 16px;
  user-select: none;
}

.card-depoimento__texto {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  font-style: italic;
}

.card-depoimento__nome {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}

.card-depoimento__segmento {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
}

/* Versão clara (sobre fundo off-white) */
.card-depoimento--light {
  background: var(--white);
  border-color: rgba(142, 120, 51, 0.15);
  box-shadow: 0 2px 20px rgba(7, 34, 79, 0.06);
}

.card-depoimento--light .card-depoimento__texto {
  color: var(--text-mid);
}

/* ==========================================================
   CARD DE NÚMERO DE AUTORIDADE
   ========================================================== */
.card-numero {
  border-top: 3px solid var(--gold);
  padding: 32px 24px;
  position: relative;
}

.card-numero__valor {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
  display: block;
  white-space: nowrap;
}

.card-numero__linha {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gradient-gold);
  margin-bottom: 12px;
}

.card-numero__descricao {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--silver-light);
  line-height: 1.5;
}

/* ==========================================================
   CARD DE ETAPA
   ========================================================== */
.card-etapa {
  position: relative;
  padding: 32px;
}

.card-etapa__num {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 400;
  color: var(--white);
  opacity: 0.06;
  position: absolute;
  top: 16px;
  left: 24px;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.card-etapa__titulo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.card-etapa__texto {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  z-index: 1;
}

/* ==========================================================
   FORMULÁRIO DE LEADS
   ========================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--space-md);
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
}

.form-input {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(157, 157, 158, 0.25);
  border-radius: var(--radius);
  padding: 14px 18px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
}

.form-input:focus {
  border-color: var(--border-gold);
  background: rgba(255, 255, 255, 0.09);
}

.form-input::placeholder {
  color: rgba(157, 157, 158, 0.45);
}

/* Input sobre fundo claro */
.form-input--light {
  color: var(--text-dark);
  background: var(--white);
  border-color: rgba(7, 34, 79, 0.2);
}

.form-input--light:focus {
  border-color: var(--gold);
  background: var(--white);
}

.form-input--light::placeholder {
  color: rgba(106, 106, 107, 0.6);
}

/* ==========================================================
   GRID UTILITÁRIOS
   ========================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* ==========================================================
   RESPONSIVO
   ========================================================== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner > *:last-child,
  .footer-grid > *:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --container-padding: 0 20px;
  }

  /* Títulos: tamanho fixo em mobile para evitar cálculo incorreto de vw */
  .section-title--lg { font-size: 28px; }
  .section-title--md { font-size: 22px; }
  .section-title--sm { font-size: 18px; }

  .card-numero__valor { font-size: 36px; }

  .header-inner {
    padding: 0 20px;
  }

  .site-header {
    height: 84px;
  }

  .header-logo img {
    height: 72px;
  }

  .header-nav,
  .header-cta,
  a.btn-header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-inner > *:last-child {
    grid-column: auto;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }

  .card-depoimento {
    padding: 28px 24px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-header-cta {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    padding-left: 24px;
    padding-right: 24px;
  }
}


@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
  }
}
