/* =========================================================================
   B.A RJ Engenharia de Segurança
   ========================================================================= */

:root {
  --brand: #00c9d6;
  --brand-2: #00eaf5;
  --brand-dark: #008c97;
  --brand-soft: rgba(0, 201, 214, .12);

  --ink: #0b1020;
  --ink-2: #121a30;
  --ink-3: #1b2542;
  --muted: #5c6785;
  --line: #e4e9f2;
  --surface: #ffffff;
  --surface-2: #f5f7fc;
  --surface-3: #eef1f8;
  --danger: #ef4444;
  --ok: #10b981;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11,16,32,.06), 0 2px 6px rgba(11,16,32,.04);
  --shadow-md: 0 10px 28px rgba(11,16,32,.10);
  --shadow-lg: 0 22px 54px rgba(11,16,32,.18);

  --container: 1200px;
  --header-h: 80px;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: middle; flex: 0 0 auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: .22em;
  font-size: .78rem; font-weight: 600;
  color: var(--brand-dark);
  margin: 0;
}

.section-title {
  font-size: clamp(1.8rem, 2.6vw + .6rem, 2.8rem);
  line-height: 1.15; margin-top: .4rem;
}
.section-lead {
  max-width: 60ch; color: var(--muted);
  margin-top: 1rem; font-size: 1.05rem;
}

.section { padding: clamp(4rem, 7vw, 7rem) 0; }
.section-head { max-width: 780px; margin: 0 auto 3rem; text-align: center; }
.section-head .section-lead { margin-inline: auto; }
.section-head .service-badge { margin: 0 auto 1rem; }
.section-closing { text-align: center; max-width: 720px; margin: 3rem auto 0; color: var(--muted); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: .78rem 1.3rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1rem; }
.btn-primary { background: var(--brand); color: #03212a; border-color: var(--brand); box-shadow: 0 6px 20px -6px rgba(0,201,214,.6); }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn.w-100 { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11,16,32,.85);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .8rem 0;
  min-height: calc(var(--header-h) - 2px);
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo { height: 54px; width: auto; max-width: 260px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.3)); }
.nav { display: flex; gap: 1.8rem; }
.nav a {
  font-size: .95rem; font-weight: 500;
  color: rgba(255,255,255,.82);
  position: relative; padding: .35rem 0;
  transition: color .2s ease;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:hover,
.nav a.is-active { color: #fff; }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { font-weight: 600; }
.nav-cta { font-size: .9rem; padding: .6rem 1.2rem; }
.mobile-menu a.is-active { color: var(--brand-2); }

.nav-toggle {
  display: none; background: transparent; border: 0; cursor: pointer; padding: 8px;
  width: 40px; height: 40px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px auto; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  background: var(--ink-2); color: #fff;
  display: none;
  flex-direction: column; gap: .4rem;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-menu:not([hidden]) { display: flex; }
.mobile-menu a { padding: .75rem 0; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-menu .btn { margin-top: .75rem; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  color: #fff;
  display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.04);
  animation: hero-zoom 16s ease-out infinite alternate;
}
@keyframes hero-zoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(0,201,214,.35), transparent 55%),
    linear-gradient(120deg, rgba(11,16,32,.95) 0%, rgba(11,16,32,.75) 40%, rgba(11,16,32,.45) 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 80% at 30% 40%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 80% at 30% 40%, #000 0%, transparent 80%);
}
.hero-inner { padding: 7rem 0 5rem; max-width: 820px; }
.hero .eyebrow { color: var(--brand-2); }
.hero-title { font-size: clamp(2.2rem, 4.1vw + .6rem, 4.6rem); line-height: 1.03; margin-top: .6rem; letter-spacing: -.02em; }
.hero-subtitle { margin-top: 1.4rem; font-size: 1.18rem; color: rgba(255,255,255,.88); max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
/* Quick-nav — 5 ícones flutuantes, sem container/blur */
.hero-quicknav {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .6rem;
}
.quicknav-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  padding: 1.1rem .6rem;
  border-radius: 14px;
  color: rgba(255,255,255,.82);
  text-align: center;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}
.quicknav-icon {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px; border-radius: 14px;
  background: rgba(0,201,214,.15);
  color: var(--brand-2);
  font-size: 26px;
  box-shadow: inset 0 0 0 1px rgba(0, 234, 245, .18);
  transition: background .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.quicknav-label {
  font-size: .8rem; font-weight: 500; line-height: 1.3;
}
/* Hover só em viewport desktop com ponteiro — evita hover "grudado" no mobile
   mesmo quando o emulador reporta (hover: hover) verdadeiro. */
@media (hover: hover) and (min-width: 769px) {
  .quicknav-item:hover {
    background: rgba(0,201,214,.1);
    color: #fff;
    transform: translateY(-3px);
  }
  .quicknav-item:hover .quicknav-icon {
    background: var(--brand); color: #03212a;
    transform: scale(1.08);
    box-shadow: 0 8px 22px rgba(0, 201, 214, .4);
  }
}
.quicknav-item:active { opacity: .85; }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  display: grid; place-items: center;
  color: #fff; font-size: 1.1rem;
  animation: bounce 2.4s ease-in-out infinite;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.hero-scroll:hover { background: var(--brand); border-color: var(--brand); color: #03212a; }
@keyframes bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ---------- Empresa ---------- */
.empresa { background: var(--surface-2); }
.pillars {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 3rem;
}
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.pillar::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0,201,214,.4); }
.pillar:hover::before { transform: scaleX(1); }
.pillar-icon {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  margin-bottom: 1rem;
  font-size: 28px;
}
.pillar h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.pillar p  { color: var(--muted); font-size: .95rem; }

/* ---------- Service sections — shared ---------- */
.service-section.alt { background: var(--surface-2); }

.service-badge {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 30px;
  margin-bottom: 1.2rem;
  box-shadow: inset 0 0 0 1px rgba(0,201,214,.25);
}
.service-badge-light {
  background: rgba(0, 234, 245, .14);
  color: var(--brand-2);
  box-shadow: inset 0 0 0 1px rgba(0, 234, 245, .3);
}

/* ---------- Layout: sidebar (trabalho, medicina) ---------- */
.layout-sidebar .service-grid-wrap {
  display: grid; gap: 3.5rem;
  grid-template-columns: minmax(280px, 380px) 1fr;
  align-items: start;
}
.layout-sidebar .service-grid-wrap.reverse { grid-template-columns: 1fr minmax(280px, 380px); }
.layout-sidebar .service-grid-wrap.reverse .service-intro { order: 2; }
.layout-sidebar .service-grid-wrap.reverse .service-stack { order: 1; }

.service-intro { position: sticky; top: calc(var(--header-h) + 20px); }
.service-intro .section-title { margin-top: .5rem; }
.service-intro .section-lead  { margin-top: 1rem; }
.service-illus {
  margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
  position: relative;
}
.service-illus::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 55%, rgba(0,201,214,.18) 100%);
  pointer-events: none;
}
.service-illus img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Layout: split (medicina + trabalho) ---------- */
.layout-split .split-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(300px, 420px) 1fr;
  align-items: start;
}
.layout-split .split-grid.reverse {
  grid-template-columns: 1fr minmax(300px, 420px);
}
.layout-split .split-grid.reverse .split-image { order: 2; }
.layout-split .split-grid.reverse .split-content { order: 1; }

.split-image {
  position: sticky; top: calc(var(--header-h) + 24px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.split-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .8s ease;
}
.split-image:hover img { transform: scale(1.04); }
.split-image::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(180deg, transparent, rgba(11,16,32,.55));
  pointer-events: none;
}
.split-image-badge {
  position: absolute; left: 20px; bottom: 20px; z-index: 2;
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--brand); color: #03212a;
  font-size: 28px;
  box-shadow: 0 10px 26px rgba(0,201,214,.45);
}

.split-content { min-width: 0; display: flex; flex-direction: column; gap: 2rem; }
.split-content .section-head { margin: 0; }
.split-content .section-head.align-start {
  max-width: none; text-align: left;
}
.split-content .section-head.align-start .section-lead { margin-inline: 0; }

/* ---------- Layout: banner (meio ambiente) ---------- */
.layout-banner { position: relative; padding-top: 0; }
.layout-banner .banner {
  position: relative; height: 320px;
  margin-bottom: -80px;
  overflow: hidden;
}
.layout-banner .banner img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.layout-banner .banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,16,32,.3) 0%, rgba(11,16,32,.1) 40%, var(--surface) 100%);
}
.layout-banner .banner-head {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
  position: relative; z-index: 2;
}

/* ---------- Layout: featured (e-Social / medicina) ---------- */
.layout-featured .featured-cards,
.featured-cards {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.featured-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.featured-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .featured-cards.cols-2 { grid-template-columns: 1fr; }
  .featured-cards.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .featured-cards.cols-3 { grid-template-columns: 1fr; }
}
.featured-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  display: flex; flex-direction: column; gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.featured-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.featured-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand);
}
.featured-card:hover::before { transform: scaleX(1); }
.featured-card-icon {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 28px;
}
.featured-card-title { font-size: 1.2rem; line-height: 1.3; color: var(--ink); }
.featured-card-desc {
  color: var(--muted); font-size: .95rem; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
}
.featured-card-cta {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: .4rem;
  background: transparent; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .92rem;
  color: var(--brand-dark); padding: 0;
  transition: gap .2s ease;
}
.featured-card-cta:hover { gap: .7rem; }
.featured-card-cta .icon { width: 1em; height: 1em; }

/* ---------- Service stack (cards + expand toggle) ---------- */
.service-stack { display: flex; flex-direction: column; gap: 1.75rem; }
.service-cards {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.service-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.service-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.service-cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .service-cards.cols-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  {
  .service-cards.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .service-cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px)  {
  .service-cards.cols-2 { grid-template-columns: 1fr; }
  .service-cards.cols-3 { grid-template-columns: 1fr; }
  .service-cards.cols-4 { grid-template-columns: 1fr; }
}

/* service-card with icon on the left (desktop) / top (mobile) */
.service-card {
  text-align: left;
  appearance: none; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem;
  display: flex; align-items: flex-start; gap: 1rem;
  min-height: 130px; cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
  font-family: inherit; color: inherit;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand); transform: scaleY(0); transform-origin: top;
  transition: transform .22s ease;
}
.service-card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleY(1); }

.service-card-icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 22px; flex: 0 0 auto;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.service-card:hover .service-card-icon {
  background: var(--brand); color: #03212a;
  transform: rotate(-3deg);
}
.service-card-body { display: flex; flex-direction: column; gap: .6rem; flex: 1; min-width: 0; }
.service-card-title { font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--ink); line-height: 1.35; }
.service-card-more {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .82rem; color: var(--brand-dark); font-weight: 600; margin-top: auto;
}
.service-card-more .icon { width: .9em; height: .9em; transition: transform .2s ease; }
.service-card:hover .service-card-more .icon { transform: translateX(3px); }

/* Expand/collapse --------------------------------------------------------- */
.service-card.is-collapsed,
.training-card.is-collapsed { display: none; }
.expand-toggle {
  align-self: center;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.4rem;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .9rem; color: var(--ink);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.expand-toggle[hidden] { display: none !important; }
.expand-toggle:hover { background: #fff; border-color: var(--brand); color: var(--brand-dark); }
.expand-toggle .icon { width: 1.1em; height: 1.1em; transition: transform .25s ease; }
.expand-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.expand-toggle.dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.16); color: #fff; }
.expand-toggle.dark:hover { background: rgba(255,255,255,.08); border-color: var(--brand); color: var(--brand-2); }

/* ---------- Treinamentos (dark section) ---------- */
.service-treinamentos {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.training-bg {
  position: absolute; inset: 0; z-index: -1;
}
.training-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: .18;
}
.service-treinamentos .container { position: relative; }
.service-treinamentos .section-title { color: #fff; }
.service-treinamentos .section-lead  { color: rgba(255,255,255,.72); }
.service-treinamentos .eyebrow       { color: var(--brand-2); }

.training-cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(4, 1fr);
}
.training-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.4rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 1.1rem;
  min-height: 260px; cursor: pointer;
  font-family: inherit;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.training-card:hover {
  transform: translateY(-4px);
  background: rgba(0,201,214,.1); border-color: var(--brand);
  box-shadow: 0 16px 40px rgba(0,201,214,.12);
}
.training-icon {
  width: 92px; height: 92px; object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.35));
  transition: transform .2s ease;
}
.training-card:hover .training-icon { transform: scale(1.05); }
.training-card-title {
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  line-height: 1.35; flex: 1;
  display: flex; align-items: center;
}
.training-card-more {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .82rem; color: var(--brand-2); font-weight: 600;
}
.training-card-more .icon { width: .9em; height: .9em; transition: transform .2s ease; }
.training-card:hover .training-card-more .icon { transform: translateX(3px); }

/* ---------- Contato ---------- */
.contato { background: var(--surface-2); }
.contato-grid {
  display: grid; gap: 3rem;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 540px);
  align-items: start;
}
.contato-intro .section-title { margin-top: .4rem; }
.contato-channels {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: flex; flex-direction: column; gap: .75rem;
}
.channel {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; padding: 1rem 1.2rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  color: var(--ink); font-size: .95rem;
}
.channel.no-link { cursor: default; }
a.channel:hover { transform: translateX(4px); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.channel-icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 22px; flex: 0 0 auto;
}
.channel-wa .channel-icon { background: rgba(37,211,102,.12); color: #1fa855; }
.channel-body { display: flex; flex-direction: column; line-height: 1.35; }
.channel-body strong { font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.channel-body span { color: var(--muted); font-size: .88rem; }

.contato-form {
  background: #fff; padding: 2.5rem 2.25rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.form-group label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
  font: inherit; padding: .85rem 1.05rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink); width: 100%;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--brand); background: #fff; outline: none;
  box-shadow: 0 0 0 3px rgba(0,201,214,.18);
}
.honeypot { display: none !important; }
.form-status { margin-top: .75rem; font-size: .9rem; min-height: 1.2em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 4rem 0 0; }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  padding-bottom: 3rem;
}
.footer-brand p { margin-top: 1rem; max-width: 36ch; font-size: .95rem; }
.footer-logo { height: 54px; width: auto; max-width: 240px; filter: brightness(1.1); }
.footer-col h3 {
  font-family: var(--font-head); font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em; color: #fff;
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .95rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--brand-2); }
.footer-contact li a { display: inline-flex; gap: .6rem; align-items: center; font-size: 18px; }
.footer-contact li a span { font-size: .95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
  font-size: .85rem; color: rgba(255,255,255,.55);
  text-align: center;
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 99;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  font-size: 32px;
  box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float .icon { width: 1em; height: 1em; }
.whatsapp-float::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.45);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.95); opacity: .7; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 14px 40px rgba(37,211,102,.55); }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(640px, calc(100% - 2rem)); border-radius: var(--radius-lg); }
.modal::backdrop { background: rgba(11,16,32,.6); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .25s ease; }
@keyframes modal-in { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-box {
  position: relative;
  background: #fff; padding: 2.2rem 1.9rem 1.9rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.modal-head {
  display: flex; flex-direction: column; align-items: center;
  gap: .4rem;
  padding: 0 2rem; margin-bottom: .75rem;
  text-align: center;
}
.modal-icon {
  position: relative;
  display: inline-block;
  width: 72px; height: 72px; border-radius: 18px;
  background: var(--brand-soft); color: var(--brand-dark);
  margin-bottom: .6rem;
  box-shadow: inset 0 0 0 1px rgba(0,201,214,.25);
  vertical-align: top;
}
.modal-icon .modal-icon-svg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38px; height: 38px;
}
.modal-icon .modal-icon-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
}
.modal-icon [hidden] { display: none !important; }
.modal-icon.is-nr {
  background: transparent;
  box-shadow: none;
  width: 86px; height: 86px;
  border-radius: 0;
}
.modal-eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: .2em;
  font-size: .72rem; font-weight: 600;
  color: var(--brand-dark);
}
.modal-box h3 { font-size: 1.5rem; color: var(--ink); line-height: 1.2; }
.modal-box p#modalBody { margin-top: .5rem; color: var(--muted); line-height: 1.75; white-space: pre-wrap; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: 0; width: 36px; height: 36px;
  display: grid; place-items: center; border-radius: 50%;
  cursor: pointer; color: var(--ink); font-size: 20px;
  transition: background .2s ease;
}
.modal-close:hover { background: var(--surface-3); }
.modal-footer { margin-top: 1.6rem; display: flex; justify-content: center; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (min-width: 981px) {
  .mobile-menu { display: none !important; }
}
@media (max-width: 980px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: inline-block; }
  .hero-quicknav { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .layout-sidebar .service-grid-wrap,
  .layout-sidebar .service-grid-wrap.reverse { grid-template-columns: 1fr; gap: 2rem; }
  .layout-sidebar .service-grid-wrap.reverse .service-intro { order: 0; }
  .layout-sidebar .service-grid-wrap.reverse .service-stack  { order: 0; }
  .service-intro { position: static; }
  .layout-split .split-grid,
  .layout-split .split-grid.reverse { grid-template-columns: 1fr; gap: 2rem; }
  .layout-split .split-grid.reverse .split-image   { order: 0; }
  .layout-split .split-grid.reverse .split-content { order: 0; }
  .split-image { position: relative; top: auto; aspect-ratio: 16/10; max-height: 340px; }
  .layout-banner .banner { height: 220px; margin-bottom: -60px; }
  .layout-banner .banner-head { padding: 2rem 1.5rem; }
  .contato-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .training-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .training-cards { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .training-card { min-height: 220px; padding: 1.5rem 1rem 1.2rem; }
  .training-icon { width: 76px; height: 76px; }
}
@media (max-width: 768px) {
  .hero-bg img { object-position: 60% center; }
  .hero-scroll { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 3.5rem 0; }
  .hero-inner { padding: 5rem 0 4rem; }
  .hero-bg img { object-position: 60% center; }

  /* Quicknav: empilha vertical com layout horizontal em cada item */
  .hero-quicknav { grid-template-columns: 1fr; gap: .45rem; margin-top: 2.5rem; }
  .quicknav-item {
    flex-direction: row; justify-content: flex-start; text-align: left;
    gap: 1rem; padding: .85rem 1.1rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
  }
  .quicknav-icon { width: 42px; height: 42px; font-size: 22px; }
  .quicknav-label { font-size: .9rem; flex: 1; }
  .hero-cta .btn { flex: 1; }
  .service-card { flex-direction: column; align-items: stretch; gap: 1rem; }
  .featured-card { padding: 1.75rem 1.4rem; }
  .form-row { grid-template-columns: 1fr; }
  .contato-form { padding: 1.75rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 16px; right: 16px; font-size: 28px; }
  .layout-banner .banner-head { padding: 1.5rem 1.2rem; }
}

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