/* ─── RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #FFFFFF;
  color: #0F172A;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── CSS VARIABLES ─────────────────────────────────────────────── */
:root {
  /* Dark (hero/nav/contato/footer) */
  --c-dark:      #0B1829;
  --c-dark-2:    #0F2040;
  --c-dark-text: #E8EAF0;
  --c-dark-muted:#AAB4C5;
  --c-dark-border: rgba(255,255,255,0.07);

  /* Light (seções de conteúdo) */
  --c-white:     #FFFFFF;
  --c-light:     #F8FAFC;
  --c-text:      #1E293B;
  --c-text-secondary: #475569;
  --c-muted:     #64748B;
  --c-border-lgt:#E2E8F0;

  /* Brand */
  --c-orange:    #F97316;
  --c-amber:     #FBBF24;
  --c-blue:      #18A0FB;
  --c-title:     #00234B;
  --c-blue-logo: #1E3A5F;

  /* Aliases (compat) */
  --c-bg:        #0B1829;
  --c-surface:   #F8FAFC;
  --c-surface2:  #FFFFFF;
  --c-border:    rgba(255,255,255,0.07);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:       10px;
  --radius-lg:    16px;
  --max-w:        1200px;
  --section-py:   96px;
}

/* ─── UTILS ─────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section { padding: var(--section-py) 0; }
.section--dark  { background: var(--c-dark); color: var(--c-dark-text); }
.section--light { background: var(--c-light); color: var(--c-text); }
.section--white { background: var(--c-white); color: var(--c-text); }
.section--surface  { background: var(--c-light); color: var(--c-text); }
.section--surface2 { background: var(--c-white); color: var(--c-text); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  font-family: var(--font-display); font-weight: 600;
  color: var(--c-orange);
  border: 1px solid rgba(249,115,22,0.3);
  padding: 4px 12px; border-radius: 20px;
  margin-bottom: 16px;
}
.tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--c-orange); flex-shrink: 0; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-header .tag { margin-bottom: 20px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }

/* ─── A11Y ─────────────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--c-orange); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 12px 20px; border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 2px; border-radius: 3px; }
h2.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--c-title);
}
.section-subtitle {
  font-size: 17px;
  color: var(--c-title);
  line-height: 1.65;
  font-weight: 300;
}
.section--dark .section-subtitle { color: var(--c-dark-muted); }
.section--dark h2.section-title   { color: var(--c-dark-text); }
.section--dark .tag { color: var(--c-orange); border-color: rgba(249,115,22,0.3); }

/* ─── BOTÕES GLOBAIS ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-orange);
  color: #fff;
  font-size: 15px; font-weight: 500;
  padding: 14px 28px; border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: #ea6a0a; transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  font-size: 15px; font-weight: 400;
  padding: 14px 28px; border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.2); color: var(--c-text); }

/* ─── NAV ─────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 32px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(11,24,41,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
  transition: background 0.3s;
}
/* reset nav styles for in-page navigation elements */
nav[class] { position: static; height: auto; display: block; padding: 0; background: none; backdrop-filter: none; border-bottom: none; transition: none; z-index: auto; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--c-orange);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 14px;
  color: #fff;
  letter-spacing: -0.03em;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px;
  color: #E8EAF0;
  letter-spacing: -0.02em;
}
.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: #E8EAF0; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-lang-selector { position: relative; }
.nav-lang-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  color: #94A3B8; background: none; border: none;
  padding: 5px 8px; cursor: pointer;
  font-family: var(--font-display);
  border-radius: 8px; transition: color 0.2s;
}
.nav-lang-btn:hover,
.nav-lang-btn[aria-expanded="true"] { color: #E8EAF0; }
.nav-lang-caret { width: 9px; height: 9px; flex-shrink: 0; transition: transform 0.2s; }
.nav-lang-btn[aria-expanded="true"] .nav-lang-caret { transform: rotate(180deg); }
.nav-flag {
  width: 22px; height: 22px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.nav-lang-menu {
  display: none; position: absolute; top: calc(100% + 4px); right: 0;
  background: rgba(11,24,41,0.97);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 6px; min-width: 148px;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  z-index: 200;
}
.nav-lang-menu.open { display: block; }
.nav-lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 6px;
  text-decoration: none; color: #94A3B8;
  font-size: 13px; font-weight: 500;
  font-family: var(--font-display);
  transition: all 0.15s;
}
.nav-lang-option:hover { color: #E8EAF0; background: rgba(255,255,255,0.06); }
.nav-cta {
  display: inline-flex; align-items: center; min-height: 44px;
  background: var(--c-orange);
  color: #fff;
  font-size: 13px; font-weight: 500;
  padding: 8px 20px; border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
  font-family: var(--font-display);
}
.nav-cta:hover { opacity: 0.88; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; background: none; border: none; }
.nav-hamburger span { width: 22px; height: 1.5px; background: var(--c-dark-muted); border-radius: 2px; transition: all 0.3s; }

/* Dropdown de Produtos/Products */
.nav-dropdown { position: relative; }
.nav-dropdown::after { content: ""; position: absolute; top: 100%; left: -8px; right: -8px; height: 18px; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 14px; font-weight: 400; letter-spacing: 0.01em; color: #94A3B8; background: none; border: none; padding: 0; cursor: pointer; transition: color 0.2s; }
.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active, .nav-dropdown-toggle[aria-expanded="true"] { color: #E8EAF0; }
.nav-caret { width: 9px; height: 9px; transition: transform 0.2s; }
.nav-dropdown-toggle[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 50%; margin-top: 14px; min-width: 190px; background: #fff; border: 1px solid rgba(15,23,42,0.08); border-radius: 10px; box-shadow: 0 14px 34px rgba(15,23,42,0.18); opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-6px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; z-index: 200; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown-menu li { width: auto; }
.nav-dropdown-menu a { display: block; padding: 10px 14px; border-radius: 6px; color: #0F1B2D; font-size: 14px; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.nav-dropdown-menu a:hover { background: rgba(15,23,42,0.05); color: #0F1B2D; }
.nav-dropdown-menu a[aria-current="page"] { color: var(--c-orange); font-weight: 500; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: #060E1A;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo-wrap .nav-logo { margin-bottom: 16px; }
.footer-tagline {
  font-size: 13px; color: var(--c-muted);
  line-height: 1.6; max-width: 220px;
}
.footer-col-title {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px; color: var(--c-muted);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--c-text); }
.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 13px; color: var(--c-muted); }
.footer-lang {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; color: var(--c-muted);
  text-decoration: none; font-family: var(--font-display);
  letter-spacing: 0.04em; transition: color 0.2s;
}
.footer-lang:hover { color: var(--c-text); }

/* ─── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(-18px, 22px) scale(1.06); }
  70%  { transform: translate(12px, -12px) scale(0.96); }
}
.fade-up { opacity: 0; animation: fadeUp 0.6s ease forwards; }
.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.2s; }
.fade-up:nth-child(3) { animation-delay: 0.3s; }
.fade-up:nth-child(4) { animation-delay: 0.4s; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.28s; }
.reveal-delay-4 { transition-delay: 0.38s; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --section-py: 64px; }
  .container { padding: 0 20px; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #0D1929; padding: 12px 20px 20px;
    border-bottom: 1px solid var(--c-dark-border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: 14px 0; font-size: 16px; }
  .nav-lang-selector { display: none; }
  .nav-hamburger { display: flex; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown::after { display: none; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 16px; }
  .nav-dropdown-menu { position: static; min-width: 0; margin: 0; padding: 0 0 6px 14px; background: transparent; border: none; box-shadow: none; opacity: 1; visibility: hidden; transform: none; display: none; }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown-menu { display: block; visibility: visible; transform: none; }
  .nav-dropdown-menu a { color: #94A3B8; padding: 12px 0; font-size: 16px; }
  .nav-dropdown-menu a:hover { background: transparent; color: #E8EAF0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── WHATSAPP BUTTON ────────────────────────────────────────── */
.whatsapp-btn {
  position: fixed; bottom: 80px; right: 24px; z-index: 998;
  width: 48px; height: 48px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,211,102,0.55);
}
.whatsapp-btn svg { width: 26px; height: 26px; }
.whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: waPulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.whatsapp-tooltip {
  position: absolute;
  right: 56px;
  background: #111827;
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: 100%; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #111827;
}
.whatsapp-btn:hover .whatsapp-tooltip { opacity: 1; }
@media (max-width: 768px) {
  .whatsapp-btn { bottom: 72px; right: 16px; }
}

/* ─── BACK TO TOP ────────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 998;
  width: 48px; height: 48px;
  background: rgba(11,24,41,0.92);
  backdrop-filter: blur(12px);
  border: none; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s, background 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: scale(1.08); background: rgba(11,24,41,0.98); }
.btt-progress {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
  border-radius: 50%;
}
.btt-track {
  fill: none;
  stroke: rgba(255,255,255,0.1);
  stroke-width: 2.5;
}
.btt-fill {
  fill: none;
  stroke: var(--c-orange);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 125.66;
  stroke-dashoffset: 125.66;
  transition: stroke-dashoffset 0.08s linear;
}
.btt-arrow {
  width: 16px; height: 16px;
  color: #E8EAF0;
  position: relative; z-index: 1;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .back-to-top { bottom: 16px; right: 16px; }
}

/* ─── COOKIE BANNER ──────────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 24px; left: 24px; z-index: 999;
  width: 320px;
  background: #0F2040;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-text {
  font-size: 12px;
  color: var(--c-dark-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.cookie-banner-text strong {
  color: var(--c-dark-text);
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 13px;
}
.cookie-banner-link {
  color: var(--c-orange);
  text-decoration: underline;
  font-size: 11px;
  margin-left: 2px;
}
.cookie-banner-actions {
  display: flex;
  gap: 8px;
}
.cookie-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
  cursor: pointer; border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.cookie-btn--primary {
  background: var(--c-orange);
  color: #fff;
}
.cookie-btn--primary:hover { background: #ea6a0a; }
.cookie-btn--secondary {
  background: transparent;
  color: var(--c-dark-muted);
  border: 1px solid rgba(255,255,255,0.15);
}
.cookie-btn--secondary:hover { color: var(--c-dark-text); border-color: rgba(255,255,255,0.3); }
@media (max-width: 480px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

/* ─── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { animation: none !important; opacity: 1 !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
