/* ================================== */
/* CREATIVE EXPRESS - CSS PROFISSIONAL */
/* Versão 3.0 - Design Contemporâneo */
/* ================================== */

/* 1. DESIGN TOKENS MODERNOS */
/* ================================== */
:root {
    /* Paleta de Cores Contemporânea */
    --primaria: #6366f1;
    --primaria-dark: #4f46e5;
    --primaria-light: #818cf8;
    --primaria-alpha: rgba(99, 102, 241, 0.1);
    
    --secundaria: #ec4899;
    --secundaria-dark: #db2777;
    --secundaria-light: #f472b6;
    
    --terciaria: #14b8a6;
    --terciaria-dark: #0d9488;
    
    /* Escala de Cinzas (Slate) */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    /* Aplicações de Cor */
    --texto-forte: var(--slate-900);
    --texto-medio: var(--slate-600);
    --texto-suave: var(--slate-400);
    --fundo-claro: var(--slate-50);
    --fundo-card: #ffffff;
    --fundo-seccao-suave: #fafaff;
    
    /* Gradientes Modernos */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.7) 100%);
    --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    
    /* Sombras Profissionais */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    
    /* Sombras Coloridas */
    --shadow-primary: 0 10px 30px rgba(99, 102, 241, 0.3);
    --shadow-secondary: 0 10px 30px rgba(236, 72, 153, 0.3);
    
    /* Transições Suaves */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Bordas e Raios */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;
    
    /* Espaçamento Consistente */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    --spacing-4xl: 8rem;
    
    /* Tipografia */
    --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Escala Tipográfica */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
}

/* ================================== */
/* 2. RESET E ESTILOS BASE */
/* ================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body { 
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--texto-forte);
    background-color: var(--fundo-card);
    overflow-x: hidden;
}

/* Acessibilidade: foco visível consistente */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primaria);
    outline-offset: 2px;
}

/* Link de pular para conteúdo */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--slate-900);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: top var(--transition-fast);
    z-index: 1000;
}
.skip-to-content:focus { top: 1rem; }

/* Tipografia Hierárquica */
h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1; /* Tighter line-height for "magazine" feel */
    color: var(--texto-forte);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em; /* Tighter tracking */
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.03em; /* Even tighter for huge text */
}

h2 { 
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.025em;
}

h3 { 
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    letter-spacing: -0.02em;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--texto-medio);
}

a {
    text-decoration: none;
    color: var(--primaria);
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primaria-dark);
}

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

/* ================================== */
/* 3. SCROLLBAR PERSONALIZADA */
/* ================================== */
::-webkit-scrollbar { 
    width: 12px; 
    height: 12px;
}

::-webkit-scrollbar-track { 
    background: var(--slate-100); 
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primaria), var(--primaria-dark));
    border-radius: var(--radius-full);
    border: 3px solid var(--slate-100);
}

::-webkit-scrollbar-thumb:hover { 
    background: var(--primaria-dark);
}

/* ================================== */
/* 4. COMPONENTES GLOBAIS */
/* ================================== */

/* Container Responsivo */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: clamp(1rem, 5vw, 3rem);
    padding-right: clamp(1rem, 5vw, 3rem);
}

/* Grid Responsivo Inteligente */
.responsive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* Grid para cartões de serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
    align-items: stretch;
    grid-auto-rows: 1fr;
}

/* ================================== */
/* 5. HEADER MODERNIZADO */
/* ================================== */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all var(--transition-base);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.site-logo {
    height: 64px;
    width: auto;
    transition: transform var(--transition-base);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.site-logo:hover {
    transform: scale(1.05);
}

/* Links de Navegação Animados */
.nav-link-animated {
    position: relative;
    color: var(--texto-forte);
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    transition: color var(--transition-base);
}

.nav-link-animated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link-animated:hover {
    color: var(--primaria);
}

.nav-link-animated:hover::after {
    width: 100%;
}

/* Acessibilidade: foco visível nos links da navegação */
.nav-link-animated:focus-visible {
    color: var(--primaria);
}
.nav-link-animated:focus-visible::after { width: 100%; }

/* Navegação principal (fallback sem utilitário externo) */
.primary-nav { display: none; }
@media (min-width: 768px) {
  .primary-nav { display: flex; gap: 2rem; align-items: center; font-weight: 600; text-transform: uppercase; font-size: var(--text-sm); }
}

/* Toggle do menu só no mobile */
.mobile-toggle { display: block; }
@media (min-width: 768px) {
  .mobile-toggle { display: none; }
}

/* Idiomas visível a partir de 640px */
.lang-switch { display: none; }
@media (min-width: 640px) { .lang-switch { display: flex; } }

/* Menu mobile links (espacamento sem utilitário) */
#mobile-menu a { display: block; padding: 0.5rem 0; }

/* Contêiner do menu mobile */
#mobile-menu { border-top: 1px solid var(--slate-200); background-color: #fff; padding-left: 1.5rem; padding-right: 1.5rem; padding-bottom: 1rem; }

/* ================================== */
/* 6. HERO SECTION IMPACTANTE */
/* ================================== */
.video-hero-container {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -100;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    mix-blend-mode: multiply;
    z-index: -50;
}

/* conteúdo do hero genérico */
.video-hero-container .text-center { text-align: center; }
.video-hero-container h1 { color: #fff; margin-bottom: var(--spacing-lg); text-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.video-hero-container p { color: rgba(255,255,255,0.95); font-size: var(--text-xl); margin-bottom: var(--spacing-xl); text-shadow: 0 2px 10px rgba(0,0,0,0.2); }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================== */
/* 7. BOTÕES MODERNOS */
/* ================================== */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: var(--text-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    overflow: hidden;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transition: left var(--transition-base);
    z-index: 0;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98); /* Tactile feedback */
    box-shadow: var(--shadow-sm);
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

/* Botão Secundário */
.btn-secondary {
    background: white;
    color: var(--primaria);
    border: 2px solid var(--primaria);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: var(--text-sm);
    text-transform: uppercase;
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--primaria);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

/* Variação clara do botão primário (em fundos escuros) */
.btn-primary--light { background: #fff; color: var(--primaria); }
.btn-primary--light:hover { color: #fff; }

/* Estados de foco dos botões */
.btn-primary:focus-visible,
.btn-secondary:focus-visible { box-shadow: 0 0 0 4px var(--primaria-alpha), var(--shadow-primary); }

/* ================================== */
/* 8. CARDS MODERNOS (GLASSMORPHISM) */
/* ================================== */
.modern-card {
    background: rgba(255, 255, 255, 0.7); /* Slightly more transparent */
    backdrop-filter: blur(16px); /* Stronger blur */
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5); /* Stronger border definition */
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.2) inset; /* Double border effect */
    transition: all var(--transition-base);
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Card com Gradiente no Topo */
.card-with-accent {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.card-with-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

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

.card-with-accent:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* ================================== */
/* 9. SERVIÇOS - FLIP CARDS OTIMIZADOS */
/* ================================== */
.flip-card {
    perspective: 1000px;
    min-height: 280px;
    height: 100%;
    aspect-ratio: 1 / 1; /* Quadrado 1:1 */
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

a.flip-card-inner { display: block; }

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Contraste de texto no verso dos cards (fundo colorido) */
.flip-card-back p { color: rgba(255,255,255,0.95); text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.flip-card-back span { color: rgba(255,255,255,0.85); text-shadow: 0 1px 2px rgba(0,0,0,0.15); }

/* Card de Título de Serviço */
.service-title-card {
    background: var(--gradient-card);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 280px;
    height: 100%;
    aspect-ratio: 1 / 1; /* Quadrado para consistência visual */
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.service-title-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ================================== */
/* 10. PILARES/VALORES REDESENHADOS */
/* ================================== */
/* Forçar 4 colunas no desktop em "A Nossa Abordagem" */
@media (min-width: 1024px) {
  #sobrenos .responsive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.pillar-card {
    background-color: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--slate-200);
    transition: all var(--transition-slow);
    transform: translateY(0);
    text-align: center;
}

.pillar-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
    border-color: transparent;
}

.pillar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, var(--primaria-alpha), rgba(236, 72, 153, 0.1));
    border-radius: var(--radius-full);
    color: var(--primaria);
    transition: all var(--transition-slow);
    margin: 0 auto var(--spacing-lg);
}

.pillar-icon svg {
    width: 40px;
    height: 40px;
}

.pillar-card:hover .pillar-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.15) rotate(-10deg);
    box-shadow: var(--shadow-primary);
}

.pillar-card h3 {
    font-size: var(--text-xl);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-xs);
}

.pillar-card .subtitle {
    color: var(--primaria);
    font-weight: 600;
    font-size: var(--text-base);
    margin-bottom: var(--spacing-md);
}

.pillar-card p {
    font-size: var(--text-sm);
    color: var(--texto-medio);
    line-height: 1.7;
}

/* ================================== */
/* 11. BLOG/INSIGHTS MODERNIZADO */
/* ================================== */
.blog-section {
    padding: var(--spacing-4xl) 0;
    background: white;
}
/* Grid de blog dedicado (organizado e intuitivo) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: stretch;
}
/* Cartão de blog padrão */
.blog-grid > a {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: #fff;
}
.blog-grid > a:hover { box-shadow: var(--shadow-2xl); border-color: transparent; }
.blog-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.blog-grid > a .p-6 { padding: 1.25rem; }

/* Prévia do blog na home: adicionar respiro interno sem prejudicar a imagem */
.insight-card { border: 1px solid var(--slate-200); }
.insight-card > div:last-child { padding: 1.25rem; padding-top: 0; }

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-3xl);
}

.blog-header h2 {
    margin-bottom: 0;
}

.insight-card {
    display: block;
    background-color: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-200);
    height: 100%;
}

.insight-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: transparent;
}

.insight-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.insight-card:hover img {
    transform: scale(1.08);
}

/* ================================== */
/* 12. FOOTER PREMIUM */
/* ================================== */
.new-footer-bg {
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
    position: relative;
    overflow: hidden;
}
/* Normalizações para evitar "distorções" no footer */
footer { line-height: 1.6; }
footer .container { max-width: 1280px; }
footer nav a { display: inline-block; }
/* Logo do footer pequeno */
.new-footer-bg img.h-12 { height: 3rem; width: auto; max-width: 160px; }

.new-footer-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primaria),
        transparent
    );
}

.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-col--span-2 { grid-column: span 2; }
}

footer a {
    position: relative;
    transition: all var(--transition-base);
    display: inline-block;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primaria);
    transition: width var(--transition-base);
}

footer a:hover {
    color: var(--primaria-light);
}

footer a:hover::after {
    width: 100%;
}

/* Contraste melhorado no footer */
footer .text-gray-400 { color: #cbd5e1; }
footer .text-gray-500 { color: #94a3b8; }
footer .text-gray-300 { color: #e2e8f0; }
footer .text-white { color: #fff; }

/* Footer v2 (estrutura nova) */
.footer {
  background-color: #0c1424;
  color: #d9e1ee;
  padding: 60px 40px 20px;
  font-family: var(--font-body);
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-logo img { width: 180px; height: auto; margin-bottom: 16px; display: block; }
.footer-logo p { max-width: 300px; line-height: 1.6; font-size: 0.95rem; color: #c4cde0; }
.footer-nav h4, .footer-contact h4 { font-weight: 600; color: #ffffff; margin-bottom: 12px; }
.footer-nav ul, .footer-contact ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li, .footer-contact li { margin-bottom: 8px; }
.footer a { color: #aab6cf; text-decoration: none; transition: color 0.2s ease; }
.footer a:hover { color: #ffffff; }
.footer a::after { content: none; } /* desativa sublinhado animado herdado */
.footer-bottom { border-top: 1px solid #1c2438; text-align: center; margin-top: 40px; padding-top: 20px; color: #7e8aa3; font-size: 0.85rem; }
@media (max-width: 768px) {
  .footer-container { flex-direction: column; align-items: center; text-align: center; }
  .footer-logo p { max-width: 100%; }
}

/* Mapeamento leve de cores utilitárias globais (para consistência) */
.text-gray-300 { color: var(--slate-300); }
.text-gray-400 { color: var(--slate-400); }
.text-gray-500 { color: var(--slate-500); }
.text-gray-600 { color: var(--slate-600); }
.text-gray-700 { color: var(--slate-700); }

/* ================================== */
/* 13. CHATBOT ESTILO FACEBOOK MESSENGER */
/* ================================== */
#chatbot-container {
    position: fixed;
    bottom: 1.25rem;
    right: 6rem;
    z-index: 50;
}

#chatbot-toggle-button {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-base);
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: white;
}
#chatbot-toggle-button:hover { transform: scale(1.1); box-shadow: var(--shadow-primary); }

#chatbot-window { 
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: none;
    width: 328px;
    height: 455px;
    overflow: hidden;
    border-radius: 12px;
    position: absolute;
    bottom: 5rem;
    right: 0;
}
@media (min-width: 768px) { #chatbot-window { width: 360px; } }

@media (max-width: 640px) {
    #chatbot-container {
        right: 1.25rem;
        bottom: 6rem;
    }
    #chatbot-window {
        right: -1rem;
        width: 90vw;
        max-width: 328px;
    }
}

/* Cabeçalho do chat - estilo Facebook */
.chat-header { 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primaria) 0%, var(--primaria-dark) 100%);
    color: #fff;
    border-bottom: none;
}
.chat-header__left { 
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-avatar { 
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--primaria);
    font-size: 0.875rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.chat-title { 
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    line-height: 1.2;
    font-weight: 600;
}
.chat-status { 
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 4px;
}
.chat-status .dot { 
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
    box-shadow: 0 0 4px rgba(74, 222, 128, 0.6);
}
.chat-close { 
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background var(--transition-fast);
}
.chat-close:hover { 
    background: rgba(255, 255, 255, 0.25);
}

/* Área de mensagens - estilo Facebook */
.chat-messages { 
    padding: 16px 12px;
    background: #ffffff;
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-row { 
    display: flex;
    align-items: flex-end;
    margin-bottom: 2px;
}
.chat-row--bot { 
    justify-content: flex-start;
}
.chat-row--user { 
    justify-content: flex-end;
}
.chat-msg { 
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 18px;
    line-height: 1.4;
    font-size: 0.9375rem;
    word-wrap: break-word;
    animation: messageSlideIn 0.3s ease-out;
}
.chat-msg--bot { 
    background: #f0f0f0;
    color: #050505;
    border-bottom-left-radius: 4px;
}
.chat-msg--user { 
    background: var(--gradient-primary);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.chat-time { 
    display: block;
    font-size: 0.6875rem;
    opacity: 0.6;
    margin-top: 4px;
    text-align: center;
}

/* Digitação - estilo Facebook */
.chat-typing { 
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 10px 14px;
    background: #f0f0f0;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
}
.chat-typing .dot { 
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}
.chat-typing .dot:nth-child(1) { animation-delay: 0s; }
.chat-typing .dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 
    0%, 60%, 100% { 
        transform: translateY(0);
        opacity: 0.7;
    }
    30% { 
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* Barra de entrada - estilo Facebook */
.chat-input { 
    border-top: 1px solid #e4e6eb;
    padding: 10px 12px;
    background: #fff;
}
.chat-input__form { 
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-text { 
    flex: 1;
    border: none;
    border-radius: 20px;
    padding: 9px 14px;
    outline: none;
    background: #f0f2f5;
    font-size: 0.9375rem;
    color: #050505;
    transition: background var(--transition-fast);
}
.chat-text::placeholder {
    color: #65676b;
}
.chat-text:focus { 
    background: #e4e6eb;
}
.chat-send { 
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    border: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    flex-shrink: 0;
}
.chat-send:hover { 
    transform: scale(1.05);
}
.chat-send:active {
    transform: scale(0.95);
}

@keyframes messageSlideIn { 
    from { 
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    } 
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    } 
}
/* ================================== */
/* 14. UTILITÁRIOS E ANIMAÇÕES */
/* ================================== */

/* Utilitários mínimos para JS e estados (sem depender de framework) */
.hidden { display: none !important; }
.rotate-90 { transform: rotate(90deg); }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* Suporte simples a group-hover underline usado no blog */
.group:hover .group-hover\:underline { text-decoration: underline; }

/* Utilitários mínimos replicando uso comum (sem framework) */
.hidden { display: none !important; }
.rotate-90 { transform: rotate(90deg); }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

/* Layout essenciais */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* Espaçamentos comuns */
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.p-8 { padding: 2rem; }
.p-6 { padding: 1.5rem; }
.p-4 { padding: 1rem; }
.p-3 { padding: 0.75rem; }
.py-20 { padding-top: var(--spacing-3xl); padding-bottom: var(--spacing-3xl); }
.pt-16 { padding-top: var(--spacing-2xl); }
.pb-8 { padding-bottom: var(--spacing-lg); }
.mt-12 { margin-top: var(--spacing-xl); }
.mb-12 { margin-bottom: var(--spacing-xl); }
.mb-8 { margin-bottom: var(--spacing-lg); }
.mr-6 { margin-right: 1.5rem; }

/* Espaço vertical entre filhos */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Cores utilitárias essenciais */
.text-white { color: #fff; }
.text-primaria { color: var(--primaria); }
.text-texto-forte { color: var(--texto-forte); }
.text-texto-medio { color: var(--texto-medio); }
.bg-primaria { background-color: var(--primaria); }
.bg-primaria-dark { background-color: var(--primaria-dark); }
.bg-white { background-color: #fff; }
.bg-fundo-claro { background-color: var(--fundo-claro); }

/* Efeitos de hover usados */
.hover\:bg-primaria-dark:hover { background-color: var(--primaria-dark); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:shadow-lg:hover { box-shadow: var(--shadow-lg); }
.hover\:shadow-xl:hover { box-shadow: var(--shadow-xl); }

/* Famílias tipográficas */
.font-titulo { font-family: var(--font-display); }
.font-corpo { font-family: var(--font-body); }

/* Bordas arredondadas utilitárias */
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-l-lg { border-top-left-radius: var(--radius-lg); border-bottom-left-radius: var(--radius-lg); }
.rounded-r-lg { border-top-right-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); }

/* Bg cores usadas nos cartões de serviço (compatibilidade) */
.bg-blue-500 { background-color: #3b82f6; }
.bg-cyan-500 { background-color: #06b6d4; }
.bg-orange-500 { background-color: #f97316; }
.bg-purple-600 { background-color: #7c3aed; }
.bg-teal-500 { background-color: #14b8a6; }
.bg-amber-500 { background-color: #f59e0b; }
.bg-indigo-500 { background-color: #6366f1; }
.bg-pink-500 { background-color: #ec4899; }

/* Group-hover adicionais */
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* Animação 'pulse' simples */
.animate-pulse { animation: pulse 1.5s ease-in-out infinite; }

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--slate-200) 25%,
        var(--slate-300) 50%,
        var(--slate-200) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-lg);
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-bounce);
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: scale(1);
}

.scroll-to-top:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-primary);
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse Animation para CTAs */
@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    50% { 
        box-shadow: 0 0 0 20px rgba(99, 102, 241, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Seção com Fundo Suave */
.bg-seccao-suave {
    background: var(--fundo-seccao-suave);
}

/* ================================== */
/* 15. RESPONSIVIDADE */
/* ================================== */
@media (max-width: 1024px) {
    :root {
        --spacing-3xl: 4rem;
        --spacing-4xl: 5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-2xl: 3rem;
        --spacing-3xl: 3.5rem;
        --spacing-4xl: 4rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .video-hero-container {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-content {
        padding: var(--spacing-lg);
    }
    
    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .flip-card {
        height: auto;
        min-height: 280px;
    }
    
    .flip-card-inner {
        transform: none !important;
    }
    
    .flip-card-back {
        position: relative;
        transform: none;
        margin-top: var(--spacing-md);
    }
}

@media (max-width: 640px) {
    body {
        font-size: 1rem;
        color: var(--texto-forte);
    }
    
    /* Melhora de contraste em mobile */
    :root {
        --texto-forte: var(--slate-900);
        --texto-medio: var(--slate-700);
        --fundo-card: #ffffff;
    }
    p { color: var(--texto-medio); }
    a { color: var(--primaria-dark); }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .site-logo {
        height: 48px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 2rem;
        font-size: 0.8125rem;
    }

    /* Força 2 colunas no mobile para melhor varredura visual */
    .responsive-grid,
    .services-grid,
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

    /* Links do menu mobile com maior contraste */
    #mobile-menu a { color: var(--texto-forte); }

    /* Blog: imagens quadradas e wrappers auto-altura no mobile */
    .blog-grid a .h-56 { height: auto; }
    .blog-grid a img { aspect-ratio: 1 / 1; height: auto; object-fit: cover; }

    /* Preview de insights: imagens quadradas no mobile */
    .insight-card img { height: auto; aspect-ratio: 1 / 1; }
}

/* Respeitar preferências de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Campos de formulário acessíveis */
input[type="text"], input[type="email"], textarea, select {
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primaria);
  box-shadow: 0 0 0 3px var(--primaria-alpha);
}
input:invalid, textarea:invalid {
  border-color: var(--secundaria);
}

/* Refinos do formulário de contato: traços mais suaves */
#contact-form input,
#contact-form textarea,
#contact-form select {
  background: var(--slate-50);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
#contact-form input:hover,
#contact-form textarea:hover,
#contact-form select:hover { border-color: rgba(148, 163, 184, 0.6); }
#contact-form input:focus,
#contact-form textarea:focus,
#contact-form select:focus {
  background: #fff;
  border-color: var(--primaria);
  box-shadow: 0 0 0 3px var(--primaria-alpha);
}
#contact-form input::placeholder,
#contact-form textarea::placeholder { color: var(--slate-500); opacity: .8; }
#contact-form label { color: var(--texto-forte); font-weight: 600; }

/* Modo escuro automático básico */
@media (prefers-color-scheme: dark) {
  :root {
    --texto-forte: #e2e8f0;
    --texto-medio: #94a3b8;
    --fundo-card: #0b1220;
    --fundo-seccao-suave: #0e1526;
  }
  body { background-color: var(--fundo-card); }
  header { background-color: rgba(10, 16, 28, 0.8); }
}

/* ================================== */
/* 16. MELHORIAS DE TIPOGRAFIA E HIERARQUIA */
/* ================================== */
:where(h1,h2,h3){
  text-wrap: balance;
}
.prose { max-width: 72ch; }
.measure { max-width: 65ch; }

/* Nav link ativo por acessibilidade/scrollspy */
.nav-link-animated[aria-current="page"] {
  color: var(--primaria);
}
.nav-link-animated[aria-current="page"]::after { width: 100%; }

/* ================================== */
/* 17. MAPEAMENTO DE UTILITÁRIOS USADOS NO HTML */
/* ================================== */
/* Layout e posicionamento */
.mx-auto { margin-left: auto; margin-right: auto; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.bottom-5 { bottom: 1.25rem; }
.bottom-20 { bottom: 5rem; }
.right-5 { right: 1.25rem; }
.left-5 { left: 1.25rem; }
.left-0 { left: 0; }
.z-50 { z-index: 50; }
.left-0 { left: 0; }
.z-50 { z-index: 50; }

/* Grid utilitários mínimos */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-12 { gap: 3rem; }

/* Espaçamentos utilitários frequentes */
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mr-3 { margin-right: 0.75rem; }

/* Tipografia utilitária */
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }
.tracking-wider { letter-spacing: 0.05em; }
.max-w-3xl { max-width: 48rem; }

/* Dimensões utilitárias */
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-16 { width: 4rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-56 { height: 14rem; }
.w-full { width: 100%; }
.rounded-full { border-radius: var(--radius-full); }
.rounded-md { border-radius: var(--radius-md); }

/* Espaçamento entre itens em linha */
.space-x-1 > * + * { margin-left: 0.25rem; }

/* Bordas e cores utilitárias */
.border { border: 1px solid var(--slate-200); }
.text-gray-700 { color: var(--slate-700); }

/* Sombras e transições utilitárias */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.transition-all { transition: all var(--transition-base); }
.transition-colors { transition: color var(--transition-base); }
.transition-transform { transition: transform var(--transition-base); }
.duration-300 { transition-duration: 300ms; }

/* Backdrop blur utilitário */
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Cores de fundo utilitárias adicionais */
.bg-white\/80 { background-color: rgba(255,255,255,.8); }

/* Cores de texto em hover utilitárias */
.hover\:text-primaria:hover { color: var(--primaria); }
.hover\:text-white:hover { color: #fff; }
.hover\:bg-opacity-90:hover { filter: brightness(0.95); }

/* Focus ring utilitário para o form */
.focus\:ring-2:focus { box-shadow: 0 0 0 3px var(--primaria-alpha); }
.focus\:ring-primaria:focus { border-color: var(--primaria); }

/* Responsivos (prefixo md: e lg:) mínimos necessários */
@media (min-width: 768px) {
  .md\:h-20 { height: 5rem; }
  .md\:text-6xl { font-size: var(--text-6xl); }
  .md\:text-5xl { font-size: var(--text-5xl); }
  .md\:w-96 { width: 24rem; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:items-center { align-items: center; }
}

/* ================================== */
/* 18. ESTILOS DO BLOG (PROSE) */
/* ================================== */
.prose {
    color: var(--slate-600);
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}
.prose-lg { font-size: 1.125rem; line-height: 1.8; }

.prose h2, .prose h3, .prose h4 {
    color: var(--texto-forte);
    font-weight: 800;
    margin-top: 2.5em;
    margin-bottom: 0.8em;
    line-height: 1.2;
}

.prose h2 { font-size: 1.8em; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.5em; letter-spacing: -0.01em; }

.prose p { margin-bottom: 1.5em; }
.prose ul { margin-bottom: 1.5em; padding-left: 1.5em; list-style-type: disc; }
.prose li { margin-bottom: 0.5em; }

.prose a {
    color: var(--primaria);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    transition: color 0.2s;
}
.prose a:hover { color: var(--primaria-dark); }

.prose blockquote {
    border-left: 4px solid var(--primaria);
    padding-left: 1.5em;
    font-style: italic;
    font-size: 1.2em;
    color: var(--texto-forte);
    margin: 2em 0;
    background: var(--slate-50);
    padding: 1.5rem;
    border-radius: 0 1rem 1rem 0;
}

.prose img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin: 2em auto;
}

/* Utilitários Extras para o Blog */
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.border-white\/30 { border-color: rgba(255, 255, 255, 0.3); }
.bg-black\/80 { background-color: rgba(0, 0, 0, 0.8); }
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
.bg-primaria\/10 { background-color: var(--primaria-alpha); }
.from-black\/80 { --tw-gradient-from: rgba(0,0,0,0.8); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0,0,0,0)); }
.via-black\/40 { --tw-gradient-via: rgba(0,0,0,0.4); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to, rgba(0,0,0,0)); }
.to-transparent { --tw-gradient-to: transparent; }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.leading-tight { line-height: 1.1; }
.leading-relaxed { line-height: 1.8; }
.tracking-wider { letter-spacing: 0.05em; }
.min-h-\[400px\] { min-height: 400px; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }


/* ================================== */
/* 19. FIXES DE IMAGEM BLOG (SEMANTIC) */
/* ================================== */
.post-hero {
    width: 100%;
    height: 50vh;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.post-hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent);
}

.post-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 1.5rem;
    z-index: 10;
}

.blog-featured-image-container {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.blog-card-image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

@media (min-width: 768px) {
    .blog-featured-image-container { height: 100%; min-height: 400px; }
    .post-hero { height: 60vh; }
}

.object-cover { object-fit: cover; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }


.preview-card-image {
    height: 12rem; /* h-48 equivalent */
    overflow: hidden;
    position: relative;
}
.preview-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ================================== */
/* 20. UTILITÁRIOS TAILWIND MISSING */
/* ================================== */
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-96 { height: 24rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Grid Utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:h-96 { height: 24rem; }
    .md\:p-12 { padding: 3rem; }
    .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
}

@media (min-width: 1024px) {
    .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .lg\:prose-xl { font-size: 1.25rem; line-height: 1.8; }
}

/* Image Object Fit */
.object-cover { object-fit: cover; }
.rounded-full { border-radius: 9999px; }
.rounded-3xl { border-radius: 1.5rem; }

/* Flex alignment */
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }


/* ================================== */
/* 21. FIXES DE VISIBILIDADE HERO */
/* ================================== */
.post-hero-content {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.post-hero-content h1, 
.post-hero-content p, 
.post-hero-content span, 
.post-hero-content div {
    color: #ffffff !important;
}

/* Fix Avatar */
.post-hero-content .rounded-full.border {
    border-color: rgba(255,255,255,0.5) !important;
    background-color: rgba(255,255,255,0.2) !important;
    color: #ffffff !important;
}

/* Fix Tag Artigo */
.post-hero-content .bg-primaria {
    background-color: var(--primaria) !important;
    color: #ffffff !important;
    text-shadow: none;
}


/* ================================== */
/* 22. CABEÇALHO DO BLOG PREMIUM */
/* ================================== */

/* Badge de Categoria */
.post-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.post-badge:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px);
}

/* Metadados (Data e Leitura) */
.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    letter-spacing: 0.02em;
}
.post-meta span { color: #fff !important; }
.post-meta-separator {
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

/* Avatar do Autor */
.post-author-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff !important;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Info do Autor */
.post-author-info h4 {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.post-author-info p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.875rem;
    margin: 0;
    font-weight: 400;
}


/* ================================== */
/* 23. FIXES DO CHAT WIDGET */
/* ================================== */
#chatbot-container {
    position: fixed;
    bottom: 2rem !important;
    right: 2rem !important;
    z-index: 9999 !important;
}

#chatbot-window {
    width: 350px !important;
    height: 500px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
    border-radius: 1rem !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    bottom: 5.5rem !important;
    right: 0 !important;
}

.chat-header {
    flex-shrink: 0;
    padding: 1rem !important;
    background: linear-gradient(135deg, var(--primaria) 0%, var(--primaria-dark) 100%);
    color: white;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem !important;
    background-color: #f9fafb !important;
}

.chat-input {
    flex-shrink: 0;
    padding: 0.75rem !important;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.chat-input__form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-text {
    flex-grow: 1;
    border: 1px solid #e5e7eb !important;
    padding: 0.5rem 1rem !important;
    border-radius: 9999px !important;
}

/* Fix Hidden State */
#chatbot-window.hidden {
    display: none !important;
}

/* Responsive Fix */
@media (max-width: 640px) {
    #chatbot-window {
        width: 90vw !important;
        height: 70vh !important;
        bottom: 5rem !important;
        right: -1rem !important;
    }
}


/* ================================== */
/* 24. CARDS PREMIUM (QUEM SOMOS) */
/* ================================== */

.pillar-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-2xl);
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.95);
}

.pillar-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4);
}

.pillar-icon svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.pillar-card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.pillar-card p {
    position: relative;
    z-index: 1;
}

/* Melhoria nos Flip Cards (Serviços) */
.flip-card-front, .flip-card-back {
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05),
        inset 0 0 20px rgba(0,0,0,0.05); /* Textura interna */
}

/* Gradientes Premium para os Flip Cards */
.bg-gradient-blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.bg-gradient-cyan { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.bg-gradient-orange { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.bg-gradient-purple { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.bg-gradient-teal { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); }
.bg-gradient-amber { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.bg-gradient-indigo { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }
.bg-gradient-pink { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }


/* ================================== */
/* 26. FIXES FINAIS: CORES E POSIÇÃO */
/* ================================== */

/* Forçar texto branco nos cards de serviço */
.flip-card-front, .flip-card-back {
    color: #ffffff !important;
}
.flip-card-front h3, .flip-card-back p, .flip-card-back span {
    color: #ffffff !important;
}

/* Forçar Posições (Chat Direita / Scroll Esquerda) */
#chatbot-container {
    left: auto !important;
    right: 20px !important;
    bottom: 20px !important;
}

.scroll-to-top {
    right: auto !important;
    left: 20px !important;
    bottom: 20px !important;
    z-index: 9999;
}

/* Garantir que o botão de scroll funcione e seja visível */
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* ================================== */
/* 27. FIXES FINAIS DE LAYOUT E POSIÇÃO */
/* ================================== */

/* CORREÇÃO DO SCROLL-TO-TOP */
/* O JS usa a classe .visible, não .show */
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* CORREÇÃO DA JANELA DO CHAT (OFF-SCREEN) */
/* Ancorar a janela à direita do container para crescer para a esquerda */
#chatbot-container #chatbot-window {
    left: auto !important;
    right: 0 !important;
    transform-origin: bottom right;
}

/* FORÇAR TEXTO BRANCO EM TODOS OS ELEMENTOS DOS CARDS */
.flip-card-front *, 
.flip-card-back * {
    color: #ffffff !important;
}

/* Pequeno ajuste para garantir legibilidade no hover */
.flip-card-back p {
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

