
/* ============================================================
   Mais Proteção — nova home (nova-home.html)
   Tokens herdados de css/style.css; classes prefixadas nh-.
   Mobile first. Sem dependência de style.css.
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--branco);
  overflow-x: hidden;
}

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

a { color: var(--verde-escuro); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--verde); }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--verde-escuro);
}

h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }


/* ---------- Hero ---------- */
.nh-hero {
  position: relative;
  background: linear-gradient(160deg, var(--verde-escuro) 0%, var(--verde-noite) 70%);
  color: var(--branco);
  overflow: hidden;
  isolation: isolate;
}
.nh-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 60vw; max-width: 620px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 171, 172, 0.35), transparent 65%);
  z-index: -1;
}
.nh-hero-inner {
  display: grid;
  gap: 32px;
  padding-block: 40px 0;
}
.nh-hero h1 { color: var(--branco); }
.nh-hero-lead {
  font-size: 1.125rem;
  color: #D7E7E7;
  margin-top: 18px;
  max-width: 56ch;
}
.nh-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.nh-hero-ctas .nh-btn { flex: 1 1 220px; }
.nh-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  font-size: 0.9375rem;
  color: #D7E7E7;
}
.nh-hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.nh-hero-proof svg { width: 18px; height: 18px; color: var(--laranja); flex: none; }

.nh-hero-figure {
  position: relative;
  margin: 0 calc(-1 * var(--gutter)) 0;
  align-self: end;
}
.nh-hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.nh-hero-figure::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 46%; height: 6px;
  background: var(--laranja);
  border-radius: 0 3px 3px 0;
  z-index: 1;
}
.nh-hero-caption {
  position: absolute;
  left: 16px; bottom: 16px;
  padding: 10px 14px;
  background: rgba(31, 70, 71, 0.9);
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.3;
  max-width: 260px;
}
.nh-hero-caption strong { display: block; font-size: 0.9375rem; }
.nh-hero-caption span { color: #D7E7E7; }

@media (prefers-reduced-motion: no-preference) {
  .nh-hero-figure img {
    animation: nh-reveal 0.9s var(--ease-out) both;
    will-change: transform, opacity;
  }
}
@keyframes nh-reveal {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- Seções ---------- */
.nh-section { padding-block: 64px; }
.nh-section-alt { background: var(--fundo); }
.nh-section-head { margin-bottom: 36px; }
.nh-section-head p { color: var(--texto-claro); margin-top: 12px; font-size: 1.0625rem; }

/* ---------- Clientes (marquee) ---------- */
.nh-clients { padding-block: 40px; border-bottom: 1px solid var(--borda); }
.nh-clients h2 { font-size: 1rem; font-weight: 700; color: var(--texto-claro); text-align: center; letter-spacing: 0.02em; margin-bottom: 22px; }
.nh-marquee { overflow: hidden; position: relative; }
.nh-marquee::before, .nh-marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 1;
  pointer-events: none;
}
.nh-marquee::before { left: 0; background: linear-gradient(90deg, var(--branco), transparent); }
.nh-marquee::after { right: 0; background: linear-gradient(270deg, var(--branco), transparent); }
.nh-marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  align-items: center;
}
.nh-marquee-track li { flex: none; }
.nh-marquee-track img {
  width: 150px;
  height: 69px;
  object-fit: contain;
}
@media (prefers-reduced-motion: no-preference) {
  .nh-marquee-track { animation: nh-marquee 55s linear infinite; will-change: transform; }
  .nh-marquee:hover .nh-marquee-track { animation-play-state: paused; }
}
@keyframes nh-marquee {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .nh-marquee::before, .nh-marquee::after { display: none; }
  .nh-marquee-track { width: auto; flex-wrap: wrap; justify-content: center; gap: 24px; }
  .nh-marquee-track li[aria-hidden="true"] { display: none; }
}

/* ---------- Serviços (ledger) ---------- */
.nh-ledger { display: grid; gap: 20px; }
.nh-family {
  display: grid;
  gap: 18px;
  padding: 20px;
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius-lg);
  box-shadow: var(--sombra-leve);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.nh-family:hover { box-shadow: var(--sombra); transform: translateY(-2px); }
.nh-family-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}
.nh-family h3 { font-size: 1.35rem; }
.nh-family > div > p { color: var(--texto-claro); margin-top: 8px; font-size: 1rem; }
.nh-family-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.nh-family-links a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--fundo);
  border: 1px solid var(--borda);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--verde-escuro);
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.nh-family-links a:hover { background: var(--verde); border-color: var(--verde); color: var(--branco); }
.nh-family-links span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--texto-claro);
  border: 1px dashed var(--borda);
}
.nh-services-more { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.nh-services-more p { color: var(--texto-claro); margin: 0; }

/* ---------- Diferenciais ---------- */
.nh-why { display: grid; gap: 32px; }
.nh-why-photo { position: relative; }
.nh-why-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--sombra);
}
.nh-why-photo figcaption {
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--verde-escuro);
}
.nh-why-list { display: grid; gap: 22px; margin-top: 28px; }
.nh-why-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.nh-why-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--verde-escuro);
  color: var(--laranja);
  display: grid; place-items: center;
}
.nh-why-icon svg { width: 24px; height: 24px; }
.nh-why-list h3 { font-size: 1.125rem; margin-bottom: 4px; }
.nh-why-list p { color: var(--texto-claro); font-size: 1rem; }

/* ---------- Engenheira ---------- */
.nh-eng {
  display: grid;
  gap: 28px;
  background: var(--verde-escuro);
  color: var(--branco);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  position: relative;
}
.nh-eng::before {
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 165, 0, 0.18), transparent 65%);
  pointer-events: none;
}
.nh-eng-photo { position: relative; z-index: 1; max-width: 340px; }
.nh-eng-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}
.nh-eng-text { position: relative; z-index: 1; }
.nh-eng h2 { color: var(--branco); }
.nh-eng-name { margin-top: 18px; font-size: 1.25rem; font-weight: 800; }
.nh-eng-role { display: block; color: var(--laranja); font-weight: 700; font-size: 0.9375rem; }
.nh-eng p { color: #D7E7E7; }
.nh-eng blockquote {
  position: relative;
  margin: 24px 0 0;
  padding: 6px 0 0 34px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--branco);
}
.nh-eng blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0; top: -10px;
  font-size: 3.25rem;
  line-height: 1;
  color: var(--laranja);
}
.nh-eng .nh-btn { margin-top: 24px; }

/* ---------- Mosaico de campo ---------- */
.nh-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.nh-mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.nh-mosaic img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.nh-mosaic figure:hover img { transform: scale(1.04); }
.nh-mosaic figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 10px 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--branco);
  background: linear-gradient(to top, rgba(26, 46, 46, 0.85), transparent);
}

/* ---------- Processo ---------- */
.nh-steps {
  display: grid;
  gap: 18px;
  counter-reset: passo;
}
.nh-steps li {
  position: relative;
  padding: 22px 20px 22px 64px;
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
}
.nh-steps li::before {
  counter-increment: passo;
  content: counter(passo);
  position: absolute;
  left: 18px; top: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--laranja);
  color: var(--texto);
  font-weight: 800;
  display: grid; place-items: center;
}
.nh-steps h3 { font-size: 1.125rem; margin-bottom: 6px; }
.nh-steps p { color: var(--texto-claro); font-size: 1rem; }

/* ---------- Onde estamos ---------- */
.nh-where { display: grid; gap: 28px; }
.nh-where-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.nh-where-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.nh-contact-list { display: grid; gap: 14px; margin-top: 20px; }
.nh-contact-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.nh-contact-list svg { width: 22px; height: 22px; color: var(--verde); margin-top: 2px; }
.nh-contact-list a { font-weight: 700; }
.nh-cities { margin-top: 22px; }
.nh-cities h3 { font-size: 1rem; margin-bottom: 8px; }
.nh-cities ul { display: flex; flex-wrap: wrap; gap: 8px; }
.nh-cities li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--branco);
  border: 1px solid var(--borda);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--verde-escuro);
}
.nh-map {
  align-self: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--borda);
  box-shadow: var(--sombra-leve);
}
.nh-map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- Blog ---------- */
.nh-posts { display: grid; gap: 20px; }
.nh-post {
  display: grid;
  gap: 0;
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.nh-post:hover { box-shadow: var(--sombra); transform: translateY(-2px); }
.nh-post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.nh-post-body { padding: 18px 20px 22px; }
.nh-post-meta { font-size: 0.8125rem; color: var(--texto-claro); font-weight: 700; display: flex; gap: 10px; flex-wrap: wrap; }
.nh-post-meta b { color: #7A5200; }
.nh-post h3 { font-size: 1.125rem; margin-top: 8px; }
.nh-post h3 a { text-decoration: none; color: var(--verde-escuro); }
.nh-post h3 a:hover { color: var(--verde); text-decoration: underline; }
.nh-post p { color: var(--texto-claro); font-size: 0.9375rem; margin-top: 8px; }
.nh-blog-more { margin-top: 28px; }

/* ---------- FAQ ---------- */
.nh-faq { display: grid; gap: 10px; max-width: 820px; }
.nh-faq details {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 0 20px;
  transition: box-shadow 0.3s var(--ease-out);
}
.nh-faq details[open] { box-shadow: var(--sombra-leve); border-color: var(--verde-claro); }
.nh-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 0;
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--verde-escuro);
  position: relative;
}
.nh-faq summary::-webkit-details-marker { display: none; }
.nh-faq summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--verde);
  border-bottom: 2px solid var(--verde);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}
.nh-faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.nh-faq details p { padding-bottom: 18px; color: var(--texto-claro); font-size: 1rem; }

/* ---------- Instagram ---------- */
.nh-ig-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.nh-ig-head p { color: var(--texto-claro); margin-top: 6px; }
.nh-ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.nh-ig-grid a { display: block; border-radius: 8px; overflow: hidden; position: relative; }
.nh-ig-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.nh-ig-grid a:hover img { transform: scale(1.04); }

/* ---------- CTA final ---------- */
.nh-cta {
  background: linear-gradient(160deg, var(--verde-escuro), var(--verde-noite));
  color: var(--branco);
  padding-block: 72px;
  text-align: center;
}
.nh-cta h2 { color: var(--branco); margin-inline: auto; }
.nh-cta h2 em { font-style: normal; color: var(--laranja); }
.nh-cta p { color: #D7E7E7; margin: 16px auto 28px; max-width: 54ch; font-size: 1.125rem; }
.nh-cta .nh-btn { min-width: 280px; }
.nh-cta small { display: block; margin-top: 14px; color: #B9D3D3; font-size: 0.875rem; }

/* ============================================================
   Breakpoints
   ============================================================ */
@media (min-width: 640px) {
  .nh-hero-inner { padding-block: 56px 0; }
  .nh-hero-figure { margin-inline: 0; }
  .nh-hero-figure img { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); }
  .nh-hero-figure { max-width: 560px; margin-inline: auto; }
  .nh-hero-figure::before { bottom: -6px; }
  .nh-ledger { grid-template-columns: repeat(2, 1fr); }
  .nh-mosaic { grid-template-columns: repeat(4, 1fr); }
  .nh-steps { grid-template-columns: repeat(2, 1fr); }
  .nh-posts { grid-template-columns: repeat(3, 1fr); }
  .nh-ig-grid { grid-template-columns: repeat(6, 1fr); }
  .nh-eng { grid-template-columns: 300px 1fr; align-items: center; padding: 36px; }
  .nh-where { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .nh-section { padding-block: 80px; }
}

@media (min-width: 960px) {
  .nh-nav a { padding: 8px 12px; border: 0; border-radius: 8px; }
  .nh-nav a:hover { background: var(--fundo); }

  .nh-hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: end;
    padding-block: 72px 0;
  }
  .nh-hero-text { padding-bottom: 72px; }
  .nh-hero-ctas .nh-btn { flex: 0 1 auto; }
  .nh-hero-figure { max-width: 520px; justify-self: end; width: 100%; }
  .nh-hero-figure img { aspect-ratio: 4 / 5; max-height: 640px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .nh-hero-figure::before { bottom: 0; }

  .nh-why { grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 56px; }
  .nh-steps { grid-template-columns: repeat(4, 1fr); }
  .nh-eng { grid-template-columns: 340px 1fr; gap: 48px; padding: 48px; }
  .nh-section { padding-block: 96px; }
  .nh-map iframe { min-height: 100%; }
}
