/* Controle Simples — design system (tecnológico, cores leves) */
:root {
  --ink: #1a2b3c;
  --ink-soft: #3d5266;
  --muted: #6b7f90;
  --line: #d9e4ee;
  --surface: #f4f8fb;
  --surface-2: #e8f0f7;
  --white: #ffffff;

  /* Marca — azul clarinho */
  --brand: #2b7cb8;
  --brand-deep: #1a4a73;
  --accent: #5ba3d9;
  --accent-hover: #3d8fc9;
  --accent-soft: rgba(91, 163, 217, 0.14);

  --navy: var(--brand-deep);
  --navy-mid: #245f94;
  --navy-deep: #143a5c;

  --moto: #ff6b00;
  --moto-dark: #ea580c;

  --success: #3d8fc9;
  --warn: #b45309;
  --danger: #c41e3a;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 8px rgba(26, 74, 115, 0.05), 0 12px 32px rgba(26, 74, 115, 0.06);
  --shadow-soft: 0 1px 3px rgba(26, 74, 115, 0.05);
  --font-sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-display: "Source Serif 4", Georgia, serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 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(--white);
  line-height: 1.55;
  letter-spacing: -0.011em;
  -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(1080px, calc(100% - 2.5rem)); margin-inline: auto; }
.container-wide { width: min(1180px, calc(100% - 2.5rem)); margin-inline: auto; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: rgba(20, 58, 92, 0.94);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(20, 58, 92, 0.98);
  box-shadow: 0 8px 24px rgba(20, 58, 92, 0.18);
}
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.brand-logo {
  height: 40px; width: auto; object-fit: contain;
  display: block;
}
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 0.85rem; letter-spacing: -0.04em;
  flex-shrink: 0;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tag { color: rgba(255,255,255,0.55); }
.brand-logo-lg { height: 56px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.05rem; color: #fff;
  letter-spacing: -0.02em;
}
.brand-tag {
  display: block; font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.55); font-weight: 500;
}

.nav-desktop { display: none; align-items: center; gap: 1.6rem; }
.nav-desktop a {
  font-size: 0.8125rem; font-weight: 500; color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s var(--ease);
}
.nav-desktop a:hover { color: #fff; }
.nav-desktop .btn-primary {
  background: var(--accent); color: #fff;
}
.nav-desktop .btn-primary:hover { background: var(--accent-hover); }

.menu-toggle {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px;
  background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer;
}
.menu-toggle:hover { background: rgba(255, 255, 255, 0.14); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.7rem 1.25rem; border-radius: 8px;
  font-weight: 600; font-size: 0.875rem;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); }
.btn svg { flex-shrink: 0; }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91, 163, 217, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(91, 163, 217, 0); }
}
.float-soft { animation: float-y 5.5s ease-in-out infinite; }
.site-header .btn-primary,
.nav-desktop .btn-primary {
  animation: pulse-glow 3.2s ease-in-out infinite;
}
.team-card {
  display: flex; flex-direction: column;
}
.team-card .more {
  margin-top: auto; padding-top: 0.9rem;
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
}
.btn-secondary {
  background: var(--white); color: var(--brand);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
  background: transparent; color: var(--accent);
  border-color: transparent; padding-inline: 0.35rem;
}
.btn-ghost:hover { background: var(--accent-soft); }
.field-error { display: none; color: #991b1b; font-size: 0.75rem; margin-top: 0.35rem; }
.field-error.is-visible { display: block; }
.input-invalid { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; background: var(--white);
  padding: 1.25rem 1.5rem 2rem;
  transform: translateX(100%); transition: transform 0.3s var(--ease); z-index: 99;
  display: flex; flex-direction: column; gap: 0.15rem;
  border-top: 1px solid var(--line);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a {
  padding: 0.9rem 0.5rem; font-weight: 500; font-size: 1rem;
  color: var(--ink); border-bottom: 1px solid var(--line);
}
body.nav-open { overflow: hidden; }

.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-label {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.18;
  color: var(--ink); margin-bottom: 0.9rem;
}
.section-lead {
  font-size: 1.05rem; line-height: 1.55; color: var(--muted);
  max-width: 38rem;
}
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

.site-footer {
  background: var(--brand-deep); color: rgba(255, 255, 255, 0.68);
  padding: 3.5rem 0 1.75rem;
}
.footer-grid { display: grid; gap: 2.25rem; margin-bottom: 2.5rem; }
.footer-brand .brand-logo {
  height: 48px; width: auto;
  filter: none; opacity: 1;
}
.footer-brand .brand-logo-mark {
  height: 48px; width: 48px;
  filter: none; opacity: 1;
  background: #fff;
  border-radius: 12px;
}
.footer-brand p { margin-top: 1rem; font-size: 0.875rem; max-width: 32ch; line-height: 1.5; }
.footer-col h4 {
  color: rgba(255, 255, 255, 0.45); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.9rem;
}
.footer-col a {
  display: block; font-size: 0.875rem; padding: 0.28rem 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.4);
}

.form-success-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 58, 92, 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: 16px; max-width: 28rem; width: 100%;
  padding: 1.75rem 1.6rem; box-shadow: var(--shadow); text-align: center;
  border: 2px solid var(--accent);
}
.form-success-box h3 {
  font-family: var(--font-display); font-size: 1.45rem; color: var(--brand-deep);
  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: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  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); }
}
@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .nav-desktop { display: flex; }
  .mobile-nav { display: none; }
  .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
  .brand-logo { height: 48px; }
}
@media (max-width: 480px) {
  .container, .container-wide { width: min(100% - 1.5rem, 1080px); }
  .section { padding: clamp(3rem, 8vw, 5rem) 0; }
  .brand-name { font-size: 0.95rem; }
  .brand-tag { font-size: 0.58rem; }
  .cookie-banner { left: 0.65rem; right: 0.65rem; bottom: 0.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .float-soft, .site-header .btn-primary, .nav-desktop .btn-primary { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
