/* ==========================================================================
   DESIGN SYSTEM & TOKENS — Dra. Mariana Panzardi | Oftalmopediatra
   Paleta pastel (info.md): azul, rosa, amarelo, coral, lavanda
   ========================================================================== */
:root {
  /* Cores principais (substituem navy/dourado da paleta clássica por pastel) */
  --navy: #4A5A8C;
  /* Azul petróleo suave - Fundo Principal Escuro */
  --blue-medium: #6B7FB0;
  /* Azul médio para Cards e Sub-fundos */
  --white: #FFFFFF;
  --rose: #C24272;
  /* Rosa profundo - Botões e textos/links sobre fundos claros */
  --rose-light: #F7B3CC;
  /* Rosa pastel vivo - Destaques e textos sobre fundos escuros (navy) */

  /* Acentos pastel pontuais (chips/tags coloridos da seção Atuação) */
  --pink: #F5C9D6;
  --yellow: #FBE7A8;
  --lavender: #D9CDEF;
  --sky: #BFD7EC;

  /* Fundos e textos claros */
  --cream: #FFF8F2;
  --nude: #FBEFE0;
  --bg-light: #FFF8F2;
  --text-dark: #2E2A38;
  --text-muted: #6B6478;

  /* Tipografia — display arredondada e acolhedora (nicho pediátrico) + sans neutra para leitura */
  --font-display: 'Fredoka', sans-serif;
  --font-sans: 'Inter', sans-serif;

  /* Micro-interações */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --t-snappy: 0.25s var(--ease-premium);
  --t-smooth: 0.5s var(--ease-premium);
  --t-slow: 1.5s var(--ease-premium);
}

/* Scrollbar Personalizada — minimalista, mais fina que o padrão, dentro do branding */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--rose);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a3335f;
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--rose) var(--cream);
}

/* Reset & Configurações Globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

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

/* Prevenção de Tontura / Acessibilidade */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   COMPONENTES GERAIS: BOTÕES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  /* Botões em pílula — acolhedor para o nicho pediátrico */
  transition: transform var(--t-snappy), background-color var(--t-snappy), box-shadow var(--t-snappy);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-rose {
  background-color: var(--rose);
  color: var(--white);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(46, 42, 56, 0.18);
  }

  .btn-rose:hover {
    background-color: #a3335f;
    /* Leve escurecimento sem brilho */
  }
}

.btn-nav {
  padding: 10px 20px;
}

.btn-hero,
.btn-large {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Título de Seções */
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.25rem;
  margin-bottom: 24px;
  line-height: 1.25;
}

.text-navy {
  color: var(--navy);
}

.text-white {
  color: var(--white);
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   SEÇÃO 0: NAVBAR INTELIGENTE
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: background-color var(--t-smooth), backdrop-filter var(--t-smooth), transform var(--t-smooth);
}

.site-header--scrolled {
  background-color: rgba(74, 90, 140, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(247, 179, 204, 0.18);
}

.site-header--hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

/* Sentinela invisível no topo da Hero usada pelo IntersectionObserver
   para alternar o fundo com blur, sem recorrer a scroll listener */
.scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 40px;
  pointer-events: none;
  opacity: 0;
}

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

.logo-link {
  display: block;
  line-height: 0;
}

.logo img {
  height: 52px;
  /* Altura proeminente para visibilidade nítida */
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-item {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
  transition: color var(--t-snappy);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--rose-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .nav-item:hover {
    color: var(--rose-light);
  }

  .nav-item:hover::after {
    transform: scaleX(1);
  }
}

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

/* Hamburger — oculto em desktop */
.nav-hamburger {
  display: none;
}

/* ==========================================================================
   SEÇÃO 1: HERO (SEM FOTO — gradiente pastel + grain, conforme criadordesite.md)
   ========================================================================== */
.section-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--navy);
  padding: 140px 24px 80px 24px;
  overflow: hidden;
}

/* Imagem de fundo com opacidade baixa */
.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-bg.png');
  background-size: cover;
  background-position: center 65%;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
  transform: scale(1.2);
  transform-origin: 40% 65%;
}

/* Máscara de escurecimento lateral para legibilidade do texto */
.section-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      var(--navy) 0%,
      rgba(74, 90, 140, 0.85) 30%,
      rgba(74, 90, 140, 0.4) 55%,
      rgba(74, 90, 140, 0.05) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Degradê radial suave + Noise SVG (opacidade máxima 0.05, conforme criadordesite.md) */
.hero-noise {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(107, 127, 176, 0.35) 0%, rgba(74, 90, 140, 0) 60%),
    radial-gradient(circle at 15% 80%, rgba(247, 179, 204, 0.12) 0%, rgba(74, 90, 140, 0) 55%),
    radial-gradient(circle at 70% 55%, rgba(107, 127, 176, 0.22) 0%, rgba(74, 90, 140, 0.98) 75%);
  pointer-events: none;
  z-index: 3;
}

.hero-noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.045;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 4;
}

.hero-content {
  max-width: 720px;
  text-align: left;
  /* Bloco de texto 100% à esquerda */
}

.kicker-tag {
  font-family: var(--font-sans);
  color: var(--rose-light);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 248, 242, 0.82);
  margin-bottom: 40px;
}

/* ==========================================================================
   SEÇÃO 2: SOBRE
   ========================================================================== */
.section-sobre {
  background-color: var(--cream);
  padding: 100px 24px;
}

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

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.sobre-left {
  display: flex;
  justify-content: center;
}

.sobre-img-container {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(194, 66, 114, 0.4);
  border-radius: 8px;
  padding: 12px;
  background-color: rgba(74, 90, 140, 0.03);
  box-shadow: 0 20px 40px rgba(74, 90, 140, 0.12);
}

.sobre-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
}

.sobre-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.pillars-wrapper {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pillar-item {
  border-left: 2px solid var(--rose);
  padding-left: 16px;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   SEÇÃO 3: ÁREAS DE ATUAÇÃO
   ========================================================================== */
.section-atuacao {
  background-color: var(--navy);
  padding: 100px 24px;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

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

.atuacao-intro {
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 248, 242, 0.75);
  margin-bottom: 56px;
}

.atuacao-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.atuacao-card {
  background-color: var(--blue-medium);
  border: 1px solid rgba(247, 179, 204, 0.22);
  border-radius: 8px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-snappy), border-color var(--t-snappy), box-shadow var(--t-snappy);
}

/* Badge de ícone colorido — alterna entre os tons pastel a cada card,
   trazendo variedade dinâmica e lúdica à seção */
.card-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform var(--t-snappy);
}

.card-icon-badge svg {
  width: 28px;
  height: 28px;
  stroke: var(--navy);
  color: var(--navy);
}

.atuacao-card:nth-child(4n+1) .card-icon-badge {
  background-color: var(--pink);
}

.atuacao-card:nth-child(4n+2) .card-icon-badge {
  background-color: var(--yellow);
}

.atuacao-card:nth-child(4n+3) .card-icon-badge {
  background-color: var(--lavender);
}

.atuacao-card:nth-child(4n+4) .card-icon-badge {
  background-color: var(--sky);
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 14px;
}

.card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 248, 242, 0.8);
  margin-bottom: 22px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  padding: 6px 12px;
  border-radius: 6px;
  line-height: 1.3;
}

.atuacao-card:nth-child(4n+1) .tag-chip {
  background-color: var(--pink);
}

.atuacao-card:nth-child(4n+2) .tag-chip {
  background-color: var(--yellow);
}

.atuacao-card:nth-child(4n+3) .tag-chip {
  background-color: var(--lavender);
}

.atuacao-card:nth-child(4n+4) .tag-chip {
  background-color: var(--sky);
}

@media (hover: hover) and (pointer: fine) {
  .atuacao-card:hover {
    transform: translateY(-6px);
    border-color: rgba(247, 179, 204, 0.55);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  }

  .atuacao-card:hover .card-icon-badge {
    transform: rotate(-8deg) scale(1.08);
  }
}

/* ==========================================================================
   SEÇÃO 4: METODOLOGIA
   ========================================================================== */
.section-metodologia {
  background-color: var(--nude);
  padding: 100px 24px;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

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

.metodologia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
}

.metodo-col {
  position: relative;
}

.metodo-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.15;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}

.metodo-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 16px;
  font-weight: 700;
}

.metodo-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(46, 42, 56, 0.8);
}

/* ==========================================================================
   SEÇÃO 5: FAQ (ACCORDION COM CSS GRID)
   ========================================================================== */
.section-faq {
  background-color: var(--cream);
  padding: 100px 24px;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

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

.faq-accordion {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid rgba(74, 90, 140, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow var(--t-snappy);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 700;
  transition: background-color var(--t-snappy);
}

.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--rose);
  transition: transform var(--t-smooth);
}

.faq-icon::before {
  top: 9px;
  left: 0;
  width: 20px;
  height: 2px;
}

.faq-icon::after {
  top: 0;
  left: 9px;
  width: 2px;
  height: 20px;
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-question[aria-expanded="true"] .faq-icon::before {
  transform: rotate(180deg);
}

/* Transição de Altura via CSS Grid — nunca max-height */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-smooth);
}

.faq-answer-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-answer-inner p {
  padding: 0 24px 24px 24px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.faq-answer.open {
  grid-template-rows: 1fr;
}

@media (hover: hover) and (pointer: fine) {
  .faq-question:hover {
    background-color: rgba(74, 90, 140, 0.03);
  }
}

/* ==========================================================================
   SEÇÃO 6: CTA FINAL
   ========================================================================== */
.section-cta-final {
  background-color: var(--navy);
  padding: 120px 24px;
  text-align: center;
  border-top: 1px solid rgba(247, 179, 204, 0.2);
}

.cta-final-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  line-height: 1.25;
  color: var(--cream);
  margin-bottom: 20px;
}

.cta-desc {
  font-size: 1.1rem;
  color: rgba(255, 248, 242, 0.82);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ==========================================================================
   SEÇÃO 8/9: BLOG E ARTIGO ÚNICO
   ========================================================================== */
#blog-secao,
#artigo-secao {
  padding: 140px 24px 100px 24px;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

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

.blog-title-section {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 48px;
  text-align: center;
  color: var(--navy);
}

.blog-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.blog-card {
  background-color: var(--white);
  border: 1px solid rgba(74, 90, 140, 0.1);
  border-radius: 8px;
  padding: 30px;
  cursor: pointer;
  transition: transform var(--t-smooth), box-shadow var(--t-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 14px;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.blog-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rose);
  display: inline-flex;
  align-items: center;
  transition: color var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(74, 90, 140, 0.08);
  }

  .blog-card:hover .blog-card-link {
    color: var(--navy);
  }
}

.artigo-single-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Layout de leitura em duas colunas: artigo + sidebar do autor */
.artigo-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

.artigo-main {
  min-width: 0;
}

.btn-voltar {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rose);
  margin-bottom: 32px;
  padding: 0;
  transition: opacity var(--t-snappy);
  display: inline-flex;
  align-items: center;
}

.btn-voltar:hover {
  opacity: 0.8;
}

.artigo-meta-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}

.artigo-main-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 24px;
}

.artigo-divider {
  border: 0;
  border-top: 1px solid rgba(74, 90, 140, 0.12);
  margin: 24px 0 32px 0;
}

/* Sidebar: cartão do autor + outros artigos */
.artigo-sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background-color: var(--white);
  border: 1px solid rgba(74, 90, 140, 0.1);
  border-radius: 8px;
  padding: 28px 24px;
}

.autor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  border: 2px solid var(--pink);
  display: block;
  margin-bottom: 16px;
}

.autor-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}

.autor-nome {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
}

.autor-cargo {
  font-size: 0.85rem;
  color: var(--rose);
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
}

.autor-bio {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.sidebar-divider {
  border: 0;
  border-top: 1px solid rgba(74, 90, 140, 0.1);
  margin: 0 0 14px 0;
}

.sidebar-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sidebar-date strong {
  color: var(--navy);
}

.sidebar-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.sidebar-post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-post-item {
  display: block;
  cursor: pointer;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(74, 90, 140, 0.08);
}

.sidebar-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-post-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 4px;
  transition: color var(--t-snappy);
}

.sidebar-post-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (hover: hover) and (pointer: fine) {
  .sidebar-post-item:hover .sidebar-post-title {
    color: var(--rose);
  }
}

@media (max-width: 900px) {
  .artigo-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .artigo-sidebar {
    position: static;
  }
}

.artigo-text-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--text-dark);
  text-align: justify;
}

.artigo-text-body strong {
  font-weight: 700;
  color: var(--navy);
}

.blog-blockquote {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--navy);
  border-left: 3px solid var(--rose);
  padding-left: 24px;
  margin: 36px 0;
  font-style: italic;
}

.artigo-text-body ul {
  margin-bottom: 24px;
  padding-left: 24px;
  list-style-type: square;
}

.artigo-text-body li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: var(--text-dark);
}

.loading,
.empty,
.error {
  text-align: center;
  padding: 48px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.error a {
  color: var(--rose);
  text-decoration: none;
  font-weight: 600;
}

/* ==========================================================================
   SEÇÃO 7: FOOTER
   ========================================================================== */
.site-footer {
  background-color: #38416A;
  /* Navy pastel mais profundo */
  padding: 80px 24px 40px 24px;
  border-top: 1px solid rgba(247, 179, 204, 0.12);
}

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

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-logo img {
  height: 44px;
  width: auto;
  display: block;
  margin-bottom: 24px;
}

.footer-brand-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 248, 242, 0.65);
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--rose-light);
  margin-bottom: 24px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 248, 242, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover {
    color: var(--rose-light);
  }
}

.footer-contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-link {
  color: var(--white);
  text-decoration: none;
  font-size: 1.05rem;
  transition: color var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .footer-contact-link:hover {
    color: var(--rose-light);
  }
}

.email-detail {
  font-size: 0.95rem;
  color: rgba(255, 248, 242, 0.75);
}

.address-detail {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 248, 242, 0.55);
  margin-top: 8px;
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.social-icon {
  width: 20px;
  height: 20px;
  fill: rgba(255, 248, 242, 0.65);
  transition: fill var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .social-link:hover .social-icon {
    fill: var(--rose-light);
  }
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 248, 242, 0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright-text,
.credits-text {
  font-size: 0.85rem;
  color: rgba(255, 248, 242, 0.45);
}

.agency-link {
  color: var(--rose-light);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .agency-link:hover {
    color: var(--white);
  }
}

/* ==========================================================================
   WIDGET DE WHATSAPP INTELIGENTE
   ========================================================================== */
.whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-smooth);
}

.whatsapp-widget.widget-visible {
  opacity: 1;
  pointer-events: none;
}

.whatsapp-trigger-btn,
.whatsapp-chat-panel,
.whatsapp-tooltip {
  pointer-events: auto;
}

.whatsapp-trigger-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform var(--t-snappy), background-color var(--t-snappy);
  will-change: transform;
}

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

@media (hover: hover) and (pointer: fine) {
  .whatsapp-trigger-btn:hover {
    transform: scale(1.05);
    background-color: #128C7E;
  }
}

.whatsapp-tooltip {
  background-color: var(--navy);
  border: 1px solid rgba(247, 179, 204, 0.35);
  color: var(--white);
  padding: 0 18px 0 14px;
  border-radius: 6px;
  margin-bottom: 0;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.3s var(--ease-premium),
    transform 0.3s var(--ease-premium),
    max-height 0.3s var(--ease-premium),
    padding 0.3s var(--ease-premium),
    margin-bottom 0.3s var(--ease-premium),
    visibility 0.3s;
  will-change: opacity, transform, max-height;
}

.whatsapp-tooltip.active {
  opacity: 1;
  visibility: visible;
  max-height: 80px;
  padding: 12px 18px 12px 14px;
  margin-bottom: 12px;
  transform: translateY(0) scale(1);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 25px;
  width: 10px;
  height: 10px;
  background-color: var(--navy);
  border-right: 1px solid rgba(247, 179, 204, 0.35);
  border-bottom: 1px solid rgba(247, 179, 204, 0.35);
  transform: rotate(45deg);
}

.close-tooltip-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 12px;
  margin: -12px -12px -12px 0;
  transition: color var(--t-snappy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.close-tooltip-btn:hover {
  color: var(--rose-light);
}

.whatsapp-chat-panel {
  width: 320px;
  background-color: var(--white);
  border: 1px solid rgba(74, 90, 140, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  margin-bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s var(--ease-premium),
    transform 0.3s var(--ease-premium),
    max-height 0.3s var(--ease-premium),
    margin-bottom 0.3s var(--ease-premium),
    visibility 0.3s;
  will-change: transform, opacity, max-height;
}

.whatsapp-chat-panel.active {
  opacity: 1;
  visibility: visible;
  max-height: 500px;
  margin-bottom: 16px;
  transform: translateY(0) scale(1);
}

.chat-header {
  background-color: var(--navy);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  flex-direction: column;
}

.chat-header-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
}

.chat-header-status {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.chat-messages-container {
  padding: 16px;
  max-height: 340px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: #FAF3EC;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 85%;
  word-wrap: break-word;
  flex-shrink: 0;
}

.chat-bubble.received {
  background-color: var(--white);
  color: var(--text-dark);
  align-self: flex-start;
  border-top-left-radius: 2px;
  border: 1px solid rgba(74, 90, 140, 0.08);
}

.chat-bubble.sent {
  background-color: rgba(194, 66, 114, 0.15);
  color: var(--navy);
  align-self: flex-end;
  border-top-right-radius: 2px;
}

.chat-faq-options {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 8px;
  margin-top: 8px;
  opacity: 1;
  max-height: 300px;
  transition: opacity 0.3s var(--ease-premium), max-height 0.3s var(--ease-premium), margin-top 0.3s var(--ease-premium);
  overflow: hidden;
}

.chat-faq-options.hidden {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  pointer-events: none;
}

.chat-faq-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.chat-faq-opt {
  background-color: var(--white);
  border: 1px solid rgba(194, 66, 114, 0.4);
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  color: var(--navy);
  transition: background-color var(--t-snappy), border-color var(--t-snappy);
  min-height: 48px;
  display: flex;
  align-items: center;
}

@media (hover: hover) and (pointer: fine) {
  .chat-faq-opt:hover {
    background-color: rgba(194, 66, 114, 0.08);
    border-color: var(--rose);
  }
}

.chat-footer {
  padding: 12px;
  background-color: var(--white);
  border-top: 1px solid rgba(74, 90, 140, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-direct-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rose);
  text-decoration: none;
  transition: color var(--t-snappy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (hover: hover) and (pointer: fine) {
  .chat-direct-link:hover {
    color: var(--navy);
  }
}

.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 6px 0;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background-color: var(--navy);
  border-radius: 50%;
  animation: typingDot 1.4s infinite ease-in-out;
  opacity: 0.4;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.whatsapp-trigger-btn:focus-visible,
.close-tooltip-btn:focus-visible,
.chat-faq-opt:focus-visible {
  outline: 2px solid var(--rose-light) !important;
  outline-offset: 2px;
}

/* ==========================================================================
   STICKY CTA BAR MOBILE
   ========================================================================== */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding: 12px 16px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  z-index: 998;
}

/* Nota: a página 404.html é autocontida (estilos inline próprios),
   não depende deste arquivo — ver public_html/404.html */

/* ==========================================================================
   MEDIA QUERIES & RESPONSIVIDADE (MOBILE-FIRST)
   ========================================================================== */
@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .metodologia-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {

  /* Navbar */
  .header-container {
    padding: 12px 16px;
  }

  .logo img {
    height: 40px;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    align-items: flex-start;
    height: calc(100vh - 100%);
    height: calc(100dvh - 100%);
    background: rgba(56, 65, 106, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.35s var(--ease-premium), transform 0.35s var(--ease-premium);
    overflow-y: auto;
  }

  .main-nav.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 32px 24px;
  }

  .nav-list li {
    border-bottom: 1px solid rgba(255, 248, 242, 0.08);
  }

  .nav-item {
    display: block;
    padding: 16px 0;
    font-size: 1.05rem;
  }

  .nav-item::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }

  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--cream);
    transition: transform 0.35s var(--ease-premium), opacity 0.35s ease;
  }

  .nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Hero */
  .section-hero {
    padding: 100px 16px 60px 16px;
    min-height: auto;
  }

  .section-hero::after {
    background: linear-gradient(180deg,
        var(--navy) 0%,
        rgba(74, 90, 140, 0.85) 45%,
        rgba(74, 90, 140, 0.55) 100%);
  }

  /* Sobre */
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sobre-img-container {
    max-width: 300px;
  }

  /* Atuação */
  .section-atuacao {
    padding: 60px 16px;
  }

  /* Metodologia */
  .section-metodologia {
    padding: 60px 16px;
  }

  .metodologia-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* FAQ */
  .section-faq {
    padding: 60px 16px;
  }

  .faq-question {
    font-size: 1rem;
    padding: 20px;
  }

  /* CTA Final */
  .section-cta-final {
    padding: 60px 16px 110px 16px;
  }

  /* Blog & Artigos */
  #blog-secao,
  #artigo-secao {
    padding: 100px 16px 120px 16px;
  }

  .blog-grid-layout {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .site-footer {
    padding: 60px 16px 100px 16px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  /* Widget WhatsApp */
  .whatsapp-widget {
    bottom: 84px;
    right: 16px;
  }

  /* Botões full-width */
  .btn-hero,
  .btn-large {
    width: 100%;
    max-width: 320px;
  }
}