/* ==========================================================================
   REZENDE BARROS CONTABILIDADE — DESIGN CORPORATIVO TRADICIONAL & CLEAN
   Estilo Clássico de Escritório Contábil: Fundo Claro, Azul Marinho e Dourado
   ========================================================================== */

:root,
html[data-theme="classico"] {
  /* TEMA 1: CLÁSSICO INSTITUCIONAL (ORIGINAL - PADRÃO) */
  --primary: #0F2C59;          /* Azul Marinho Nobre */
  --primary-hover: #163B72;
  --primary-light: #EFF6FF;
  
  --secondary: #1E3A8A;        /* Azul Corporativo */
  --accent-gold: #C5A880;      /* Dourado Oficial da Logo */
  --accent-gold-hover: #AF9067;
  --accent-gold-light: #FBF8F3;

  --whatsapp-green: #25D366;
  --whatsapp-hover: #20BA56;

  /* Neutros e Superfícies Claras */
  --bg-body: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-muted: #F1F5F9;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-alt: #F8FAFC;
  --bg-header: #FFFFFF;
  --bg-input: #FFFFFF;
  --topbar-bg: #0F2C59;
  --bg-footer: #0A192F;        /* Azul Marinho Profundo */
  --hero-bg: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);

  /* Cores de Texto */
  --text-primary: #1E293B;     /* Slate Escuro de Alta Legibilidade */
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;

  /* Bordas Suaves */
  --border-light: #E2E8F0;
  --border-subtle: #CBD5E1;
  --border-gold: rgba(197, 168, 128, 0.4);

  /* Sombras Corporativas Naturais */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);

  /* Raios de Borda Tradicionais */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

/* ==========================================================================
   TEMA 2: PRETO COM DOURADO (NOIR LUXURY & ONYX — INSPIRADO NA 2ª IMAGEM)
   ========================================================================== */
html[data-theme="noir-gold"] {
  color-scheme: dark;
  --primary: #D4AF37;          /* Dourado Imperial de Alto Destaque */
  --primary-hover: #E5C378;
  --primary-light: rgba(212, 175, 55, 0.15);
  
  --secondary: #C5A880;
  --accent-gold: #D4AF37;
  --accent-gold-hover: #E5C378;
  --accent-gold-light: rgba(212, 175, 55, 0.2);

  --whatsapp-green: #25D366;
  --whatsapp-hover: #20BA56;

  /* Superfícies Negras & Ônix Profundo */
  --bg-body: #0A0B0E;
  --bg-subtle: #121319;
  --bg-muted: #1A1C24;
  --bg-white: #161821;
  --bg-card: #151720;
  --bg-card-alt: #0F1016;
  --bg-header: rgba(10, 11, 14, 0.95);
  --bg-input: #12131A;
  --topbar-bg: #060709;
  --bg-footer: #060709;
  --hero-bg: radial-gradient(ellipse at 85% 25%, rgba(212, 175, 55, 0.1) 0%, transparent 60%), linear-gradient(180deg, #0A0B0E 0%, #121319 100%);

  /* Textos de Alta Legibilidade */
  --text-primary: #F8F9FA;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;
  --text-light: #6B7280;
  --text-white: #FFFFFF;

  /* Bordas Douradas Sutis & Especulares */
  --border-light: rgba(212, 175, 55, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(212, 175, 55, 0.55);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.7), 0 0 1px rgba(212, 175, 55, 0.25);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.85), 0 0 24px rgba(212, 175, 55, 0.08);
}

/* ==========================================================================
   TEMA 3: BRANCO COM DOURADO (CHAMPAGNE & MARFIM — INSPIRADO NA 3ª IMAGEM)
   ========================================================================== */
html[data-theme="white-gold"] {
  color-scheme: light;
  --primary: #9E7D4E;          /* Dourado Bronze Nobre de Alto Contraste */
  --primary-hover: #866738;
  --primary-light: #FAF5EB;
  
  --secondary: #B89355;
  --accent-gold: #C5A880;
  --accent-gold-hover: #9E7D4E;
  --accent-gold-light: #FDF9F2;

  --whatsapp-green: #25D366;
  --whatsapp-hover: #20BA56;

  /* Superfícies Marfim Nobre & Branco */
  --bg-body: #FDFBF7;
  --bg-subtle: #F6F1E6;
  --bg-muted: #EFE8D8;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-alt: #FAF5EB;
  --bg-header: rgba(253, 251, 247, 0.95);
  --bg-input: #FFFFFF;
  --topbar-bg: #8E6C38;
  --bg-footer: #221D17;
  --hero-bg: radial-gradient(ellipse at 85% 25%, rgba(197, 168, 128, 0.15) 0%, transparent 60%), linear-gradient(180deg, #FFFFFF 0%, #F6F1E6 100%);

  /* Textos Carvão Quente Nobre */
  --text-primary: #2C261F;
  --text-secondary: #584F43;
  --text-muted: #827869;
  --text-light: #A89F90;
  --text-white: #FFFFFF;

  /* Bordas Acetinadas */
  --border-light: #EBE2D2;
  --border-subtle: #DDD2BF;
  --border-gold: rgba(158, 125, 78, 0.45);

  --shadow-sm: 0 1px 3px rgba(158, 125, 78, 0.06);
  --shadow-md: 0 4px 14px rgba(158, 125, 78, 0.08);
  --shadow-lg: 0 10px 24px rgba(158, 125, 78, 0.12);
}

/* ==========================================================================
   TEMA 4: MODO NOTURNO (DARK SLATE CONFORTÁVEL PARA USO À NOITE)
   ========================================================================== */
html[data-theme="dark-mode"] {
  color-scheme: dark;
  --primary: #60A5FA;          /* Azul Celeste Noturno - Conforto para a vista */
  --primary-hover: #93C5FD;
  --primary-light: rgba(96, 165, 250, 0.14);
  
  --secondary: #38BDF8;
  --accent-gold: #FBBF24;      /* Âmbar Suave e Calmo */
  --accent-gold-hover: #F59E0B;
  --accent-gold-light: rgba(251, 191, 36, 0.15);

  --whatsapp-green: #25D366;
  --whatsapp-hover: #20BA56;

  /* Superfícies Slate 900 / 800 Anti-fadiga */
  --bg-body: #0F172A;
  --bg-subtle: #1E293B;
  --bg-muted: #334155;
  --bg-white: #1E293B;
  --bg-card: #1E293B;
  --bg-card-alt: #162032;
  --bg-header: rgba(15, 23, 42, 0.95);
  --bg-input: #162032;
  --topbar-bg: #0B1120;
  --bg-footer: #0A0F1D;
  --hero-bg: radial-gradient(ellipse at 85% 25%, rgba(96, 165, 250, 0.08) 0%, transparent 60%), linear-gradient(180deg, #0F172A 0%, #1E293B 100%);

  /* Textos Noturnos Confortáveis */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  --text-white: #FFFFFF;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.14);
  --border-gold: rgba(251, 191, 36, 0.35);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.7);
}

/* Reset & Tipografia Básica */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  background-color: var(--bg-body);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-body);
}

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

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  touch-action: manipulation;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Foco Acessível */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   TOP BAR INSTITUCIONAL
   ========================================================================== */
.top-bar {
  background-color: var(--topbar-bg, var(--primary));
  color: #FFFFFF;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
}

.top-info-item:hover {
  color: #FFFFFF;
}

.crc-badge {
  background: var(--accent-gold);
  color: #0F2C59;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

/* ==========================================================================
   HEADER PRINCIPAL
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 64px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  display: block;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.2s ease;
}

.logo-link:hover .logo-img {
  transform: scale(1.04);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--primary);
  text-transform: uppercase;
}

.logo-subtitle {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 150ms ease;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-client-portal {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  background-color: #FFFFFF;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  min-height: 42px;
  cursor: pointer;
}

.btn-client-portal .user-avatar-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--accent-gold-light);
  border: 1px solid var(--accent-gold);
  color: var(--primary);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.btn-client-portal:hover {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(15, 44, 89, 0.18);
  transform: translateY(-1px);
}

.btn-client-portal:hover .user-avatar-badge {
  background-color: var(--accent-gold);
  color: #0F2C59;
  transform: scale(1.05);
}

.btn-client-portal:active {
  transform: translateY(0);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: background-color 150ms ease, transform 150ms ease;
  min-height: 44px;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #FFFFFF;
  color: var(--primary);
  border: 1px solid var(--border-subtle);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: background-color 150ms ease, border-color 150ms ease;
  min-height: 44px;
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--primary);
}


/* ==========================================================================
   HERO CORPORATIVO CLÁSSICO
   ========================================================================== */
.hero {
  padding: 4.5rem 0 5rem;
  background: var(--hero-bg, linear-gradient(180deg, #FFFFFF 0%, var(--bg-subtle) 100%));
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}



.hero-title {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-card);
}

.hero-image-frame img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* ==========================================================================
   4 DESTAQUES INSTITUCIONAIS (CARDS LIMPOS)
   ========================================================================== */
.section-destaques {
  padding: 4.5rem 0;
  background-color: var(--bg-body);
}

.section-header-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.destaques-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.destaque-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.destaque-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.destaque-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.destaque-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.destaque-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   SERVIÇOS CONTÁBEIS TRADICIONAIS
   ========================================================================== */
.section-servicos {
  padding: 5rem 0;
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.servico-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.servico-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.servico-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--accent-gold-light);
  color: var(--accent-gold-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.servico-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.servico-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.servico-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.servico-link:hover {
  color: var(--secondary);
  text-decoration: underline;
}



/* ==========================================================================
   SEGMENTOS ATENDIDOS
   ========================================================================== */
.section-segmentos {
  padding: 4.5rem 0;
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.segmentos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.segmento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.segmento-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.segmento-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.segmento-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   LOCALIZAÇÃO & CONTATO (SEDE MIGUEL PEREIRA - RJ)
   ========================================================================== */
.section-contato {
  padding: 5rem 0;
  background-color: var(--bg-body);
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: stretch;
}

.contato-info-box {
  background-color: var(--bg-card-alt, var(--bg-subtle));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contato-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 1.5rem;
}

.contato-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contato-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

.contato-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.contato-form-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background-color: var(--bg-input, var(--bg-card));
  color: var(--text-primary);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.map-container {
  margin-top: 3.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  height: 380px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   RODAPÉ CORPORATIVO CLÁSSICO E COMPACTO (AZUL MARINHO)
   ========================================================================== */
.footer {
  background-color: var(--bg-footer);
  color: #FFFFFF;
  padding: 2.25rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.footer-logo-img {
  height: 56px;
  width: auto;
  max-width: 62px;
  object-fit: contain;
  display: block;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.2s ease;
}

.footer-brand-link:hover .footer-logo-img {
  transform: scale(1.04);
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.footer-brand-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #FFFFFF;
  text-transform: uppercase;
}

.footer-brand-subtitle {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0.6rem 0 0.75rem;
  max-width: 300px;
}

.footer-legal-info {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.65rem;
  position: relative;
  padding-bottom: 0.35rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.84rem;
  transition: color 150ms ease;
}

.footer-link:hover {
  color: #FFFFFF;
}

.footer-col .footer-list span {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   BOTÃO FLUTUANTE DO WHATSAPP (PADRÃO BRASIL)
   ========================================================================== */
.whatsapp-float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--whatsapp-green);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  z-index: 999;
  transition: transform 150ms ease, background-color 150ms ease;
}

.whatsapp-float-btn:hover {
  transform: scale(1.08);
  background-color: var(--whatsapp-hover);
}

/* ==========================================================================
   MENU MOBILE DRAWER & BOTÃO TOGGLE
   ========================================================================== */
.btn-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
  touch-action: manipulation;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  margin: 3px 0;
  transition: transform 200ms ease, opacity 200ms ease;
  border-radius: 2px;
}

.btn-mobile-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.btn-mobile-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.btn-mobile-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(15, 44, 89, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: min(85vw, 320px);
  height: 100%;
  background-color: var(--bg-card);
  color: var(--text-primary);
  padding: 5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.mobile-drawer.is-open .mobile-drawer-content {
  transform: translateX(0);
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  transition: background-color 150ms ease, color 150ms ease;
  min-height: 44px;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

.mobile-drawer-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.mobile-contact-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  min-height: 44px;
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .contato-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .destaques-grid,
  .servicos-grid,
  .segmentos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .top-bar-right,
  .nav-desktop {
    display: none;
  }

  .btn-client-portal .btn-client-portal-text {
    display: none;
  }

  .btn-client-portal {
    padding: 0.35rem;
    min-height: 38px;
    border-radius: 50%;
  }

  .btn-mobile-toggle {
    display: flex;
  }

  .header-inner {
    height: 68px;
  }

  .logo-img {
    height: 38px;
  }

  .top-bar {
    padding: 0.4rem 0;
    font-size: 0.78rem;
  }

  .top-bar-left {
    gap: 0.6rem;
    width: 100%;
  }

  .top-info-item {
    font-size: 0.76rem;
  }

  .hero {
    padding: 2.75rem 0 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 7.5vw, 2.35rem);
    line-height: 1.22;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
  }

  .hero-image-frame {
    margin-top: 0.5rem;
  }

  .hero-image-frame img {
    height: 230px;
    object-fit: cover;
  }

  .section-destaques,
  .section-servicos,
  .section-segmentos,
  .section-contato {
    padding: 3.25rem 0;
  }

  .section-title {
    font-size: clamp(1.5rem, 5.5vw, 1.85rem);
    line-height: 1.25;
    margin-bottom: 0.6rem;
  }

  .section-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 2rem;
  }

  .destaques-grid,
  .servicos-grid,
  .segmentos-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .destaque-card,
  .servico-card,
  .segmento-card {
    padding: 1.5rem 1.25rem;
  }

  .servico-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .contato-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contato-info-box,
  .contato-form-box {
    padding: 1.75rem 1.25rem;
  }

  .form-label {
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
  }

  .form-control {
    font-size: 16px; /* Evita auto-zoom indesejado no iOS Safari */
    min-height: 46px;
    padding: 0.75rem 0.9rem;
  }

  textarea.form-control {
    min-height: 105px;
  }

  .map-container {
    height: 280px;
    margin-top: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .whatsapp-float-btn {
    bottom: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
  }
}

/* ==========================================================================
   DISPOSITIVOS COMPACTOS (390px iPhone & 360px Android)
   ========================================================================== */
@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .header-inner {
    height: 62px;
  }

  .logo-img {
    height: 44px;
    width: auto;
  }

  .logo-title {
    font-size: 0.95rem;
  }

  .logo-subtitle {
    font-size: 0.58rem;
  }

  .top-bar-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .top-info-item {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .hero {
    padding: 2rem 0 2.5rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  .hero-image-frame img {
    height: 200px;
  }

  .destaque-card,
  .servico-card,
  .segmento-card {
    padding: 1.25rem 1rem;
  }

  .contato-info-box,
  .contato-form-box {
    padding: 1.35rem 1rem;
  }

  .contato-item {
    gap: 10px;
    margin-bottom: 1.2rem;
  }

  .contato-val {
    font-size: 0.95rem;
    word-break: break-word;
  }

  .map-container {
    height: 250px;
  }
}

/* ==========================================================================
   TRANSIÇÕES SUAVES GLOBAIS DE TEMA
   ========================================================================== */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color 260ms cubic-bezier(0.4, 0, 0.2, 1),
              color 260ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 260ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 260ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  transition-delay: 0s !important;
}

/* ==========================================================================
   COMPONENTE: BOTÃO & DROPDOWN SELETOR DE TEMAS
   ========================================================================== */
.theme-switcher-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-theme-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  color: var(--primary);
  border: 1.5px solid var(--border-gold, var(--border-subtle));
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  position: relative;
}

.btn-theme-switcher:hover {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-theme-switcher:active {
  transform: scale(0.96);
}

.theme-split-icon {
  width: 22px;
  height: 22px;
  display: block;
  transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--primary);
}

.btn-theme-switcher:hover .theme-split-icon {
  transform: rotate(45deg);
}

/* Dropdown Popover de Seleção de Temas */
.theme-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 290px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18), 0 0 1px rgba(0, 0, 0, 0.1);
  padding: 0.85rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  transition: opacity 180ms ease, transform 180ms cubic-bezier(0.16, 1, 0.3, 1), visibility 180ms;
}

.theme-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.theme-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0.5rem;
}

.theme-dropdown-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.theme-dropdown-hint {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
}

.theme-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.theme-option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.theme-option-item:hover {
  background-color: var(--primary-light);
  border-color: var(--border-gold, var(--border-light));
  transform: translateX(2px);
}

.theme-option-item.active {
  background-color: var(--primary-light);
  border-color: var(--primary);
  font-weight: 700;
}

/* Amostra de Cores (Paleta 3 chips) */
.theme-swatches {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 2px;
}

.theme-swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  display: inline-block;
}

.theme-option-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  line-height: 1.25;
}

.theme-option-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.theme-option-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: normal;
}

.theme-check-icon {
  opacity: 0;
  color: var(--primary);
  flex-shrink: 0;
  transition: opacity 150ms ease, transform 150ms ease;
  transform: scale(0.8);
}

.theme-option-item.active .theme-check-icon {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   SELETOR DE TEMA DENTRO DO MENU MOBILE (DRAWER)
   ========================================================================== */
.mobile-theme-section {
  padding: 1.25rem 0 1rem;
  border-top: 1px solid var(--border-light);
  margin-top: 1rem;
}

.mobile-theme-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.mobile-theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.mobile-theme-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card-alt, var(--bg-subtle));
  border: 1px solid var(--border-light);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.mobile-theme-btn.active {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================================================
   REFINOS VISUAIS ESPECÍFICOS POR TEMA
   ========================================================================== */
/* Tema 2: Noir Luxury (Preto com Dourado) */
html[data-theme="noir-gold"] .logo-title {
  color: #F8F9FA;
}

html[data-theme="noir-gold"] .logo-subtitle {
  color: var(--accent-gold);
}

html[data-theme="noir-gold"] .logo-img {
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.35));
}

html[data-theme="noir-gold"] .btn-client-portal {
  background-color: transparent;
  color: #D4AF37;
  border-color: #D4AF37;
}

html[data-theme="noir-gold"] .btn-client-portal:hover {
  background-color: #D4AF37;
  color: #0A0B0E;
}

html[data-theme="noir-gold"] .btn-client-portal .user-avatar-badge {
  background-color: rgba(212, 175, 55, 0.18);
  border-color: #D4AF37;
  color: #D4AF37;
}

html[data-theme="noir-gold"] .btn-client-portal:hover .user-avatar-badge {
  background-color: #0A0B0E;
  color: #D4AF37;
}

html[data-theme="noir-gold"] .btn-secondary {
  background-color: #151720;
  color: #F8F9FA;
  border-color: rgba(212, 175, 55, 0.35);
}

html[data-theme="noir-gold"] .btn-secondary:hover {
  background-color: rgba(212, 175, 55, 0.15);
  border-color: #D4AF37;
  color: #D4AF37;
}

html[data-theme="noir-gold"] .btn-primary {
  background-color: #D4AF37;
  color: #0A0B0E;
  font-weight: 800;
}

html[data-theme="noir-gold"] .btn-primary:hover {
  background-color: #E5C378;
}

html[data-theme="noir-gold"] .map-container iframe {
  filter: invert(90%) hue-rotate(180deg) brightness(92%) contrast(92%);
}

/* Tema 3: Branco com Dourado (Champagne & Marfim) */
html[data-theme="white-gold"] .logo-title {
  color: var(--primary);
}

html[data-theme="white-gold"] .logo-subtitle {
  color: var(--accent-gold);
}

html[data-theme="white-gold"] .btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
}

html[data-theme="white-gold"] .btn-primary:hover {
  background-color: var(--primary-hover);
}

html[data-theme="white-gold"] .btn-client-portal {
  background-color: #FFFFFF;
  color: var(--primary);
  border-color: var(--primary);
}

html[data-theme="white-gold"] .btn-client-portal:hover {
  background-color: var(--primary);
  color: #FFFFFF;
}

/* Tema 4: Modo Noturno (Dark Slate Macio) */
html[data-theme="dark-mode"] .logo-title {
  color: #F8FAFC;
}

html[data-theme="dark-mode"] .logo-subtitle {
  color: var(--secondary);
}

html[data-theme="dark-mode"] .btn-client-portal {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

html[data-theme="dark-mode"] .btn-client-portal:hover {
  background-color: var(--primary);
  color: #0F172A;
}

html[data-theme="dark-mode"] .btn-client-portal .user-avatar-badge {
  background-color: rgba(96, 165, 250, 0.16);
  border-color: var(--primary);
  color: var(--primary);
}

html[data-theme="dark-mode"] .btn-client-portal:hover .user-avatar-badge {
  background-color: #0F172A;
  color: var(--primary);
}

html[data-theme="dark-mode"] .btn-secondary {
  background-color: #1E293B;
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark-mode"] .btn-secondary:hover {
  background-color: rgba(96, 165, 250, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

html[data-theme="dark-mode"] .map-container iframe {
  filter: invert(90%) hue-rotate(180deg) brightness(92%) contrast(92%);
}

/* ==========================================================================
   MOVIMENTO REDUZIDO (preferência do sistema)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
