/* ==========================================================================
   CodigoLocal — Visual, Humano, Video & Mobile-First
   ========================================================================== */

:root {
  --bg-hero: #0B1324;
  --bg-page: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;

  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;

  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-soft: #EFF6FF;

  --wa-green: #25D366;
  --wa-green-dark: #16A34A;
  --wa-soft: #ECFDF5;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 18px 40px -15px rgba(15, 23, 42, 0.14);
  --container: 1160px;
  --nav-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: clip;
}

h1, h2, h3, h4, .brand-name {
  font-family: 'Poppins', 'Inter', sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

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

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

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

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

/* ---------- HEADER / NAVBAR ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.2rem;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563EB, #0F172A);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.brand-tag {
  color: var(--primary);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.16s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

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

.btn.nav-cta-desktop,
.nav-cta-desktop {
  display: none;
}

.mobile-menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px 22px;
  z-index: 99;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.96rem;
  background: var(--bg-page);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-wa {
  background: linear-gradient(135deg, #25D366, #16A34A);
  color: #FFFFFF;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.55);
}

.btn-wa:hover {
  background: linear-gradient(135deg, #22C55E, #15803D);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 12px 26px -10px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-outline-dark {
  background: #FFFFFF;
  color: var(--text-main);
  border-color: var(--border);
}

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

.btn-sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.9rem;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

/* ---------- HERO EMOCIONAL COM VIDEO REAL ---------- */
.hero {
  position: relative;
  background: var(--bg-hero);
  color: #FFFFFF;
  padding: 40px 0 54px;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #86EFAC;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.9rem, 6.2vw, 3.1rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 .accent {
  color: #4ADE80;
}

.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.12rem);
  color: #E2E8F0;
  margin-bottom: 24px;
  max-width: 56ch;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-proof-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.86rem;
  color: #CBD5E1;
}

.hero-proof-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Video Card Real no Hero */
.hero-media-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0F172A;
  box-shadow: 0 28px 60px -18px rgba(0, 0, 0, 0.65);
}

.hero-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 19, 36, 0.86) 0%, rgba(11, 19, 36, 0.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  pointer-events: none;
}

.live-notif-stack {
  display: grid;
  gap: 8px;
}

.live-notif {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  font-size: 0.84rem;
}

.notif-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wa-green);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.25);
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 56px 0;
}

.section-white {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 34px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 4.4vw, 2.25rem);
  margin-bottom: 10px;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ---------- CARDS COM FOTOS REAIS ---------- */
.photo-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.photo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.photo-card-media {
  position: relative;
  overflow: hidden;
  background: #E2E8F0;
}

.photo-card-media img,
.photo-card-media video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.photo-card-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.86);
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.photo-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.photo-card-body h3 {
  font-size: 1.14rem;
  margin-bottom: 8px;
}

.photo-card-body p {
  font-size: 0.94rem;
  color: var(--text-body);
}

/* ---------- DEMONSTRAÇÃO INTERATIVA AO VIVO ---------- */
.demo-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.demo-controls {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.demo-prompt-btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.16s ease;
}

.demo-prompt-btn:hover,
.demo-prompt-btn.active {
  border-color: var(--wa-green-dark);
  background: var(--wa-soft);
  color: #065F46;
}

.wa-phone-sim {
  background: #ECE5DD;
  border-radius: 24px;
  overflow: hidden;
  border: 6px solid #0F172A;
  box-shadow: var(--shadow-md);
}

.wa-phone-top {
  background: #075E54;
  color: #FFFFFF;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.wa-phone-top strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.2;
}

.wa-phone-top small {
  font-size: 0.76rem;
  color: #A7F3D0;
}

.wa-chat-area {
  padding: 16px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-bubble {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  animation: fadeSlideUp 0.25s ease;
}

.wa-bubble.user {
  align-self: flex-end;
  background: #DCF8C6;
  color: #111827;
  border-bottom-right-radius: 4px;
}

.wa-bubble.bot {
  align-self: flex-start;
  background: #FFFFFF;
  color: #111827;
  border-bottom-left-radius: 4px;
}

.wa-panel-sync {
  background: #FFFFFF;
  border-top: 1px solid #D1D5DB;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
}

.sync-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--wa-soft);
  color: #065F46;
  font-weight: 700;
  font-size: 0.74rem;
}

/* ---------- VIDEO E PROVA REAL ---------- */
.story-card {
  background: #0F172A;
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: var(--shadow-md);
}

.story-media {
  position: relative;
  background: #0B1324;
}

.story-media video,
.story-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.story-body {
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-body h3 {
  font-size: clamp(1.35rem, 3.8vw, 1.9rem);
  margin: 10px 0 12px;
}

.story-body p {
  color: #CBD5E1;
  font-size: 0.96rem;
  margin-bottom: 18px;
}

.story-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- FORMULARIO SIMPLES UNICO ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

.contact-photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  background: #0F172A;
}

.contact-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-photo-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 19, 36, 0.92) 0%, rgba(11, 19, 36, 0.25) 60%, transparent 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #FFFFFF;
}

.contact-photo-caption h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.contact-photo-caption p {
  font-size: 0.92rem;
  color: #E2E8F0;
}

.simple-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-md);
}

.simple-form-card h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.simple-form-sub {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  color: var(--text-main);
  background: #FFFFFF;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.form-feedback {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-feedback.success {
  display: block;
  background: var(--wa-soft);
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-feedback.error {
  display: block;
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

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

.faq-trigger {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text-main);
  cursor: pointer;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 18px 16px;
  font-size: 0.93rem;
  color: var(--text-body);
}

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

/* ---------- FOOTER ---------- */
.site-footer {
  background: #0B1324;
  color: #94A3B8;
  padding: 34px 0 90px;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

/* ---------- BOTAO FLUTUANTE WHATSAPP ANIMADO ---------- */
.wa-float-wrap {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-float-label {
  display: none;
  background: #FFFFFF;
  color: #0F172A;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.wa-float-btn {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #16A34A);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
  animation: wa-jump 2.2s ease-in-out infinite;
}

.wa-float-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.7);
  animation: wa-ring 2.2s ease-out infinite;
}

@keyframes wa-jump {
  0%, 100% { transform: translateY(0) scale(1); }
  20% { transform: translateY(-9px) scale(1.05); }
  40% { transform: translateY(0) scale(1); }
  55% { transform: translateY(-4px) scale(1.02); }
  70% { transform: translateY(0) scale(1); }
}

@keyframes wa-ring {
  0% { transform: scale(1); opacity: 0.85; }
  70% { transform: scale(1.38); opacity: 0; }
  100% { transform: scale(1.38); opacity: 0; }
}

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

/* ---------- TABLET (768px+) ---------- */
@media (min-width: 768px) {
  .hero {
    padding: 58px 0 72px;
  }

  .hero-ctas {
    flex-direction: row;
    align-items: center;
  }

  .photo-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .story-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .site-footer {
    padding: 34px 0;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .wa-float-label {
    display: inline-block;
  }
}

/* ---------- DESKTOP (1024px+) ---------- */
@media (min-width: 1024px) {
  .mobile-menu-btn,
  .mobile-drawer {
    display: none !important;
  }

  .nav-links {
    display: flex;
  }

  .btn.nav-cta-desktop,
  .nav-cta-desktop {
    display: inline-flex;
  }

  .hero {
    padding: 74px 0 86px;
  }

  .hero-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
  }

  .demo-box {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .story-card {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .story-body {
    padding: 40px;
  }

  .contact-grid {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 28px;
  }

  .simple-form-card {
    padding: 34px;
  }
}
