/* ===================================================
   SiteAdmin Pro — Frontend Premium CSS
   Mobile First | CSS Variables | Modern Design
   =================================================== */

:root {
  --primary: #0f172a;
  --secondary: #1e293b;
  --accent: #3b82f6;
  --btn-color: #3b82f6;
  --text: #0f172a;
  --text-light: #64748b;
  --bg: #ffffff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
  --transition: all .22s cubic-bezier(.4,0,.2,1);
  --max-width: 1160px;
  --section-pad: 96px 0;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary);
  letter-spacing: -.02em;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-light);
  margin-top: 12px;
  max-width: 580px;
}

.section-header {
  margin-bottom: 56px;
}
.section-header.centered {
  text-align: center;
}
.section-header.centered .section-label {
  justify-content: center;
}
.section-header.centered .section-subtitle {
  margin: 12px auto 0;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--btn-color);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59,130,246,.35);
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59,130,246,.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.6);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,211,102,.35);
}
.btn-whatsapp:hover {
  background: #20bb5a;
  transform: translateY(-1px);
}

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 36px; font-size: 16px; }

/* ─── Header / Nav ─── */
/* Header sempre com fundo sólido — o banner agora fica abaixo dele, sem sobreposição */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
#header.scrolled {
  box-shadow: 0 1px 20px rgba(0,0,0,.06);
}
#header .nav { position: relative; z-index: 1; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 5;
}
.nav-logo img {
  height: 74px;
  width: auto;
  position: relative;
  z-index: 5;
}
.nav-logo span {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.03em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-menu a:hover {
  color: var(--accent);
  background: rgba(59,130,246,.06);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  /* ── Hamburguer: visível no mobile/tablet ── */
  .nav-toggle { display: flex; }
  .nav-actions .btn-whatsapp { display: none; }

  /* ── Menu: overlay full-screen abaixo do header ── */
  .nav-menu {
    display: none;
    position: fixed;
    top: 72px; /* altura do nav desktop; mobile sobrescreve abaixo */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100; /* acima do header (1000) */
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 12px 16px 48px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
  }
  .nav-menu.open { display: flex; }

  /* ── Itens do menu ── */
  .nav-menu li { display: block; width: 100%; }
  .nav-menu a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    border-radius: 12px;
    letter-spacing: -.01em;
    transition: background .15s, color .15s;
  }
  .nav-menu a:hover  { color: var(--accent); background: rgba(59,130,246,.07); }
  .nav-menu a:active { color: var(--accent); background: rgba(59,130,246,.12); }

  /* Separador visual antes do último item (Contato) */
  .nav-menu li:last-child {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
}

/* ─── Hero ─── */
#hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--hero-gradient-start, #070b12);
  margin-top: 90px; /* abre espaço para o header fixo (sólido) — banner fica abaixo dele, sem sobreposição */
}
@media (max-width: 768px) { #hero { margin-top: 62px; } }
@media (max-width: 480px) { #hero { margin-top: 58px; } }

/* ── Slides: todos absolutos, hero mantém altura pelo min-height ── */
.hero-slide {
  position: absolute;
  inset: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 1s cubic-bezier(.4,0,.2,1);
  will-change: opacity;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.hero-slide.is-leaving {
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── Placeholder para manter altura do hero ── */
#hero::before {
  content: '';
  display: block;
  min-height: 100svh;
  pointer-events: none;
}

/* ── Grade de textura (sobre o hero inteiro) ── */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255,255,255,.055) 48%, transparent 62%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,.02) 0 1px, transparent 1px 88px);
  opacity: .7;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.8) 55%, transparent 100%);
}

/* ── Fade para o site embaixo ── */
/* #hero::after removido — gradiente de baixo desativado */

/* ── Fundo gradiente ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(115deg,
      var(--hero-gradient-start,  #070b12) 0%,
      var(--hero-gradient-middle, #0d1623) 42%,
      var(--hero-gradient-end,    #1b2b42) 100%),
    linear-gradient(150deg, color-mix(in srgb, var(--hero-accent-color, #14b8a6) 22%, transparent) 0%, transparent 30%),
    linear-gradient(315deg, rgba(245,158,11,.14) 0%, transparent 32%);
}

/* ── Fundo imagem sutil (modo gradiente) ── */
.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: .18;
  mix-blend-mode: screen;
  filter: saturate(.85);
}

/* ── Fundo foto fullscreen com Ken Burns ── */
.hero-bg-full {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(.9) contrast(1.06);
  transform-origin: center center;
}
.hero-slide.is-active .hero-bg-full {
  animation: kenBurns var(--hero-interval, 8000ms) ease-in-out forwards;
}
@keyframes kenBurns {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

/* ── Overlay escurecedor ── */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ── Layout interno ── */
.hero-layout {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(36px, 6vw, 84px);
  width: 100%;
  padding-block: clamp(110px, 14vh, 160px) clamp(90px, 10vh, 120px);
}

/* ── Conteúdo (texto) ── */
.hero-content {
  max-width: 680px;
  flex: 1;
}
.hero-slide.is-active .hero-content {
  animation: heroFadeUp .85s cubic-bezier(.22,1,.36,1) .05s both;
}
.hero-slide.is-active .hero-visual {
  animation: heroFloatIn .9s cubic-bezier(.22,1,.36,1) .15s both;
}

/* ── Alinhamento centro ── */
.hero-align-center .hero-layout   { flex-direction: column; justify-content: center; gap: 48px; padding-bottom: clamp(100px,12vh,140px); }
.hero-align-center .hero-content  { text-align: center; max-width: 800px; margin: 0 auto; }
.hero-align-center .hero-actions  { justify-content: center; }
.hero-align-center .hero-subtitle { max-width: 100%; }
.hero-align-center .hero-visual   { width: min(100%, 800px); max-width: 800px; }

/* ── Badge ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 8px 10px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--hero-badge-bg-color, #fff) 10%, transparent);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(16px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--hero-badge-text-color, #fff) 90%, transparent);
  margin-bottom: 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--hero-badge-dot-color, #2dd4bf);
  box-shadow: 0 0 14px color-mix(in srgb, var(--hero-badge-dot-color, #2dd4bf) 80%, transparent);
  animation: heroPulse 2.4s ease-in-out infinite;
}

/* ── Título ── */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.5vw, 66px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--hero-title-color, #fff);
  margin-bottom: 22px;
  text-wrap: balance;
  text-shadow: 0 4px 32px rgba(0,0,0,.35);
}

/* ── Subtítulo ── */
.hero-subtitle {
  font-size: clamp(16px, 1.6vw, 20px);
  color: color-mix(in srgb, var(--hero-subtitle-color, #e2e8f0) 85%, transparent);
  line-height: 1.75;
  margin-bottom: 44px;
  max-width: 580px;
  text-wrap: pretty;
}

/* ── Botões ── */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-actions .btn { min-height: 56px; }
.hero-actions .btn-primary {
  background: linear-gradient(135deg,
    var(--hero-primary-btn-bg, var(--btn-color)),
    var(--hero-accent-color, #14b8a6));
  color: var(--hero-primary-btn-text, #fff);
  box-shadow:
    0 16px 40px color-mix(in srgb, var(--hero-accent-color, #14b8a6) 28%, transparent),
    0 6px 18px  color-mix(in srgb, var(--hero-primary-btn-bg, #3b82f6) 16%, transparent);
}
.hero-actions .btn-primary:hover { transform: translateY(-2px); }
.hero-actions .btn-ghost {
  background: color-mix(in srgb, var(--hero-secondary-btn-bg, #fff) 12%, transparent);
  color: var(--hero-secondary-btn-text, #fff);
  border-color: color-mix(in srgb, var(--hero-secondary-btn-border, #fff) 45%, transparent);
  backdrop-filter: blur(10px);
}
.hero-actions .btn-ghost:hover {
  background: color-mix(in srgb, var(--hero-secondary-btn-bg, #fff) 22%, transparent);
  border-color: color-mix(in srgb, var(--hero-secondary-btn-border, #fff) 75%, transparent);
  transform: translateY(-2px);
}

/* ── Builder extras ── */
.hero-description {
  font-size: clamp(.9rem, 1.8vw, 1.05rem);
  color: color-mix(in srgb, var(--hero-subtitle-color, #e2e8f0) 70%, transparent);
  line-height: 1.7;
  max-width: 560px;
  margin: 0;
}

.hero-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: color-mix(in srgb, var(--hero-subtitle-color, #e2e8f0) 80%, transparent);
}
.hero-benefits li::before {
  content: '✓';
  color: var(--hero-accent-color, #14b8a6);
  font-weight: 700;
  flex-shrink: 0;
}

/* Per-slide alignment overrides */
.hero-align-override-center .hero-content { align-items: center; text-align: center; }
.hero-align-override-center .hero-actions  { justify-content: center; }
.hero-align-override-center .hero-description { margin-inline: auto; }
.hero-align-override-right .hero-content   { align-items: flex-end; text-align: right; }
.hero-align-override-right .hero-actions   { justify-content: flex-end; }
.hero-align-override-left .hero-content    { align-items: flex-start; text-align: left; }

/* Per-slide height */
.hero-height-small  { min-height: 400px; }
.hero-height-medium { min-height: 550px; }
.hero-height-full   { min-height: 100vh; }

/* ── Visual lateral ── */
.hero-visual {
  flex-shrink: 0;
  width: min(40%, 500px);
  min-width: 0;
  z-index: 4;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 28px;
  filter: drop-shadow(0 28px 72px rgba(0,0,0,.42));
  animation: heroDrift 8s ease-in-out infinite;
}

/* ── Painel showcase ── */
.hero-showcase {
  width: 100%;
  max-width: 520px;
  position: relative;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08)), rgba(15,23,42,.6);
  box-shadow: 0 36px 96px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.18);
  backdrop-filter: blur(24px);
  overflow: visible;
  transform: perspective(1000px) rotateY(-7deg) rotateX(4deg);
  animation: heroPanelDrift 8s ease-in-out infinite;
}
.hero-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 32%),
              repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 64px);
  pointer-events: none;
}
.hero-showcase-top {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.hero-showcase-top span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); }
.hero-showcase-body { position: relative; padding: 30px; }
.hero-showcase-main {
  min-height: 240px;
  border-radius: 18px;
  padding: 26px;
  background: linear-gradient(145deg, rgba(20,184,166,.18), rgba(59,130,246,.1)), rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}
.hero-showcase-label {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hero-accent-color, #14b8a6) 18%, transparent);
  color: color-mix(in srgb, var(--hero-accent-color, #14b8a6) 50%, #fff);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 22px;
}
.hero-showcase-title { max-width: 320px; color: #fff; font-size: 24px; font-weight: 800; line-height: 1.18; }
.hero-showcase-bars  { display: grid; gap: 10px; margin-top: 28px; }
.hero-showcase-bars span {
  display: block; height: 9px; border-radius: 999px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--hero-accent-color, #14b8a6) 90%, transparent),
    rgba(96,165,250,.7));
}
.hero-showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.hero-showcase-grid div,
.hero-floating-card {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.hero-showcase-grid strong,
.hero-floating-card strong { display: block; color: #fff; font-size: 24px; line-height: 1; margin-bottom: 6px; }
.hero-showcase-grid span,
.hero-floating-card span   { display: block; color: rgba(226,232,240,.72); font-size: 12px; line-height: 1.35; }
.hero-floating-card { position: absolute; min-width: 132px; }
.hero-floating-card-one { left: -42px; bottom: 82px; }
.hero-floating-card-two { right: -28px; top: 98px; }

/* ── Setas de navegação ── */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(16px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s, opacity .2s;
  opacity: .7;
}
.hero-arrow:hover { background: rgba(255,255,255,.22); opacity: 1; transform: translateY(-50%) scale(1.07); }
.hero-arrow-prev { left: clamp(12px, 3vw, 36px); }
.hero-arrow-next { right: clamp(12px, 3vw, 36px); }

/* ── Barra de progresso ── */
.hero-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,.12);
  z-index: 6;
  overflow: hidden;
}
.hero-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--hero-dot-color, #2dd4bf);
  transition: none;
}
.hero-progress-fill.running {
  transition: width var(--hero-interval, 6000ms) linear;
  width: 100%;
}

/* ── Dots ── */
.hero-rotator-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-rotator-dots button {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.25);
  cursor: pointer;
  transition: width .25s, background .25s, border-color .25s;
}
.hero-rotator-dots button.is-active {
  width: 30px;
  background: var(--hero-dot-color, #2dd4bf);
  border-color: color-mix(in srgb, var(--hero-dot-color, #2dd4bf) 80%, transparent);
}

/* ── Keyframes ── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFloatIn {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes heroDrift {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes heroPanelDrift {
  0%, 100% { transform: perspective(1000px) rotateY(-7deg) rotateX(4deg) translateY(0); }
  50%       { transform: perspective(1000px) rotateY(-7deg) rotateX(4deg) translateY(-10px); }
}
@keyframes heroPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .7; transform: scale(1.2); }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity .3s; }
  .hero-content, .hero-visual, .hero-visual img,
  .hero-showcase, .hero-badge-dot,
  .hero-bg-full, .hero-progress-fill { animation: none !important; }
  .hero-progress-fill.running { transition: none; }
}

/* ── Tablet (≤900px) ── */
@media (max-width: 900px) {
  .hero-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding-bottom: clamp(80px, 10vh, 110px);
  }
  .hero-content { max-width: 100%; }
  .hero-visual  { width: 100%; min-width: 0; max-width: 520px; margin: 0 auto; }
  .hero-align-center .hero-visual { width: 100%; }
  .hero-showcase { transform: none; animation: none; }
  .hero-floating-card { display: none; }
  .hero-arrow { width: 44px; height: 44px; }
  .hero-rotator-dots { bottom: 18px; }
  /* new hero-container system */
  .hero-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding-top: clamp(90px, 12vh, 130px);
    padding-bottom: clamp(70px, 9vh, 100px);
  }
  .hero-container .hero-visual { width: 100%; min-width: 0; max-width: 480px; margin: 0 auto; }
  .hero-container .hero-content { max-width: 100%; }
  .hero-align-center .hero-container { align-items: center; }
}

/* ── Mobile (≤560px) ── */
@media (max-width: 560px) {
  .hero-title { font-size: clamp(28px, 8.5vw, 42px); }
  .hero-actions { align-items: stretch; width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; white-space: normal; text-align: center; min-height: 52px; }
  .hero-showcase-body { padding: 18px; }
  .hero-showcase-main { min-height: 200px; padding: 20px; }
  .hero-showcase-title { font-size: 20px; }
  .hero-arrow { display: none; }
  /* new hero-container system */
  .hero-container {
    padding-top: clamp(80px, 11vh, 120px);
    padding-bottom: clamp(60px, 8vh, 90px);
    padding-inline: 16px;
    gap: 24px;
  }
  .hero-btn { width: 100%; text-align: center; min-height: 52px; }
  .hero-actions.hero-actions { flex-direction: column; width: 100%; align-items: stretch; }
  .hero-subtitle { margin-bottom: 28px; }
  .hero-badge { margin-bottom: 20px; }
}

/* ─── Hero extras (new fields) ─── */
.hero-section { position: relative; overflow: hidden; isolation: isolate; background: var(--hero-gradient-start, #070b12); max-width: 100vw; }

/* fullimage slide — imagem cobre todo o hero como background */
.hero-slide.hero-fullimage {
  position: absolute;
  inset: 0;
  min-height: 100%;
  background: none;
  display: flex;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
}
.hero-slide.hero-fullimage.is-active { opacity: 1; pointer-events: auto; }
.hero-slide.hero-fullimage picture,
.hero-slide.hero-fullimage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* height variants — viewport-relative, never fixed px */
.hero-h-small  { min-height: clamp(380px, 58vh, 520px); }
.hero-h-medium { min-height: clamp(480px, 72vh, 650px); }
.hero-h-large  { min-height: clamp(560px, 88vh, 820px); }
.hero-h-full   { min-height: 100svh; }

/* background image full HD */
.hero-bg-img {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* per-slide alignment */
.hero-align-left   .hero-content { align-items: flex-start; text-align: left; }
.hero-align-center .hero-content { align-items: center; text-align: center; }
.hero-align-right  .hero-content { align-items: flex-end; text-align: right; }
.hero-align-center .hero-actions { justify-content: center; }
.hero-align-right  .hero-actions { justify-content: flex-end; }
.hero-align-center .hero-benefits { align-items: center; }
.hero-align-right  .hero-benefits { align-items: flex-end; }

/* description */
.hero-desc {
  font-size: clamp(.875rem, 1.6vw, 1rem);
  color: color-mix(in srgb, var(--hero-subtitle-color, #e2e8f0) 70%, transparent);
  line-height: 1.7;
  max-width: 560px;
  margin: 0;
}

/* benefits list */
.hero-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: color-mix(in srgb, var(--hero-subtitle-color, #e2e8f0) 85%, transparent);
}
.hero-benefits li::before {
  content: '✓';
  color: var(--hero-accent-color, #14b8a6);
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
}

/* buttons aliases */
.hero-btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; border-radius: 8px; padding: 14px 28px; font-size: 1rem; text-decoration: none; transition: transform .2s, box-shadow .2s; cursor: pointer; }
.hero-btn-primary { background: var(--hero-primary-btn-bg, #3b82f6); color: var(--hero-primary-btn-text, #fff); }
.hero-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,130,246,.4); }
.hero-btn-secondary { background: transparent; border: 2px solid color-mix(in srgb, var(--hero-secondary-btn-border, #fff) 40%, transparent); color: var(--hero-secondary-btn-text, #fff); }
.hero-btn-secondary:hover { background: color-mix(in srgb, var(--hero-secondary-btn-bg, #fff) 12%, transparent); transform: translateY(-2px); }

/* dots */
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); border: none; cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.hero-dot.is-active { background: var(--hero-dot-color, #2dd4bf); transform: scale(1.3); }

/* container — desktop: lado-a-lado | mobile: coluna via media queries acima */
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 64px);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 48px);
  position: relative;
  z-index: 4;
}

@media (max-width: 768px) {
  .hero-h-small, .hero-h-medium, .hero-h-large { min-height: min(100svh, 100vh); }
  .hero-desc { max-width: 100%; }
}

@media (max-width: 420px) {
  .hero-title { font-size: clamp(24px, 7.5vw, 32px); }
  .hero-subtitle { font-size: 15px; }
  .hero-btn { padding: 14px 20px; font-size: .95rem; }
}

/* ─── Services ─── */
#services { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(59,130,246,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.service-icon svg { width: 24px; height: 24px; }
.service-icon img { width: 32px; height: 32px; object-fit: contain; }
/* quando o service-icon tem uma foto enviada pelo usuário (via picture element) */
.service-icon picture { display:block; width:100%; height:100%; }
.service-icon picture img { width:100%; height:140px; object-fit:cover; }

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.service-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.65;
}

/* ─── About ─── */
#about { background: var(--surface); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}
.about-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--btn-color);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.about-image-badge strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.about-image-badge span { font-size: 13px; opacity: .85; }

.about-text-content { padding: 20px 0; }
.about-text-content .section-subtitle { max-width: 100%; }

.about-desc {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 32px;
  white-space: pre-line;
}

.mvv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.mvv-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.mvv-card h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.mvv-card p { font-size: 14px; color: var(--text-light); line-height: 1.55; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image-wrap img { height: 300px; }
  .about-image-badge { bottom: 12px; right: 12px; }
  .mvv-grid { grid-template-columns: 1fr; }
}

/* ─── Stats ─── */
#stats { background: var(--primary); padding: 72px 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item span {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

/* ─── Gallery ─── */
#gallery { background: var(--bg); }

.gallery-grid {
  columns: 3;
  column-gap: 16px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.7) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .gallery-grid { columns: 2; }
}
@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }

/* ─── Testimonials ─── */
#testimonials { background: var(--surface); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}
.star { font-size: 16px; color: #e2e8f0; }
.star.filled { color: #f59e0b; }

.testimonial-text {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.testimonial-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(59,130,246,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.testimonial-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
}
.testimonial-role {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 2px;
}

/* ─── FAQ ─── */
#faq { background: var(--bg); }

.faq-grid {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--accent); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
  user-select: none;
  background: var(--bg);
  transition: var(--transition);
}
.faq-question:hover { color: var(--accent); }

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  font-size: 18px;
  color: var(--text-light);
}
.faq-item.open .faq-icon {
  background: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .2s;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.75;
  background: var(--bg);
}
.faq-answer-inner { padding: 0 24px 20px; }
.faq-item.open .faq-answer { max-height: 500px; }

/* ─── Contact ─── */
#contact { background: var(--surface); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(59,130,246,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
  margin-bottom: 4px;
}
.contact-info-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; }

.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}
.form-success svg { margin: 0 auto 16px; color: #22c55e; }
.form-success h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.form-success p { color: var(--text-light); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ─── Footer ─── */
#footer {
  background: var(--primary);
  color: rgba(255,255,255,.65);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 68px;
  margin-bottom: 16px;
  position: relative;
  z-index: 5;
}
.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: #fff; }
.footer-col .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 12px;
}
.footer-col .footer-contact-item svg { flex-shrink: 0; margin-top: 2px; opacity: .5; width: 16px; height: 16px; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.social-link:hover { background: var(--accent); color: #fff; }
.social-link svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ─── Chatbot ─── */
.chatbot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--btn-color);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(59,130,246,.4);
  transition: var(--transition);
  color: #fff;
}
.chatbot-toggle:hover { transform: scale(1.08); }
.chatbot-toggle svg { width: 26px; height: 26px; }
.chatbot-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

.chatbot-box {
  position: fixed;
  bottom: 96px; /* 24px (widget) + 60px (toggle) + 12px gap */
  right: 24px;
  width: 360px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,.14);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.97);
  transition: var(--transition);
  z-index: 9998;
}
.chatbot-box.open { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }

.chatbot-header {
  background: var(--btn-color);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.chatbot-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color .2s, background .2s;
}
.chatbot-close:hover { color: #fff; background: rgba(255,255,255,.15); }
.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chatbot-header-info strong { display: block; font-size: 15px; font-weight: 700; }
.chatbot-header-info span { font-size: 12px; opacity: .8; }
.chatbot-header-status {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 4px;
}

.chatbot-messages {
  padding: 20px;
  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
}
.chat-msg.bot {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  align-self: flex-start;
  border-radius: 14px 14px 14px 4px;
}
.chat-msg.user {
  background: var(--btn-color);
  color: #fff;
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
}

/* Indicador de digitação */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  min-width: 54px;
}
.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-light, #94a3b8);
  animation: chatblink 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chatblink {
  0%,80%,100% { transform: scale(.8); opacity: .4; }
  40%          { transform: scale(1.1); opacity: 1; }
}

.chatbot-options {
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chatbot-option-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}
.chatbot-option-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(59,130,246,.04); }
.chatbot-option-wa {
  background: #f0fdf4;
  border-color: #86efac;
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: 7px;
}
.chatbot-option-wa:hover { background: #dcfce7; border-color: #4ade80; color: #15803d; }

.chatbot-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chatbot-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chatbot-input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  transition: border-color .2s;
}
.chatbot-input:focus { border-color: var(--accent); }
.chatbot-input:disabled { opacity: .5; cursor: not-allowed; }
@keyframes chatshake {
  0%,100% { transform: translateX(0); }
  20%,60%  { transform: translateX(-5px); }
  40%,80%  { transform: translateX(5px); }
}
.chatbot-input-shake { animation: chatshake .4s ease; border-color: #ef4444 !important; }
.chatbot-send-btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .2s;
}
.chatbot-send-btn:hover { background: var(--primary); }
.chatbot-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-sm);
  background: #25d366;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}
.chatbot-wa-btn:hover { background: #20bb5a; }



/* ─── Scroll to Top ─── */
.scroll-top {
  position: fixed;
  bottom: 94px;  /* 24px (chatbot bottom) + 60px (chatbot height) + 10px gap */
  right: 24px;   /* alinhado com o chatbot */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 800;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: translateY(-2px); }
.scroll-top svg { width: 18px; height: 18px; }

/* ─── Animations ─── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── Alerts ─── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ─── Responsive utilities ─── */
@media (max-width: 600px) {
  :root { --section-pad: 64px 0; }
  .section-title { font-size: 28px; }
  .section-subtitle { font-size: 16px; }
  .section-header { margin-bottom: 36px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-grid { gap: 28px; }
  .contact-form { padding: 24px 18px; }
}

/* ===================================================
   MOBILE PREMIUM — Ajustes visuais e de usabilidade
   Todos os estilos abaixo ficam dentro de media queries.
   Desktop (> 768px) permanece 100% inalterado.
   =================================================== */

/* ─── Prevenir overflow horizontal global ─── */
@media (max-width: 768px) {
  html { overflow-x: hidden; } /* Previne scroll horizontal sem quebrar position:fixed */
  .container { padding: 0 18px; }

  /* ── Seções ── */
  :root { --section-pad: 68px 0; }
  .section-header { margin-bottom: 40px; }
  .section-title {
    font-size: clamp(22px, 6.5vw, 32px);
    letter-spacing: -.015em;
  }
  .section-subtitle { font-size: 15px; line-height: 1.6; }

  /* ── Botões globais: área de toque mínima 44 px ── */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; padding: 10px 18px; }
  .btn-lg { padding: 16px 28px; font-size: 15px; }

  /* ─── Header ─── */
  .nav { height: 62px; }
  .nav-logo img { height: 44px; max-width: 180px; }
  .nav-logo span { font-size: 17px; }

  /* Hamburguer: área de toque ampliada */
  .nav-toggle {
    padding: 10px;
    margin-right: -10px;
    gap: 5px;
  }
  .nav-toggle span { width: 24px; height: 2.5px; border-radius: 2px; }

  /* ─── Menu mobile: ajuste de top para header reduzido ─── */
  .nav-menu { top: 62px; padding: 8px 12px 56px; }
  .nav-menu a { font-size: 16px; min-height: 52px; border-radius: 10px; }
  .nav-menu li:last-child { margin-top: 8px; padding-top: 8px; }

  /* WhatsApp no nav-actions: oculto no mobile (está no footer) */
  .nav-actions .btn-whatsapp { display: none; }

  /* ─── Hero ─── */
  .hero-layout {
    padding-block: clamp(82px, 16vh, 110px) clamp(56px, 8vh, 80px);
    gap: 28px;
    align-items: flex-start;
  }
  .hero-content { max-width: 100%; }
  .hero-badge {
    font-size: 10px;
    padding: 7px 14px 7px 9px;
    margin-bottom: 18px;
  }
  .hero-title {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.08;
    margin-bottom: 16px;
    letter-spacing: -.02em;
  }
  .hero-subtitle {
    font-size: clamp(14px, 3.8vw, 17px);
    margin-bottom: 28px;
    line-height: 1.65;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    min-height: 52px;
    font-size: 15px;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }
  /* Showcase panel: desabilita perspectiva 3D */
  .hero-showcase {
    transform: none !important;
    animation: none !important;
    max-width: 100%;
  }
  .hero-visual { max-width: 100%; min-width: 0; }
  /* Setas: menores e mais próximas das bordas */
  .hero-arrow { width: 40px; height: 40px; }
  .hero-arrow-prev { left: 8px; }
  .hero-arrow-next { right: 8px; }

  /* ─── Services ─── */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .service-card { padding: 26px 22px; }
  /* Remove hover transform em touch */
  .service-card:hover { transform: none; }

  /* ─── About ─── */
  .about-grid { gap: 32px; }
  .about-image-wrap img { height: 240px; }
  .about-image-badge {
    bottom: 10px;
    right: 10px;
    padding: 14px 18px;
  }
  .about-image-badge strong { font-size: 26px; }
  .mvv-grid { grid-template-columns: 1fr; gap: 12px; }
  .about-text-content { padding: 0; }

  /* ─── Stats ─── */
  #stats { padding: 56px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .stat-item strong { font-size: clamp(28px, 8vw, 42px); }

  /* ─── Gallery ─── */
  .gallery-grid { columns: 2; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }

  /* ─── Testimonials ─── */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .testimonial-card { padding: 22px; }

  /* ─── FAQ ─── */
  .faq-question {
    padding: 16px 18px;
    font-size: 14px;
    min-height: 52px;
    gap: 12px;
  }
  .faq-answer { font-size: 14px; }
  .faq-answer-inner { padding: 0 18px 16px; }

  /* ─── Contact ─── */
  .contact-grid { gap: 28px; }
  .contact-form { padding: 22px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; /* Evita zoom no iOS */ }

  /* ─── Footer ─── */
  #footer { padding: 48px 0 0; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 36px;
  }
  .footer-brand img { height: 34px; }
  .footer-col ul { gap: 2px; }
  .footer-col ul li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
    padding: 4px 0;
  }
  .footer-contact-item {
    min-height: 44px;
    align-items: center;
    padding: 4px 0;
    margin-bottom: 6px;
  }
  .footer-social { gap: 8px; margin-top: 16px; }
  .social-link { width: 44px; height: 44px; border-radius: 10px; }
  .footer-bottom {
    padding: 16px 0;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  /* ─── Chatbot ─── */
  .chatbot-widget { bottom: 16px; right: 14px; }
  .chatbot-toggle { width: 54px; height: 54px; }
  .chatbot-box {
    /* Ancorado direto no viewport, independente do widget pai */
    right: 14px;
    bottom: 84px; /* 16px (widget) + 54px (toggle) + 14px gap */
    width: calc(100vw - 28px);
    max-height: 400px;
  }
  .chatbot-header { padding: 10px 14px; }
  .chatbot-avatar { width: 32px; height: 32px; }
  .chatbot-header-info strong { font-size: 13px; }
  .chatbot-header-info span { font-size: 11px; }
  .chatbot-messages {
    padding: 12px 14px;
    min-height: 80px;
    max-height: 180px;
  }
  .chatbot-options { padding: 0 12px 10px; gap: 6px; }
  .chatbot-footer { padding: 8px 12px; }

  /* ─── Scroll to top: acima do chatbot, mesmo eixo direito ─── */
  .scroll-top {
    right: 14px;  /* alinhado com o chatbot */
    bottom: 80px; /* 16px (widget bottom) + 54px (toggle) + 10px gap */
    width: 40px;
    height: 40px;
  }
}

/* ─── Mobile pequeno: 480 px e abaixo ─── */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  :root { --section-pad: 56px 0; }

  .section-title { font-size: clamp(20px, 6.5vw, 28px); }
  .section-header { margin-bottom: 28px; }
  .section-subtitle { font-size: 14px; }

  /* Header */
  .nav { height: 58px; }
  .nav-logo img { height: 38px; max-width: 150px; }
  .nav-logo span { font-size: 16px; }
  .nav-menu { top: 58px; padding: 8px 10px 60px; }
  .nav-menu a { font-size: 15px; min-height: 50px; }
  .nav-menu li:last-child { margin-top: 6px; padding-top: 6px; }

  /* Hero */
  .hero-layout {
    padding-block: clamp(74px, 14vh, 96px) clamp(48px, 7vh, 68px);
    gap: 20px;
  }
  .hero-title { font-size: clamp(24px, 7.5vw, 34px); }
  .hero-subtitle { font-size: 13px; margin-bottom: 24px; }
  .hero-badge { font-size: 9px; padding: 6px 12px 6px 8px; }
  /* Oculta visual decorativo: economiza espaço e evita elementos comprimidos */
  .hero-visual { display: none; }
  .hero-align-center .hero-visual { display: none; }
  /* Setas ocultas em mobile pequeno */
  .hero-arrow { display: none; }

  /* Services */
  .service-card { padding: 22px 18px; }
  .service-icon { width: 46px; height: 46px; margin-bottom: 16px; }

  /* About */
  .about-image-wrap img { height: 200px; }
  .about-image-badge { display: none; } /* Evita sobreposição em telas estreitas */

  /* Stats */
  .stats-grid { gap: 20px 16px; }
  .stat-item strong { font-size: clamp(26px, 7.5vw, 36px); }

  /* Gallery: 1 coluna em telas muito estreitas */
  .gallery-grid { columns: 1; }

  /* Testimonials */
  .testimonial-card { padding: 18px; }

  /* FAQ */
  .faq-question { font-size: 13px; padding: 14px 16px; }

  /* Contact */
  .contact-form { padding: 18px 14px; }
  .form-group input,
  .form-group select,
  .form-group textarea { padding: 11px 13px; }

  /* Footer */
  #footer { padding: 40px 0 0; }
  .footer-grid { gap: 24px; }

  /* Chatbot */
  .chatbot-box {
    right: 10px;
    bottom: 80px;
    width: calc(100vw - 20px);
    max-height: 320px;
  }
  .chatbot-messages {
    min-height: 60px;
    max-height: 130px;
    padding: 10px 12px;
  }
  .chatbot-options { padding: 0 10px 8px; gap: 5px; }
  .chatbot-footer { padding: 7px 10px; }

  /* Scroll-top: acima do chatbot, mesmo eixo direito */
  .scroll-top { right: 14px; bottom: 82px; width: 38px; height: 38px; }
}

/* ─── Mobile muito pequeno: 360 px e abaixo ─── */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .hero-title { font-size: clamp(22px, 7vw, 28px); }
  .hero-actions .btn { font-size: 14px; min-height: 48px; }
  .service-card { padding: 18px 14px; }
  .testimonial-card { padding: 16px; }
  .contact-form { padding: 16px 12px; }
  .footer-grid { gap: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ─── Tablet: 768 px — 900 px ─── */
@media (min-width: 769px) and (max-width: 900px) {
  .container { padding: 0 20px; }
  :root { --section-pad: 80px 0; }
  .section-header { margin-bottom: 48px; }
  /* Services: 2 colunas no tablet */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  /* Testimonials: 2 colunas no tablet */
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  /* Footer: 2 colunas no tablet */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
