/**
 * styles.css - Estilos complementares e tipografia refinada para ZHAARQ
 * Inspirado em arquitetura editorial de luxo (Buildora & Elysian)
 * Tipografia: Tenor Sans (Luxo & Moda Editorial) + Jost (Bauhaus Arquitetônica)
 */

@import url('https://fonts.googleapis.com/css2?family=Tenor+Sans&family=Syne:wght@500;600;700;800&family=Jost:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Urbanist:ital,wght@0,300;0,400;0,500;0,600;0,700&display=swap');

:root {
  --brand-primary: #993819;
  --brand-primary-hover: #7D2306;
  --brand-dark: #121110;
  --brand-dark-surface: #1A1816;
  --brand-dark-card: #22201D;
  --brand-bg: #F7F4EE;
  --brand-bg-warm: #EFE9E0;
  --brand-bg-card: #FFFFFF;
  --brand-border: #E8E1D7;
  --brand-border-dark: #2F2A25;
  --brand-title: #141311;
  --brand-muted: #6E665E;
  --brand-gold: #C5A880;
  --brand-gold-light: #DFCDAE;
}

html, body {
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: 'Jost', 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--brand-bg);
  color: var(--brand-title);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

.font-editorial {
  font-family: 'Tenor Sans', 'Syne', sans-serif;
  letter-spacing: -0.01em;
}

/* Cabeçalho Sticky da Seção de Especialidades (Visível durante o scroll dos cards) */
.services-sticky-header {
  position: sticky;
  top: 68px;
  z-index: 50;
  background-color: rgba(251, 249, 245, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(216, 206, 195, 0.8);
  transition: all 0.25s ease;
}

@media (min-width: 640px) {
  .services-sticky-header {
    top: 76px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .services-sticky-header {
    top: 88px;
  }
}

/* Stacking Cards: Carrossel Vertical com Sobreposição e Efeito de Escala */
.stacking-container {
  position: relative;
  padding-bottom: 0 !important;
}

.stack-card {
  transform-origin: top center;
  will-change: transform, filter;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
  margin-bottom: 20px !important;
}

@media (min-width: 640px) {
  .stacking-container {
    padding-bottom: 0 !important;
  }
  .stack-card {
    margin-bottom: 20px !important;
  }
}

.stack-card:last-child {
  margin-bottom: 0 !important;
}

/* Fundo com textura nobre e micro-ruído suave */
.bg-subtle-pattern {
  background-color: #F7F4EE;
  background-image: radial-gradient(#d8cec3 0.65px, transparent 0.65px);
  background-size: 28px 28px;
}

/* Seções de Alto Contraste (Grafite Profundo Editorial Nobre) */
.bg-dark-section {
  background-color: #121110;
  color: #F7F4EE;
}

/* Linha do tempo conectora entre etapas */
.timeline-connector {
  position: relative;
}
@media (min-width: 1024px) {
  .timeline-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1rem;
    width: 2rem;
    height: 1px;
    background: #E5DCD2;
    z-index: 10;
  }
}

/* Sombras refinadas sem peso excessivo */
.editorial-shadow {
  box-shadow: 0 10px 30px -5px rgba(25, 23, 21, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-shadow:hover {
  box-shadow: 0 15px 35px -5px rgba(153, 56, 25, 0.10);
  transform: translateY(-2px);
}

/* Acordeão do FAQ com transição suave e ícone minimalista */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease-out;
  opacity: 0;
}

.faq-item.active .faq-content {
  max-height: 600px;
  opacity: 1;
}

.faq-item.active .faq-icon-line-v {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-item.active .faq-num {
  color: var(--brand-primary) !important;
}

.faq-item.active .faq-question {
  color: var(--brand-primary) !important;
}

/* Toast Notification */
#toast-container {
  position: fixed;
  bottom: 84px;
  right: 24px;
  z-index: 9999;
  pointer-events: none;
}
@media (min-width: 768px) {
  #toast-container {
    bottom: 24px;
  }
}

.toast {
  pointer-events: auto;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* Refino visual arquitetônico: ícones minimalistas, delicados e orgânicos */
.pain-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 9999px;
  background-color: rgba(197, 168, 128, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
  transition: all 0.25s ease;
}
.pain-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 1.25;
  flex: none;
}
.pain-card:hover .pain-icon {
  background-color: var(--brand-primary);
  color: #FFFFFF;
}

/* Cards de dor: visual Bento Grid contemporâneo inspirado na Elysian */
.pain-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: 1.5rem; /* rounded-3xl */
  padding: 1.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pain-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-gold);
  box-shadow: 0 16px 36px -12px rgba(18, 17, 16, 0.08);
}

/* Divisores fluidos orgânicos inspirados na Buildora */
.curved-divider-bottom {
  position: relative;
}
.curved-divider-bottom::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 36px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' fill='%23121110' preserveAspectRatio='none'%3E%3Cpath d='M0,32 C320,64 720,0 1440,32 L1440,60 L0,60 Z'%3E%3C/path%3E%3C/svg%3E") no-repeat center bottom;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 10;
}

.curved-divider-top {
  position: relative;
}
.curved-divider-top::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 36px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' fill='%23121110' preserveAspectRatio='none'%3E%3Cpath d='M0,28 C420,0 1020,60 1440,28 L1440,0 L0,0 Z'%3E%3C/path%3E%3C/svg%3E") no-repeat center top;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 10;
}


/* ==========================================
   SCROLL REVEAL - EXPERIENCIA EDITORIAL
   ========================================== */
.scroll-section {
  --reveal-distance: 28px;
}

.scroll-reveal {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: none;
  transition:
    opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.72s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.scroll-reveal.is-visible,
.scroll-section.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: none;
}

/* Garante nitidez absoluta sem branqueamento ou desfoque nas seções */
.scroll-section:not(.is-visible) {
  opacity: 1;
}

.scroll-section.is-visible .scroll-reveal {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: none;
}

/* Imagens ganham uma entrada mais suave sem parecer um carrossel. */
.scroll-section img.scroll-reveal {
  transform: translate3d(0, 22px, 0) scale(0.985);
}

.scroll-section img.scroll-reveal.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

/* Evita animar a barra fixa mobile e elementos de interface. */
.md\\:fixed,
#toast-container,
#lgpd-banner,
#lightbox-modal {
  transform: none !important;
}

/* Acessibilidade: desliga todas as transicoes de entrada. */
@media (prefers-reduced-motion: reduce) {
  .scroll-section,
  .scroll-reveal,
  .scroll-section img.scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}


/* ==========================================
   MICROINTERAÇÕES - HOVER PREMIUM
   ========================================== */

/* Botões de conversão: resposta visual imediata ao mouse */
.btn-whatsapp {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.2s ease;
}

.btn-whatsapp::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 58%,
    transparent 100%
  );
  transform: translateX(-120%);
  transition: transform 0.65s ease;
  pointer-events: none;
  z-index: -1;
}

.btn-whatsapp:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 14px 30px rgba(153, 56, 25, 0.22);
}

.btn-whatsapp:hover::after {
  transform: translateX(120%);
}

.btn-whatsapp svg {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-whatsapp:hover svg {
  transform: scale(1.12) rotate(-5deg);
}

/* Cards: o cursor "acorda" o conteúdo */
.pain-card {
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    border-color 0.25s ease;
}

.pain-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(25, 23, 21, 0.09);
  border-color: rgba(153, 56, 25, 0.28);
}

.pain-card .pain-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pain-card:hover .pain-icon {
  transform: translateX(3px) scale(1.08);
}

/* Imagens: zoom mínimo, mais sensação de site premium */
.zoomable-image {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  cursor: zoom-in;
}

.zoomable-image:hover {
  transform: scale(1.025);
  filter: saturate(1.04) contrast(1.01);
}

/* FAQ editorial suave */
.faq-trigger {
  transition: color 0.25s ease;
}

.faq-item:hover .faq-num {
  color: var(--brand-primary);
}

.faq-item:hover .faq-question {
  color: var(--brand-primary);
}

/* ==========================================
   WHATSAPP FLUTUANTE - DESKTOP
   ========================================== */

.whatsapp-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #25D366;
  color: #fff;
  z-index: 45;
  box-shadow:
    0 10px 28px rgba(37, 211, 102, 0.4),
    0 0 0 0 rgba(37, 211, 102, 0.3);
  animation: whatsappPulse 2.8s ease-out infinite;
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s ease,
    background-color 0.2s ease;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(197, 168, 128, 0.4);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.whatsapp-float:hover {
  background: #1EBE5D;
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 18px 40px rgba(153, 56, 25, 0.35);
  animation-play-state: paused;
}

.whatsapp-float:hover::before {
  opacity: 1;
  transform: scale(1);
}

.whatsapp-float svg, .whatsapp-float img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-float:hover svg {
  transform: rotate(-8deg) scale(1.08);
}

.whatsapp-float-label {
  position: absolute;
  right: calc(100% + 12px);
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: #191715;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.whatsapp-float:hover .whatsapp-float-label {
  opacity: 1;
  transform: translateX(0);
}

@keyframes whatsappPulse {
  0%, 72%, 100% {
    box-shadow:
      0 10px 28px rgba(25, 23, 21, 0.18),
      0 0 0 0 rgba(153, 56, 25, 0.34);
  }
  82% {
    box-shadow:
      0 10px 28px rgba(25, 23, 21, 0.18),
      0 0 0 10px rgba(153, 56, 25, 0);
  }
}

/* No mobile, a barra inferior já cumpre o papel do CTA fixo. */
@media (max-width: 767px) {
  .whatsapp-float {
    display: none;
  }
}

/* Respeita acessibilidade */
@media (prefers-reduced-motion: reduce) {
  .btn-whatsapp,
  .pain-card,
  .zoomable-image,
  .faq-item,
  .whatsapp-float,
  .btn-whatsapp svg,
  .pain-card .pain-icon,
  .whatsapp-float svg {
    transition: none !important;
    animation: none !important;
  }

  .btn-whatsapp:hover,
  .pain-card:hover,
  .faq-item:hover,
  .whatsapp-float:hover {
    transform: none !important;
  }
}


/* ==========================================
   REFINO PREMIUM - PROFUNDIDADE E NAVEGAÇÃO
   ========================================== */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--brand-primary);
  z-index: 100;
  pointer-events: none;
}

.site-header {
  transition: box-shadow 0.35s ease, background-color 0.35s ease, border-color 0.35s ease;
}

.site-header > div {
  transition: padding 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.3);
  background-color: rgba(18, 17, 16, 0.96) !important;
  border-bottom: 1px solid rgba(197, 168, 128, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header.is-scrolled > div {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.hero-premium {
  --hero-x: 0px;
  --hero-y: 0px;
}

.hero-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at calc(50% + var(--hero-x)) calc(45% + var(--hero-y)),
    rgba(196, 150, 107, 0.10),
    transparent 68%
  );
}

.hero-bg-layer {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  pointer-events: none;
}

.hero-premium .editorial-shadow {
  transform: translate3d(var(--card-x, 0px), var(--card-y, 0px), 0);
  transition: transform 0.18s ease-out, box-shadow 0.35s ease;
}

.hero-premium .editorial-shadow:hover {
  transform: translate3d(var(--card-x, 0px), calc(var(--card-y, 0px) - 4px), 0);
}

.hero-premium .editorial-shadow img {
  transform: scale(1.015);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.hero-premium .editorial-shadow:hover img {
  transform: scale(1.035);
  filter: saturate(1.035);
}

.scroll-section .bg-white.p-6:not(.pain-card) {
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    border-color 0.25s ease;
}

.scroll-section .bg-white.p-6:not(.pain-card):hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(25, 23, 21, 0.07);
  border-color: rgba(153, 56, 25, 0.22);
}

.bg-dark-section {
  position: relative;
  overflow: hidden;
}

.bg-dark-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  width: 84%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 150, 107, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.9s ease;
}

.bg-dark-section.is-visible::before {
  opacity: 1;
}

@media (max-width: 767px) {
  .site-header.is-scrolled .max-w-6xl {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .hero-premium::before {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reading-progress,
  .site-header,
  .site-header .max-w-6xl,
  .hero-premium .editorial-shadow,
  .hero-premium .editorial-shadow img,
  .scroll-section .bg-white.p-6:not(.pain-card),
  .bg-dark-section::before {
    transition: none !important;
  }

  .hero-premium::before {
    display: none;
  }
}


/* ==========================================
   CONVERSÃO PREMIUM - SINALIZAÇÃO DE CONFIANÇA
   ========================================== */

.hero-trust-strip {
  box-shadow: 0 14px 36px rgba(25, 23, 21, 0.055);
}

.hero-trust-strip > div {
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.hero-trust-strip > div:hover {
  background-color: rgba(255, 255, 255, 0.98);
}

@media (max-width: 639px) {
  .hero-trust-strip {
    box-shadow: 0 10px 28px rgba(25, 23, 21, 0.045);
  }
}


/* ==========================================
   FLUXO DE CONVERSÃO - PROVA ANTES DA BUROCRACIA
   ========================================== */

.bg-dark-section .max-w-4xl > .text-6xl,
.bg-dark-section .max-w-4xl > .text-7xl,
.bg-dark-section .max-w-4xl > .text-8xl {
  text-shadow: 0 8px 28px rgba(196, 150, 107, 0.12);
}

/* ==========================================
   CARDS DE ETAPAS ORGÂNICOS (SEÇÃO COMO FUNCIONA)
   Inspirado no design de referência com onda superior
   ========================================== */
.organic-card-shadow {
  filter: drop-shadow(0 12px 24px rgba(197, 168, 128, 0.16));
  transition: filter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .organic-card-shadow {
  filter: drop-shadow(0 18px 32px rgba(197, 168, 128, 0.26));
}

.icon-badge-warm {
  background-color: #FCE8B2;
  border: 1px solid rgba(216, 182, 133, 0.45);
}

/* ==========================================
   CARROSSEL MOBILE (NO SCROLLBAR & TOUCH OPTIMIZATIONS)
   ========================================== */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}


