/*
Theme Name: Casa Dendê
Theme URI: https://casadende.com.br
Author: Assis
Author URI: https://grupogallo.com.br
Description: Tema da Casa Dendê — buffet para casamentos e eventos em Porto Seguro e região. Landing page de página única com captação de leads, galeria em carrossel e FAQ.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casa-dende
Tags: one-column, custom-colors, featured-images, translation-ready
*/
/* ═══════════════════════════════════════════════════════
   CASA DENDÊ — Estilos principais
   Paleta : #C54C12 (identidade) · #5D2206 (tinta) · #A93F0C (botões) · #782C08 (blocos) · #FCF6F3 (superfície)
   Fontes : Maharlika · Arapey · DM Sans
═════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════
   TOKENS — CASA DENDÊ
   Semente de marca: #C54C12   (hsl 19 83% 42%) · direcao tom adjacente
   Camada 1 (primitivas) -> Camada 2 (semânticas) -> Camada 3 (gradientes)
   Todos os pares texto/fundo validados em WCAG AA (>= 4.5:1)
   ═══════════════════════════════════════════════════════ */
:root {
  /* ── Camada 1 · rampa da marca — matiz 19, identidade #C54C12 ── */
  --cd-brand-50:  #FDF2EC;
  --cd-brand-100: #FCF6F3;
  --cd-brand-200: #F4E7E1;
  --cd-brand-300: #E6C3B3;
  --cd-brand-400: #DF7949;
  --cd-brand-500: #D85618;
  --cd-brand-600: #C54C12;   /* ← IDENTIDADE */
  --cd-brand-700: #A93F0C;
  --cd-brand-800: #782C08;
  --cd-brand-900: #5D2206;
  --cd-brand-950: #3E1704;

  /* ── Camada 1 · neutros da mesma familia (matiz 19, baixa saturacao) ── */
  --cd-n-0:   #FFFFFF;
  --cd-n-25:  #FDFBF9;
  --cd-n-50:  #FCF6F3;
  --cd-n-100: #F4E7E1;
  --cd-n-150: #ECD9D0;
  --cd-n-200: #E7D0C6;
  --cd-n-300: #DAB9A9;
  --cd-n-400: #C8967E;
  --cd-n-500: #B96B46;
  --cd-n-600: #A35029;
  --cd-n-700: #5D2206;

  /* ── Camada 2 · semanticas ── */
  --cd-primary:        var(--cd-brand-600);  /* #C54C12 · identidade */
  --cd-primary-light:  var(--cd-brand-500);
  --cd-primary-strong: var(--cd-brand-700);
  --cd-ink:            var(--cd-n-700);      /* #5D2206 · titulos */
  --cd-ink-deep:       var(--cd-brand-900);
  --cd-accent:         var(--cd-brand-700);  /* #A93F0C · links e sobretitulos */
  --cd-accent-mark:    var(--cd-brand-600);
  --cd-accent-dark:    var(--cd-brand-300);  /* acento sobre superficie escura */
  --cd-body:           var(--cd-n-600);      /* #A35029 · texto corrido */
  --cd-surface:        var(--cd-n-50);
  --cd-surface-alt:    var(--cd-n-100);
  --cd-bg-deep:        var(--cd-brand-800);
  --cd-border:         var(--cd-n-200);
  --cd-danger:         var(--cd-brand-700);
  --cd-danger-bg:      var(--cd-brand-50);

  /* ── Camada 2b · superficies por destaque (direcao: tom adjacente) ──
     header e footer ...... cor principal, unico ponto de saturacao forte
     botoes ............... um degrau mais profundo
     bloco de conteudo .... terracota profunda
     prova social + CTA ... mesmo bloco, por specification
     --cd-surface-block2 .. degrau extra disponivel, caso queira criar um quinto nivel */
  --cd-surface-brand:  var(--cd-brand-600);
  --cd-surface-btn:    var(--cd-brand-700);
  --cd-surface-block:  var(--cd-brand-800);
  --cd-surface-block2: var(--cd-brand-900);

  /* ── Camada 2c · texto sobre superficie escura ── */
  --cd-on-block:        #FAF3EF;    /* 8.85:1 sobre bloco */
  --cd-on-block-accent: #F49C71;   /* 4.55:1 sobre bloco */

  /* ── Camada 3 · gradientes ── */
  --cd-grad-cabecalho: linear-gradient(135deg, var(--cd-brand-800) 0%, var(--cd-brand-700) 55%, var(--cd-primary) 100%);
  --cd-grad-icone:     linear-gradient(135deg, var(--cd-brand-700), var(--cd-brand-300));
}

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

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: 'DM Sans', sans-serif;
    background: #fff;
    color: var(--cd-ink);
    overflow-x: hidden;
  }

  .font-display {
    font-family: 'Maharlika', serif;
  }

  .font-subtitle {
    font-family: 'Arapey', serif;
  }

  .font-body {
    font-family: 'DM Sans', sans-serif;
  }

  .btn-proposta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--cd-surface-btn);
    color: #fff !important;
    border: none;
    border-radius: 999px;
    padding: 0.9rem 2.2rem;
    font-family: 'Maharlika', serif;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 18px rgba(93, 34, 6,   0.16);
    white-space: nowrap;
  }

  .btn-proposta:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(93, 34, 6,   0.22);
  }

  .btn-proposta-lg {
    padding: 1.05rem 2.6rem;
    font-size: 1.1rem;
  }

  /* LOGO BRANCA — sobre fundo escuro (header sobre hero, footer espresso) */
  .logo-branca {
    filter: brightness(0) invert(1);
  }

  .wave-divider {
    display: block;
    line-height: 0;
  }

  .wave-divider svg {
    display: block;
    width: 100%;
  }

  /* NAV */
  #topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--cd-surface-brand);
    transition: box-shadow 0.3s ease;
  }

  #topnav.scrolled {
    box-shadow: 0 2px 20px rgba(62, 23, 4,   0.28);
  }

  /* HERO */
  #hero {
    position: relative;
    height: 80vh;
    min-height: 520px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: Center;
    z-index: 1;
  }

  #hero-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      radial-gradient(ellipse at 30% 60%, rgba(230, 195, 179,   0.5) 0%, transparent 55%),
      radial-gradient(ellipse at 75% 30%, rgba(223, 121, 73,   0.38) 0%, transparent 50%),
      linear-gradient(160deg, var(--cd-brand-600) 0%, var(--cd-primary) 60%, var(--cd-brand-400) 100%);
    background-size: cover;
  }

  .bokeh {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    animation: float 8s ease-in-out infinite;
  }

  @keyframes float {

    0%,
    100% {
      transform: translateY(0) scale(1);
      opacity: .6;
    }

    50% {
      transform: translateY(-30px) scale(1.1);
      opacity: .9;
    }
  }

  #hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to bottom,
        rgba(93, 34, 6,   0.40) 0%,
        rgba(93, 34, 6,   0.22) 50%,
        rgba(93, 34, 6,   0.52) 100%);
  }

  #hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 1.5rem;
    animation: heroReveal 1.2s ease both;
  }

  @keyframes heroReveal {
    from {
      opacity: 0;
      transform: translateY(32px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .ornament-line {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .ornament-line::before,
  .ornament-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: 0.3;
  }

  .hero-ornament {
    display: inline-block;
    width: 60px;
    height: 2px;
    background: var(--cd-accent-dark);
    vertical-align: middle;
    margin: 0 12px;
  }

  /* CARROSSÉIS */
  .peek-wrap {
    position: relative;
    margin: 0 -1rem;
    padding: 0.5rem 0 0.25rem;
    contain: layout style;
  }

  .peek-viewport {
    overflow: hidden;
    width: 100%;
    transform: translateZ(0);
  }

  .peek-track {
    display: flex;
    will-change: transform;
    transition: transform 0.52s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .carousel-card {
    flex: 0 0 52%;
    padding: 0 8px;
    cursor: pointer;
  }

  @media (min-width: 640px) {
    .carousel-card {
      flex: 0 0 42%;
    }
  }

  @media (min-width: 1024px) {
    .carousel-card {
      flex: 0 0 32%;
    }
  }

  .carousel-card-inner {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(93, 34, 6,   0.10);
    transition: box-shadow 0.4s ease;
    background: var(--cd-n-150);
    transform: translateZ(0);
  }

  .carousel-card.active .carousel-card-inner {
    box-shadow: 0 16px 44px rgba(93, 34, 6,   0.18);
  }

  .carousel-card-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 4;
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: inherit;
  }

  .carousel-card.active .carousel-card-inner::after {
    opacity: 0;
  }

  .carousel-card-inner img.card-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
    z-index: 1;
  }

  .card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 0;
    padding: 1rem;
    text-align: center;
  }

  .card-placeholder svg {
    opacity: 0.4;
    flex-shrink: 0;
  }

  .card-placeholder .ph-path {
    font-family: 'DM Sans', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    word-break: break-all;
    line-height: 1.4;
    margin-top: 4px;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 8px;
    border-radius: 4px;
  }

  .card-placeholder .ph-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.5px;
  }

  .carousel-card-bg {
    position: absolute;
    inset: 0;
  }

  .carousel-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(62, 23, 4,   0.82) 0%,
        rgba(62, 23, 4,   0.06) 65%);
  }

  .carousel-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1rem 0.85rem;
    z-index: 2;
  }

  .peek-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(62, 23, 4,   0.40);
    opacity: 0;
    transition: opacity 0.25s;
    z-index: 3;
  }

  .carousel-card.active .carousel-card-inner:hover .peek-hint {
    opacity: 1;
  }

  .peek-hint span {
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .peek-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
    color: var(--cd-ink);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
  }

  .peek-nav:hover {
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.26);
    transform: translateY(-50%) scale(1.09);
  }

  .peek-nav:disabled {
    opacity: 0.3;
    cursor: default;
    transform: translateY(-50%);
  }

  .peek-nav.peek-prev {
    left: 6px;
  }

  .peek-nav.peek-next {
    right: 6px;
  }

  .peek-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 1.1rem;
  }

  .peek-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cd-border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, width 0.3s, border-radius 0.3s;
  }

  .peek-dot.active {
    background: var(--cd-accent-mark);
    width: 22px;
    border-radius: 4px;
  }

  /* MODAL LIGHTBOX */
  .peek-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
    padding: 0;
  }

  .peek-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .peek-modal-box {
    position: relative;
    width: 100vw;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: scale(0.97);
    transition: transform 0.36s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .peek-modal-overlay.open .peek-modal-box {
    transform: scale(1);
  }

  .peek-modal-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, border-color 0.2s, transform 0.25s;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .peek-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: rotate(90deg);
  }

  .peek-modal-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: calc(100dvh - 80px);
  }

  .peek-modal-track {
    display: flex;
    height: 100%;
    will-change: transform;
    transition: transform 0.52s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .peek-modal-card {
    flex: 0 0 82%;
    padding: 0 6px;
    height: 100%;
  }

  @media (min-width: 640px) {
    .peek-modal-card {
      flex: 0 0 72%;
    }
  }

  @media (min-width: 1024px) {
    .peek-modal-card {
      flex: 0 0 60%;
      padding: 0 10px;
    }
  }

  .carousel-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--cd-n-150);
    transform: translateZ(0);
  }

  .peek-modal-card-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 4;
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: inherit;
  }

  .peek-modal-card.active .peek-modal-card-inner::after {
    opacity: 0;
  }

  .peek-modal-card-inner img.card-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 1;
    display: block;
    pointer-events: none;
  }

  .peek-modal-card-inner .carousel-card-bg {
    position: absolute;
    inset: 0;
  }

  .peek-modal-card-inner .carousel-card-overlay {
    position: absolute;
    inset: 0;
  }

  .peek-modal-card-inner .carousel-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1rem 0.85rem;
    z-index: 2;
  }

  .peek-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    flex-shrink: 0;
  }

  .peek-modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: #fff;
    transform: translateY(-50%) scale(1.08);
  }

  .peek-modal-nav.peek-modal-prev {
    left: 10px;
  }

  .peek-modal-nav.peek-modal-next {
    right: 10px;
  }

  .peek-modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 48px;
    padding: 0 1rem;
    flex-shrink: 0;
  }

  .peek-modal-caption {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Arapey', serif;
    font-style: italic;
    font-size: 1rem;
  }

  .peek-modal-counter {
    color: rgba(255, 255, 255, 0.45);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 1px;
  }

  /* DEPOIMENTOS */
  .star-row {
    color: var(--cd-accent-mark);
    letter-spacing: 2px;
  }

  /* FAQ */
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
  }

  .faq-answer.open {
    max-height: 300px;
  }

  .faq-icon {
    transition: transform 0.3s ease;
  }

  .faq-item.open .faq-icon {
    transform: rotate(45deg);
  }

  /* SCROLL REVEAL */
  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal.animate-in {
    animation: revealUp 0.7s ease both;
  }

  @keyframes revealUp {
    from {
      opacity: 0;
      transform: translateY(28px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  .reveal-delay-1.animate-in {
    animation-delay: 0.1s;
  }

  .reveal-delay-2.animate-in {
    animation-delay: 0.2s;
  }

  .reveal-delay-3.animate-in {
    animation-delay: 0.3s;
  }

  .reveal-delay-4.animate-in {
    animation-delay: 0.4s;
  }

  /* COMPONENTES GLOBAIS */
  .btn-whatsapp {
    animation: pulse-wa 2.5s ease-in-out infinite;
  }

  @keyframes pulse-wa {

    0%,
    100% {
      box-shadow: 0 0 0 0 rgba(192, 68, 9, 0.5);
    }

    50% {
      box-shadow: 0 0 0 14px rgba(192, 68, 9, 0);
    }
  }

  @keyframes ping-dot {

    0%,
    100% {
      transform: scale(1);
      opacity: 1;
    }

    50% {
      transform: scale(1.4);
      opacity: 0.7;
    }
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  #spin-icon {
    animation: spin 1s linear infinite;
  }

  /* SECÇÃO PROBLEMA */
  .section-problema {
    background: var(--cd-surface-block);
    padding: 5rem 1rem;
    position: relative;
    overflow: hidden;
  }

  .section-problema::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 80% 50%, rgba(223, 121, 73,   0.20) 0%, transparent 60%),
      radial-gradient(ellipse at 10% 80%, rgba(230, 195, 179,   0.16) 0%, transparent 50%);
    pointer-events: none;
  }

  .problema-quote {
    font-family: 'Arapey', serif;
    font-style: italic;
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    color: var(--cd-on-block);
    line-height: 1.7;
    border-left: 3px solid var(--cd-on-block-accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
  }

  /* SECÇÃO AUTORIDADE */
  .section-autoridade {
    background: var(--cd-surface-block);
    padding: 5rem 1rem;
    position: relative;
    overflow: hidden;
  }

  .section-autoridade::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(230, 195, 179,   0.12) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
  }

  .unidade-card {
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.10);
    transition: border-color 0.3s, background 0.3s;
  }

  .unidade-card:hover {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.16);
  }

  /* SELOS */
  .selos-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
  }

  .selo {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(192, 68, 9, 0.22);
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    background: rgba(192, 68, 9, 0.05);
  }

  .selo-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
  }

  .selo-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    color: var(--cd-ink);
    line-height: 1.3;
  }

  .selo-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--cd-body);
  }

  /* BENEFÍCIOS */
  .benefit-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(93, 34, 6,   0.10);
  }

  .benefit-item:last-child {
    border-bottom: none;
  }

  .benefit-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cd-accent-mark);
    flex-shrink: 0;
    margin-top: 10px;
  }

  .benefit-title {
    font-family: 'Maharlika', serif;
    font-size: 1rem;
    color: var(--cd-ink);
    margin-bottom: 0.25rem;
  }

  .benefit-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--cd-accent);
    line-height: 1.55;
  }

  /* ── CONSENTIMENTO LGPD ─────────────────────────────── */
  .consent-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 0.5rem;
  }

  .consent-box input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    border: 1.5px solid var(--cd-accent-mark);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .consent-box input[type="checkbox"]::after {
    content: '✓';
    font-size: 10px;
    color: var(--cd-ink);
    display: none;
    line-height: 1;
  }

  .consent-box input[type="checkbox"]:checked::after {
    display: block;
  }

  .consent-box label {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.72rem !important;
    font-weight: 400 !important;
    color: var(--cd-ink) !important;
    line-height: 1.4 !important;
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: 0 !important;
  }

  .consent-link {
    all: unset;
    color: var(--cd-body);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.72rem;
    font-family: 'DM Sans', sans-serif;
  }

  .consent-link:hover {
    color: var(--cd-ink);
  }

  #err-consent {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    color: var(--cd-accent);
    margin-top: 0.4rem;
    display: none;
  }

  #err-consent.visible {
    display: block;
  }

  .consent-box.error-border {
    outline: 1px solid var(--cd-accent);
  }

#lead-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(62, 23, 4,   0.82);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  #lead-modal.open {
    opacity: 1;
    pointer-events: all;
  }

  #lead-modal-box {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 92dvh;
    overflow-y: auto;
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 32px 80px rgba(93, 34, 6,   0.26);
    transform: translateY(28px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.36, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--cd-accent-mark) var(--cd-surface-alt);
  }

  #lead-modal.open #lead-modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  #lead-modal-header {
    background: var(--cd-grad-cabecalho);
    padding: 2rem 2rem 1.5rem;
    border-radius: 1.5rem 1.5rem 0 0;
    position: relative;
  }

  #lead-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.25s;
    line-height: 1;
    flex-shrink: 0;
    padding: 0;
    aspect-ratio: 1 / 1;
  }

  #lead-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
  }

  #lead-modal-body {
    padding: 1.75rem 2rem 2rem;
  }

  .lead-field {
    margin-bottom: 1.1rem;
  }

  .lead-field label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--cd-ink);
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .lead-field label .req {
    color: var(--cd-accent);
    margin-left: 2px;
  }

  .lead-field input,
  .lead-field select {
    width: 100%;
    padding: 0.7rem 0.95rem;
    border: 1.5px solid var(--cd-border);
    border-radius: 0.65rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--cd-ink-deep);
    background: var(--cd-surface);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
  }

  .lead-field input:focus,
  .lead-field select:focus {
    border-color: var(--cd-accent-mark);
    box-shadow: 0 0 0 3px rgba(192, 68, 9, 0.15);
  }

  .lead-field input.error,
  .lead-field select.error {
    border-color: var(--cd-accent);
    box-shadow: 0 0 0 3px rgba(192, 68, 9, 0.12);
  }

  .lead-field .field-error {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    color: var(--cd-accent);
    margin-top: 0.3rem;
    display: none;
  }

  .lead-field .field-error.visible {
    display: block;
  }

  .lead-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 1rem;
  }

  @media (min-width: 480px) {
    .lead-grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  .select-wrap {
    position: relative;
  }

  .select-wrap::after {
    content: '';
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--cd-accent-mark);
    pointer-events: none;
  }

  #lead-submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    border: none;
    background: var(--cd-surface-btn);
    color: #fff;
    font-family: 'Maharlika', serif;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    transition: opacity 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 6px 24px rgba(93, 34, 6,   0.18);
  }

  #lead-submit-btn:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 10px 32px rgba(93, 34, 6,   0.22);
  }

  #lead-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
  }

  .btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin-btn 0.7s linear infinite;
    display: none;
  }

  #lead-submit-btn.loading .btn-spinner {
    display: block;
  }

  #lead-submit-btn.loading .btn-text {
    display: none;
  }

  @keyframes spin-btn {
    to {
      transform: rotate(360deg);
    }
  }

  #lead-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem 1rem;
    gap: 0.75rem;
  }

  #lead-success.visible {
    display: flex;
  }

  #lead-success .success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--cd-grad-icone);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }

  #lead-global-error {
    display: none;
    background: var(--cd-danger-bg);
    border: 1px solid var(--cd-accent);
    border-radius: 0.65rem;
    padding: 0.75rem 1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    color: var(--cd-accent);
    margin-top: 1rem;
  }

  #lead-global-error.visible {
    display: block;
  }

  .lead-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--cd-border), transparent);
    margin: 1.25rem 0 1.1rem;
  }

  /* Erro do consentimento */
  #err-consent {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    color: var(--cd-accent);
    margin-top: 0.4rem;
    display: none;
  }

  #err-consent.visible {
    display: block;
  }

  .consent-box.error-border {
    outline: 1px solid var(--cd-accent);
  }
