/* ============ Reset & base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

:root {
  --green: #0b6936;
  --green-dark: #073d20;
  --green-light: #eaf3ee;
  --text: #17201b;
  --text-muted: #5c6a63;
  --bg-grey: #f4f5f3;
  --border: #e1e6e2;
  --radius: 10px;
  --container: 1180px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.i { display: inline-block; width: 1em; height: 1em; }

/* ============ Typography helpers ============ */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  font-size: .85rem;
  color: var(--green);
  margin-bottom: .75rem;
}
.eyebrow::before {
  content: '';
  width: 1.6rem;
  height: 3px;
  background: var(--green);
  display: inline-block;
  border-radius: 2px;
}
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-title span { color: var(--green); }
.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.6;
}
.section { padding: 3.5rem 0; }
.section--tight { padding: 2.5rem 0; }
.section--grey { background: var(--bg-grey); }
.section--dark {
  background: var(--green-dark);
  color: #fff;
}
.section--dark .section-lead { color: rgba(255,255,255,.78); }
.section-head { margin-bottom: 2.25rem; }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .section-lead { margin: 0 auto; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--green);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn--outline { background: transparent; color: var(--green); }
.btn--outline:hover { background: var(--green); color: #fff; }
.btn--white { background: #fff; color: var(--green); border-color: #fff; }
.btn--white:hover { background: transparent; color: #fff; }
.btn .i { width: 1.1em; height: 1.1em; }

/* ============ Header / Nav ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: .7rem 0;
}
.nav-logo {
  position: relative;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  transition: transform .2s ease, padding .2s ease, background .2s ease, box-shadow .2s ease, border-radius .2s ease;
}
.nav-logo img {
  height: 56px;
  width: auto;
  transition: height .2s ease;
}
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.65rem;
  align-items: center;
}
.nav-menu a {
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--green); }
.nav-call {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  font-size: .9rem;
  white-space: nowrap;
}
.nav-call .i { color: var(--green); width: 1.2em; height: 1.2em; }
.nav-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
}
.nav-wa .i { width: 1.3em; height: 1.3em; }
.nav-burger {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: none;
  cursor: pointer;
}
.nav-burger .i { width: 1.4em; height: 1.4em; }

@media (min-width: 961px) {
  .site-header.is-at-top .nav {
    padding-left: 20rem;
  }
  .site-header.is-at-top .nav-logo {
    position: absolute;
    left: 0;
    top: 0;
    background: #fff;
    padding: 1rem 2rem 1.15rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 28px rgba(7,61,32,.12);
  }
  .site-header.is-at-top .nav-logo img {
    height: 70px;
  }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  z-index: 0; /* cria contexto de empilhamento próprio: contém o vídeo/overlay (ver .pillars) */
  overflow: hidden;
  background: linear-gradient(100deg, rgba(7,61,32,.94) 0%, rgba(7,61,32,.86) 45%, rgba(7,61,32,.66) 100%), url('/images/tecnologia.jpg') center/cover no-repeat;
  color: #fff;
  padding: 6.5rem 0 4.5rem;
  min-height: 78vh;
  display: flex;
  align-items: center;
}
.hero--small { min-height: 40vh; padding: 5.5rem 0 3.5rem; }
.hero--empresa {
  background: linear-gradient(100deg, rgba(7,61,32,.94) 0%, rgba(7,61,32,.86) 45%, rgba(7,61,32,.66) 100%), url('/images/bg-fundo.jpg') center/cover no-repeat;
}
.hero--produtos {
  background: linear-gradient(100deg, rgba(7,61,32,.94) 0%, rgba(7,61,32,.86) 45%, rgba(7,61,32,.66) 100%), url('/images/bg-fundo2.jpg') center/cover no-repeat;
}
.hero--contato {
  background: linear-gradient(100deg, rgba(7,61,32,.94) 0%, rgba(7,61,32,.86) 45%, rgba(7,61,32,.66) 100%), url('/images/bg-fundo2.jpg') center/cover no-repeat;
}
.hero-inner { max-width: 620px; position: relative; z-index: 2; }
.hero > .container { position: relative; z-index: 2; }

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  cursor: pointer;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
  background: linear-gradient(100deg, rgba(7,61,32,.92) 0%, rgba(7,61,32,.82) 45%, rgba(7,61,32,.6) 100%);
}

.hero-sound-btn {
  position: absolute;
  right: 1.25rem;
  top: 1.5rem;
  z-index: 3;
  pointer-events: none; /* apenas indica a ação: o clique é tratado por todo o vídeo */
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(7,61,32,.55);
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  backdrop-filter: blur(2px);
  padding: .6rem 1rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.hero-sound-btn:hover { background: rgba(7,61,32,.85); }
.hero-sound-btn .i { width: 1.1em; height: 1.1em; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
  opacity: .85;
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.88);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============ Pillars / cards ============ */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 5;
  margin-top: -4.5rem;
}
.pillar {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 12px 30px rgba(7,61,32,.12);
}
.pillar .i {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--green);
  margin-bottom: .9rem;
}
.pillar h3 {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: .5rem;
}
.pillar p { color: var(--text-muted); font-size: .9rem; line-height: 1.5; }

/* ============ About split ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split img { border-radius: var(--radius); }
.split-text ul { list-style: none; margin-top: 1.25rem; }
.split-text ul li {
  display: flex;
  gap: .6rem;
  padding: .45rem 0;
  color: var(--text);
  font-weight: 500;
}
.split-text ul li .i { color: var(--green); width: 1.3em; height: 1.3em; flex-shrink: 0; margin-top: .1em; }
.quote {
  border-left: 3px solid var(--green);
  padding: .25rem 0 .25rem 1.25rem;
  font-style: italic;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 1.5rem;
}
.quote cite { display: block; margin-top: .6rem; font-style: normal; font-weight: 700; font-size: .85rem; color: var(--text-muted); }

/* ============ Product / application cards ============ */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.grid-cards.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cards.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  min-width: 0;
  transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 14px 30px rgba(7,61,32,.1); transform: translateY(-3px); }
.card .i {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--green);
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; }
.card p { color: var(--text-muted); font-size: .92rem; line-height: 1.55; }

/* ============ Product 3D cards ============ */
.product-card { display: flex; flex-direction: column; }
.product-card .p3d {
  height: 190px;
  margin: -0.5rem -0.5rem 0.9rem;
  border-radius: 8px;
  background: radial-gradient(ellipse at 50% 62%, #eef1ee 0%, var(--bg-grey) 68%);
}
.product-card h3 { font-size: 1.05rem; }
.product-specs {
  color: var(--green);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .02em;
  margin-bottom: .55rem;
}
.product-card p { margin-bottom: 1.1rem; }
.product-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
  margin-top: 2rem;
}

/* ============ Quantity stepper ============ */
.qty {
  margin-top: auto; /* empurra o seletor para a base do card */
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  min-width: 0;
}
.qty-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .5rem;
  overflow-wrap: anywhere;
}
.qty-stepper {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 2.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.qty-btn {
  flex: 0 0 2.8rem;
  width: 2.8rem;
  border: none;
  background: var(--bg-grey);
  color: var(--green);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background .12s;
}
.qty-btn:hover { background: var(--green-light); }
.qty-input {
  flex: 1;
  min-width: 0;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: #fff;
}
.qty-input:focus { outline: 2px solid var(--green-light); outline-offset: -2px; }
/* Remove as setinhas nativas do input number */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input[type=number] { -moz-appearance: textfield; }

/* ============ Quote bar (cotação) ============ */
.quote-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 -6px 24px rgba(0,0,0,.22);
  animation: quoteBarIn .25s ease;
}
@keyframes quoteBarIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
.quote-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.25rem;
  flex-wrap: wrap;
}
.quote-bar-info { display: flex; flex-direction: column; line-height: 1.25; }
.quote-bar-info strong { font-size: 1.05rem; }
.quote-bar-info span { font-size: .82rem; color: rgba(255,255,255,.7); }
.quote-bar-actions { display: flex; align-items: center; gap: .75rem; }
.quote-clear {
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: .5rem;
}
.quote-clear:hover { color: #fff; }
.btn--wa { background: #25a55a; border-color: #25a55a; }
.btn--wa:hover { background: #1f8f4c; border-color: #1f8f4c; }
.btn--wa .i { width: 1.2em; height: 1.2em; }
body.has-quote-bar { padding-bottom: 5.5rem; }

/* ============ Group strip ============ */
.group-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.group-strip .section-lead { margin: 0; }
.group-logos { display: flex; align-items: center; gap: 2.5rem; }
.group-logos img { height: 38px; width: auto; opacity: .92; }

/* ============ Contact ============ */
.contact-list { list-style: none; display: grid; gap: 1.25rem; }
.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.contact-list .i { width: 1.6rem; height: 1.6rem; flex-shrink: 0; margin-top: .1rem; }
.contact-list .label { font-weight: 700; margin-bottom: .2rem; }
.contact-list .value { color: rgba(255,255,255,.8); font-size: .92rem; }

.contact-form { display: grid; gap: 1rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: .95rem;
  background: #fff;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; display: block; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ============ Footer ============ */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,.85); padding: 3rem 0 1.5rem; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer-logo img { height: 42px; margin-bottom: 1rem; }
.footer-top p { color: rgba(255,255,255,.65); font-size: .9rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .65rem; }
.footer-col a { text-decoration: none; color: rgba(255,255,255,.75); font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  flex-wrap: wrap;
  gap: .5rem;
}

/* ============ Mobile menu ============ */
@media (max-width: 960px) {
  .nav-logo img { height: 48px; }
  .site-header.is-at-top .nav-logo {
    position: absolute;
    left: 0;
    top: 0;
    background: #fff;
    padding: .75rem 1.1rem .9rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 22px rgba(7,61,32,.12);
  }
  .site-header.is-at-top .nav-logo img { height: 58px; }
  .site-header.is-at-top .nav-actions {
    margin-left: auto;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    transition: max-height .25s ease;
  }
  .nav-menu.open { max-height: 400px; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 1rem 1.25rem; width: 100%; border-top: 1px solid var(--border); }
  .nav-call { display: none; }
  .nav-burger { display: flex; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -3rem; }
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cards.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split .split-image { order: -1; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: 2.1rem; }
  .section-title { font-size: 1.6rem; }
}

@media (max-width: 600px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cards, .grid-cards.grid-3, .grid-cards.grid-2 { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 72vh; padding: 4rem 0 6rem; align-items: center; }
  .hero--small { min-height: auto; padding: 3rem 0; }
  .hero h1 { font-size: 1.8rem; }
  .hero-actions { margin-top: .5rem; }
  .group-strip { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-sound-btn { right: .75rem; top: 1rem; padding: .55rem .7rem; font-size: 0; gap: .25rem; }
  .hero-sound-btn .i { width: 1.2em; height: 1.2em; }
  .quote-bar-inner { gap: .6rem; padding: .75rem 1rem; }
  .quote-bar-info { flex: 1; }
  .quote-bar-actions { flex-shrink: 0; }
  .quote-clear { padding: .5rem .25rem; }
  body.has-quote-bar { padding-bottom: 4.75rem; }
}
