/* ==========================================================================
   Dexon Tecnologias Digitais - www.dexon.ind.br
   Folha de estilo principal
   ========================================================================== */

:root {
  --navy: #0a1560;        /* azul do logotipo */
  --navy-900: #060d3d;
  --blue: #0b63b6;        /* azul dos banners */
  --blue-600: #0956a0;
  --blue-50: #eaf2fb;
  --green: #1f9d55;
  --whats: #1fa855;
  --text: #1f2937;
  --muted: #5b6575;
  --line: #dfe4ec;
  --bg-alt: #f4f7fb;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(10, 21, 96, .08);
  --shadow-hover: 0 12px 32px rgba(10, 21, 96, .14);
  --max: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid #f5a524; outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .98rem; line-height: 1.2;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
  text-decoration: none !important;
}
.btn .icon { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-600); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--blue-50); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-whats { background: var(--whats); color: var(--white); }
.btn-whats:hover { background: #188a46; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { width: 150px; height: auto; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy);
}
.nav-toggle .icon { width: 30px; height: 30px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav a, .submenu-toggle {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: var(--navy); font-weight: 600; font-size: .98rem;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.main-nav a:hover, .submenu-toggle:hover { background: var(--blue-50); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--blue); }
.main-nav .nav-cta { background: var(--blue); color: var(--white); margin-left: 8px; padding: 10px 18px; border-radius: 999px; }
.main-nav .nav-cta:hover { background: var(--blue-600); }

.has-submenu { position: relative; }
.submenu-toggle { display: inline-flex; align-items: center; gap: 4px; }
.submenu-toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-hover); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.open .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.has-submenu.open .submenu-toggle .icon { transform: rotate(180deg); }
.submenu a { font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy) 45%, var(--blue) 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: url("../img/fundos/fundo-parceria.jpg") center / cover no-repeat;
  opacity: .18; mix-blend-mode: luminosity;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { color: var(--white); }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.88); max-width: 560px; }
.hero .eyebrow { color: #9cc8f5; }
.hero-products { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-products a {
  background: rgba(255,255,255,.96); border-radius: var(--radius); padding: 18px; color: var(--navy);
  box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s; text-decoration: none;
}
.hero-products a:hover { transform: translateY(-4px); }
.hero-products img { aspect-ratio: 4 / 3; object-fit: contain; width: 100%; margin-bottom: 10px; }
.hero-products strong { display: block; font-size: 1.05rem; }
.hero-products span { font-size: .88rem; color: var(--muted); }

.eyebrow { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }

/* Cabeçalho de páginas internas */
.page-hero {
  color: var(--white);
  background: linear-gradient(120deg, var(--navy-900), var(--navy) 55%, var(--blue));
  padding: 56px 0 48px;
}
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero p { color: rgba(255,255,255,.88); max-width: 720px; font-size: 1.1rem; margin: 0; }
.page-hero .eyebrow { color: #9cc8f5; }
.breadcrumb { font-size: .88rem; margin-bottom: 14px; color: rgba(255,255,255,.75); }
.breadcrumb a { color: rgba(255,255,255,.9); }

/* Faixa do banner: imagem inteira (sem corte), limitada em largura, sobre fundo da mesma cor */
.banner-full { background: #0062ae; }
.banner-full img {
  width: 100%; max-width: 780px; height: auto; margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}

/* ---------- Seções ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-hover); }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); margin-bottom: 16px;
}
.card-icon .icon { width: 28px; height: 28px; }
.card p { color: var(--muted); }

/* Produto em destaque (home e produtos) */
.product-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product-card .product-media { background: linear-gradient(160deg, #ffffff, var(--blue-50)); padding: 28px; display: grid; place-items: center; min-height: 260px; }
.product-card .product-media img { max-height: 220px; width: auto; object-fit: contain; }
.product-card .product-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.product-card .product-body p { flex: 1; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; }
.tag-list li { background: var(--blue-50); color: var(--navy); font-size: .82rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }

/* Faixa de destaque */
.highlight {
  position: relative; color: var(--white); overflow: hidden;
  background: var(--navy);
}
.highlight::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/fundos/fundo-equipe.jpg") center / cover no-repeat; opacity: .35;
}
.highlight .container { position: relative; }
.highlight h2, .highlight h3 { color: var(--white); }
.highlight p { color: rgba(255,255,255,.85); }
.highlight .card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); box-shadow: none; backdrop-filter: blur(4px); }
.highlight .card p { color: rgba(255,255,255,.85); }
.highlight .card-icon { background: rgba(255,255,255,.14); color: var(--white); }

/* Split (texto + imagem) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split.reverse > :first-child { order: 2; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.use-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.use-list li { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-size: .93rem; }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }

/* Tabela de especificações */
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec-table th, .spec-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 32%; color: var(--navy); background: #f9fbfe; font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary {
  cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 600; color: var(--navy);
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--blue);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }

/* CTA */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--blue));
  color: var(--white); border-radius: 16px; padding: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); }

/* ---------- Suporte / Downloads ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 8px; }

.os-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.os-card { position: relative; }
.os-card h3 { display: flex; align-items: center; gap: 10px; }
.os-card.recommended { border: 2px solid var(--blue); }
.os-badge {
  display: none; position: absolute; top: -12px; right: 18px;
  background: var(--blue); color: var(--white); font-size: .75rem; font-weight: 700;
  padding: 3px 12px; border-radius: 999px; letter-spacing: .03em;
}
.os-card.recommended .os-badge { display: inline-block; }

.download-list { list-style: none; padding: 0; margin: 0 0 16px; }
.download-list li { border-top: 1px solid var(--line); padding: 14px 0; }
.download-list li:first-child { border-top: 0; padding-top: 0; }
.download-list .dl-title { font-weight: 600; color: var(--navy); display: block; }
.download-list .dl-meta { font-size: .85rem; color: var(--muted); display: block; margin-bottom: 8px; }
.download-list .dl-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .93rem; }
.download-list .dl-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.download-list .dl-links .icon { width: 18px; height: 18px; }

.resource-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.resource-list a {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--navy); font-weight: 600; transition: border-color .2s, box-shadow .2s;
}
.resource-list a:hover { border-color: var(--blue); box-shadow: var(--shadow); text-decoration: none; }
.resource-list .icon { color: var(--blue); }
.resource-list small { display: block; color: var(--muted); font-weight: 400; }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-card { display: block; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--navy); transition: transform .2s; }
.video-card:hover { transform: translateY(-3px); text-decoration: none; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--navy) center / cover no-repeat; display: grid; place-items: center; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play {
  position: relative; width: 60px; height: 42px; border-radius: 12px; background: #e62117; color: var(--white);
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.video-thumb .play .icon { width: 22px; height: 22px; }
.video-card .video-title { padding: 14px 16px; font-weight: 600; font-size: .95rem; display: block; }
.video-card .video-title small { display: block; color: var(--muted); font-weight: 400; }

.playlist-thumb { background: linear-gradient(135deg, var(--navy), var(--blue)); }

.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--blue-50); border-left: 4px solid var(--blue); border-radius: 8px;
  padding: 16px 20px; margin: 0 0 28px; color: var(--navy);
}
.notice .icon { color: var(--blue); margin-top: 2px; }
.notice p { margin: 0; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { text-align: center; }
.contact-card .card-icon { margin: 0 auto 14px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: .3em; }
.contact-card a { font-weight: 600; word-break: break-word; }
.contact-card p { margin-bottom: .4em; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.78); padding: 28px 0 0; font-size: .88rem; line-height: 1.5; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr .8fr; gap: 24px; padding-bottom: 20px; }
.site-footer h3 { color: var(--white); font-size: .92rem; margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 4px; }
.footer-contact li { display: flex; gap: 8px; align-items: center; }
.footer-contact .icon { width: 15px; height: 15px; color: #9cc8f5; }
.footer-social { display: flex; gap: 12px; align-items: center; }
.footer-social a { display: inline-block; line-height: 0; transition: transform .2s, opacity .2s; opacity: .95; }
.footer-social a:hover { transform: scale(1.08); opacity: 1; }
.social-icon { width: 28px; height: 28px; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 12px 0; font-size: .8rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Botão flutuante WhatsApp */
.whats-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--whats); color: var(--white);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s;
}
.whats-float:hover { transform: scale(1.07); }
.whats-float .icon { width: 30px; height: 30px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .grid-3, .os-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-hover);
    display: none; padding: 12px 20px 20px;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .submenu-toggle { width: 100%; justify-content: space-between; }
  .submenu {
    position: static; box-shadow: none; border: 0; padding: 0 0 0 14px;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .has-submenu:hover .submenu, .has-submenu:focus-within .submenu { display: none; }
  .has-submenu.open .submenu { display: block; }
  .main-nav .nav-cta { margin: 8px 0 0; text-align: center; }

  .hero .container { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
  .cta-band { padding: 32px 24px; }
}

@media (max-width: 600px) {
  .grid-3, .os-grid, .video-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-products a { padding: 12px; }
  .gallery { grid-template-columns: 1fr; }
  .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table th { border-bottom: 0; padding-bottom: 4px; }
  .spec-table td { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
