/* ==========================================================================
   Otimize Tech Digital — Design System
   ========================================================================== */

:root {
  /* Cores — extraídas da logo Otimize (vermelho-laranja -> dourado, texto preto) */
  --color-primary: #17161C;
  --color-primary-dark: #08080A;
  --color-primary-light: #29272F;
  --color-primary-soft: #FFF2E2;
  --color-accent: #F1493D;
  --color-accent-dark: #D6301F;
  --color-gold: #FBAB22;
  --color-gold-dark: #E0930F;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1DA851;
  --color-bg: #FCFBF9;
  --color-bg-alt: #F5F1EC;
  --color-white: #FFFFFF;
  --color-text: #1C1B20;
  --color-text-muted: #6B6870;
  --color-border: #E9E4DC;

  /* Tipografia */
  --font-heading: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 14px rgba(20, 18, 14, 0.08);
  --shadow: 0 14px 40px rgba(20, 18, 14, 0.14);
  --shadow-lg: 0 24px 60px rgba(20, 18, 14, 0.18);
  --container: 1180px;
  --header-height: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0 0 .6em;
  line-height: 1.25;
  color: var(--color-primary-dark);
}
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utilidades ---------- */
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: var(--color-primary-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section { padding: 88px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-lead {
  color: var(--color-text-muted);
  max-width: 640px;
  font-size: 1.08rem;
}
.text-center { text-align: center; }
.center-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0 auto 52px; }
.mt-0 { margin-top: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(241, 73, 61, .35);
}
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(37, 211, 102, .35);
}
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: var(--color-white);
}
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline-dark:hover { background: var(--color-primary); color: var(--color-white); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 20px; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(251, 250, 254, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  text-align: center;
  line-height: 1.15;
}
.logo .logo-mark {
  width: 42px;
  height: 42px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--color-text);
  position: relative;
  padding: 6px 2px;
}
.main-nav a.active,
.main-nav a:hover { color: var(--color-primary); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent);
}

/* Dropdown "Suporte" */
.nav-item-dropdown { position: relative; }
.nav-item-dropdown::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 16px;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: .95rem;
  color: var(--color-text);
  padding: 6px 2px;
  cursor: pointer;
}
.nav-item-dropdown:hover .nav-dropdown-toggle,
.nav-item-dropdown.is-open .nav-dropdown-toggle,
.nav-item-dropdown.is-current .nav-dropdown-toggle { color: var(--color-primary); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  min-width: 210px;
  display: none;
  z-index: 30;
}
.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown.is-open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-text);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a.active { background: var(--color-bg-alt); color: var(--color-primary); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--color-primary-dark);
  margin: 5px 0;
  transition: all .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary) 60%, var(--color-primary-light));
  color: var(--color-white);
  padding: 90px 0 110px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--color-white); font-size: clamp(2.1rem, 4vw, 3.1rem); }
.hero .eyebrow { background: rgba(255,255,255,.14); color: #FFE3D1; }
.hero p.lead { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: rgba(255,255,255,.85); }
.hero-trust svg { width: 18px; height: 18px; color: var(--color-gold); }
.hero-art { position: relative; }
.hero-shapes { position: absolute; inset: -60px -20px; z-index: 0; opacity: .5; }
.hero-illustration { position: relative; z-index: 1; }
.hero-illustration-img { width: 100%; max-width: 480px; border-radius: var(--radius); display: block; position: relative; z-index: 1; box-shadow: var(--shadow-lg); }

/* Carrossel de banners */
.hero-slides { position: relative; }
.hero-slide { display: none; animation: heroFade .5s ease; }
.hero-slide.is-active { display: block; }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
.hero-dots {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 28px;
  margin-top: -20px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: all .2s ease;
}
.hero-dot.is-active { width: 24px; background: var(--color-accent); }

/* Faixa curva decorativa abaixo do hero */
.hero-wave {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: -2px;
}

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--color-white); border-bottom: 1px solid var(--color-border); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
}
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item svg { width: 30px; height: 30px; color: var(--color-accent); flex-shrink: 0; }
.trust-item strong { display: block; font-size: .95rem; color: var(--color-primary-dark); }
.trust-item span { font-size: .82rem; color: var(--color-text-muted); }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--color-primary-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--color-text-muted); font-size: .95rem; margin-bottom: 0; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; color: var(--color-primary); font-size: .9rem; }
.card .card-link svg { width: 16px; height: 16px; }

/* Cartão de produto (maior) */
.product-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}
.product-card + .product-card { margin-top: 32px; }
.product-visual {
  background: linear-gradient(150deg, var(--color-primary-soft), #fff);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.feature-list { margin: 20px 0 26px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: .96rem;
  color: var(--color-text);
  border-bottom: 1px dashed var(--color-border);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list svg { width: 20px; height: 20px; color: var(--color-whatsapp); flex-shrink: 0; margin-top: 2px; }

/* ---------- Banner CTA largo ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary));
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--color-white);
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--color-white); margin-bottom: 8px; font-size: 1.7rem; }
.cta-banner p { color: rgba(255,255,255,.82); margin-bottom: 0; }

/* ---------- Estatísticas ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--color-primary);
}
.stat span { color: var(--color-text-muted); font-size: .92rem; }

/* ---------- Passos / processo ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step { position: relative; padding-top: 12px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- Depoimento / valores ---------- */
.value-card { text-align: left; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-thumb {
  height: 160px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.85);
  margin-bottom: 20px;
}
.post-thumb svg { width: 44px; height: 44px; }
.post-meta { font-size: .8rem; color: var(--color-text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.post-card p { flex-grow: 1; }

article.post-body h2 { margin-top: 1.6em; }
article.post-body p { color: var(--color-text); font-size: 1.05rem; }
.post-hero-meta { color: var(--color-text-muted); font-size: .9rem; }

/* ---------- Formulário de contato ---------- */
.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  font-family: inherit;
  font-size: .96rem;
  background: var(--color-bg);
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--color-text-muted); margin-top: 10px; }

.contact-info-card {
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list svg { width: 22px; height: 22px; color: var(--color-accent); flex-shrink: 0; }
.contact-info-list strong { display: block; font-size: .92rem; }
.contact-info-list span { font-size: .88rem; color: rgba(255,255,255,.75); }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 340px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,.75); padding: 72px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-grid ul li { margin-bottom: 10px; font-size: .92rem; }
.footer-grid ul li a:hover { color: var(--color-accent); }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }
.footer-logo svg, .footer-logo img { width: 38px; height: 38px; }
.footer-about p { font-size: .9rem; color: rgba(255,255,255,.6); max-width: 320px; }
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.social-row svg { width: 18px; height: 18px; }
.social-row a:hover { background: var(--color-accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.footer-admin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: rgba(255,255,255,.35);
  flex-shrink: 0;
}
.footer-admin-link svg { width: 15px; height: 15px; }
.footer-admin-link:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-whatsapp);
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(37,211,102,.45);
  font-weight: 700;
  font-size: .95rem;
}
.whatsapp-float svg { width: 24px; height: 24px; }
.whatsapp-float .pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--color-whatsapp);
  animation: pulse 2.2s infinite;
  z-index: -1;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Página interna: cabeçalho de página ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: 64px 0 84px;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 620px; font-size: 1.05rem; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-card { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-actions .btn-label { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--color-white);
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--color-border);
    gap: 6px;
    box-shadow: var(--shadow);
  }
  .main-nav.open a { padding: 10px 0; }
  .main-nav.open .nav-item-dropdown { width: 100%; text-align: center; }
  .main-nav.open .nav-dropdown-toggle { width: 100%; padding: 10px 0; justify-content: center; }
  .main-nav.open .nav-dropdown-menu {
    position: static;
    transform: none;
    display: block;
    box-shadow: none;
    border: none;
    padding: 0;
    min-width: 0;
  }
  .main-nav.open .nav-dropdown-menu a { text-align: center; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero { padding: 56px 0 80px; }
  .product-card, .form-card, .contact-info-card, .cta-banner { padding: 28px; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 16px; }
}
