﻿/* Controle Simples — soft tech (inspiração Aigocy) */
:root {
  --ink: #171717;
  --ink-soft: #3f3f46;
  --muted: #71717a;
  --line: #ececef;
  --surface: #f6f6f8;
  --surface-2: #efeff2;
  --white: #ffffff;

  --brand: #171717;
  --brand-deep: #0a0a0a;
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, 0.14);

  --navy: #171717;
  --navy-mid: #27272a;
  --navy-deep: #0a0a0a;

  --moto: #38bdf8;
  --moto-dark: #0284c7;

  --success: #16a34a;
  --warn: #ca8a04;
  --danger: #dc2626;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 10px 40px rgba(15, 15, 20, 0.08);
  --shadow-soft: 0 4px 18px rgba(15, 15, 20, 0.06);
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --header-h: 88px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: hidden;
}
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  letter-spacing: -0.012em;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.contact-facts dd, .facts dd { overflow-wrap: anywhere; }
.turnstile-wrap iframe { max-width: 100% !important; }

.container { width: min(1140px, calc(100% - 2.5rem)); margin-inline: auto; }
.container-wide { width: min(1200px, calc(100% - 2.5rem)); margin-inline: auto; }

/* —— Floating pill header —— */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: auto; padding: 1rem 0 0;
  background: transparent;
  border: none;
  transition: padding 0.25s var(--ease);
}
.site-header.is-scrolled { padding-top: 0.65rem; }
.header-shell {
  width: min(1120px, calc(100% - 1.5rem));
  margin-inline: auto;
  min-height: 64px;
  height: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 0.65rem;
  padding: 0.35rem 0.55rem 0.35rem 0.9rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 980px;
  box-shadow: 0 8px 32px rgba(15, 15, 20, 0.08);
}
.site-header.is-scrolled .header-shell {
  box-shadow: 0 12px 40px rgba(15, 15, 20, 0.1);
}
.header-inner { display: contents; }

.brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.brand-logo {
  height: 36px; width: 36px; object-fit: contain;
  display: block; border-radius: 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tag { color: rgba(255, 255, 255, 0.5); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1rem; color: var(--ink);
  letter-spacing: -0.03em;
}
.brand-tag {
  display: none;
}

.nav-desktop {
  display: none; align-items: center; flex-wrap: wrap; justify-content: flex-end;
  gap: 0.05rem; min-width: 0; flex: 1;
}
.nav-desktop a {
  font-size: 0.8rem; font-weight: 600; color: var(--ink-soft);
  padding: 0.4rem 0.55rem; border-radius: 980px;
  transition: color 0.2s var(--ease), background 0.2s;
  position: relative; white-space: nowrap;
}
.nav-desktop a:hover { color: var(--ink); background: var(--surface); }
.nav-desktop a.is-active { color: var(--ink); }
.nav-desktop a.is-active::after {
  content: ""; position: absolute; left: 0.55rem; right: 0.55rem; bottom: 0.15rem;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-desktop .btn-primary,
.nav-desktop .btn-whatsapp {
  margin-left: 0.2rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.8rem;
}
.nav-desktop .btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 8px 20px rgba(23, 23, 23, 0.18);
}
.nav-desktop .btn-primary:hover { background: #000; color: #fff; }
.nav-desktop .btn-primary::after,
.nav-desktop .btn-whatsapp::after { display: none !important; }

.menu-toggle {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: none; border-radius: 50%;
  background: var(--surface); color: var(--ink); cursor: pointer;
  margin-right: 0.15rem;
}
.menu-toggle:hover { background: var(--surface-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.8rem 1.35rem; border-radius: 980px;
  font-weight: 700; font-size: 0.9rem;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 10px 24px rgba(23, 23, 23, 0.16);
}
.btn-primary:hover { background: #000; }
/* WhatsApp alinhado ao visual do site: fundo neutro + ícone verde oficial */
.btn-whatsapp {
  background: #fff;
  color: var(--ink);
  border-color: #e4e4e7;
  box-shadow: var(--shadow-soft);
}
.btn-whatsapp:hover {
  background: #fafafa;
  border-color: #d4d4d8;
  color: var(--ink);
}
.btn-whatsapp svg {
  width: 1.15em; height: 1.15em; flex-shrink: 0;
  fill: #25D366;
}
.whats-cta {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 700; color: var(--ink-soft);
}
.whats-cta:hover { color: var(--ink); }
.whats-cta svg { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: #25D366; }
.btn svg { flex-shrink: 0; }

.team-card { display: flex; flex-direction: column; }
.team-card .more {
  margin-top: auto; padding-top: 0.9rem;
  font-size: 0.85rem; font-weight: 700; color: var(--accent);
}
.btn-secondary {
  background: var(--white); color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.btn-secondary:hover { border-color: #d4d4d8; }
.btn-outline {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: transparent; padding-inline: 0.35rem; font-weight: 700;
}
.btn-ghost:hover { color: var(--accent); }
.field-error { display: none; color: #b91c1c; font-size: 0.75rem; margin-top: 0.35rem; }
.field-error.is-visible { display: block; }
.input-invalid { border-color: #dc2626 !important; }

.mobile-nav {
  position: fixed; top: calc(var(--header-h) - 4px); left: 0.75rem; right: 0.75rem;
  max-height: min(70vh, calc(100dvh - var(--header-h) - 1rem));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  padding: 0.75rem;
  border-radius: 24px;
  transform: translateY(-12px) scale(0.98);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 99;
  display: flex; flex-direction: column; gap: 0.15rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.mobile-nav.is-open {
  opacity: 1; pointer-events: auto;
  transform: translateY(0) scale(1);
}
.mobile-nav a {
  padding: 0.85rem 1rem; font-weight: 600; font-size: 0.98rem;
  color: var(--ink); border-radius: 14px;
}
.mobile-nav a:hover,
.mobile-nav a.is-active { background: var(--surface); }
.mobile-nav .btn-primary,
.mobile-nav .btn-whatsapp {
  margin-top: 0.35rem;
  justify-content: center;
  color: #fff;
}
.mobile-nav .btn-primary:hover { background: #000; color: #fff; }
.mobile-nav .btn-whatsapp:hover { background: #f4f4f5; color: var(--ink); }
body.nav-open { overflow: hidden; }

.section { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.section-label,
.pill-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.01em;
  color: #0c4a6e; margin-bottom: 1rem;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.4rem 0.85rem; border-radius: 980px;
}
.section-label::before,
.pill-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.1;
  color: var(--ink); margin-bottom: 0.95rem;
}
.section-lead {
  font-size: 1.1rem; line-height: 1.65; color: var(--muted);
  max-width: 42rem; font-weight: 500;
}
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-inline: auto; }

/* —— Footer —— */
.site-footer {
  background: var(--ink); color: rgba(255, 255, 255, 0.65);
  padding: 4rem 0 1.75rem;
}
.footer-grid { display: grid; gap: 2.25rem; margin-bottom: 2.5rem; }
.footer-brand .brand-logo-mark {
  height: 48px; width: 48px; border-radius: 14px;
}
.footer-brand .brand-tag { display: block; color: rgba(255,255,255,0.45); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.2rem; }
.footer-brand p { margin-top: 1rem; font-size: 0.9rem; max-width: 34ch; line-height: 1.5; }
.footer-col h4 {
  color: rgba(255, 255, 255, 0.4); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.9rem;
}
.footer-col a {
  display: block; font-size: 0.9rem; padding: 0.3rem 0;
  color: rgba(255, 255, 255, 0.72); transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem; color: rgba(255, 255, 255, 0.38);
}

.form-success-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(23, 23, 23, 0.45);
  display: none; align-items: center; justify-content: center;
  padding: 1.25rem;
}
.form-success-overlay.is-visible { display: flex; }
.form-success-box {
  background: #fff; border-radius: 24px; max-width: 28rem; width: 100%;
  padding: 1.85rem 1.7rem; box-shadow: var(--shadow); text-align: center;
}
.form-success-box h3 {
  font-family: var(--font-display); font-size: 1.4rem; color: var(--ink);
  margin-bottom: 0.5rem;
}
.form-success-box p { color: var(--muted); margin-bottom: 1.25rem; line-height: 1.5; }

.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 120;
  max-width: 720px; margin-inline: auto;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 1.1rem 1.2rem;
  transform: translateY(120%); transition: transform 0.35s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-inner { display: flex; flex-direction: column; gap: 1rem; }
.cookie-inner p { font-size: 0.8125rem; color: var(--muted); line-height: 1.45; }
.cookie-inner a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

@media (min-width: 640px) {
  .cookie-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .cookie-banner { left: 50%; right: auto; transform: translate(-50%, 120%); width: calc(100% - 2rem); }
  .cookie-banner.is-visible { transform: translate(-50%, 0); }
}
/* Menu desktop só quando cabe sem estourar a pill */
@media (min-width: 1100px) {
  .menu-toggle { display: none; }
  .nav-desktop { display: flex; }
  .mobile-nav { display: none !important; }
  .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
  .brand-tag { display: block; font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
}
@media (min-width: 1200px) {
  .nav-desktop a { font-size: 0.875rem; padding: 0.45rem 0.7rem; }
  .nav-desktop .btn-primary { padding: 0.6rem 1.1rem; font-size: 0.875rem; }
}
@media (max-width: 1099px) {
  .nav-desktop { display: none !important; }
  .menu-toggle { display: grid; }
}
@media (max-width: 720px) {
  .footer-grid { gap: 1.75rem; }
  .section-title { font-size: clamp(1.65rem, 6.5vw, 2.4rem); }
  .section-lead { font-size: 1rem; }
}
@media (max-width: 480px) {
  .container, .container-wide { width: min(100% - 1.35rem, 1140px); }
  .section { padding: clamp(3.5rem, 8vw, 5rem) 0; }
  .brand-name { font-size: 0.92rem; }
  .cookie-banner { left: 0.65rem; right: 0.65rem; bottom: 0.65rem; }
  .header-shell { width: calc(100% - 1rem); padding-left: 0.75rem; }
  .btn { padding: 0.75rem 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
