/*
Theme Name: BarberFlow Premium SaaS Theme
Theme URI: https://barbearia.queroservico.com.br
Description: Tema de alta conversão, responsivo e ultra-otimizado para celular (Mobile-First) projetado exclusivamente para Barbearias, Cabeleireiros e Salões de Beleza. Equipado com simulador de agendamento WhatsApp interativo, visão de cadeiras, calculadora de comissão/faturamento, módulos de balcão e planos de assinatura.
Version: 1.1.0
Author: M.Matias (WhatsApp: +55 11 98801-5741)
Author URI: https://barbearia.queroservico.com.br
License: Proprietária / Comercial Exclusiva (M.Matias wpp:11988015741)
Text Domain: barber-saas-theme
Requires at least: 6.0
Requires PHP: 8.0
*/

:root {
  --c-dark-bg: #090a0f;
  --c-dark-card: #12141c;
  --c-dark-card-hover: #171b26;
  --c-dark-border: #1e2230;
  --c-dark-border-hover: #d4af37;
  
  --c-gold: #e5b842;
  --c-gold-glow: rgba(229, 184, 66, 0.25);
  --c-gold-subtle: rgba(229, 184, 66, 0.1);
  --c-gold-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  --c-gold-metallic: linear-gradient(135deg, #e5b842 0%, #ffeaa7 50%, #b8860b 100%);
  
  --c-emerald: #10b981;
  --c-emerald-glow: rgba(16, 185, 129, 0.2);
  --c-whatsapp: #25D366;
  
  --c-text-main: #f8fafc;
  --c-text-muted: #94a3b8;
  --c-text-subtle: #64748b;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px -10px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 35px var(--c-gold-glow);
  --shadow-bottom-bar: 0 -4px 25px rgba(0,0,0,0.6);
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Cabinet Grotesk', 'Plus Jakarta Sans', sans-serif;
}

/* ═══════ RESET & BASE MOBILE-FIRST ═══════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--c-dark-bg);
}

body {
  font-family: var(--font-sans);
  background-color: var(--c-dark-bg);
  color: var(--c-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 76px; /* Espaço para barra flutuante mobile */
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
}

/* ═══════ UTILITÁRIOS ═══════ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.text-gold {
  color: var(--c-gold);
}

.text-gradient {
  background: var(--c-gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-gold-subtle);
  color: var(--c-gold);
  border: 1px solid rgba(229, 184, 66, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-pulse::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--c-emerald);
  box-shadow: 0 0 10px var(--c-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ═══════ TOP ANNOUNCEMENT BAR ═══════ */
.top-notice-bar {
  background: linear-gradient(90deg, #d4af37 0%, #ffeaa7 50%, #d4af37 100%);
  color: #000;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
  padding: 8px 12px;
  letter-spacing: 0.3px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.top-notice-bar span {
  background: #000;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  margin-left: 6px;
}

/* ═══════ HEADER & NAVBAR ═══════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(9, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-dark-border);
  padding: 12px 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--c-gold-subtle);
  border: 1px solid var(--c-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.brand-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.brand-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--c-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.desktop-nav {
  display: none;
}
@media (min-width: 900px) {
  .desktop-nav {
    display: flex;
    gap: 24px;
    align-items: center;
  }
  .desktop-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-text-muted);
    transition: color 0.2s;
  }
  .desktop-nav a:hover {
    color: var(--c-gold);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-cta {
  background: var(--c-gold);
  color: #000;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(229, 184, 66, 0.3);
  transition: transform 0.2s;
}
.btn-header-cta:hover {
  transform: translateY(-2px);
}

/* ═══════ HERO SECTION (TOUCH & ENGAGEMENT) ═══════ */
.hero-section {
  padding: 2.5rem 0 2rem;
  position: relative;
}

.hero-content {
  text-align: center;
}

.hero-title {
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 900;
  margin: 1.25rem 0 1rem;
  letter-spacing: -1px;
}
@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  max-width: 680px;
  margin: 0 auto 1.75rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2rem;
}
.hero-pill {
  background: var(--c-dark-card);
  border: 1px solid var(--c-dark-border);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}
@media (min-width: 600px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.btn-hero-primary {
  background: var(--c-gold-metallic);
  color: #000;
  font-weight: 900;
  font-size: 1rem;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 25px rgba(229, 184, 66, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}

.btn-hero-whatsapp {
  background: #25D366;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ═══════ PROVA SOCIAL & CONTADORES VIVOS ═══════ */
.stats-banner {
  background: var(--c-dark-card);
  border-top: 1px solid var(--c-dark-border);
  border-bottom: 1px solid var(--c-dark-border);
  padding: 1.5rem 0;
  margin: 2rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--c-gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ═══════ SIMULADOR WHATSAPP ULTRA MOBILE-FIRST ═══════ */
.simulator-wrapper {
  padding: 2.5rem 0;
}
.section-heading {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2rem;
}
.section-heading h2 {
  font-size: 1.85rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}
.section-heading p {
  color: var(--c-text-muted);
  font-size: 0.95rem;
}

.phone-mockup-mobile {
  max-width: 440px;
  margin: 0 auto;
  background: #000;
  border-radius: 38px;
  padding: 12px;
  border: 3px solid #272c3d;
  box-shadow: 0 25px 60px rgba(0,0,0,0.85);
  position: relative;
}
.phone-notch {
  width: 140px;
  height: 20px;
  background: #000;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}
.phone-screen-mobile {
  background: #0b141a;
  border-radius: 28px;
  overflow: hidden;
  height: 520px;
  display: flex;
  flex-direction: column;
}
.chat-header-mobile {
  background: #202c33;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #2a3942;
}
.chat-avatar {
  width: 42px;
  height: 42px;
  background: var(--c-gold-metallic);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #000;
}
.chat-partner-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.chat-partner-info span {
  font-size: 0.72rem;
  color: #25D366;
  display: flex;
  align-items: center;
  gap: 4px;
}
.chat-partner-info span::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #25D366;
  border-radius: 50%;
}

.chat-conversation-area {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-image: radial-gradient(#1f2937 1px, transparent 1px);
  background-size: 18px 18px;
}

.msg-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.4;
  position: relative;
}
.msg-bubble.bot {
  background: #202c33;
  color: #e9edef;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.msg-bubble.user {
  background: #005c4b;
  color: #e9edef;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.msg-time {
  font-size: 0.65rem;
  color: #8696a0;
  text-align: right;
  margin-top: 4px;
}

.quick-reply-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 12px;
  background: #111b21;
  border-top: 1px solid #202c33;
  -webkit-overflow-scrolling: touch;
}
.quick-reply-chips::-webkit-scrollbar {
  display: none;
}
.chip-btn {
  background: #202c33;
  color: var(--c-gold);
  border: 1px solid #2a3942;
  border-radius: 14px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.chip-btn:active {
  background: var(--c-gold);
  color: #000;
}

.chat-input-row {
  background: #202c33;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-input-row input {
  flex: 1;
  background: #2a3942;
  border: none;
  border-radius: 20px;
  padding: 10px 16px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
}
.chat-input-row button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #00a884;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ═══════ CARDS DE ROTINA DO BARBEIRO (CONTEÚDO PERSUASIVO) ═══════ */
.routine-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .routine-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.routine-card {
  background: var(--c-dark-card);
  border: 1px solid var(--c-dark-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  transition: all 0.2s;
  position: relative;
}
.routine-card:hover {
  border-color: var(--c-gold);
  transform: translateY(-4px);
  background: var(--c-dark-card-hover);
}
.routine-icon {
  width: 52px;
  height: 52px;
  background: var(--c-gold-subtle);
  border: 1px solid var(--c-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}
.routine-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.routine-card p {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}
.routine-features {
  list-style: none;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--c-text-main);
}
.routine-features li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.routine-features li span {
  color: var(--c-emerald);
}

/* ═══════ CALCULADORA DE ECONOMIA / COMISSÃO ═══════ */
.calculator-box {
  background: linear-gradient(145deg, #12141c 0%, #1a1e2c 100%);
  border: 1px solid var(--c-gold);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  max-width: 760px;
  margin: 3rem auto;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}
.calc-header {
  text-align: center;
  margin-bottom: 1.75rem;
}
.calc-inputs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) {
  .calc-inputs {
    grid-template-columns: 1fr 1fr;
  }
}
.calc-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-text-muted);
  margin-bottom: 6px;
}
.calc-field input, .calc-field select {
  width: 100%;
  background: #090a0f;
  border: 1px solid #272d3d;
  color: #fff;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
}
.calc-field input:focus {
  border-color: var(--c-gold);
}
.calc-results {
  background: #090a0f;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px dashed var(--c-gold);
}
@media (min-width: 600px) {
  .calc-results {
    flex-direction: row;
    justify-content: space-around;
    text-align: center;
  }
}
.calc-res-item h5 {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  text-transform: uppercase;
}
.calc-res-item .val {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--c-gold);
  margin-top: 4px;
}

/* ═══════ SEÇÃO DE PREÇOS & COMPARATIVO ═══════ */
.pricing-section {
  padding: 4rem 0 2rem;
}
.pricing-grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 900px) {
  .pricing-grid-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.plan-card {
  background: var(--c-dark-card);
  border: 1px solid var(--c-dark-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s;
}
.plan-card.highlight {
  border-color: var(--c-gold);
  background: linear-gradient(180deg, #161924 0%, #11141c 100%);
  box-shadow: 0 10px 40px rgba(229, 184, 66, 0.15);
}
.plan-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--c-gold);
  color: #000;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.plan-name {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
}
.plan-desc {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
}
.plan-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--c-gold);
  line-height: 1;
  margin-bottom: 1.5rem;
}
.plan-price span {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  font-weight: 500;
}
.plan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2rem;
  flex: 1;
  font-size: 0.88rem;
}
.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--c-text-muted);
}
.plan-list li strong {
  color: #fff;
}
.plan-list li::before {
  content: '✓';
  color: var(--c-emerald);
  font-weight: 900;
}
.btn-plan {
  background: #272d3d;
  color: #fff;
  font-weight: 800;
  padding: 14px;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.plan-card.highlight .btn-plan {
  background: var(--c-gold-metallic);
  color: #000;
  box-shadow: 0 6px 20px rgba(229, 184, 66, 0.3);
}

/* ═══════ FAQ ACORDION DE CONFIANÇA ═══════ */
.faq-section {
  padding: 3rem 0;
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--c-dark-card);
  border: 1px solid var(--c-dark-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-question {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
}
.faq-answer {
  padding: 0 20px 16px;
  color: var(--c-text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  display: none;
}
.faq-item.active .faq-answer {
  display: block;
}
.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

/* ═══════ FOOTER & IDENTIFICAÇÃO OBRIGATÓRIA ═══════ */
.site-footer {
  border-top: 1px solid var(--c-dark-border);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
  background: #06070a;
  color: var(--c-text-muted);
  font-size: 0.85rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.footer-badge-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--c-dark-border);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

/* ═══════ BARRA FIXA FLUTUANTE INFERIOR (STICKY MOBILE CONVERSÃO) ═══════ */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(14, 16, 23, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-dark-border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
  box-shadow: var(--shadow-bottom-bar);
}
@media (min-width: 900px) {
  .mobile-sticky-bar {
    display: none; /* Apenas em celular/tablet */
  }
  body {
    padding-bottom: 0;
  }
}
.sticky-info {
  display: flex;
  flex-direction: column;
}
.sticky-info span.plan {
  font-size: 0.72rem;
  color: var(--c-text-muted);
  text-transform: uppercase;
}
.sticky-info span.price {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--c-gold);
}
.sticky-actions {
  display: flex;
  gap: 8px;
}
.btn-sticky-wpp {
  background: #25D366;
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-sticky-cta {
  background: var(--c-gold-metallic);
  color: #000;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
}
