/* ================================================
   ALBUQUERQUE CURSINE — style.css (refatorado)
   ================================================ */

/* ====== DESIGN TOKENS ====== */
:root {
  --navy:      #0D2342;
  --navy-95:   rgba(13, 35, 66, 0.95);
  --navy-80:   rgba(13, 35, 66, 0.80);
  --blue:      #1A3A6B;
  --gold:      #C9A84C;
  --gold-dim:  rgba(201, 168, 76, 0.08);
  --gold-border: rgba(201, 168, 76, 0.15);
  --cream:     #F5EDD8; /* Creme conforme criadordesite.md */
  --cream-70:  rgba(245, 237, 216, 0.70);
  --nude:      #EDE0C4; /* Nude conforme criadordesite.md */
  --dark:      #07111f; /* Fundo escuro do footer e CTA final */
  --white:     #ffffff;

  /* Tipografia — hierarquia clássica editorial */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Raio de borda por uso semântico - máx 4px para botões/inputs, máx 8px para cards */
  --radius-btn:  4px;
  --radius-card: 8px;

  /* Sombras ultra suaves e difusas (criadordesite.md) */
  --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.05);

  /* Transições de Luxo Apple (criadordesite.md) */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --t-snappy: 0.25s var(--ease-premium);
  --t-smooth: 0.5s var(--ease-premium);

  --container: 1160px;
  --nav-h: 68px;
}

/* ====== RESET ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-btn);
}

/* ====== CONTAINER ====== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ====== BOTÕES ====== */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: 1px solid var(--gold);
  transition: background var(--t-snappy), transform var(--t-snappy), box-shadow var(--t-snappy);
  min-height: 54px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05); /* Sombra física suave preta (criadordesite.md) */
}

/* ====== TIPOGRAFIA COMPARTILHADA ====== */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.section-title em { font-style: italic; color: var(--gold); }
.title-light { color: var(--cream); }
.title-light em { color: var(--gold); }

/* ====== NAVBAR ====== */
.navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: transform var(--t-smooth), background var(--t-smooth), backdrop-filter var(--t-smooth);
}
.navbar.scrolled {
  background: rgba(245, 237, 216, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(13, 35, 66, 0.05);
}
.navbar.navbar-hidden {
  transform: translateY(-100%);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex-shrink: 0;
  color: var(--cream);
  transition: color var(--t-snappy);
}
.navbar.scrolled .nav-logo {
  color: var(--navy);
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}
.logo-text em { font-style: italic; color: var(--gold); }
.logo-sub {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 237, 216, 0.60);
  transition: color var(--t-snappy);
}
.navbar.scrolled .logo-sub {
  color: rgba(13, 35, 66, 0.55);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--cream);
  opacity: 0.8;
  padding: 8px 12px;
  position: relative;
  transition: color var(--t-snappy), opacity var(--t-snappy);
}
.navbar.scrolled .nav-link {
  color: var(--navy);
  opacity: 0.85;
}
/* Micro-interação de Link ::after (criadordesite.md) */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-snappy);
}
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover::after {
    transform: scaleX(1);
  }
  .nav-link:hover {
    opacity: 1;
  }
}
.nav-link.active {
  color: var(--gold) !important;
  opacity: 1 !important;
}
.nav-link.active::after {
  transform: scaleX(1) !important;
}

.nav-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  min-height: 38px;
  margin-left: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity var(--t-snappy), transform var(--t-snappy), background var(--t-snappy);
}
.nav-whatsapp.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
@media (hover: hover) and (pointer: fine) {
  .nav-whatsapp:hover {
    background: #b5933d; /* Elegante dourado escurecido */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform var(--t-snappy), opacity var(--t-snappy), background-color var(--t-snappy);
}
.navbar.scrolled .nav-toggle span {
  background: var(--navy);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ====== HERO (SEÇÃO 1) ====== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: var(--navy);
  /* Degradê radial escuro + ruído grain SVG inline com opacidade 0.04 (criadordesite.md) */
  background-image: 
    radial-gradient(circle at center, rgba(13, 35, 66, 0.4) 0%, rgba(7, 17, 31, 0.9) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  overflow: hidden;
}
.hero-brandmark-wrapper {
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: 50%;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  color: var(--blue);
  opacity: 0.15; /* Opacidade de 15% conforme a escolha do usuário */
}
.hero-brandmark {
  width: 100%;
  height: 100%;
  max-height: 90vh;
}
.hero-container {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  text-align: left;
  padding: clamp(80px, 14vh, 130px) 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.8vw, 4.2rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 22px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 400;
  color: rgba(245, 237, 216, 0.8);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ====== SOBRE (SEÇÃO 2) ====== */
.sobre {
  padding: clamp(80px, 12vh, 120px) 0;
  background: var(--cream);
  color: var(--navy);
}
.sobre-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(40px, 7vw, 88px);
  align-items: center;
}
.sobre-photo-wrapper { position: relative; }
.sobre-photo-container {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--nude);
  border-radius: var(--radius-card);
  border: 1px dashed rgba(13, 35, 66, 0.25); /* Borda tracejada Croqui */
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sobre-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sobre-credenciais {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 8px 20px;
  border-radius: var(--radius-btn);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.credencial-sep { opacity: 0.5; }

.sobre-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.sobre-title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 24px;
}
.sobre-title em { font-style: italic; color: var(--gold); display: block; }
.sobre-lead {
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.72;
  margin-bottom: 16px;
  font-weight: 400;
}
.sobre-body {
  font-size: 0.95rem;
  color: rgba(13,35,66,0.68);
  line-height: 1.78;
  margin-bottom: 36px;
}
.sobre-destaques {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid rgba(13,35,66,0.1);
}
.destaque-item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.88rem;
  color: rgba(13,35,66,0.75);
  font-weight: 500;
}
.destaque-item svg { color: var(--gold); flex-shrink: 0; }

/* ====== ÁREAS DE ATUAÇÃO (SEÇÃO 3) ====== */
.atuacao {
  padding: clamp(80px, 12vh, 120px) 0;
  background: var(--navy);
  color: var(--cream);
}
.atuacao-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 56px;
  gap: 16px;
  max-width: 560px;
}
.atuacao-desc {
  font-size: 1rem;
  color: var(--cream-70);
  line-height: 1.7;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: rgba(26, 58, 107, 0.20); /* --blue escurecido */
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(201, 168, 76, 0.15); /* Borda dourada finíssima com baixa opacidade */
  transition: background var(--t-snappy), border-color var(--t-snappy);
  position: relative;
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    background: rgba(26, 58, 107, 0.40);
    border-color: rgba(201, 168, 76, 0.45);
  }
}
.service-card:focus-visible {
  background: rgba(26, 58, 107, 0.40);
  border-color: rgba(201, 168, 76, 0.45);
  outline: none;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-sigla {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(201,168,76,0.5);
}
.card-icon { color: var(--gold); }
.card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
}
.card-desc {
  font-size: 0.86rem;
  color: rgba(245,237,216,0.60);
  line-height: 1.72;
  flex-grow: 1;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  padding: 6px 0;
  width: fit-content;
  min-height: 40px;
  transition: opacity var(--t-snappy);
}
@media (hover: hover) and (pointer: fine) {
  .card-cta:hover { opacity: 0.85; text-decoration: underline; }
}

/* ====== METODOLOGIA (SEÇÃO 4) ====== */
.metodologia {
  padding: clamp(80px, 12vh, 120px) 0;
  background: var(--nude);
  color: var(--navy);
}
.metodologia-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(40px, 7vw, 88px);
  align-items: start;
}
.metodologia-header {
  position: sticky;
  top: 100px;
}
.metodologia-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.metodologia-desc {
  margin-top: 20px;
  font-size: 0.92rem;
  color: rgba(13,35,66,0.65);
  line-height: 1.75;
}
.steps-list {
  display: flex;
  flex-direction: column;
}
.step-item {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(13,35,66,0.1);
}
.step-item:first-child { padding-top: 0; }
.step-item:last-child { border-bottom: none; padding-bottom: 0; }
.step-marker {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.25; /* Número gigante serifado e com opacidade reduzida */
  line-height: 1;
}
.step-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.step-desc {
  font-size: 0.9rem;
  color: rgba(13,35,66,0.70);
  line-height: 1.75;
}

/* ====== FAQ / DÚVIDAS (SEÇÃO 5) ====== */
.faq {
  padding: clamp(80px, 12vh, 120px) 0;
  background: var(--cream);
  color: var(--navy);
}
.faq-header {
  margin-bottom: 52px;
}
.faq-intro {
  margin-top: 14px;
  font-size: 0.95rem;
  color: rgba(13, 35, 66, 0.72);
  line-height: 1.6;
}
.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid rgba(13, 35, 66, 0.1);
}
.faq-item:first-child { border-top: 1px solid rgba(13, 35, 66, 0.1); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  text-align: left;
  transition: color var(--t-snappy);
  min-height: 60px;
}
.faq-question span { flex: 1; }
@media (hover: hover) and (pointer: fine) {
  .faq-question:hover {
    color: var(--gold);
  }
}
.faq-question:focus-visible {
  color: var(--gold);
  outline: none;
}
.faq-question[aria-expanded="true"] { color: var(--gold); }
.faq-chevron {
  flex-shrink: 0;
  color: var(--gold);
  transition: transform var(--t-smooth);
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }

/* UX do Accordion Baseado em CSS Grid (Obrigatório - criadordesite.md) */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-smooth);
  overflow: hidden;
}
.faq-answer.open {
  grid-template-rows: 1fr;
}
.faq-answer-inner {
  min-height: 0;
  overflow: hidden;
}
.faq-answer-inner p {
  padding-bottom: 24px;
  font-size: 0.92rem;
  color: rgba(13, 35, 66, 0.78);
  line-height: 1.78;
}

/* ====== CTA FINAL (SEÇÃO 6) ====== */
.cta-section {
  padding: clamp(100px, 16vh, 150px) 0;
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -40%; right: -5%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { 
  max-width: 640px; 
  margin: 0 auto; 
  position: relative; 
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 20px;
}
.cta-title em { font-style: italic; color: var(--gold); }
.cta-desc {
  font-size: 1rem;
  color: var(--cream-70);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 36px;
  font-weight: 300;
}

/* ====== FOOTER (SEÇÃO 7) ====== */
.footer {
  background: #07111f; /* Navy profundo */
  color: rgba(245, 237, 216, 0.50);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(201,168,76,0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream);
  display: block;
  margin-bottom: 5px;
}
.footer-logo em { font-style: italic; color: var(--gold); }
.footer-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.5);
  margin-bottom: 18px;
}
.footer-address {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: rgba(245,237,216,0.60);
}
.footer-nav-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav ul li a {
  font-size: 0.85rem;
  color: rgba(245,237,216,0.60);
  transition: color var(--t-snappy);
}
@media (hover: hover) and (pointer: fine) {
  .footer-nav ul li a:hover { color: var(--cream); }
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(201,168,76,0.7);
  transition: color var(--t-snappy);
  min-height: 44px;
}
@media (hover: hover) and (pointer: fine) {
  .footer-contact-link:hover { color: var(--gold); }
}
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin: 28px 0 20px;
}
.footer-disclaimer p {
  font-size: 0.76rem;
  color: rgba(245,237,216,0.30);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 20px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(245,237,216,0.30);
}
.footer-credits {
  font-size: 0.75rem;
  color: rgba(245,237,216,0.30);
}

/* ====== PERFORMANCE & ACESSIBILIDADE ====== */

/* Renderização Preguiçosa (criadordesite.md) */
.atuacao, .metodologia, .faq {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

/* Hover Seguro (criadordesite.md) */
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover {
    background: #b5933d; /* Elegante dourado escurecido adjacente */
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08); /* Sombra física suave preta (criadordesite.md) */
  }
}

/* Prevenção de Tontura / prefers-reduced-motion (criadordesite.md) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .section-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Scroll Reveal classes */
.section-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-smooth), transform var(--t-smooth);
}
.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== WIDGET DE WHATSAPP INTELIGENTE (botaozap.md) ====== */
.wa-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--t-smooth), transform var(--t-smooth);
}
.wa-bubble.visible {
  opacity: 1;
  pointer-events: none; /* Mantém para evitar detecção de hover em áreas vazias */
  transform: translateY(0);
}

.wa-trigger {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(13, 35, 66, 0.20);
  transition: transform var(--t-snappy), background-color var(--t-snappy);
  pointer-events: auto; /* Garante área de toque direta no botão */
}
@media (hover: hover) and (pointer: fine) {
  .wa-trigger:hover {
    background: #14335c;
    transform: scale(1.05);
  }
}
.wa-trigger:focus-visible {
  background: #14335c;
  transform: scale(1.05);
}

.wa-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.wa-tooltip {
  position: absolute;
  bottom: 72px;
  right: 0;
  background: var(--white);
  border: 1px solid rgba(13, 35, 66, 0.08);
  border-radius: 20px;
  padding: 10px 32px 10px 18px;
  box-shadow: 0 12px 32px rgba(13, 35, 66, 0.08);
  font-size: 0.84rem;
  color: var(--navy);
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease-premium), transform 0.3s var(--ease-premium);
  white-space: nowrap;
}
.wa-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.wa-tooltip-arrow {
  position: absolute;
  bottom: -6px;
  right: 23px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--white);
}
.wa-tooltip-close {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: rgba(13, 35, 66, 0.4);
  font-size: 0.65rem;
  cursor: pointer;
  transition: color var(--t-snappy);
  background: none;
  border: none;
}
@media (hover: hover) and (pointer: fine) {
  .wa-tooltip-close:hover {
    color: var(--navy);
  }
}

.wa-panel {
  width: 310px;
  height: 440px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 48px rgba(13, 35, 66, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: absolute;
  bottom: 72px;
  right: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9) translateY(12px);
  transform-origin: bottom right;
  transition: opacity var(--t-smooth), transform var(--t-smooth);
}
/* Ponte invisível de hover para evitar fechar ao mover o mouse entre o gatilho e o painel */
.wa-panel::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
  pointer-events: auto;
}
.wa-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

/* Abertura Magnética via Hover (Apenas Desktop - botaozap.md) */
@media (hover: hover) and (pointer: fine) {
  .wa-trigger:hover ~ .wa-panel,
  .wa-panel:hover {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
  }
}

.wa-panel-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(13, 35, 66, 0.08);
  color: var(--navy);
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--t-snappy);
  z-index: 10;
  border: none;
}
@media (hover: hover) and (pointer: fine) {
  .wa-panel-close:hover {
    background: rgba(13, 35, 66, 0.15);
  }
}

.wa-panel-header {
  background: var(--navy);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.wa-panel-title {
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
}
.wa-panel-status {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 500;
}

.wa-panel-body {
  flex-grow: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f8f9fb;
  scrollbar-width: thin;
  scrollbar-color: rgba(13,35,66,0.1) transparent;
}
.wa-panel-body::-webkit-scrollbar {
  width: 4px;
}
.wa-panel-body::-webkit-scrollbar-thumb {
  background: rgba(13,35,66,0.1);
  border-radius: 2px;
}

.wa-msg {
  max-width: 85%;
  padding: 10px 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  border-radius: 8px;
  animation: waMsgFade 0.25s var(--ease-premium) both;
}
.wa-msg-bot {
  background: var(--white);
  color: #2c3e50;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.wa-msg-user {
  background: var(--blue);
  color: var(--cream);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  box-shadow: 0 4px 12px rgba(26, 58, 107, 0.12);
}

.wa-msg-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  width: fit-content;
}
.wa-msg-typing span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(13, 35, 66, 0.4);
  animation: waTypingBounce 1.2s infinite ease-in-out;
}
.wa-msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.wa-msg-typing span:nth-child(3) { animation-delay: 0.4s; }

.wa-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.wa-faq-btn {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1px solid rgba(13, 35, 66, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.80rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.01);
  transition: background-color var(--t-snappy), border-color var(--t-snappy), transform var(--t-snappy);
  border-style: solid;
}
@media (hover: hover) and (pointer: fine) {
  .wa-faq-btn:hover {
    background: rgba(26, 58, 107, 0.04);
    border-color: rgba(26, 58, 107, 0.15);
    transform: translateY(-1px);
  }
}

.wa-panel-footer {
  background: var(--white);
  padding: 14px 18px;
  border-top: 1px solid rgba(13, 35, 66, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-direct-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  transition: opacity var(--t-snappy);
  min-height: 38px;
  display: flex;
  align-items: center;
}
@media (hover: hover) and (pointer: fine) {
  .wa-direct-link:hover {
    opacity: 0.85;
    text-decoration: underline;
  }
}

@keyframes waMsgFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes waTypingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ====== RESPONSIVO ====== */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .sobre-grid { grid-template-columns: 280px 1fr; }
  .metodologia-grid { grid-template-columns: 260px 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  
  /* Overrides Mobile para o Widget de WhatsApp */
  .wa-bubble {
    bottom: 20px;
    right: 16px;
  }
  .wa-panel {
    width: calc(100vw - 32px);
    max-width: 310px;
  }
  /* No mobile, desativa o hover abrindo o painel */
  @media (hover: hover) and (pointer: fine) {
    .wa-trigger:hover ~ .wa-panel,
    .wa-panel:hover {
      opacity: 0;
      pointer-events: none;
      transform: scale(0.9) translateY(12px);
    }
  }

  /* Navbar mobile */
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--navy-95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    gap: 2px;
    transform: translateY(-4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-snappy), transform var(--t-snappy);
    border-bottom: 1px solid rgba(201,168,76,0.12);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link { padding: 13px 12px; font-size: 0.92rem; color: var(--cream); }
  .nav-whatsapp {
    margin: 8px 0 0;
    justify-content: center;
    padding: 14px;
  }
  .nav-links.open .nav-whatsapp {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .nav-toggle { display: flex; }

  /* Hero mobile: texto centralizado */
  .hero-content {
    max-width: 100%;
    text-align: center;
    align-items: center;
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
  }
  .hero-actions .btn-gold { width: 100%; justify-content: center; }
  .hero-brandmark-wrapper {
    width: 80%;
    right: -15%;
    opacity: 0.06; /* Mais sutil no mobile para evitar sobrepor o texto centralizado */
  }

  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .sobre-photo-wrapper { max-width: 260px; margin: 0 auto; }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .metodologia-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .metodologia-header {
    position: static;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }
}

/* ================================================
   ESTILOS GERAIS DO BLOG E ARTIGOS (Supabase SPA)
   ================================================ */
#blog-secao, #artigo-secao {
  padding: 120px 24px clamp(80px, 12vh, 120px);
  font-family: var(--font-body);
}

.blog-container {
  max-width: var(--container);
  margin: 0 auto;
}

.blog-title-section {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 48px;
  text-align: center;
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 700;
}

.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(13, 35, 66, 0.08);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  cursor: pointer;
  transition: transform var(--t-snappy), box-shadow var(--t-snappy), border-color var(--t-snappy);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(13, 35, 66, 0.06);
  border-color: rgba(201, 168, 76, 0.4);
}

.blog-card-date {
  font-size: 0.85rem;
  color: rgba(13, 35, 66, 0.6);
  display: block;
  margin-bottom: 12px;
}

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

.blog-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(13, 35, 66, 0.8);
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: auto;
  transition: opacity var(--t-snappy);
}

.blog-card:hover .blog-card-link {
  opacity: 0.85;
}

/* Estilos de Post Único */
.artigo-single-container {
  max-width: 750px;
  margin: 0 auto;
}

.btn-voltar {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 24px;
  padding: 0;
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.artigo-meta-date {
  font-size: 0.9rem;
  color: rgba(13, 35, 66, 0.6);
  display: block;
  margin-bottom: 12px;
}

.artigo-main-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 700;
}

.artigo-divider {
  border: 0;
  border-top: 1px solid rgba(13, 35, 66, 0.08);
  margin: 24px 0 32px 0;
}

.artigo-text-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: rgba(13, 35, 66, 0.9);
  text-align: justify;
}

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

.blog-blockquote {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
}

/* Overrides para manter a navbar visivel e legivel no blog */
body.route-blog .navbar {
  transform: none !important;
  background: rgba(245, 237, 216, 0.90) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 1px 0 rgba(13, 35, 66, 0.05) !important;
}
body.route-blog .navbar .nav-logo {
  color: var(--navy) !important;
}
body.route-blog .navbar .logo-sub {
  color: rgba(13, 35, 66, 0.55) !important;
}
body.route-blog .navbar .nav-link {
  color: var(--navy) !important;
  opacity: 0.85 !important;
}
body.route-blog .navbar .nav-link[href="/blog"],
body.route-blog .navbar .nav-link[href*="blog"] {
  color: var(--gold) !important;
  opacity: 1 !important;
}
body.route-blog .navbar .nav-toggle span {
  background-color: var(--navy) !important;
}

