/* PROASEGT — Segurança do Trabalho */
:root {
  --navy: #1b4479;
  --navy-900: #0f2a4d;
  --navy-50: #eef3f9;
  --yellow: #f5b301;
  --yellow-600: #d99c00;
  --ink: #1d2733;
  --muted: #5b6878;
  --line: #dfe5ec;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(15, 42, 77, .08);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-900); }
h1, h2, h3, h4 { font-family: "Barlow", "Inter", sans-serif; line-height: 1.2; color: var(--navy-900); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Top bar */
.topbar { background: var(--navy-900); color: #cfd9e6; font-size: .875rem; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--yellow); }
.topbar svg { width: 15px; height: 15px; fill: var(--yellow); }

/* Header / nav */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.header .container { max-width: 1400px; }
.brand { flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 4px; align-items: center; }
.nav a { white-space: nowrap; display: block; text-decoration: none; color: var(--ink); font-weight: 500; padding: 10px 12px; border-radius: 6px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); background: var(--navy-50); }
.nav .has-sub { position: relative; }
.nav .has-sub > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.nav .sub { position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; }
.nav .has-sub:hover > .sub, .nav .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { padding: 8px 12px; font-size: .92rem; }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-900); margin: 4px 0; transition: .2s; }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 8px; border: 2px solid transparent; transition: .15s ease; cursor: pointer; font-size: .97rem; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary { background: var(--yellow); color: var(--navy-900) !important; }
.btn-primary:hover { background: var(--yellow-600); }
.btn-outline { border-color: #fff; color: #fff !important; }
.btn-outline:hover { background: #fff; color: var(--navy-900) !important; }
.btn-navy { background: var(--navy); color: #fff !important; }
.btn-navy:hover { background: var(--navy-900); }
.btn-ghost { border-color: var(--navy); color: var(--navy) !important; }
.btn-ghost:hover { background: var(--navy); color: #fff !important; }
.nav a.btn { padding: 10px 18px; }
.nav a.btn:hover { background: var(--yellow-600); color: var(--navy-900); }

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy-900); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; position: absolute; inset: 0; }
.hero-bg img.active { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,42,77,.94) 0%, rgba(15,42,77,.78) 45%, rgba(15,42,77,.35) 100%); }
.hero .container { position: relative; z-index: 1; padding-top: 110px; padding-bottom: 120px; }
.hero h1 { color: #fff; max-width: 700px; }
.hero p { font-size: 1.15rem; max-width: 600px; color: #dbe4ef; }
.hero .eyebrow { color: var(--yellow); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

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

/* Page header */
.page-head { background: linear-gradient(120deg, var(--navy-900), var(--navy)); color: #fff; padding: 56px 0 50px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border: 36px solid rgba(245,179,1,.15); border-radius: 50%; }
.page-head h1 { color: #fff; margin-bottom: 8px; }
.page-head p { color: #cfdbe8; margin: 0; max-width: 720px; }
.crumbs { font-size: .85rem; margin-bottom: 14px; color: #a9bad0; }
.crumbs a { color: #dbe4ef; text-decoration: none; }
.crumbs a:hover { color: var(--yellow); }

/* Sections */
.section { padding: 80px 0; }
section[id] { scroll-margin-top: 76px; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); }

/* Stats strip */
.strip { background: var(--yellow); color: var(--navy-900); }
.strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.strip div { display: flex; align-items: center; gap: 12px; font-weight: 600; line-height: 1.3; }
.strip svg { width: 34px; height: 34px; flex: none; fill: var(--navy-900); }

/* Cards */
.grid { display: grid; gap: 24px; }
.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: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: .2s ease; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.card .more::after { content: "→"; transition: .15s; }
.card:hover .more::after { transform: translateX(3px); }
.icon { width: 52px; height: 52px; border-radius: 12px; background: var(--navy-50); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 28px; height: 28px; fill: var(--navy); }
.card-img { padding: 0; overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-img .card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-img h3 { font-size: 1.12rem; }
.card-img h3 a { color: inherit; text-decoration: none; }
.meta { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--navy-50); color: var(--navy); padding: 3px 9px; border-radius: 99px; }

/* Split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230f2a4d' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; }

/* NR list */
.nr-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.nr { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: var(--radius); padding: 22px 24px; }
.nr-num { font-family: "Barlow", sans-serif; font-weight: 700; color: var(--navy); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.nr h3 { margin: 2px 0 8px; font-size: 1.1rem; }
.nr p, .nr li { color: var(--muted); font-size: .95rem; }
.nr ul { margin: 0; padding-left: 18px; }
.nr p:last-child, .nr ul:last-child { margin-bottom: 0; }

.service-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.service-list li { position: relative; padding: 14px 16px 14px 48px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.service-list li::before { content: ""; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f5b301' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; }
.service-list strong { color: var(--navy-900); }

.note { background: var(--navy-50); border-left: 4px solid var(--navy); padding: 18px 22px; border-radius: 8px; margin: 28px 0 0; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 8px 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--navy); color: #fff; font-weight: 600; }
tbody tr:nth-child(even) { background: var(--bg-soft); }
tbody tr:last-child td { border-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 8px 0 24px; }
.chips li { background: var(--navy-50); color: var(--navy-900); border-radius: 99px; padding: 6px 14px; font-weight: 500; font-size: .93rem; }

/* Product layout */
.product { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.product-media { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 100px; }
.side-nav { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.side-nav h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.side-nav ul { list-style: none; padding: 0; margin: 0; }
.side-nav a { display: block; padding: 6px 0; text-decoration: none; color: var(--ink); font-size: .95rem; }
.side-nav a:hover, .side-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quotes blockquote { margin: 0; background: var(--navy); color: #fff; padding: 28px; border-radius: var(--radius); font-family: "Barlow", sans-serif; font-size: 1.15rem; line-height: 1.45; position: relative; }
.quotes blockquote::before { content: "“"; position: absolute; top: -6px; left: 18px; font-size: 4rem; color: var(--yellow); line-height: 1; }

/* Article */
.article { max-width: 780px; margin: 0 auto; }
.article img.cover { border-radius: var(--radius); margin-bottom: 28px; width: 100%; }
.article p { font-size: 1.05rem; }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; margin: 24px 0; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.share { display: flex; gap: 10px; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.share a { font-size: .9rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--ink); display: block; transition: .2s; }
a.contact-card:hover { border-color: var(--navy); box-shadow: var(--shadow); color: var(--ink); }
.contact-card .icon { margin-bottom: 14px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; color: var(--muted); font-weight: 500; font-family: inherit; }
.contact-card strong { font-size: 1.12rem; color: var(--navy-900); display: block; word-break: break-word; }
.contact-card small { color: var(--muted); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--navy-900), var(--navy)); color: #fff; border-radius: 16px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { color: #cfdbe8; margin: 0; }
.cta .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.footer { background: var(--navy-900); color: #b8c6d8; font-size: .93rem; padding-top: 60px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: #b8c6d8; text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer .logo { height: 42px; width: auto; margin-bottom: 16px; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }

/* WhatsApp float */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 60; transition: transform .15s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Responsive */
@media (max-width: 1379px) and (min-width: 1261px) {
  .nav > ul { gap: 0; }
  .nav a { padding: 10px 9px; font-size: .9rem; }
  .nav .btn { margin-left: 6px; }
  .nav a.btn { padding: 9px 14px; }
  .brand img { height: 40px; }
}
@media (max-width: 1260px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 76px 0 0 0; background: #fff; padding: 16px 20px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; }
  .nav.open { transform: none; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .nav .has-sub > a::after { display: none; }
  .nav .btn { margin: 16px 0 0; justify-content: center; border-radius: 8px; }
  body.nav-open { overflow: hidden; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .grid-3, .grid-4, .quotes, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .product { grid-template-columns: 1fr; gap: 32px; }
  .product-media { position: static; }
  .strip .container { grid-template-columns: repeat(2, 1fr); }
  .nr-list, .service-list { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .container { padding: 0 16px; }
  .topbar .container { justify-content: center; }
  .topbar .hide-sm { display: none; }
  .grid-2, .grid-3, .grid-4, .quotes, .contact-grid, .footer .cols { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero .container { padding-top: 72px; padding-bottom: 80px; }
  .cta { padding: 32px 24px; }
  .brand img { height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Portfólio: submenu agrupado, chips com link, clientes */
.nav .sub .sub-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 4px; border-top: 1px solid var(--line); margin-top: 6px; }
.chips li a { color: inherit; text-decoration: none; }
.chips li a:hover { text-decoration: underline; }
.chips.clients { justify-content: center; gap: 12px; }
.chips.clients li { background: #fff; border: 1px solid var(--line); padding: 10px 18px; font-weight: 600; }
@media (max-width: 1260px) { .nav .sub .sub-label { border-top: 0; padding: 12px 8px 4px; } }

/* Equipamentos Industriais */
.equip-nav { background: #fff; border-bottom: 1px solid var(--line); }
.equip-nav .chips { margin: 0; padding: 16px 0; }
.equip-nav .chips li { padding: 0; }
.equip-nav .chips a { display: block; padding: 6px 14px; }
.equip-nav .chips a:hover { text-decoration: none; background: var(--navy); color: #fff; border-radius: 99px; }
.equip-grid { grid-template-columns: repeat(3, 1fr); }
.equip { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s ease; }
.equip:hover { box-shadow: var(--shadow); }
.equip-media { border-bottom: 1px solid var(--line); }
.equip-main { display: block; aspect-ratio: 4/3; background: #fff; cursor: zoom-in; }
.equip-main img { width: 100%; height: 100%; object-fit: contain; }
.equip-thumbs { display: flex; gap: 8px; padding: 10px 12px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.equip-thumbs button { width: 56px; height: 56px; padding: 2px; background: #fff; border: 2px solid var(--line); border-radius: 6px; cursor: pointer; }
.equip-thumbs button[aria-pressed="true"], .equip-thumbs button:hover { border-color: var(--navy); }
.equip-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.equip-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.equip-body .tag { align-self: flex-start; margin-bottom: 8px; }
.equip-body h3 { font-size: 1.15rem; }
.equip-body p { color: var(--muted); font-size: .95rem; }
.equip .more { margin-top: auto; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.equip .more::after { content: "→"; transition: .15s; }
.equip:hover .more::after { transform: translateX(3px); }
.equip-wide { display: grid; grid-template-columns: 1.2fr 1fr; }
.equip-wide .equip-media { border-bottom: 0; border-right: 1px solid var(--line); }
.equip-wide .equip-body { justify-content: center; padding: 36px; }
.equip-wide .equip-body h3 { font-size: 1.4rem; }
.equip-wide .equip-body p { font-size: 1rem; }
.equip-wide .more { margin-top: 8px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 22, 40, .85); }
.lightbox img { max-width: 94vw; max-height: 86vh; width: auto; border-radius: 8px; background: #fff; }
.lightbox p { color: #fff; text-align: center; margin: 10px 0 0; font-weight: 500; }
.lightbox button { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--navy-900); font-size: 1.6rem; line-height: 1; cursor: pointer; }
@media (max-width: 900px) {
  .equip-grid { grid-template-columns: repeat(2, 1fr); }
  .equip-wide { grid-template-columns: 1fr; }
  .equip-wide .equip-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .equip-wide .equip-body { padding: 22px; }
}
@media (max-width: 620px) {
  .equip-grid { grid-template-columns: 1fr; }
}
