/* =========================================================
   JNC Soluções
   Paleta da marca: azul-marinho + dourado do logo + cinza. Cantos retos.
   ========================================================= */

:root {
  --bg: #eff1f5;
  --surface: #f9fafc;
  --ink: #0f1a2e;
  --muted: #4f5868;
  --line: rgba(15, 26, 46, 0.14);
  --accent: #e8a520;        /* dourado: fundos e destaques */
  --accent-ink: #8a5a00;    /* dourado para texto sobre claro (AA) */
  --accent-bright: #f2b941; /* dourado sobre fundo escuro */
  --on-accent: #0e182c;
  --silver: #b9c0cc;
  --night: #0e182c;         /* hero, rodapé */
  --on-night: #f1f3f7;
  --on-night-muted: rgba(241, 243, 247, 0.74);
  --shadow: 0 18px 40px -24px rgba(14, 24, 44, 0.4);

  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 76px;

  /* camadas */
  --z-float: 30;
  --z-nav: 40;
  --z-skip: 50;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1322;
    --surface: #111b2d;
    --ink: #e9edf3;
    --muted: #a3acbb;
    --line: rgba(233, 237, 243, 0.14);
    --accent-ink: #f2b941;
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6);
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: var(--z-skip);
  background: var(--accent); color: var(--on-accent); padding: 10px 14px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.h2 {
  font-size: clamp(2.1rem, 3.8vw, 3.3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 18ch;
  text-wrap: balance;
}

.lead { font-size: 1.2rem; color: var(--ink); }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 18px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px;
  font: 600 16px/1 var(--font);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn i { font-size: 16px; transition: transform .3s var(--ease); }
.btn:hover i { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.98); }

.btn--solid { background: var(--on-night); color: var(--night); }
.btn--solid:hover { background: var(--accent); color: var(--on-accent); }

.btn--line { color: var(--on-night); border-color: rgba(241, 242, 244, 0.55); background: rgba(14, 24, 44, 0.18); }
.btn--line:hover { border-color: var(--on-night); background: rgba(14, 24, 44, 0.4); }

.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--on-night); color: var(--night); }
.btn--big { padding: 18px 30px; font-size: 17px; }

/* ---------- Header ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  color: var(--on-night);
  transition: background-color .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled,
.nav.menu-open {
  background: rgba(14, 24, 44, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(241, 242, 244, 0.08);
}
.nav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex; align-items: center; gap: 40px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(241, 242, 244, 0.85); }
.brand__name { font-weight: 700; font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.1; white-space: nowrap; }
.brand__name span { font-weight: 500; color: var(--silver); }

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 15px; font-weight: 500; text-decoration: none; padding: 6px 0;
  opacity: .88; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease), opacity .2s;
}
.nav__links a:hover { opacity: 1; background-size: 100% 1px; }
.nav__cta { padding: 11px 18px; font-size: 15px; }

.nav__toggle {
  display: none;
  font: 600 13px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-night); background: transparent;
  border: 1px solid rgba(241, 242, 244, 0.7); padding: 10px 14px; cursor: pointer;
}
.nav__mobile {
  display: grid; gap: 4px;
  padding: 8px var(--gutter) 28px;
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a:not(.btn) { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; padding: 10px 0; border-bottom: 1px solid rgba(241, 242, 244, 0.1); }
.nav__mobile .btn { margin-top: 18px; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: flex-end;
  color: var(--on-night);
  background: var(--night);
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 55%;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,24,44,.75) 0%, rgba(14,24,44,.25) 26%, rgba(14,24,44,.5) 58%, rgba(14,24,44,.92) 100%),
    radial-gradient(120% 85% at 22% 78%, rgba(14,24,44,.7), transparent 60%);
}
.hero__sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 120px; pointer-events: none; }
.hero__content {
  position: relative;
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) var(--gutter) clamp(56px, 11vh, 120px);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 26px; padding: 8px 14px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid rgba(241, 242, 244, 0.3); background: rgba(14, 24, 44, 0.35);
}
.hero__badge i { font-size: 17px; color: var(--accent-bright); }
.hero__title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.hero__title .line { display: block; }
.hero__title em { font-style: normal; color: var(--accent-bright); padding-right: .04em; }
.hero__lead {
  margin-top: 26px;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--on-night-muted);
}
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .hero__img { animation: heroZoom 2.4s var(--ease) both; }
  .hero__badge,
  .hero__title .line,
  .hero__lead,
  .hero__actions { animation: rise 1s var(--ease) both; }
  .hero__title .line:nth-child(1) { animation-delay: .06s; }
  .hero__title .line:nth-child(2) { animation-delay: .14s; }
  .hero__lead { animation-delay: .26s; }
  .hero__actions { animation-delay: .38s; }
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Seções ---------- */
section:not(.hero) { padding: clamp(80px, 11vw, 140px) 0; }

/* Sobre */
.about__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow); }
.about__media::after {
  content: ""; position: absolute; left: -14px; bottom: -14px; width: 42%; height: 42%;
  border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent);
  pointer-events: none;
}
.about__text > * + * { margin-top: 22px; }
.about__text p:not(.lead) { color: var(--muted); max-width: 58ch; }
.about__points {
  list-style: none; padding: 0; margin-top: 40px !important;
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}
.about__points li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; }
.about__points li + li { border-top: 1px solid var(--line); }
.about__points i { font-size: 26px; color: var(--accent-ink); flex: none; margin-top: 1px; }
.about__points strong { display: block; font-weight: 600; font-size: 18px; }
.about__points span { color: var(--muted); font-size: 16px; }

/* Serviços */
.services { background: var(--surface); }
.services__title { margin-bottom: clamp(40px, 5vw, 64px); }
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 250px;
  grid-template-rows: repeat(2, 250px) auto;
  gap: 14px;
}
.tile {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  background: var(--night); color: var(--on-night);
  isolation: isolate;
}
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform 1.1s var(--ease);
}
.tile:not(.tile--plantao)::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,24,44,.05) 15%, rgba(14,24,44,.55) 55%, rgba(14,24,44,.92) 100%);
}
.tile:hover img { transform: scale(1.05); }
.tile__body { padding: clamp(20px, 2.4vw, 32px); max-width: 46ch; }
.tile h3 { font-size: clamp(1.35rem, 1.8vw, 1.7rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.tile p { margin-top: 8px; font-size: 16px; color: var(--on-night-muted); }

.tile--glp    { grid-column: 1 / 7;  grid-row: span 2; }
.tile--glp img { object-position: 50% 60%; }
.tile--glp h3 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); }
.tile--seguranca    { grid-column: 7 / 13; }
.tile--seguranca img { object-position: 50% 40%; }
.tile--consultoria { grid-column: 7 / 10; }
.tile--execucao { grid-column: 10 / 13; }
.tile--plantao {
  grid-column: 1 / 13;
  background: var(--accent); color: var(--on-accent);
  flex-direction: row; align-items: center; gap: 8px 24px; flex-wrap: wrap;
  padding: clamp(20px, 2.4vw, 32px);
}
.tile--plantao .tile__icon { padding: 0; font-size: 44px; }
.tile--plantao .tile__body { padding: 0; flex: 1 1 320px; }
.tile--plantao p { color: rgba(14, 24, 44, 0.8); }
.tile--plantao .btn { background: var(--night); color: var(--on-night); }
.tile--plantao .btn:hover { background: var(--surface); color: var(--ink); }
.tile__icon { font-size: 36px; padding: clamp(20px, 2.4vw, 32px) clamp(20px, 2.4vw, 32px) 0; }

/* Como funciona */
.steps__list {
  list-style: none; padding: 0;
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.steps__list li { padding: 28px 26px 30px; background: var(--surface); border-top: 3px solid var(--accent); box-shadow: var(--shadow); }
.steps__num { display: block; font-size: 15px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent-ink); }
.steps__list h3 { margin-top: 18px; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.steps__list p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Contato */
.location { background: var(--surface); }
.location__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.location__card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 26px;
  padding: clamp(32px, 4vw, 52px);
  background: var(--night); color: var(--on-night);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden; isolation: isolate;
}
.location__card::before {
  content: ""; position: absolute; right: -30%; top: -40%; width: 90%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(232, 165, 32, 0.28), transparent 65%);
}
.location__card img { width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(241, 242, 244, 0.9); }
.location__card-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.location__info > p { margin-top: 18px; color: var(--muted); max-width: 44ch; }
.info { margin-top: 34px; display: grid; gap: 22px; }
.info dt { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.info dt i { font-size: 18px; }
.info dd { margin-top: 4px; font-size: 18px; overflow-wrap: anywhere; }
.info dd a { text-decoration: none; border-bottom: 1px solid var(--line); }
.info dd a:hover { border-color: currentColor; }

/* FAQ */
.faq__grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.faq__intro { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq__intro p:not(.eyebrow) { margin-top: 18px; color: var(--muted); max-width: 34ch; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0;
  font-size: clamp(1.1rem, 1.4vw, 1.25rem); font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { font-size: 20px; flex: none; color: var(--accent-ink); transition: transform .35s var(--ease); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 48px 26px 0; color: var(--muted); max-width: 62ch; }

/* CTA final */
.closing { background: var(--night); color: var(--on-night); }
section.closing { padding: clamp(72px, 9vw, 120px) 0; }
.closing__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.closing__title {
  font-size: clamp(2.1rem, 4.6vw, 4rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.02; max-width: 16ch;
}

/* Rodapé */
.footer { background: var(--night); color: var(--on-night-muted); border-top: 1px solid rgba(241, 242, 244, 0.1); padding: 64px 0 28px; font-size: 16px; }
.footer__grid { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 40px; }
.footer__brand img { width: 72px; height: 72px; border-radius: 50%; }
.footer__brand p { margin-top: 18px; max-width: 34ch; }
.footer__nav { display: grid; gap: 10px; align-content: start; }
.footer__nav a, .footer__contact a { text-decoration: none; color: var(--on-night); }
.footer__nav a:hover, .footer__contact a:hover { color: var(--accent-bright); }
.footer__contact { display: grid; gap: 10px; align-content: start; }
.footer__contact a { font-size: 22px; font-weight: 700; }
.footer__contact a.footer__small { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.footer__legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(241, 242, 244, 0.1); font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.footer__credit { color: var(--on-night); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(241, 242, 244, 0.3); transition: color .3s var(--ease), border-color .3s var(--ease); }
.footer__credit:hover { color: var(--accent-bright); border-color: var(--accent-bright); }

/* WhatsApp flutuante */
.float-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--z-float);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  background: rgba(14, 24, 44, 0.92); color: var(--on-night);
  border: 1px solid rgba(241, 242, 244, 0.22);
  font-size: 15px; font-weight: 600; text-decoration: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.float-wa i { font-size: 20px; color: #25d366; }
.float-wa:hover { border-color: var(--accent-bright); transform: translateY(-2px); }

/* ---------- Animação de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 22px; }
  .brand__name span { display: none; }
  .steps__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-block; }
  .brand__name span { display: inline; }

  .about__grid,
  .location__grid,
  .faq__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; }
  .faq__intro { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; grid-auto-rows: 240px; }
  .tile--glp { grid-column: 1 / -1; grid-row: span 2; }
  .tile--seguranca, .tile--plantao { grid-column: 1 / -1; }
  .tile--consultoria, .tile--execucao { grid-column: auto; }
}

@media (max-width: 600px) {
  :root { --nav-h: 66px; }
  .brand { gap: 10px; }
  .brand img { width: 40px; height: 40px; }
  .brand__name { font-size: 15px; letter-spacing: 0.02em; }
  .hero__content { padding-bottom: 88px; }
  .hero__title { font-size: clamp(2.2rem, 10.4vw, 3rem); }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: minmax(230px, auto); }
  .tile--glp { grid-row: auto; min-height: 320px; }
  .tile--consultoria, .tile--execucao { grid-column: 1 / -1; }
  .steps__list { grid-template-columns: 1fr; }
  .location__card .btn { align-self: stretch; justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; }
  .faq details p { padding-right: 0; }
  .float-wa span { display: none; }
  .float-wa { padding: 14px; right: 16px; bottom: 16px; }
}

/* Mapa (contato) */
.location__map { position: relative; aspect-ratio: 4 / 3; background: var(--bg); box-shadow: var(--shadow); }
.location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.location__info .btn { margin-top: 36px; }
@media (max-width: 600px) { .location__info .btn { width: 100%; justify-content: center; } }
