/*
 Theme Name:   Vidal Child
 Theme URI:    https://www.vidalgestaotributaria.com.br
 Description:  Tema filho do Hello Elementor para o site Vidal Gestão Tributária
 Author:       Vidal Gestão Tributária
 Template:     hello-elementor
 Version:      1.0.0
*/

/* ============================================================
   DESIGN TOKENS — Vidal Gestão Tributária
   Manual de Identidade Visual 2026
   ============================================================ */

:root {
  /* --- Cores --- */
  --color-navy-dark:    #071e2b;   /* hero, header, seções escuras */
  --color-navy-medium:  #002239;   /* fundos secundários, footer */
  --color-gold:         #e6bf79;   /* CTAs, destaques, hover */
  --color-green:        #0d8d64;   /* badges de resultado/sucesso */
  --color-gray-mid:     #565656;   /* texto secundário, metadados */
  --color-black:        #111111;   /* texto principal sobre fundo claro */
  --color-gray-light:   #ededed;   /* fundos de seções neutras */
  --color-white:        #ffffff;

  /* --- Tipografia --- */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* --- Pesos --- */
  --weight-regular:   400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;

  /* --- Espaçamentos --- */
  --spacing-xs:   8px;
  --spacing-sm:   16px;
  --spacing-md:   32px;
  --spacing-lg:   64px;
  --spacing-xl:   96px;
  --spacing-2xl:  128px;

  /* --- Border Radius --- */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  /* --- Transições --- */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow:   0.4s ease;

  /* --- Sombras --- */
  --shadow-sm:  0 2px 8px rgba(7, 30, 43, 0.08);
  --shadow-md:  0 4px 24px rgba(7, 30, 43, 0.12);
  --shadow-lg:  0 8px 48px rgba(7, 30, 43, 0.18);
}

/* ============================================================
   RESET E BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--weight-regular);
  line-height: 1.75;
  color: var(--color-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   TIPOGRAFIA
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: var(--weight-bold);
  color: var(--color-navy-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem);   font-weight: var(--weight-semibold); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: var(--weight-semibold); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-family: var(--font-body); font-weight: var(--weight-semibold); }

p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-black);
  margin-bottom: var(--spacing-sm);
}

/* Títulos em seções com fundo escuro */
.e-con.dark-bg h1,
.e-con.dark-bg h2,
.e-con.dark-bg h3,
.e-con.dark-bg p,
.elementor-section.dark-bg h1,
.elementor-section.dark-bg h2,
.elementor-section.dark-bg h3,
.elementor-section.dark-bg p {
  color: var(--color-white);
}

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

/* Botão primário — dourado */
.btn-primary,
.elementor-button.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-gold);
  text-decoration: none;
  display: inline-block;
  transition: opacity var(--transition-fast);
  cursor: pointer;
}

.btn-primary:hover,
.elementor-button.btn-primary:hover {
  opacity: 0.88;
  color: var(--color-navy-dark);
}

/* Botão secundário — outline dourado */
.btn-secondary,
.elementor-button.btn-secondary {
  background-color: transparent;
  color: var(--color-gold);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-gold);
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-secondary:hover,
.elementor-button.btn-secondary:hover {
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
}

/* ============================================================
   ELEMENTO GRÁFICO — LINHA DE ECG
   ============================================================ */

.ecg-divider {
  width: 100%;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpolyline points='0,30 200,30 220,10 240,50 260,30 280,30 300,5 320,55 340,30 400,30 420,20 440,40 460,30 600,30 620,10 640,50 660,30 680,30 700,5 720,55 740,30 800,30 820,20 840,40 860,30 1000,30 1020,10 1040,50 1060,30 1080,30 1100,5 1120,55 1140,30 1200,30' fill='none' stroke='%23e6bf79' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0.6;
  margin: var(--spacing-md) 0;
}

/* ECG animado (usar em heroes) */
@keyframes ecg-pulse {
  0%   { stroke-dashoffset: 2000; }
  100% { stroke-dashoffset: 0; }
}

.ecg-animated path,
.ecg-animated polyline {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: ecg-pulse 3s ease-in-out infinite;
}

/* ============================================================
   SEÇÕES DE FUNDO ESCURO
   ============================================================ */

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

/* Padrão tessellado (fundo de seções escuras) */
.section-pattern {
  background-color: var(--color-navy-dark);
  background-image: url('../assets/images/pattern-bg.png'); /* inserir arquivo do padrão */
  background-size: 300px;
  background-repeat: repeat;
  background-blend-mode: overlay;
}

/* ============================================================
   NÚMEROS / SOCIAL PROOF
   ============================================================ */

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: var(--weight-bold);
  color: var(--color-gold);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-white);
  opacity: 0.85;
  margin-top: var(--spacing-xs);
}

/* ============================================================
   CARDS DE SERVIÇO
   ============================================================ */

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  border: 1px solid rgba(7, 30, 43, 0.08);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

/* Card destaque (RCT — serviço âncora) */
.service-card.featured {
  border: 2px solid var(--color-gold);
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy-medium) 100%);
}

.service-card.featured h3,
.service-card.featured p {
  color: var(--color-white);
}

/* ============================================================
   BADGE DE RESULTADO (Cases)
   ============================================================ */

.badge-result {
  display: inline-block;
  background-color: var(--color-green);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: 0.875rem;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

/* ============================================================
   DEPOIMENTOS
   ============================================================ */

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-style: italic;
  color: var(--color-white);
  line-height: 1.6;
}

.testimonial-author {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  color: var(--color-gold);
  font-size: 0.95rem;
  margin-top: var(--spacing-sm);
}

/* ============================================================
   LOGOS DE CLIENTES (Grayscale → Colorido no hover)
   ============================================================ */

.client-logo img {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-normal);
}

.client-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ============================================================
   HEADER STICKY
   ============================================================ */

#site-header,
.elementor-location-header {
  transition: background-color var(--transition-normal),
              box-shadow var(--transition-normal);
}

.header-scrolled {
  background-color: rgba(7, 30, 43, 0.96) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --spacing-lg:  40px;
    --spacing-xl:  64px;
    --spacing-2xl: 80px;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.5rem; }
}
