/* ============================================================
   EVIDENZA — Perícias e Consultoria em SST
   Estilo: minimalista · linhas finas · tipografia direta
   ============================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Paleta (cores da logo) */
  --teal: #0f4c5c; /* azure escuro — cor principal */
  --teal-dark: #0a3945;
  --green: #5e8c61; /* verde apagado — destaque */
  --green-light: #9cc59e; /* verde para fundos escuros */
  --green-text: #4b7450; /* verde mais escuro para textos pequenos (contraste AA) */
  --bg: #ffffff;
  --bg-alt: #f5f7f9; /* azul claro */
  --ink: #12262e;
  --muted: #5a6d74;
  --line: #dde4e8;
  --whats: #25d366;
  --whats-deep: #1da851;

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --radius: 8px;
  --header-h: 68px;

  color-scheme: light;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

::selection {
  background: rgba(94, 140, 97, 0.25);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) {
  .container {
    padding-inline: 40px;
  }
}

.section {
  padding-block: 72px;
}
@media (min-width: 768px) {
  .section {
    padding-block: 112px;
  }
}
.section--alt {
  background: var(--bg-alt);
}

.section__head {
  display: grid;
  gap: 16px;
  margin-bottom: 48px;
}
@media (min-width: 900px) {
  .section__head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 40px;
    margin-bottom: 64px;
  }
}
.section__title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}
.section__lead {
  max-width: 44ch;
  color: var(--muted);
}

/* Texto corrido justificado (a partir de 640px; no celular abre buracos) */
@media (min-width: 640px) {
  .hero__text,
  .section__lead,
  .card__desc,
  .band__text,
  .about__text,
  .faq__a {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.98rem;
  font-weight: 500;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.btn--sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.92rem;
}
.btn--primary {
  background: var(--teal);
  color: #fff;
}
.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn--whats {
  background: var(--whats);
  color: #fff;
}
@media (hover: hover) {
  .btn--primary:hover {
    background: var(--teal-dark);
  }
  .btn--ghost:hover {
    border-color: var(--teal);
  }
  .btn--whats:hover {
    background: var(--whats-deep);
  }
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px; /* área de toque confortável */
  font-weight: 500;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.link .icon {
  width: 1em;
  height: 1em;
  transition: transform 0.2s ease;
}
@media (hover: hover) {
  .link:hover .icon {
    transform: translateX(3px);
  }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.brand__mark {
  width: auto;
  height: 30px;
}
.brand__word {
  width: auto;
  height: 16px;
}

.nav__links {
  display: none;
  gap: 32px;
}
@media (min-width: 960px) {
  .nav__links {
    display: flex;
  }
}
.nav__link {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--ink);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__cta {
  display: none;
}
@media (min-width: 640px) {
  .nav__cta {
    display: inline-flex;
  }
}
.nav__toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}
.nav__toggle .icon {
  width: 24px;
  height: 24px;
}
@media (min-width: 960px) {
  .nav__toggle {
    display: none;
  }
}
.nav__toggle .icon-close,
.nav__toggle[aria-expanded="true"] .icon-menu {
  display: none;
}
.nav__toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Menu mobile: painel logo abaixo da barra */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0s linear 0.2s;
}
.mobile-menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
@media (min-width: 960px) {
  .mobile-menu {
    display: none;
  }
}
.mobile-menu ul {
  padding-block: 8px 16px;
}
.mobile-menu__link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
}
.mobile-menu li:last-child .mobile-menu__link {
  border-bottom: 0;
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(18, 38, 46, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.scrim[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  overflow: hidden;
  padding-block: 56px 80px;
}
@media (min-width: 768px) {
  .hero {
    padding-block: 96px 120px;
  }
}
.hero__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
  }
}
.hero__title {
  max-width: 17ch;
  font-size: clamp(2.3rem, 5.4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.editorial {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--green);
}
.hero__text {
  max-width: 50ch;
  margin-top: 28px;
  font-size: 1.1rem;
  color: var(--muted);
  text-align: left !important; /* sem justificar: fica mais limpo no topo */
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
@media (max-width: 479px) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* Cartão "Como podemos ajudar" */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 480px;
  justify-self: center;
}
@media (min-width: 1024px) {
  .hero__visual {
    justify-self: end;
  }
}
/* monograma da logo, menor, clarinho no canto do cartão */
.hero__mark {
  position: absolute;
  z-index: 0;
  right: -24px;
  bottom: -36px;
  width: 58%;
  height: auto;
  opacity: 0.22;
  pointer-events: none;
}
.hero__card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 28px 22px 24px;
  border-radius: 16px;
  background: var(--teal);
  color: #fff;
}
@media (min-width: 640px) {
  .hero__card {
    padding: 36px 32px 28px;
  }
}
.hero__card-title,
.hero__card-list,
.hero__card-foot {
  position: relative;
  z-index: 1;
}
.hero__card-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-light);
}
.hero__card-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.hero__card-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.hero__card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
}
.hero__card-icon .icon {
  width: 18px;
  height: 18px;
}
.hero__card-list strong {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.25;
}
.hero__card-list small {
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.68);
}
.hero__card-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ============================================================
   SERVIÇOS — cards
   ============================================================ */
.cards {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}
.card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
@media (min-width: 640px) {
  .card {
    padding: 36px;
  }
}
.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--teal);
}
.card__icon .icon {
  width: 22px;
  height: 22px;
}
.card__title {
  margin-top: 24px;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
}
.card__desc {
  margin-top: 10px;
  color: var(--muted);
}
.card__list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.96rem;
}
.card__list li {
  display: flex;
  gap: 10px;
}
.card__list .icon {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  stroke-width: 2.4;
  color: var(--green);
}
.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 44px; /* área de toque confortável */
  margin-top: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.card__cta .icon {
  width: 1em;
  height: 1em;
  transition: transform 0.2s ease;
}
@media (hover: hover) {
  .card__cta:hover .icon {
    transform: translateX(3px);
  }
}

/* card em destaque (perícias) */
.card--featured {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.card--featured .card__icon {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.card--featured .card__desc {
  color: rgba(255, 255, 255, 0.78);
}
.card--featured .card__list {
  border-top-color: rgba(255, 255, 255, 0.15);
}
.card--featured .card__list .icon {
  color: var(--green-light);
}

/* ============================================================
   FAIXA — ASSISTENTE TÉCNICO
   ============================================================ */
.band {
  padding-block: 72px;
  background: var(--teal);
  color: #fff;
}
@media (min-width: 768px) {
  .band {
    padding-block: 104px;
  }
}
.band__grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) {
  .band__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
.band__title {
  max-width: 14ch;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}
.band__text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}
.band__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.band__list li {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: #fff;
}

/* ============================================================
   COMO ATUAMOS — linha da jornada
   ============================================================ */
.process {
  position: relative;
  display: grid;
  gap: 36px;
}
@media (min-width: 900px) {
  .process {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}
.process__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.process__track,
.process__path {
  fill: none;
  stroke-linecap: round;
}
.process__track {
  stroke: var(--line);
  stroke-width: 1.5;
}
.process__path {
  stroke: var(--green);
  stroke-width: 2.5;
}
.process__head {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.process__head.is-moving {
  opacity: 1;
}
.process__step {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
}
@media (min-width: 900px) {
  .process__step {
    display: block;
  }
}
.process__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease;
}
.process__step.is-reached .process__num {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.process__step h3 {
  font-size: 1.1rem;
  padding-top: 10px;
}
@media (min-width: 900px) {
  .process__step h3 {
    padding-top: 28px;
  }
}
.process__step p {
  margin-top: 8px;
  font-size: 0.97rem;
  color: var(--muted);
}

/* ============================================================
   SOBRE
   ============================================================ */
.about {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .about {
    grid-template-columns: 5fr 7fr;
    gap: 72px;
  }
}
.about__photo {
  width: 100%;
  height: auto;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 15%;
  border-radius: var(--radius);
}
.about__label {
  font-size: 0.9rem;
  color: var(--green-text);
}
.about__name {
  margin-top: 12px;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}
.about__role {
  margin-top: 12px;
  font-weight: 500;
}
.about__text {
  margin-top: 24px;
  max-width: 56ch;
  color: var(--muted);
}
.about__body .link {
  margin-top: 16px;
}

/* ============================================================
   CENÁRIOS
   ============================================================ */
.scenarios {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) {
  .scenarios {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}
@media (min-width: 1024px) {
  .scenarios {
    grid-template-columns: repeat(4, 1fr);
  }
}
.scenarios li {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 1.05rem;
  line-height: 1.4;
}
/* barrinha colorida no topo de cada card */
.scenarios li::before {
  content: "";
  width: 32px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--green);
}
.scenarios li:nth-child(even)::before {
  background: var(--teal);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq__list {
  border-top: 1px solid var(--ink);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  text-align: left;
  font-size: 1.08rem;
  font-weight: 500;
}
.faq__icon {
  width: 20px;
  height: 20px;
  color: var(--green);
  transition: transform 0.25s ease;
}
.faq__btn[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
}
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq__panel[data-open="true"] {
  grid-template-rows: 1fr;
}
.faq__a {
  overflow: hidden;
  max-width: 70ch;
  color: var(--muted);
}
.faq__panel[data-open="true"] .faq__a {
  padding-bottom: 24px;
}

/* ============================================================
   CONTATO
   ============================================================ */
.contact {
  padding-block: 72px;
}
@media (min-width: 768px) {
  .contact {
    padding-block: 112px;
  }
}
.contact__box {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 24px;
  border-radius: 16px;
  background: var(--teal);
  color: #fff;
  text-align: center;
}
@media (min-width: 768px) {
  .contact__box {
    padding: 80px 48px;
  }
}
.contact__mark {
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 300px;
  height: auto;
  opacity: 0.12;
  pointer-events: none;
}
.contact__title {
  position: relative;
  max-width: 22ch;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
}
.contact__lead {
  position: relative;
  max-width: 46ch;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.8);
}
.contact__box .btn {
  position: relative;
  margin-top: 32px;
}
.btn--lg {
  min-height: 54px;
  padding: 14px 28px;
  font-size: 1.02rem;
}
.contact__phone {
  position: relative;
  margin-top: 14px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   RODAPÉ
   ============================================================ */
.footer {
  background: var(--teal-dark);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.93rem;
}
.footer__inner {
  display: grid;
  gap: 32px;
  padding-block: 56px 40px;
}
@media (min-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}
.footer__desc {
  margin-top: 16px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.footer__links a:hover {
  color: #fff;
}
.footer__bottom {
  padding-bottom: 96px; /* espaço para o botão flutuante no celular */
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer__bottom p {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 640px) {
  .footer__bottom {
    padding-bottom: 24px;
  }
}

/* ---------- Botão flutuante do WhatsApp ---------- */
.wa-float {
  position: fixed;
  z-index: 60;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whats);
  color: #fff;
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.35);
  transition: background-color 0.2s ease;
}
.wa-float .icon {
  width: 28px;
  height: 28px;
}
@media (hover: hover) {
  .wa-float:hover {
    background: var(--whats-deep);
  }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
  }
}
