/* ═══════════════════════════════════════════════════
   SIMPLE SOLUTIONS — main.css
   Global styles shared by every page on the site.
   Page-specific additions live in each HTML file's
   own <style> block.
═══════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────── */
:root {
  --blue:   #29268B;
  --cyan:   #05DBF3;
  --navy:   #1C1A6E;
  --light:  #f4f6ff;
  --border: #e5e8f8;
  --text:   #1a1860;
  --muted:  #8890b0;
  --radius: 10px;
  --ease:   all .25s ease;
}

/* ─── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ─── UTILITIES ──────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
section:not(.hero-section) { padding: 90px 0; }
.eyebrow {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.8px;
  color: var(--cyan); margin-bottom: 8px;
  display: block;
}
.section-title { font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; color: var(--blue); margin-bottom: 10px; line-height: 1.2; }
.section-sub  { font-size: 13px; color: var(--muted); line-height: 1.75; max-width: 520px; }
.text-center  { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: none; border-radius: 5px; font-family: inherit;
  font-weight: 700; font-size: 12px; padding: 11px 24px;
  transition: var(--ease); cursor: pointer; white-space: nowrap;
  text-decoration: none;
}
.btn-cyan         { background: var(--cyan);  color: var(--blue); }
.btn-dark         { background: var(--blue);  color: #fff; }
.btn-ghost        { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-outline-dark { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn:hover        { transform: scale(1.04); opacity: .9; }

/* ─── NAV ────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--blue);
  transition: background .35s, box-shadow .35s;
}
#nav.scrolled {
  background: rgba(41,38,139,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,.22);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav-logo   { display: flex; align-items: baseline; gap: 5px; }
.nav-logo .logo-main { color: #fff; font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.nav-logo .logo-sub  { color: var(--cyan); font-size: 11px; font-weight: 300; letter-spacing: 1.8px; }
.nav-links  { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: rgba(255,255,255,.6); font-size: 12.5px; font-weight: 500; transition: color .2s; }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: #fff; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }
.mobile-menu {
  display: none; position: absolute; top: 66px; left: 0; right: 0;
  background: var(--blue); padding: 20px 28px 28px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-menu.open { display: flex; flex-direction: column; gap: 16px; }
.mobile-menu a { color: rgba(255,255,255,.7); font-size: 14px; font-weight: 500; }

/* ─── HERO (shared base) ─────────────────────── */
.hero-section {
  position: relative; background: var(--blue); overflow: hidden;
}
#particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-tri   { position: absolute; pointer-events: none; }
.tri-1 { top: -15px; right: 0; width: 280px; opacity: .06; animation: triFloat1 8s ease-in-out infinite; }
.tri-2 { top: 100px; right: 220px; width: 75px; opacity: .05; animation: triFloat2 10s ease-in-out infinite 2s; }
.tri-3 { bottom: -10px; right: 60px; width: 200px; opacity: .04; animation: triFloat3 12s ease-in-out infinite 1s; }
@keyframes triFloat1 { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-18px) rotate(4deg)} }
@keyframes triFloat2 { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-12px) rotate(-3deg)} }
@keyframes triFloat3 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-22px)} }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(5,219,243,.1); border: 1px solid rgba(5,219,243,.22);
  border-radius: 20px; padding: 5px 14px; margin-bottom: 22px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: badgePulse 2.5s infinite; }
@keyframes badgePulse { 0%,100%{opacity:.4;transform:scale(1)} 50%{opacity:1;transform:scale(1.2)} }
.hero-badge span { color: var(--cyan); font-size: 10.5px; font-weight: 600; letter-spacing: .5px; }
.hero-title   { font-size: clamp(28px, 4vw, 48px); color: #fff; line-height: 1.1; letter-spacing: -.5px; margin-bottom: 18px; }
.hero-title .accent { color: var(--cyan); }
.hero-sub     { color: rgba(255,255,255,.58); font-size: 14px; line-height: 1.8; max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── TRUST BAR ──────────────────────────────── */
.trust-bar { background: #f7f8ff; border-bottom: 1px solid var(--border); padding: 13px 0; }
.trust-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.trust-label { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; white-space: nowrap; }
.trust-logos { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.trust-logos span { color: #c0c3d8; font-size: 11px; font-weight: 600; }

/* ─── CTA SECTION ────────────────────────────── */
.cta-section { background: var(--cyan); padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.cta-bg-tri  { position: absolute; top: -40px; right: -40px; width: 240px; opacity: .07; pointer-events: none; }
.cta-section .container { position: relative; z-index: 1; }
.cta-title   { font-size: clamp(22px, 3vw, 32px); font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.cta-sub     { color: rgba(41,38,139,.6); font-size: 14px; margin-bottom: 30px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─────────────────────────────────── */
footer { background: var(--navy); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 40px; }
.f-logo      { display: flex; align-items: baseline; gap: 5px; margin-bottom: 16px; }
.f-logo .lg-main { color: #fff; font-size: 20px; font-weight: 700; }
.f-logo .lg-sub  { color: var(--cyan); font-size: 11px; font-weight: 300; letter-spacing: 1.8px; }
.f-brand-text { color: rgba(255,255,255,.3); font-size: 11px; line-height: 1.95; }
.f-col h4    { color: var(--cyan); font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.8px; margin-bottom: 18px; }
.f-col li    { margin-bottom: 12px; }
.f-col a     { color: rgba(255,255,255,.3); font-size: 11px; transition: color .2s; }
.f-col a:hover { color: #fff; }
.f-bottom    {
  border-top: 1px solid rgba(255,255,255,.07); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.f-copy    { color: rgba(255,255,255,.2); font-size: 11px; }
.f-socials { display: flex; gap: 16px; }
.f-socials a { color: rgba(255,255,255,.2); font-size: 17px; transition: color .2s; }
.f-socials a:hover { color: var(--cyan); }

/* ─── WHATSAPP FLOAT ─────────────────────────── */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 99;
  width: 56px; height: 56px; background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 27px;
  box-shadow: 0 4px 22px rgba(37,211,102,.4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }

/* ─── SCROLL REVEAL ──────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.vis { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  .nav-links    { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid  { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .cta-actions  { flex-direction: column; align-items: center; }
}

/* ═══════════════════════════════════════════════
   DROPDOWN NAV
   ─ services (hover): 2-col grid, 5 items
   ─ tools (hover): 2-item list
   ─ mobile: collapsible groups
═══════════════════════════════════════════════ */

/* Parent item */
.has-dd { position: relative; }

/* Trigger — inherits nav link look */
.nav-dd-trigger {
  background: none; border: none; cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px; font-weight: 500;
  color: rgba(255,255,255,.65); padding: 0;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color .2s;
  letter-spacing: -.1px;
}
.nav-dd-trigger:hover,
.has-dd:hover .nav-dd-trigger,
.has-dd.dd-open .nav-dd-trigger { color: #fff; }

/* Chevron rotates when open */
.dd-chevron { font-size: 9px; transition: transform .25s ease; }
.has-dd:hover .dd-chevron,
.has-dd.dd-open .dd-chevron { transform: rotate(180deg); }

/* ── Panel base ───────────────────────────── */
.dd-panel {
  position: absolute;
  top: calc(100% + 14px);
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 20px 60px rgba(41,38,139,.16), 0 4px 16px rgba(0,0,0,.06);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s .18s;
  z-index: 300;
}

/* Invisible bridge fills the gap so the mouse doesn't escape */
.dd-panel::after {
  content: '';
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
}

/* Caret */
.dd-panel::before {
  content: '';
  position: absolute;
  top: -5px;
  width: 10px; height: 10px;
  background: #fff;
  border-left: 1px solid rgba(0,0,0,.07);
  border-top:  1px solid rgba(0,0,0,.07);
  transform: rotate(45deg);
}

/* Open — triggered by CSS hover OR .dd-open class (JS/touch) */
.has-dd:hover .dd-panel,
.has-dd.dd-open .dd-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s 0s;
}

/* ── Services dropdown (wide, left-anchored) ─ */
.dd-services {
  left: 0;
  width: 476px;
}
.dd-services::before { left: 22px; }

.dd-label {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.8px; color: var(--muted);
  padding: 4px 12px 10px;
}
.dd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

/* ── Tools dropdown (narrow, centred) ────── */
.dd-tools {
  left: 50%;
  width: 284px;
  transform: translateX(-50%) translateY(-6px);
}
.dd-tools::before {
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}
.has-dd:hover .dd-tools,
.has-dd.dd-open .dd-tools {
  transform: translateX(-50%) translateY(0);
}

/* ── Dropdown item ─────────────────────── */
.dd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 9px;
  text-decoration: none; white-space: normal;
  transition: background .15s;
}
.dd-item:hover { background: var(--light); }
.dd-item:hover .dd-ico { background: var(--blue); color: var(--cyan); }

.dd-ico {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  background: var(--light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: background .15s, color .15s;
}
.dd-ico.accent { background: rgba(5,219,243,.12); color: var(--cyan); }
.dd-item:hover .dd-ico.accent { background: var(--blue); color: var(--cyan); }

.dd-n { font-size: 12px; font-weight: 700; color: var(--blue); line-height: 1.2; margin-bottom: 2px; }
.dd-d { font-size: 10.5px; color: var(--muted); line-height: 1.3; }

/* 5th service spans both columns */
.dd-span { grid-column: span 2; }

.dd-hr { border: none; border-top: 1px solid var(--border); margin: 6px 4px; }

.dd-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 12px 4px;
}
.dd-foot span { font-size: 11px; color: var(--muted); }
.dd-foot a    { font-size: 11px; font-weight: 600; color: var(--blue);
                text-decoration: underline; white-space: nowrap; }

/* ── Mobile collapsible groups ──────────── */
.mm-group-btn {
  display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.7); cursor: pointer; padding: 0;
}
.mm-group-btn i { font-size: 10px; transition: transform .25s; }
.mm-group.open .mm-group-btn i { transform: rotate(180deg); }
.mm-group.open .mm-group-btn   { color: #fff; }

.mm-sub {
  display: none; flex-direction: column; gap: 0;
  margin-top: 8px; padding: 6px;
  background: rgba(255,255,255,.06); border-radius: 9px;
}
.mm-group.open .mm-sub { display: flex; }

.mm-sub a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 7px;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.7); text-decoration: none;
  transition: background .15s;
}
.mm-sub a:hover { background: rgba(255,255,255,.08); color: #fff; }
.mm-sub a i { color: var(--cyan); font-size: 12px; width: 16px; text-align: center; flex-shrink: 0; }

/* ═══ LANGUAGE TOGGLE ════════════════════════════════
   PT | EN switch in nav and mobile menu
════════════════════════════════════════════════════ */
.lang-toggle {
  display: flex; align-items: center; gap: 3px;
}
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.35); padding: 4px 6px;
  border-radius: 4px; transition: color .2s, background .2s;
  letter-spacing: .3px;
}
.lang-btn:hover { color: rgba(255,255,255,.75); }
.lang-btn.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.lang-sep {
  color: rgba(255,255,255,.18); font-size: 11px;
  pointer-events: none; user-select: none;
}

/* Mobile lang toggle */
.mm-lang {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 0;
}
.mm-lang .lang-btn { font-size: 13px; padding: 5px 8px; }

/* Nav trigger — ensure the button looks like a nav link */
.nav-dd-trigger {
  background: none; border: none; cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px; font-weight: 500;
  color: rgba(255,255,255,.65); padding: 0;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color .2s;
  letter-spacing: -.1px;
}

/* ── Language toggle ──────────────────────────────────────── */
.lang-toggle { display:flex; align-items:center; gap:3px; }
.lang-btn {
  background:none; border:none; cursor:pointer;
  font-family:'Montserrat',sans-serif; font-size:11px; font-weight:700;
  color:rgba(255,255,255,.35); padding:4px 6px; border-radius:4px;
  transition:color .2s, background .2s; letter-spacing:.3px;
}
.lang-btn:hover { color:rgba(255,255,255,.75); }
.lang-btn.active { color:#fff; background:rgba(255,255,255,.12); }
.lang-sep { color:rgba(255,255,255,.18); font-size:11px; pointer-events:none; }
.mm-lang { display:flex; align-items:center; gap:4px; padding:4px 0; }
.mm-lang .lang-btn { font-size:13px; padding:5px 8px; }
/* Nav dropdown trigger button styling */
.nav-dd-trigger {
  background:none; border:none; cursor:pointer;
  font-family:'Montserrat',sans-serif; font-size:12.5px; font-weight:500;
  color:rgba(255,255,255,.65); padding:0; gap:5px;
  display:inline-flex; align-items:center; transition:color .2s;
}

/* ── Secondary brand colours (roxo #6767BF, verde #7AFCFC) ────
   Applied to CTA sections, process sections, testimonials.
─────────────────────────────────────────────────────────────── */

/* CTA sections — switch from dark blue to roxo */
.cta-section {
  background: #6767BF !important;
}
.cta-section .cta-title { color: #fff; }
.cta-section .cta-sub   { color: rgba(255,255,255,.75); }

/* Testimonials on homepage — roxo tint */
#testemunhos {
  background: rgba(103,103,191,.07);
}

/* Process section on homepage — light verde tint */
#processo {
  background: rgba(122,252,252,.05);
}

/* Tools section on homepage */
#ferramentas {
  background: rgba(103,103,191,.04);
}
