/* MAX Representações Comerciais — estilos do site institucional */
:root {
  --blue: #1264d9;
  --blue-light: #3385f6;
  --navy: #071d34;
  --navy-deep: #061321;
  --ink: #0b1c32;
  --muted: #5e6b7c;
  --line: #dce4ec;
  --soft: #eff4f8;
  --wa: #25d366;
  --container: 1280px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 4px; }

/* Cabeçalho e rodapé usam o mesmo container: bordas esquerda e direita coincidem */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

.ic { width: 1em; height: 1em; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.arrow { color: var(--blue-light); width: 1.3em; height: 1.3em; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { left: 8px; }

/* Logomarca oficial — mesmo tamanho no cabeçalho e no rodapé */
.wordmark { display: flex; align-items: center; flex-shrink: 0; }
.logo { display: block; height: 66px; width: auto; }
.divider { width: 1px; height: 39px; background: #cbd4df; flex-shrink: 0; }

/* Faixa de acesso restrito */
.topbar { background: var(--navy-deep); color: #c9d6e4; font-size: 12px; }
.topbar-inner { display: flex; align-items: center; justify-content: flex-end; gap: 18px; min-height: 34px; }
.topbar-label { color: #7f93a8; text-transform: uppercase; letter-spacing: 1px; font-size: 10.5px; font-weight: 700; }
.access { display: flex; align-items: center; gap: 6px; }
.access a, .access-soon { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 6px; font-weight: 600; color: #fff; cursor: pointer; }
.access a:hover { background: #ffffff14; }
.access .ic { width: 15px; height: 15px; color: var(--blue-light); }
.access-soon { color: #9fb0c3; cursor: help; }
.access-soon small { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #7f93a8; border: 1px solid #ffffff22; border-radius: 99px; padding: 2px 6px; }

/* Cabeçalho */
.site-header { background: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 #e6ecf2; }
.header-inner { min-height: 92px; display: flex; align-items: center; gap: 24px; }
.tagline { margin: 0; font-size: 13px; line-height: 1.45; color: #101d2e; white-space: nowrap; }
.mainnav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.mainnav a { font-size: 14px; font-weight: 700; padding: 8px 0; border-bottom: 2px solid transparent; }
.mainnav a:hover { color: var(--blue); }
.mainnav a.active { color: var(--blue); border-bottom-color: var(--blue); }
.header-wa { height: 46px; padding: 0 24px; border-radius: 23px; background: var(--blue); color: #fff; display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 800; white-space: nowrap; transition: background .2s; }
.header-wa:hover { background: #0d52b5; }
.header-wa .ic { width: 19px; height: 19px; }
.menu { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.menu span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 330px; display: flex; align-items: center; color: #fff; overflow: hidden;
  background: var(--navy) url("https://handex.com.br/wp-content/uploads/2024/05/luvas-trat.png") center 43% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,24,46,.99) 0%, rgba(3,24,46,.94) 35%, rgba(3,24,46,.34) 62%, rgba(3,24,46,.45) 100%); }
.hero-content { position: relative; z-index: 1; padding-block: 36px; }
.eyebrow { font-size: 13px; letter-spacing: 1.1px; margin: 0 0 10px; }
.eyebrow b { font-weight: 800; }
.hero h1 { font-size: 38px; line-height: 1.05; letter-spacing: -1.2px; margin: 0 0 12px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--blue-light); }
.lead { font-size: 16px; line-height: 1.45; margin: 0 0 22px; color: #e3ebf4; }
.lead b { color: #fff; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.btn { height: 48px; border-radius: 25px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 28px; min-width: 212px; font-size: 14px; font-weight: 800; transition: background .2s, border-color .2s; }
.btn .ic:not(.arrow) { width: 19px; height: 19px; }
.primary { background: var(--blue); color: #fff; }
.primary:hover { background: #0d52b5; }
.outline { border: 1px solid #fff; color: #fff; gap: 22px; }
.outline:hover { background: #ffffff14; }
.handex-hero { position: absolute; right: max(var(--gutter), (100% - var(--container)) / 2 + 60px); top: 50%; transform: translateY(-50%); z-index: 1; font-size: 48px; font-weight: 900; letter-spacing: -2px; text-align: center; line-height: 1; text-shadow: 0 2px 12px #0008; }
.handex-hero small { display: block; font-size: 12px; letter-spacing: 0; font-weight: 700; margin-top: 6px; }

/* Categorias */
.categories { padding: 34px 0 36px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2, .audience-copy h2 { display: flex; align-items: center; gap: 16px; font-size: 27px; letter-spacing: -.8px; margin: 0 0 4px; font-weight: 800; }
.bar { display: inline-block; width: 32px; height: 3px; background: var(--blue); flex-shrink: 0; }
.section-heading p { margin: 0 0 0 48px; font-size: 14px; color: #33445a; }
.handex-logo { font-size: 32px; font-weight: 900; letter-spacing: -1.6px; color: #29384a; text-align: center; line-height: 1; }
.handex-logo small { display: block; font-size: 7px; letter-spacing: 0; font-weight: 800; margin-top: 2px; }
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 17px; }
.category-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px #0b1c3208; transition: box-shadow .2s, transform .2s; }
.category-card:hover { box-shadow: 0 10px 26px #0b1c321a; transform: translateY(-2px); }
.category-card img { display: block; width: 100%; height: 160px; object-fit: cover; background: #e9eff4; }
.category-card img.broken { visibility: hidden; }
.category-card span { min-height: 54px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 800; }

/* Público */
.audience { background: var(--soft); padding: 28px 0; }
.audience-inner { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); align-items: center; }
.audience-copy { padding-right: 28px; }
.audience-copy h2 { font-size: 22px; }
.audience-copy p { font-size: 13.5px; line-height: 1.65; margin: 8px 0 0 48px; max-width: 470px; color: #33445a; }
.audience-item { min-height: 80px; border-left: 1px solid #d5e0e8; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 0 10px; }
.line-icon { width: 34px; height: 34px; color: var(--blue); }
.audience-item p { font-size: 13px; line-height: 1.3; margin: 0; }

/* Faixa de contato */
.contact-strip { position: relative; color: #fff; background: #06284b url("https://handex.com.br/wp-content/uploads/2024/05/luvas-trat.png") center 60% / cover no-repeat; }
.contact-strip::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,37,69,.95), rgba(4,37,69,.82)); }
.contact-inner { position: relative; min-height: 96px; display: flex; align-items: center; gap: 20px; padding-block: 16px; }
.round-wa { width: 58px; height: 58px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 3px 12px #0003; }
.round-wa .ic { width: 30px; height: 30px; }
.contact-copy { display: flex; flex-direction: column; gap: 5px; font-size: 15px; }
.contact-copy span { font-size: 13px; color: #cfdbe8; }
.contact-button { margin-left: auto; border: 1px solid #fff; border-radius: 28px; min-width: 265px; height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 700; transition: background .2s; }
.contact-button:hover { background: #ffffff14; }
.contact-button .ic:not(.arrow) { width: 19px; height: 19px; }
.contact-button .arrow { margin-left: 10px; }

/* Rodapé — mesma grade horizontal do cabeçalho */
.site-footer { background: var(--navy-deep); color: #fff; }
.footer-inner { min-height: 104px; display: flex; align-items: center; gap: 24px; }

.site-footer .divider { background: #ffffff33; }
.address { flex: 1; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 13px; line-height: 1.55; color: #dbe5ef; }
.pin { width: 28px; height: 28px; color: #2484ff; }
.privacy-link { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.privacy-link .ic:not(.arrow) { width: 24px; height: 24px; color: #2382ff; }
.privacy-link:hover { color: #9cc4ff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 0 86px; border-top: 1px solid #ffffff1a; font-size: 12px; color: #8ea2b8; }
.footer-bottom a { color: #c9d6e4; }
.footer-bottom a:hover { color: #fff; }

/* Botão flutuante do WhatsApp */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px #0004; transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float .ic { width: 31px; height: 31px; }

#toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 8px); max-width: calc(100% - 40px); padding: 13px 17px; background: var(--navy); color: #fff; border-radius: 9px; box-shadow: 0 10px 35px #0003; font-size: 13px; opacity: 0; transition: .2s; pointer-events: none; z-index: 99; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Página de política de privacidade */
.legal { padding: 44px 0 64px; }
.legal .container { max-width: 860px; }
.legal .eyebrow { color: var(--blue); font-weight: 800; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -1px; margin: 0 0 8px; }
.legal h2 { font-size: 19px; margin: 32px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: #2b3b50; }
.legal a { color: var(--blue); text-decoration: underline; }
.legal .updated { color: var(--muted); font-size: 13px; }
.legal .note { padding: 16px 18px; background: #f5f8fa; border-left: 3px solid var(--blue); border-radius: 6px; font-size: 13px; color: var(--muted); }
.legal .btn { margin-top: 18px; text-decoration: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
  :root { --gutter: 24px; }
  .header-inner { gap: 18px; }
  .logo { height: 58px; }

  .tagline { font-size: 12px; }
  .mainnav { gap: 22px; }
  .mainnav a { font-size: 13px; }
  .header-wa { padding: 0 16px; font-size: 13px; }
  .category-card img { height: 135px; }
  .category-card span { font-size: 12px; padding: 0 12px; }
}

@media (max-width: 1024px) {
  .header-inner > .divider, .tagline { display: none; }
  .handex-hero { font-size: 38px; }
  .category-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .category-card { grid-column: span 2; }
  .category-card:nth-child(n+4) { grid-column: span 3; }
  .category-card img { height: 160px; }
  .audience-inner { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .audience-copy { grid-column: 1 / -1; padding-right: 0; }
  .audience-item:nth-child(2) { border-left: 0; }
  .footer-inner { flex-wrap: wrap; padding: 22px 0; gap: 16px 24px; }
  .footer-inner > .divider { display: none; }
  .footer-inner .wordmark { width: 100%; }
  .address { flex: 1; justify-content: flex-start; }
}

@media (max-width: 820px) {
  .menu { display: block; order: 3; margin-left: 4px; }
  .header-wa { margin-left: auto; }
  .mainnav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 6px var(--gutter) 14px; box-shadow: 0 12px 24px #0b1c321f; display: none; }
  .mainnav.open { display: flex; }
  .mainnav a { padding: 13px 0; border-bottom: 1px solid #eef2f6; font-size: 15px; }
  .mainnav a.active { border-bottom-color: #eef2f6; }
  .site-header { position: sticky; }
  .header-inner { position: static; min-height: 70px; }
  .site-header .container { position: static; }
  .handex-hero { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 76px; }
  .topbar-label { display: none; }
  .topbar-inner { justify-content: center; }
  .access { gap: 0; }
  .access a, .access-soon { padding: 6px 7px; font-size: 11.5px; }
  .access-soon small { display: none; }
  .logo { height: 50px; }

  .header-wa { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .header-wa span { display: none; }
  .hero { min-height: 0; background-position: 62% center; }
  .hero::before { background: linear-gradient(90deg, rgba(3,24,46,.97), rgba(3,24,46,.78)); }
  .hero-content { padding-block: 34px 36px; }
  .hero h1 { font-size: clamp(27px, 8vw, 34px); }
  .hero h1 br, .br-desktop { display: none; }
  .lead { font-size: 15px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .btn { width: 100%; min-width: 0; }
  .categories { padding: 28px 0; }
  .section-heading h2 { font-size: 23px; }
  .section-heading p, .audience-copy p { margin-left: 0; margin-top: 8px; font-size: 13px; }
  .handex-logo { display: none; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-card, .category-card:nth-child(n+4) { grid-column: auto; }
  .category-card:last-child { grid-column: 1 / -1; }
  .category-card img { height: 120px; }
  .category-card span { min-height: 50px; padding: 8px 10px; font-size: 12px; line-height: 1.25; }
  .audience-inner { grid-template-columns: 1fr 1fr; }
  .audience-copy h2 { font-size: 20px; }
  .audience-item:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #d5e0e8; padding-top: 16px; }
  .contact-inner { flex-wrap: wrap; gap: 14px; padding-block: 20px; }
  .round-wa { width: 48px; height: 48px; }
  .round-wa .ic { width: 25px; height: 25px; }
  .contact-copy { flex: 1; font-size: 14px; }
  .contact-button { width: 100%; min-width: 0; margin: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .address { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; padding-bottom: 90px; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

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