/* ==========================================================================
   Elétrica Medina — Estilos Oficiais (Mobile-First Extremo & Anti-Overflow)
   Porto Alegre e Região Metropolitana • Atendimento 24 Horas
   Padrão: Tema Claro (Light) + Suporte Nativo a Tema Escuro ([data-theme="dark"])
   ========================================================================== */

:root {
  /* Paleta Base — Tema Claro (Padrão) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-elevated: #ffffff;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --border-subtle: #e2e8f0;
  --border-focus: #f59e0b;
  --border-card: #e2e8f0;

  /* Cores de Destaque Elétrica Medina */
  --primary: #f59e0b;
  --primary-hover: #d97706;
  --primary-dark: #b45309;
  --primary-subtle: #fef3c7;
  --primary-contrast: #0f172a;

  --accent-blue: #0284c7;
  --accent-blue-subtle: #e0f2fe;

  --success: #16a34a;
  --success-subtle: #dcfce7;
  --success-text: #15803d;

  --danger: #dc2626;
  --danger-subtle: #fee2e2;

  --whatsapp: #25d366;
  --whatsapp-hover: #1ebd5b;
  --whatsapp-dark: #128c7e;

  /* Sombras */
  --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.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-primary: 0 10px 25px -5px rgba(245, 158, 11, 0.35);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --header-height: 72px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg-primary: #0b1120;
  --bg-secondary: #0f172a;
  --bg-tertiary: #1e293b;
  --bg-card: #131c31;
  --bg-card-hover: #1a2540;
  --bg-elevated: #1e293b;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --border-subtle: #334155;
  --border-focus: #fbbf24;
  --border-card: #1e293b;

  --primary-subtle: rgba(245, 158, 11, 0.15);
  --primary-contrast: #0f172a;

  --accent-blue-subtle: rgba(2, 132, 199, 0.15);
  --success-subtle: rgba(22, 163, 74, 0.15);
  --success-text: #4ade80;

  --danger-subtle: rgba(220, 38, 38, 0.15);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 10px 25px -5px rgba(245, 158, 11, 0.25);
}

/* Reset Base com Proteção Total Contra Overflow Horizontal */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
  word-break: break-word;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

/* ==========================================================================
   Header & Navegação (Blindagem Mobile-First)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: var(--transition);
}

[data-theme="dark"] .site-header {
  background: rgba(11, 17, 32, 0.95);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .header-container {
    padding: 0 1.5rem;
    gap: 1rem;
  }
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .logo-img {
    width: 44px;
    height: 44px;
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .brand-title {
    font-size: 1.15rem;
  }
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .brand-subtitle {
    font-size: 0.72rem;
    max-width: none;
  }
}

@media (max-width: 380px) {
  .brand-subtitle {
    display: none;
  }
}

.header-badges {
  display: none;
}

@media (min-width: 992px) {
  .header-badges {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.header-pill.urgent {
  background: var(--primary-subtle);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--primary-dark);
}

[data-theme="dark"] .header-pill.urgent {
  color: #fbbf24;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .header-actions {
    gap: 0.75rem;
  }
}

/* Oculta botão de WhatsApp no header em telas menores em favor do flutuante e do drawer */
.site-header .btn-header-whatsapp {
  display: none;
}

@media (min-width: 580px) {
  .site-header .btn-header-whatsapp {
    display: inline-flex;
  }
}

/* Botões do Topo com Touch Target Adequado */
.theme-toggle-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: var(--bg-tertiary);
  transform: translateY(-1px);
}

.theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: inline-block; }

/* Botão Menu Hambúrguer ("3 risquinhos") */
.btn-hamburger {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  min-height: 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-hamburger:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary);
  color: var(--primary-dark);
}

[data-theme="dark"] .btn-hamburger:hover {
  color: #fbbf24;
}

@media (max-width: 420px) {
  .btn-hamburger span.btn-hamburger-label {
    display: none;
  }
  .btn-hamburger {
    padding: 0.5rem 0.65rem;
  }
}

.hamburger-lines {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
}

.hamburger-lines span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   Gaveta Lateral (Slide-Over Drawer)
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.site-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 320px;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
  z-index: 10002;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
  overflow-y: auto;
}

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

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.btn-close-drawer {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.btn-close-drawer:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.25rem 0;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  min-height: 46px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid transparent;
}

.drawer-nav a:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-subtle);
  color: var(--text-primary);
  padding-left: 1.2rem;
}

.drawer-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.drawer-contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-size: 0.82rem;
}

.drawer-contact-card p {
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}

.drawer-contact-card strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Botões e Componentes de UI
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  min-height: 44px;
  border-radius: var(--radius-md);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
  word-break: break-word;
}

.btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  min-height: 38px;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-contrast);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -5px rgba(245, 158, 11, 0.45);
}

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

.btn-secondary:hover {
  background: var(--bg-tertiary);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

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

.btn-whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -4px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   Hero Section (Otimizado Mobile)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 2.25rem 1rem 3rem;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .hero-section {
    padding: 3.5rem 1.5rem 4rem;
  }
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-subtle);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

[data-theme="dark"] .hero-badge {
  color: #fbbf24;
}

.hero-title {
  font-size: clamp(1.75rem, 5.5vw, 3.25rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  max-width: 900px;
}

.hero-highlight {
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
}

[data-theme="dark"] .hero-highlight {
  color: #fbbf24;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 780px;
  margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 580px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

.hero-actions .btn {
  width: 100%;
}

@media (min-width: 580px) {
  .hero-actions .btn {
    width: auto;
  }
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 1000px;
}

@media (min-width: 768px) {
  .hero-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

@media (min-width: 768px) {
  .stat-card {
    border-radius: var(--radius-lg);
    padding: 1.25rem;
  }
}

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

.stat-icon {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.stat-number {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 1.4rem;
  }
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ==========================================================================
   Simulador de Atendimento e Triagem Rápida (100% Mobile Ready)
   ========================================================================== */
.simulator-section {
  padding: 3rem 1rem;
  background: var(--bg-primary);
  position: relative;
}

@media (min-width: 768px) {
  .simulator-section {
    padding: 5rem 1.5rem;
  }
}

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

.section-tag {
  display: inline-block;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.65rem;
}

[data-theme="dark"] .section-tag {
  color: #fbbf24;
}

.section-title {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.simulator-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

@media (min-width: 768px) {
  .simulator-card {
    border-radius: var(--radius-xl);
  }
}

.simulator-card-header {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 600px) {
  .simulator-card-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
  }
}

.sim-header-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sim-header-badge {
  background: var(--success-subtle);
  color: var(--success-text);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
}

@media (min-width: 600px) {
  .sim-header-badge {
    align-self: center;
  }
}

.simulator-card-body {
  padding: 1.25rem 1rem;
}

@media (min-width: 640px) {
  .simulator-card-body {
    padding: 2rem;
  }
}

.sim-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .sim-form-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .form-col-full {
    grid-column: span 2;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.form-label-hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  min-height: 44px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.form-input.input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25) !important;
  background-color: rgba(220, 38, 38, 0.04) !important;
}

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

/* Seletores de Modalidade de Atendimento */
.radio-toggle-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 600px) {
  .radio-toggle-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.radio-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.radio-card:hover {
  border-color: var(--primary);
  background: var(--bg-tertiary);
}

.radio-card input[type="radio"] {
  accent-color: var(--primary);
  margin-top: 0.15rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.radio-card-content {
  display: flex;
  flex-direction: column;
}

.radio-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.radio-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Caixa de Urgência Dinâmica */
.urgencia-box {
  background: var(--primary-subtle);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 0.4rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.urgencia-box-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

[data-theme="dark"] .urgencia-box-title {
  color: #fbbf24;
}

.urgencia-box-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.taxa-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.taxa-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-primary);
  line-height: 1.35;
}

.taxa-label input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Painel de Estimativa em Tempo Real */
.estimate-preview-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 600px) {
  .estimate-preview-card {
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.estimate-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.estimate-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.estimate-zone-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.estimate-right {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.estimate-eta-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary-dark);
}

@media (min-width: 600px) {
  .estimate-eta-val {
    font-size: 1.8rem;
  }
}

[data-theme="dark"] .estimate-eta-val {
  color: #fbbf24;
}

.estimate-badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.sim-submit-btn {
  width: 100%;
  padding: 0.95rem 1rem;
  font-size: 0.95rem;
  line-height: 1.35;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4);
  white-space: normal;
}

.sim-privacy-notice {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.65rem;
}

/* ==========================================================================
   Serviços Oferecidos
   ========================================================================== */
.services-section {
  padding: 3rem 1rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .services-section {
    padding: 5rem 1.5rem;
  }
}

.services-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

@media (min-width: 768px) {
  .service-card {
    padding: 2rem 1.5rem;
  }
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-icon-box {
  width: 48px;
  height: 48px;
  background: var(--primary-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

[data-theme="dark"] .service-icon-box {
  color: #fbbf24;
}

.service-card-title {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.service-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.service-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
}

.service-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.service-feature-list li::before {
  content: "✔";
  color: var(--primary);
  font-weight: 800;
}

/* ==========================================================================
   Galeria e Obras Reais (Instagram Showcase)
   ========================================================================== */
.portfolio-section {
  padding: 3rem 1rem;
  background: var(--bg-primary);
}

@media (min-width: 768px) {
  .portfolio-section {
    padding: 5rem 1.5rem;
  }
}

.portfolio-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.portfolio-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #0f172a;
}

@media (min-width: 768px) {
  .portfolio-img-wrapper {
    height: 280px;
  }
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  color: #fbbf24;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.portfolio-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.portfolio-title {
  font-size: 1.1rem;
}

.portfolio-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Prova Social / Avaliações (5.0 Estrelas - 60 Avaliações)
   ========================================================================== */
.reviews-section {
  padding: 3rem 1rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .reviews-section {
    padding: 5rem 1.5rem;
  }
}

.rating-summary-banner {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

@media (min-width: 640px) {
  .rating-summary-banner {
    flex-direction: row;
    padding: 1.5rem 2rem;
    text-align: left;
  }
}

.rating-stars-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

@media (min-width: 480px) {
  .rating-stars-box {
    flex-direction: row;
    gap: 0.75rem;
  }
}

.rating-score {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
}

[data-theme="dark"] .rating-score {
  color: #fbbf24;
}

.stars-gold {
  color: #f59e0b;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
}

.rating-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.reviews-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .review-card {
    padding: 1.75rem;
  }
}

.review-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
}

[data-theme="dark"] .author-avatar {
  color: #fbbf24;
}

.author-info {
  display: flex;
  flex-direction: column;
}

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

.author-location {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-section {
  padding: 3rem 1rem;
  background: var(--bg-primary);
}

@media (min-width: 768px) {
  .faq-section {
    padding: 5rem 1.5rem;
  }
}

.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.is-open {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  padding: 1rem 1.15rem;
  min-height: 48px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--primary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

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

.faq-answer {
  display: none;
  padding: 0 1.15rem 1.15rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ==========================================================================
   Footer Institucional
   ========================================================================== */
.site-footer {
  background: #0b1120;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  padding: 3rem 1rem 2rem;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 4rem 1.5rem 2rem;
  }
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #1e293b;
}

@media (min-width: 640px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-container {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.footer-col h4 {
  color: #f8fafc;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: 'Outfit', sans-serif;
}

.footer-brand-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  color: #94a3b8;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.85rem;
}

.footer-links-list a:hover {
  color: #fbbf24;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
  color: #cbd5e1;
}

.footer-contact-item a:hover {
  color: #fbbf24;
}

.footer-bottom {
  max-width: 1240px;
  margin: 1.75rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer-bottom .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-bottom .footer-links a:hover {
  color: #fbbf24;
}

.footer-bottom-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-developer-credit {
  font-size: 0.78rem;
  color: #94a3b8;
}

.footer-developer-credit a {
  color: #fbbf24;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-developer-credit a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Botão Flutuante de WhatsApp 24h (Com Adaptação Inteligente ao Banner LGPD)
   ========================================================================== */
.whatsapp-float-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background: var(--whatsapp);
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 9998;
  transition: transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 600px) {
  .whatsapp-float-btn {
    bottom: 1.75rem;
    right: 1.75rem;
    padding: 0.65rem 1.15rem;
    font-size: 0.88rem;
  }
}

.whatsapp-float-btn:hover {
  background: var(--whatsapp-hover);
  color: #ffffff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

.whatsapp-float-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Reposiciona botão quando o banner LGPD estiver visível para nunca sobrepor botões */
body.cookie-banner-active .whatsapp-float-btn {
  transform: translateY(-160px);
}

@media (max-width: 640px) {
  body.cookie-banner-active .whatsapp-float-btn {
    transform: translateY(-210px);
  }
}

/* Páginas Legais */
.legal-page {
  background-color: var(--bg-primary);
}

.legal-container {
  max-width: 860px;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .legal-container {
    margin: 3rem auto;
    padding: 0 1.5rem;
  }
}

.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .legal-content {
    border-radius: var(--radius-xl);
    padding: 3.5rem 3rem;
  }
}

.legal-header-badge {
  display: inline-block;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

[data-theme="dark"] .legal-header-badge {
  color: #fbbf24;
}

.legal-content h1 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.legal-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-content section {
  margin-bottom: 1.75rem;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.legal-content p, .legal-content li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin: 0.65rem 0;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.contact-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 0.85rem;
}
