/*
Theme Name: Baccari Engenharia & Projetos
Theme URI: https://baccariengenharia.com.br
Author: AI Master Theme
Author URI: https://baccariengenharia.com.br
Description: Tema clássico WordPress para Baccari Engenharia & Projetos — engenharia, design de interiores e estratégia imobiliária.
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: baccari
Tags: engineering, real-estate, classic, one-page
*/

/* =============================
   DESIGN TOKENS
   ============================= */
:root {
  --stroke-0: #C49A6C; /* copper — aplicado em todos os ícones SVG */
}

/* =============================
   BASE RESETS
   ============================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* =============================
   HEADER (tema preto) + SCROLL
   ============================= */
#site-header {
  background-color: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Na home o header é transparente sobre o hero e fica sólido ao rolar */
body.home #site-header {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

#site-header.scrolled,
body.home #site-header.scrolled {
  background-color: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

#site-header.menu-open {
  background-color: rgba(10, 10, 10, 0.98) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: transparent;
}

/* =============================
   MENU OVERLAY (abre ao clicar no hambúrguer — todas as larguras)
   ============================= */
#nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;                 /* abaixo do header (z-50): logo e X seguem visíveis */
  background-color: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 96px 24px 44px;
  overflow-y: auto;
}

#nav-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-overlay-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.nav-overlay-link {
  display: inline-block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.32;
  color: #EDEAE3;
  letter-spacing: 0.4px;
  transition: color 0.2s ease;
}

.nav-overlay-link:hover,
.nav-overlay-link:focus-visible {
  color: #C49A6C;
}

body.nav-open {
  overflow: hidden;
}

/* Mobile: menu ancorado logo abaixo do header (sem vão em branco no topo),
   links mais espaçados e CTA + redes fixados na base da tela. */
@media (max-width: 767px) {
  #nav-overlay {
    justify-content: flex-start;
    gap: 0;
    padding: 96px 24px 40px;   /* topo apenas libera o header (~76px) */
  }
  .nav-overlay-list {
    gap: 18px;                 /* mais respiro entre os links */
    width: 100%;
  }
  .nav-overlay-foot {
    margin-top: auto;          /* CTA + @perfis ancorados no rodapé do menu */
    padding-top: 32px;
  }
}

/* Seletor de idioma (shortcode nativo do TranslatePress) dentro do menu overlay.
   No mobile o switcher do cabeçalho é ocultado e este aparece no menu, com um
   respiro acima. No desktop permanece o do cabeçalho. */
@media (max-width: 767px) {
  .baccari-lang-switch { display: none !important; }
}
.nav-overlay-lang { display: none; }
@media (max-width: 767px) {
  .nav-overlay-lang {
    display: block;
    align-self: stretch;       /* ocupa a largura toda dentro do #nav-overlay */
    width: 100%;
    text-align: center;        /* centraliza o seletor, como os demais itens do menu */
    margin-top: 22px;          /* espaçamento entre o menu e o seletor de idiomas */
  }
  .nav-overlay-lang .trp-shortcode-switcher__wrapper {
    display: inline-block;     /* encolhe ao conteúdo para o text-align centralizar */
    text-align: left;          /* conteúdo interno do widget mantém alinhamento normal */
  }
  /* Reserva de espaço SÓ quando o dropdown abre (via :has) — evita o vão grande quando
     fechado e o overlap quando aberto. Ao abrir, também trazemos o CTA para perto,
     anulando o margin-top:auto do rodapé para não sobrar espaço. */
  .nav-overlay-lang:has( [aria-expanded="true"] ) {
    margin-bottom: 96px;
  }
  #nav-overlay:has( .nav-overlay-lang [aria-expanded="true"] ) .nav-overlay-foot {
    margin-top: 28px;
  }
}
/* IMPORTANTE: não forçar position/layout em .trp-language-switcher aqui — o widget novo
   usa uma camada .trp-shortcode-overlay com position:absolute; sobrescrevê-la joga o
   seletor para a direita. Só ajustamos cor/fonte (abaixo), nunca posição. */
.nav-overlay-lang a,
.nav-overlay-lang .trp-ls-shortcode-current-language,
.nav-overlay-lang .trp-ls-shortcode-language a {
  color: rgba(237, 234, 227, 0.9) !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 19px !important;
  letter-spacing: 0.3px !important;
  text-decoration: none !important;
}
.nav-overlay-lang a:hover,
.nav-overlay-lang a:focus-visible { color: #C49A6C !important; }
.nav-overlay-lang img.trp-flag-image,
.nav-overlay-lang .trp-language-switcher img {
  width: 20px !important;
  height: auto !important;
  vertical-align: middle;
  margin-right: 6px;
}

/* =============================
   CAROUSEL
   ============================= */
.carousel-track {
  align-items: stretch;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.carousel-slide > a,
.carousel-slide > article {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* =============================
   PROJECT MEDIA
   ============================= */
.project-card-media,
.project-gallery-media {
  aspect-ratio: 4 / 3;
}

.project-hero-media {
  aspect-ratio: 16 / 10;
}

.project-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.entry-content > * + * {
  margin-top: 1.25rem;
}

/* =============================
   TIPOGRAFIA DO CONTEÚDO DO POST (single.php)
   ============================= */
.entry-content h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 32px;
  line-height: 1.25;
  color: #18181b;
  margin-top: 2.5rem;
}

.entry-content h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.3;
  color: #18181b;
  margin-top: 2rem;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #18181b;
  margin-top: 1.5rem;
}

.entry-content a {
  color: #C49A6C;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: #a07a50;
}

.entry-content strong,
.entry-content b {
  color: #18181b;
  font-weight: 600;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
}

.entry-content ul {
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li + li {
  margin-top: 0.5rem;
}

.entry-content blockquote {
  border-left: 3px solid #C49A6C;
  padding-left: 1.5rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: #3f3f47;
}

.entry-content img {
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

.entry-content figcaption {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: #9f9fa9;
  text-align: center;
  margin-top: 0.5rem;
}

.entry-content hr {
  border: none;
  border-top: 1px solid #e4e4e7;
  margin: 2.5rem 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content table th,
.entry-content table td {
  border: 1px solid #e4e4e7;
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.entry-content code {
  background: #f4f4f5;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
}

.entry-content pre {
  background: #18181b;
  color: #EDEAE3;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
}

.entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* =============================
   PAGINAÇÃO — archive de categoria do Blog (category.php)
   ============================= */
.pagination-nav .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid #e4e4e7;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: #52525c;
  transition: all 0.2s ease;
}

.pagination-nav a.page-numbers:hover {
  border-color: #C49A6C;
  color: #C49A6C;
}

.pagination-nav .page-numbers.current {
  background: #C49A6C;
  border-color: #C49A6C;
  color: #fff;
}

.pagination-nav .page-numbers.dots {
  border: none;
  color: #9f9fa9;
}

/* =============================
   COMPARTILHAR ARTIGO — single.php
   ============================= */
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  color: #52525c;
  font-size: 16px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background: #C49A6C;
  border-color: #C49A6C;
  color: #fff;
}

.share-btn--copied,
.share-btn--copied:hover {
  background: #C49A6C;
  border-color: #C49A6C;
  color: #fff;
}

/* =============================
   NAVEGAÇÃO ENTRE POSTS — single.php
   ============================= */
.post-nav-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* =============================
   HERO GRADIENT OVERLAY
   ============================= */
.hero-overlay {
  background:
    linear-gradient(
      to right,
      rgba(10,10,10,0.94) 0%,
      rgba(10,10,10,0.80) 38%,
      rgba(10,10,10,0.50) 68%,
      rgba(10,10,10,0.22) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(10,10,10,0.25) 0%,
      rgba(10,10,10,0) 30%,
      rgba(10,10,10,0.55) 100%
    );
}

/* =============================
   HERO SCROLL INDICATOR
   ============================= */
.scroll-line {
  background: linear-gradient(to bottom, rgba(196,154,108,0.5), transparent);
}

/* =============================
   SERVICE CARD ORANGE TOP BORDER — hover only, L→R animation
   ============================= */
.service-card::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background-color: #C49A6C;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
  width: 100%;
}

/* =============================
   METHODOLOGY TIMELINE DOT GLOW
   ============================= */
.timeline-dot {
  background-color: #C49A6C;
  box-shadow: 0 0 10px 0px rgba(196,154,108,0.7);
}

/* =============================
   FOCUS VISIBLE RING
   ============================= */
:focus-visible {
  outline: 2px solid #C49A6C;
  outline-offset: 2px;
}

/* =============================
   SECTION OVERLINE (utility)
   ============================= */
.overline {
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none !important;
  color: #C49A6C;
  line-height: 16px;
}

/* =============================
   SISTEMA DE TRACKING (Diretriz item 2) — 2 níveis, com critério:
   · WIDE  (0.3em) — logo BACCARI no header e no rodapé (unificado; antes 0.34/0.3em).
   · NORMAL (tracking-overline = 1.2px) — eyebrow, menu, corpo e botões.
   O eyebrow do hero migrou de 0.28em para tracking-overline, entrando no nível Normal.
   ============================= */

/* Seletor de idioma no header (Diretriz item 7).
   A tradução é feita pelo plugin TranslatePress; o header usa o shortcode
   [language-switcher] dentro de .baccari-lang-switch. As regras abaixo fazem
   o switcher do TranslatePress combinar com o cabeçalho escuro e ficar embutido
   (nunca flutuante/sobreposto). O seletor FLUTUANTE do TranslatePress deve ser
   desativado no painel: Configurações → TranslatePress → Seletor de idioma. */
.baccari-lang-switch {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 60;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  line-height: 1;
}
/* Reset leve do wrapper — NÃO mexer no position de .trp-language-switcher:
   a camada .trp-shortcode-overlay precisa seguir position:absolute para a lista
   abrir ABAIXO, flutuando, sem empurrar o layout (senão o idioma atual "sobe" e
   desalinha do cabeçalho ao abrir). */
.baccari-lang-switch .trp-shortcode-switcher__wrapper {
  margin: 0 !important;
  background: transparent !important;
}
/* Links e opções do switcher em texto claro sobre o header preto */
.baccari-lang-switch a,
.baccari-lang-switch .trp-ls-shortcode-current-language,
.baccari-lang-switch .trp-ls-shortcode-language a {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  padding: 4px 6px !important;
  transition: color 0.2s ease;
}
.baccari-lang-switch a:hover,
.baccari-lang-switch a:focus-visible {
  color: #C49A6C !important;
}
/* Caso o TranslatePress use um <select> nativo, deixa transparente e claro */
.baccari-lang-switch select {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 4px !important;
  padding: 4px 8px !important;
  font: inherit !important;
  cursor: pointer;
}
.baccari-lang-switch select option {
  color: #0A0A0A; /* o menu nativo é desenhado pelo SO — texto escuro para legibilidade */
}
/* Bandeirinhas do TranslatePress em tamanho compacto */
.baccari-lang-switch img.trp-flag-image,
.baccari-lang-switch .trp-language-switcher img {
  width: 18px !important;
  height: auto !important;
  vertical-align: middle;
  margin-right: 5px;
}

/* =============================
   CONTACT FORM SUCCESS/ERROR
   ============================= */
.form-feedback {
  display: none;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 20px;
}

.form-feedback.success {
  display: block;
  background-color: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.form-feedback.error {
  display: block;
  background-color: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* =============================
   CONTACT FORM 7 — LAYOUT
   ============================= */
.wpcf7 {
  width: 100%;
}

/* Two-column row (Nome + Email) */
.baccari-form-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) {
  .baccari-form-row {
    flex-direction: row;
  }
}
.baccari-form-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 0%;
}

/* Single-field group */
.baccari-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Form flex layout — spacing between field groups */
.wpcf7 .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Remove <br> tags injected by CF7 between labels and fields */
.wpcf7 form br {
  display: none;
}

/* Wrap CF7 fields to fill available width.
   margin-top creates the gap between label text and the input below it,
   since CF7 nests the input INSIDE the <label> element. */
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  margin-top: 6px;
}

/* =============================
   CF7 — LABELS
   ============================= */
.wpcf7 label {
  display: block;
  font-size: 0.875rem;          /* text-sm */
  line-height: 1.25rem;
  color: #3f3f47;               /* brand-subtext */
  font-family: inherit;
  margin-bottom: 0px;
}
.baccari-optional {
  color: #9f9fa9;               /* brand-muted */
  font-size: 0.875rem;
}

/* =============================
   CF7 — INPUT, EMAIL, TEL, SELECT, TEXTAREA
   ============================= */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  background-color: #fafafa;    /* brand-bg-light */
  border: 1px solid #e4e4e7;   /* brand-border */
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 1rem;
  line-height: 1.5;
  color: #18181b;               /* brand-heading */
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 input[type="tel"]::placeholder,
.wpcf7 textarea::placeholder {
  color: rgba(24, 24, 27, 0.5);
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: #C49A6C;        /* brand-copper */
  box-shadow: 0 0 0 1px #C49A6C;
}

.wpcf7 select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #71717b 50%), linear-gradient(135deg, #71717b 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.wpcf7 textarea {
  resize: none;
  min-height: 140px;
}

/* Invalid state */
.wpcf7 input.wpcf7-not-valid,
.wpcf7 select.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
  border-color: #fca5a5;
}
.wpcf7-not-valid-tip {
  display: block;
  color: #991b1b;
  font-size: 0.75rem;
  line-height: 1rem;
  margin-top: 4px;
}

/* =============================
   CF7 — FILE UPLOAD ZONE
   ============================= */
.wpcf7 .baccari-file-input {
  display: block;
  width: 100%;
  padding: 28px 16px;
  background-color: #fafafa;
  border: 1px dashed #e4e4e7;
  border-radius: 6px;
  color: #71717b;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  box-sizing: border-box;
}
.wpcf7 .baccari-file-input:hover {
  border-color: #C49A6C;
  background-color: rgba(196, 154, 108, 0.04);
}
.wpcf7 .baccari-file-input::file-selector-button {
  background-color: #C49A6C;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: inherit;
  margin-right: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.wpcf7 .baccari-file-input::file-selector-button:hover {
  background-color: #a07a50;
}

/* =============================
   CF7 — ACCEPTANCE CHECKBOX
   ============================= */
.wpcf7 .wpcf7-acceptance {
  display: block;
}
.wpcf7 .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #52525c;               /* brand-body */
}
.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: #C49A6C;        /* brand-copper */
  cursor: pointer;
  border: 1px solid #e4e4e7;
  border-radius: 3px;
}
.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label a {
  color: #C49A6C;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label a:hover {
  color: #a07a50;
}

/* =============================
   CF7 — SUBMIT BUTTON
   ============================= */
.wpcf7 input[type="submit"],
.wpcf7 input.wpcf7-submit {
  display: block;
  width: 100%;
  margin-top: 8px;
  background-color: #C49A6C;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0px 10px 15px 0px rgba(196, 154, 108, 0.3);
  transition: background-color 0.2s ease;
  letter-spacing: 0.01em;
}
.wpcf7 input[type="submit"]:hover,
.wpcf7 input.wpcf7-submit:hover {
  background-color: #a07a50;
}
.wpcf7 input[type="submit"]:disabled,
.wpcf7 input.wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Hide CF7 spinner (replaced by button state) */
.wpcf7 .wpcf7-spinner {
  display: none !important;
}

/* =============================
   CF7 — RESPONSE OUTPUT
   ============================= */
.wpcf7 .wpcf7-response-output {
  margin: 0 !important;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  border-width: 1px !important;
}
.wpcf7 form.sent .wpcf7-response-output {
  background-color: #f0fdf4;
  border: 1px solid #86efac !important;
  color: #166534;
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  background-color: #fef2f2;
  border: 1px solid #fca5a5 !important;
  color: #991b1b;
}


/* =============================
   HERO BACKGROUND CAROUSEL
   ============================= */
.hero-background-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: #0A0A0A;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: translateZ(0);
  will-change: opacity;
  transition: opacity 1.2s ease-in-out;
  /* Crossfade controlado por JS (assets/js/main.js) — funciona com qualquer nº de slides. */
}

/* Visibilidade controlada pela classe --active (JS) — slide inicial já vem com ela do PHP. */
.hero-bg-slide--active {
  opacity: 1;
}

.hero-background-carousel .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

@keyframes baccariHeroFade {
  0%, 29% {
    opacity: 1;
  }
  35%, 94% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-slide {
    animation: none;
    opacity: 0;
  }

  .hero-bg-slide--1,
  .hero-bg-slide--active {
    opacity: 1;
  }
}

/* =============================
   TEAM CARDS — horizontal version
   ============================= */
.team-list {
  width: 100%;
}

.team-card {
  max-width: 100%;
  width: 100%;
}

.team-card-horizontal {
  display: flex;
  flex-direction: column;
}

.team-card-media {
  width: 100%;
  height: 320px;
  min-height: 0;
  display: block;
  overflow: hidden;
  background-color: #141414;
}

.team-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  /* Foto P&B editorial (v4) — ganha cor no hover */
  filter: grayscale(1);
  transition: filter 0.5s ease;
}

.team-card:hover .team-card-media img {
  filter: grayscale(0);
}

.team-card-media--adriana img {
  object-position: center center;
}

.team-card-media--jr img {
  object-position: center center;
}

.team-card-media--giovanna img {
  object-position: center center;
}

.team-card-content {
  flex: 1 1 auto;
}

@media (min-width: 1024px) {
  .team-card-horizontal {
    flex-direction: row;
    align-items: stretch;
    min-height: 360px;
  }

  .team-card-horizontal .team-card-media {
    flex: 0 0 38%;
    max-width: 460px;
    height: auto;
    min-height: 360px;
    aspect-ratio: auto;
    align-self: stretch;
  }

  .team-card-horizontal .team-card-content {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .team-card-media {
    height: 280px;
  }
}

/* =============================
   PHOTO CARD GRADIENT OVERLAY
   ============================= */
.photo-overlay {
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0) 60%);
}

/* =============================
   ABOUT CARD NUMBER BADGE
   ============================= */
.card-badge {
  background-color: rgba(196,154,108,0.12);
  color: #a07a50;
}

/* =============================
   CUSTOM SCROLLBAR (optional)
   ============================= */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0A0A0A;
}
::-webkit-scrollbar-thumb {
  background: #2b2b2b;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

/* =============================
   PRIVACY POLICY PAGE
   ============================= */

/* Section spacing */
.pp-section {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid #f4f4f5; /* brand-border-light */
}
.pp-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Headings */
.privacy-content h2 {
  font-family: inherit;
  font-size: 1.5rem;           /* 24px */
  font-weight: 700;
  color: #18181b;              /* brand-heading */
  line-height: 1.3;
  margin-bottom: 16px;
}
.privacy-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #3f3f47;              /* brand-subtext */
  margin-top: 24px;
  margin-bottom: 10px;
}

/* Subtitle inside heading (e.g. parentheses note) */
.pp-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: #71717b;              /* brand-subtle */
}

/* Body paragraphs */
.privacy-content p {
  font-size: 0.9375rem;        /* ~15px */
  line-height: 1.75;
  color: #52525c;              /* brand-body */
  margin-bottom: 14px;
}

/* Lists */
.privacy-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.privacy-content ul li {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #52525c;
  padding-left: 20px;
  position: relative;
}
.privacy-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #e17100;  /* brand-orange */
}

/* Links inside content */
.privacy-content a {
  color: #C49A6C;
  text-decoration: none;
  transition: color 0.2s ease;
}
.privacy-content a:hover {
  color: #a07a50;
}

/* Highlighted card (coleta section) */
.pp-card {
  background-color: #fafafa;  /* brand-bg-light */
  border: 1px solid #e4e4e7;  /* brand-border */
  border-left: 3px solid #e17100;
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.pp-card h3 {
  margin-top: 0;
  color: #18181b;
}

/* Contact card in dúvidas section */
.pp-contact-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #fafafa;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  padding: 20px 24px;
  margin: 20px 0;
}
@media (min-width: 640px) {
  .pp-contact-card {
    flex-direction: row;
    gap: 32px;
  }
}

/* Sidebar TOC link active state */
.pp-toc-active {
  border-left-color: #e17100 !important;
  color: #e17100 !important;
}

/* =============================
   CPT HERO — Degradê preto × laranja
   (archive-projetos · single-projetos)
   ============================= */
.cpt-hero {
  background:
    /* Halo âmbar amplo — canto superior direito */
    radial-gradient(
      ellipse 75% 90% at 106% -8%,
      rgba(254,154,0,0.62)  0%,
      rgba(225,113,0,0.42) 20%,
      rgba(185, 72,0,0.18) 46%,
      transparent          64%
    ),
    /* Brasa quente — canto inferior esquerdo */
    radial-gradient(
      ellipse 48% 42% at -8% 110%,
      rgba(225,113,0,0.24) 0%,
      transparent          58%
    ),
    /* Faixa diagonal de luz — detalhe central */
    linear-gradient(
      112deg,
      transparent          0%,
      transparent         40%,
      rgba(254,154,0,0.05) 48%,
      rgba(254,154,0,0.04) 52%,
      transparent          60%,
      transparent         100%
    ),
    /* Base diagonal: preto profundo → marrom-laranja escuro */
    linear-gradient(
      158deg,
      #09090b  0%,
      #1c0900 38%,
      #220e00 58%,
      #0e0503 82%,
      #09090b 100%
    );
}

/* =============================
   LIGHTBOX
   ============================= */
.lb-trigger {
  cursor: zoom-in;
}

#lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}

#lb-overlay.lb-open {
  display: flex;
}

#lb-overlay.lb-fade-in {
  animation: lb-fadein 0.22s ease both;
}

@keyframes lb-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#lb-img-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  max-width: min(92vw, 1200px);
  max-height: 90vh;
}

#lb-img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
  transition: opacity 0.18s ease;
  user-select: none;
}

#lb-img.lb-img-loading {
  opacity: 0;
}

/* Close button */
#lb-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  display: block;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease;
  z-index: 9010;
}

#lb-close:hover {
  background: rgba(225,113,0,0.5);
}

/* Prev / Next */
.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: block;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.18s ease;
  z-index: 9010;
  user-select: none;
}

.lb-nav:hover {
  background: rgba(225,113,0,0.5);
}

#lb-prev { left: 16px; }
#lb-next { right: 16px; }

.lb-nav.lb-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Counter */
#lb-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  z-index: 9010;
  white-space: nowrap;
}

/* Caption */
#lb-caption {
  position: fixed;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.4px;
  z-index: 9010;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Gallery grid: hint cursor on hover */
.project-gallery-media.lb-trigger img,
.project-hero-media.lb-trigger img {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.project-gallery-media.lb-trigger:hover img,
.project-hero-media.lb-trigger:hover img {
  opacity: 0.85;
}

/* Zoom icon overlay on hover */
.lb-trigger {
  position: relative;
}

.lb-trigger::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8'%3E%3Ccircle cx='10' cy='10' r='6'/%3E%3Cline x1='14.5' y1='14.5' x2='20' y2='20'/%3E%3Cline x1='8' y1='10' x2='12' y2='10'/%3E%3Cline x1='10' y1='8' x2='10' y2='12'/%3E%3C/svg%3E") center / 36px 36px no-repeat;
  opacity: 0;
  transition: opacity 0.22s ease;
  border-radius: inherit;
  pointer-events: none;
}

.lb-trigger:hover::after {
  opacity: 0.85;
}

/* hover - Seção O que Fazemos*/

.service-card:hover img {
    filter: invert(1) brightness(8);
}

/* =============================
   MODAL — "Saiba mais" (Frentes de Atuação)
   O conteúdo interno é injetado a partir de blocos ocultos no PHP
   (classes Tailwind funcionam normalmente).
   ============================= */
#servico-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 5vh 18px;
  overflow-y: auto;
}

#servico-modal.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.servico-modal-panel {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: auto;
  background: #141414;
  border: 1px solid #262626;
  border-radius: 10px;
  padding: 46px 30px 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: lb-fadein 0.22s ease both;
}

.servico-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.servico-modal-close:hover {
  background: rgba(196, 154, 108, 0.45);
}

body.modal-open {
  overflow: hidden;
}

/* Serifa de display (Cormorant): leve ajuste de métrica */
.font-heading {
  letter-spacing: 0.2px;
}

/* Marcador em listas dos pop-ups de serviço e destaques de ativo */
.servico-bullet::before {
  content: "—";
  color: #C49A6C;
  margin-right: 10px;
}

/* =============================
   CONTATO no tema preto — rótulos claros sobre o fundo escuro
   (os campos permanecem claros; só os rótulos precisam de contraste)
   ============================= */
#contato .wpcf7 label {
  color: #d8d2c8;
}
#contato .wpcf7 .baccari-optional {
  color: #8a847b;
}

/* =============================
   COMPONENTE NÚMERO + LEGENDA (Credenciais · José Renato)
   ============================= */
.baccari-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  /* text-align acompanha o align-items: sem ele, número/legenda que quebram
     em duas linhas ficam alinhados à esquerda dentro da caixa centralizada. */
  text-align: center;
}
.baccari-stat-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
  color: #EDEAE3;
}
/* Marcador de texto longo ("Curadoria de Ativos"): corpo reduzido para caber em
   UMA linha só, sem quebra. O clamp acompanha a largura da coluna do grid
   (2 colunas no mobile, 3 no desktop). */
.baccari-stat-num--long {
  font-size: clamp(15px, 1.75vw, 26px);
  white-space: nowrap;
}

.baccari-stat-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #C49A6C;
}
@media (min-width: 768px) {
  .baccari-stat { align-items: flex-start; text-align: left; }
}
.baccari-chip {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: #EDEAE3;
  background: rgba(196, 154, 108, 0.10);
  border: 1px solid rgba(196, 154, 108, 0.30);
  border-radius: 999px;
  padding: 5px 12px;
}

/* =============================
   DISCLOSURE ("Saiba mais") expansível — Sistema + trajetória
   ============================= */
.baccari-disclosure-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #C49A6C;
  transition: opacity 0.2s ease;
}
.baccari-disclosure-toggle:hover { opacity: 0.72; }
.baccari-disclosure-toggle .disclosure-icon {
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}
.baccari-disclosure-toggle .disclosure-icon::before,
.baccari-disclosure-toggle .disclosure-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.baccari-disclosure-toggle .disclosure-icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  transform: translateY(-50%);
}
.baccari-disclosure-toggle .disclosure-icon::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
}
.baccari-disclosure-toggle.is-open .disclosure-icon::after {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}
.baccari-disclosure-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.baccari-disclosure-panel.open {
  grid-template-rows: 1fr;
}
.baccari-disclosure-inner {
  overflow: hidden;
  min-height: 0;
}

/* =============================
   PORTFÓLIO — galeria destaque + trilho de miniaturas
   ============================= */
.portfolio-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 16px;
}
.portfolio-gallery-main {
  height: clamp(420px, 85vh, 950px);
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #262626;
  background: #141414;
}
.portfolio-gallery-featured {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.4s ease;
  cursor: zoom-in;
}
.portfolio-gallery-featured.is-swapping {
  opacity: 0;
}
.portfolio-gallery-rail-wrap {
  position: relative;
  overflow: hidden;
}
.portfolio-gallery-rail {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #C49A6C #1a1a1a;
}
.portfolio-gallery-rail::-webkit-scrollbar {
  width: 6px;
}
.portfolio-gallery-rail::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}
.portfolio-gallery-thumb {
  flex: 0 0 auto;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 1px solid #262626;
  border-radius: 6px;
  overflow: hidden;
  background: #141414;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}
.portfolio-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.portfolio-gallery-thumb:hover {
  opacity: 0.85;
}
.portfolio-gallery-thumb.is-active {
  opacity: 1;
  border-color: #C49A6C;
}
@media (max-width: 767px) {
  /* minmax(0,1fr) é obrigatório: com `1fr` (mínimo automático), o trilho
     horizontal de miniaturas (~70 × 74px sem quebra de linha) alarga a coluna
     para milhares de px — o card estoura a tela e a foto em destaque
     (contain, centralizada) fica fora da área visível. */
  .portfolio-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .portfolio-gallery-main,
  .portfolio-gallery-rail-wrap {
    min-width: 0;
    max-width: 100%;
  }
  .portfolio-gallery-rail-wrap {
    position: static;
    overflow: visible;
  }
  .portfolio-gallery-rail {
    position: static;
    inset: auto;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
    padding-bottom: 6px;
    gap: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .portfolio-gallery-thumb {
    width: 74px;
    aspect-ratio: 1 / 1;
    scroll-snap-align: start;
  }
  /* Card retrato 3/4 (mais vertical); a foto preenche o card inteiro
     (cover, herdado da regra base) com o recorte focado no centro. */
  .portfolio-gallery-main {
    height: auto !important;
    aspect-ratio: 3 / 4;
    min-height: 0;
    max-height: 72vh;
  }
}

/* =============================
   DEPOIMENTOS (Trustindex) — nome do autor sem reticências
   Ajuste Final 30/07/2026 (item 13): "SANDRA ROCHA B..." aparecia truncado.
   O widget limita a largura do nome e aplica ellipsis; aqui liberamos a largura
   e permitimos a quebra em duas linhas, sem reticências cruas.
   ============================= */
.baccari-reviews .ti-name,
.baccari-reviews .ti-profile-details .ti-name,
.baccari-reviews .ti-review-item .ti-name {
  max-width: none !important;
  width: auto !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
  word-break: break-word;
}

/* O cabeçalho do card precisa poder quebrar para acomodar o nome completo. */
.baccari-reviews .ti-review-header,
.baccari-reviews .ti-profile-details {
  flex-wrap: wrap;
  min-width: 0;
}

/* =============================
   RODAPÉ — alinhamento dos ícones sociais
   Ícones Pinterest/TikTok centralizados no mobile (como o restante do rodapé)
   e alinhados à esquerda no desktop. O container é o único <div> dentro de
   li.pt-1 (bloco "Redes & contato").
   ============================= */
footer li.pt-1 > div {
  justify-content: center;
}
@media (min-width: 1024px) {
  footer li.pt-1 > div {
    justify-content: flex-start;
  }
}

/* =============================
   BOTÃO FLUTUANTE DE WHATSAPP
   O HTML é impresso por baccari_whatsapp_button() (functions.php) e o ícone vem
   do Font Awesome. Toda a aparência e posição ficam aqui.
   O `bottom` é generoso para o botão não cobrir os créditos do rodapé
   ("CREA-SP · CRECI · © …" e "MIDIASIM Criação Web").
   ============================= */
.baccari-whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.baccari-whatsapp-float:hover,
.baccari-whatsapp-float:focus {
  transform: scale(1.08);
  color: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32);
}
.baccari-whatsapp-float i {
  font-size: 34px;
  line-height: 1;
}
@media (max-width: 640px) {
  /* No mobile os créditos do rodapé quebram em mais linhas — o botão sobe mais. */
  .baccari-whatsapp-float {
    right: 16px;
    bottom: 140px;
    width: 54px;
    height: 54px;
  }
  .baccari-whatsapp-float i {
    font-size: 30px;
  }
}
