/* ---------- Botões ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-button); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease-out); }
.btn:hover svg.i-arrow { transform: translate(3px, -3px); }
.btn--primary { background: var(--blue-500); color: var(--navy-900); }
.btn--primary:hover { background: var(--blue-400); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transition: transform .6s var(--ease-out);
}
.btn--primary:hover::after { transform: translateX(120%) skewX(-18deg); }
.btn--ghost { border: 1px solid rgba(232, 237, 242, .4); color: var(--frost); }
.btn--ghost:hover { border-color: var(--frost); background: rgba(255,255,255,.06); }
.theme-light .btn--ghost { border-color: var(--navy-900); color: var(--navy-900); }
.theme-light .btn--ghost:hover { background: var(--navy-900); color: var(--frost); }
.btn--dark { background: var(--navy-900); color: var(--frost); }
.btn--dark:hover { background: var(--navy-700); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: var(--fs-small); letter-spacing: .04em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 4px; transition: background-size .35s var(--ease-out);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow svg { width: 16px; height: 16px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: transform .45s var(--ease-out), background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(8, 18, 30, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-dark); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 26px; width: auto; }
.nav { display: none; }
.nav ul { display: flex; gap: 32px; }
.nav a {
  font-size: 0.75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(232,237,242,.78);
  padding-block: 8px; position: relative; transition: color .2s;
}
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--blue-500); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav a:hover, .nav a.is-active { color: var(--frost); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header-cta { display: none; }
.menu-toggle { width: 48px; height: 48px; display: grid; place-items: center; margin-right: -12px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--frost); position: relative; transition: background .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--frost); transition: transform .3s var(--ease-out); }
.menu-toggle span::before { top: -7px; } .menu-toggle span::after { top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--navy-900);
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a.mm-link { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2.75rem, 12vw, 4rem); line-height: 1.155; padding-block: 4px; }
.mobile-menu a.mm-link:hover { color: var(--blue-500); }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none; }
  .brand img { height: 30px; }
}

/* ---------- Cards ---------- */
.card-dark {
  position: relative; background: var(--navy-800); border: 1px solid var(--line-dark); border-radius: var(--radius-md);
  transition: transform .35s var(--ease-out), border-color .3s;
}
.card-dark::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--blue-500); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); z-index: 2;
}
.card-dark:hover { transform: translateY(-4px); border-color: rgba(18,171,227,.4); }
.card-dark:hover::before { transform: scaleX(1); }

.chamfer { clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%); }

/* ---------- Mídia ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy-800); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media .parallax-inner { position: absolute; inset: -12% 0; height: 124%; }
.media .parallax-inner img, .media .parallax-inner video { height: 100%; }

/* Ícones */
.ico { width: 24px; height: 24px; flex: none; }

/* ---------- WhatsApp flutuante / barra mobile ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 80; width: 60px; height: 60px; border-radius: 50%;
  display: none; place-items: center; background: var(--blue-500); color: var(--navy-900);
  box-shadow: 0 10px 30px rgba(4,9,15,.45), 0 0 0 0 var(--blue-glow);
  transition: transform .3s var(--ease-out), opacity .3s; animation: pulse 3s infinite;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }
@keyframes pulse { 0%, 70%, 100% { box-shadow: 0 10px 30px rgba(4,9,15,.45), 0 0 0 0 rgba(18,171,227,.35);} 85% { box-shadow: 0 10px 30px rgba(4,9,15,.45), 0 0 0 14px rgba(18,171,227,0);} }
.wa-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; min-height: 56px; width: auto;
  transform: translateY(140%); transition: transform .45s var(--ease-out);
  box-shadow: 0 10px 30px rgba(4,9,15,.5);
}
.wa-bar.is-visible { transform: none; }
@media (min-width: 1024px) {
  .wa-float { display: grid; }
  .wa-bar { display: none; }
}

@media (max-width: 479px) {
  .btn { white-space: normal; text-align: center; padding-block: 14px; line-height: 1.25; }
}
