/* =========================================================
   F30Log — folha base (estrutura, layout, componentes)
   As cores vêm das variáveis definidas em css/theme-*.css
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0 0 .6em; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

section { padding: 84px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark {
  background: var(--gradient-brand);
  color: #fff;
}
.section-dark .section-title,
.section-dark .section-subtitle { color: #fff; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}
.section-dark .eyebrow { color: #fff; opacity: .85; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--color-primary-dark);
}
.section-subtitle {
  color: var(--color-text-light);
  font-size: 1.05rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 20px -8px var(--color-accent);
}
.btn-primary:hover { box-shadow: 0 12px 24px -8px var(--color-accent); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-light {
  background: #fff;
  color: var(--color-primary-dark);
}
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
#site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 18px rgba(15, 23, 42, .08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }

#primary-nav { display: flex; align-items: center; gap: 4px; }
#primary-nav a {
  padding: 10px 14px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--color-text);
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
#primary-nav a:hover,
#primary-nav a:focus-visible { color: var(--color-primary); background: var(--color-bg-alt); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-switcher { display: flex; align-items: center; gap: 6px; margin-right: 4px; }
.theme-switcher span { font-size: .7rem; color: var(--color-text-light); margin-right: 2px; }
.theme-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(15,23,42,.15);
  padding: 0;
  cursor: pointer;
}
.theme-dot[data-theme="azul"] { background: linear-gradient(135deg,#1858c9,#8e2e8f 55%,#e5004d); }
.theme-dot[data-theme="verde"] { background: linear-gradient(135deg,#0c7a55,#0e9e6f 55%,#e5004d); }
.theme-dot[data-theme="laranja"] { background: linear-gradient(135deg,#e0651c,#7a3ba0 55%,#1858c9); }
.theme-dot.is-active { box-shadow: 0 0 0 2px var(--color-accent); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: var(--color-primary-dark);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); top: 0; }

/* ---------- Hero ---------- */
#inicio {
  padding: 168px 0 96px;
  background: var(--gradient-brand);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero-logo { max-width: 260px; margin-bottom: 22px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.25)); }
.hero-eyebrow {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: .85;
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}
.hero-rotator {
  min-height: 2.6em;
  font-size: 1.15rem;
  font-weight: 500;
  opacity: .95;
  margin-bottom: 26px;
}
.hero-rotator span { display: none; }
.hero-rotator span.is-active { display: inline; animation: fadeIn .5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-stats div strong { display: block; font-size: 1.6rem; font-weight: 800; }
.hero-stats div span { font-size: .8rem; opacity: .85; }

/* animação de rota (substitui vídeo de estoque) */
.route-art {
  position: relative;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(2px);
}
.route-art svg { width: 100%; height: auto; }
.route-line {
  fill: none;
  stroke: rgba(255,255,255,.55);
  stroke-width: 3;
  stroke-dasharray: 10 10;
  animation: dash 2.4s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -40; } }
.route-node { fill: #fff; }
.route-node.accent { fill: var(--color-accent-contrast, #ffd166); }
.route-caption {
  text-align: center;
  font-size: .85rem;
  opacity: .85;
  margin-top: 10px;
}

/* ---------- Tracking / rastreio ---------- */
.tracking-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 18px 40px -20px rgba(15,23,42,.25);
}
.tracking-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  flex-shrink: 0;
}
.tracking-icon svg { width: 30px; height: 30px; }
.tracking-card h3 { font-size: 1.2rem; color: var(--color-primary-dark); }
.tracking-card p { color: var(--color-text-light); margin-bottom: 0; }

/* ---------- Indicadores / contadores ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  text-align: center;
  padding: 30px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
}
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  display: block;
}
.stat-number::after { content: '%'; }
.stat-label { font-size: .88rem; opacity: .9; }

/* ---------- Serviços ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow: 0 14px 32px -22px rgba(15,23,42,.35);
  border: 1px solid rgba(15,23,42,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 36px -20px rgba(15,23,42,.28); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  margin-bottom: 18px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.08rem; color: var(--color-primary-dark); }
.service-card p { color: var(--color-text-light); font-size: .94rem; margin-bottom: 0; }

/* ---------- Vídeo / motion de marketing ---------- */
.motion-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.motion-visual {
  background: var(--color-bg-alt);
  border-radius: 24px;
  padding: 20px;
}
.motion-visual svg { width: 100%; height: auto; }
.motion-copy .section-head { text-align: left; margin: 0 0 18px; }
.motion-list { display: grid; gap: 14px; margin: 24px 0 28px; }
.motion-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--color-text-light);
}
.motion-list svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--color-primary); margin-top: 2px; }

.pkg { animation: float 3.2s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-8px);} }
.pulse { animation: pulse 2s ease-in-out infinite; transform-origin: center; }
@keyframes pulse { 0%,100% { r: 6; opacity: 1;} 50% { r: 10; opacity: .4;} }

/* ---------- Tabs (Recursos) ---------- */
.tabs { max-width: 900px; margin: 0 auto; }
.tabs-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.tabs-controls button {
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.tabs-controls button.is-active,
.tabs-controls button:hover {
  background: var(--color-primary);
  color: #fff;
}
.tab-panel {
  display: none;
  background: #fff;
  border-radius: 18px;
  padding: 34px;
  text-align: center;
  box-shadow: 0 14px 32px -22px rgba(15,23,42,.3);
}
.tab-panel.is-active { display: block; animation: fadeIn .3s ease; }
.tab-panel p { font-size: 1.08rem; color: var(--color-text-light); margin: 0; }

/* ---------- Linha do tempo ---------- */
.timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding-left: 28px;
  border-left: 3px solid var(--color-bg-alt);
}
.timeline-item { position: relative; padding: 0 0 36px 28px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -41px;
  top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-accent);
}
.timeline-year {
  color: var(--color-accent);
  font-weight: 800;
  font-size: 1.05rem;
}
.timeline-item h3 { font-size: 1.1rem; color: var(--color-primary-dark); }
.timeline-item p { color: var(--color-text-light); margin: 0; }

/* ---------- Parceiros ---------- */
.partners-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.partner-chip {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: .9rem;
}

/* ---------- Contato ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
}
.contact-info-list { display: grid; gap: 20px; margin-top: 24px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item svg { width: 22px; height: 22px; color: var(--color-accent); flex-shrink: 0; margin-top: 3px; }
.contact-info-item strong { display: block; color: var(--color-primary-dark); }
.contact-info-item span, .contact-info-item a { color: var(--color-text-light); }

.contact-form {
  background: #fff;
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 18px 40px -22px rgba(15,23,42,.3);
  display: grid;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--color-primary-dark); }
.field input,
.field textarea {
  border: 1.5px solid #dfe3ea;
  border-radius: 10px;
  padding: 11px 14px;
  font: inherit;
  color: var(--color-text);
  background: #fbfcfe;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-note { font-size: .82rem; color: var(--color-text-light); }
.form-feedback {
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  display: none;
}
.form-feedback.is-visible { display: block; }

/* ---------- Footer ---------- */
#site-footer {
  background: var(--color-footer, #0e1626);
  color: rgba(255,255,255,.78);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand img { height: 32px; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; color: rgba(255,255,255,.6); font-size: .92rem; }
.footer-col h4 {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}

/* ---------- Flutuantes ---------- */
.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  gap: 12px;
  justify-items: end;
}
.fab {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -8px rgba(15,23,42,.4);
  border: none;
  transition: transform .15s ease;
}
.fab:hover { transform: translateY(-3px); }
.fab-whatsapp { background: #25d366; color: #fff; }
.fab-top {
  background: #fff;
  color: var(--color-primary);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.fab-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab svg { width: 24px; height: 24px; }

/* ---------- Utilidades / responsivo ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .route-art { max-width: 480px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .motion-wrap { grid-template-columns: 1fr; }
  .motion-visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  #primary-nav {
    position: fixed;
    top: 66px;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px;
    box-shadow: 0 14px 24px -18px rgba(15,23,42,.3);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  #primary-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  #primary-nav a { padding: 12px 8px; border-bottom: 1px solid var(--color-bg-alt); }
  .nav-toggle { display: block; }
  .theme-switcher span { display: none; }
  section { padding: 64px 0; }
  #inicio { padding-top: 140px; }
  .tracking-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
