/* ═══════════════════════════════════════════════════════════
   SMART BOX — Página principal  |  estilos da página
   A base (navbar, rodapé, intro, reveal, CTA verde, variáveis)
   vem do style.css compartilhado, como nas páginas novas
   (quem-somos, produtos, catálogo). Prefixo "hm-" = home.
   ═══════════════════════════════════════════════════════════ */

:root { --hm-overlap: 210px; } /* quanto a máquina do hero "invade" a seção seguinte */

/* ═══ BASE ═══════════════════════════════════════════════════ */
.hm-label { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--green); }
.hm-title {
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: clamp(28px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -.5px; color: var(--dark);
}
.hm-head {
  max-width: 760px; margin: 0 auto 56px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}

.hm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15px;
  padding: 15px 28px; border-radius: 300px; text-decoration: none; border: 0; cursor: pointer;
  transition: background .2s, color .2s, box-shadow .25s, transform .2s;
}
.hm-btn svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; transition: transform .25s; }
.hm-btn--green { background: var(--green); color: var(--dark); }
.hm-btn--green:hover { background: var(--green-dark); box-shadow: 0 0 24px rgba(188,207,15,.4); transform: translateY(-2px); }
.hm-btn:hover svg { transform: translateX(3px); }

/* ═══ HERO ═══════════════════════════════════════════════════ */
.hm-hero {
  position: relative; z-index: 2;
  display: flow-root; /* impede a margem negativa do palco de "vazar" para fora do hero */
  background: var(--dark); color: var(--white);
  padding: 80px 56px 0; text-align: center;
}
/* brilho suave atrás da máquina (fica preso dentro do hero) */
.hm-hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hm-hero__bg::before {
  content: ''; position: absolute; left: 50%; top: 66%;
  width: min(1000px, 160vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(188,207,15,.16) 0%, rgba(188,207,15,0) 62%);
}
.hm-hero__title {
  position: relative;
  font-weight: 700; font-size: clamp(40px, 5.6vw, 82px); line-height: 1.04;
  text-transform: uppercase; letter-spacing: -.5px;
}
.hm-hero__title span { display: block; }
.hm-hero__title em { font-style: normal; color: var(--green); }

.hm-hero__stage {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 32px;
  max-width: 1240px; margin: 24px auto calc(-1 * var(--hm-overlap));
}
.hm-hero__machine { width: clamp(340px, 35vw, 520px); }
.hm-hero__machine img { width: 100%; height: auto; }

/* as 4 frases da V1 viram tags ao redor da máquina */
.hm-hero__tags {
  list-style: none; align-self: start;
  display: flex; flex-direction: column; gap: 56px;
  padding-top: clamp(48px, 9vw, 150px);
}
.hm-hero__tags--left  { align-items: flex-end; }
.hm-hero__tags--right { align-items: flex-start; }
.hm-hero__tags--left  .hm-tag:nth-child(2) { margin-right: 40px; }
.hm-hero__tags--right .hm-tag:nth-child(1) { margin-left: 40px; }

.hm-tag {
  display: inline-flex; align-items: center; gap: 10px;
  max-width: 290px; padding: 12px 20px 12px 12px; border-radius: 100px;
  background: var(--white); color: var(--dark); text-align: left;
  font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700; line-height: 1.3;
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
}
.hm-tag__check {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.hm-tag__check svg { width: 15px; height: 15px; fill: var(--dark); }

/* ═══ FUNCIONALIDADES ════════════════════════════════════════ */
.hm-features {
  position: relative; z-index: 1; background: var(--gray-bg);
  padding: calc(var(--hm-overlap) + 96px) 56px 120px;
}
.hm-features__grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.hm-features__grid > div { display: flex; }
.hm-feature {
  display: flex; flex-direction: column; width: 100%;
  background: var(--white); border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .35s, transform .35s;
}
.hm-feature:hover { transform: translateY(-6px); box-shadow: 0 18px 48px rgba(0,0,0,.08), 0 0 0 2px rgba(188,207,15,.55); }
.hm-feature__media { aspect-ratio: 4 / 3.3; overflow: hidden; background: #ddd; }
.hm-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.hm-feature:hover .hm-feature__media img { transform: scale(1.05); }
.hm-feature__body { position: relative; flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 48px 26px 32px; }
.hm-feature__icon {
  position: absolute; top: -32px; left: 24px; width: 64px; height: 64px;
  border-radius: 18px; overflow: hidden; box-shadow: 0 10px 24px rgba(0,0,0,.2);
}
.hm-feature__icon img { width: 100%; height: 100%; object-fit: cover; }
.hm-feature__title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 20px; line-height: 1.2; color: var(--dark); }
.hm-feature__text { font-size: 15px; line-height: 1.7; color: #555; }
.hm-feature__body { transition: background .35s; }
.hm-feature:hover .hm-feature__body { background: var(--green); }
.hm-feature__text { transition: color .35s; }
.hm-feature:hover .hm-feature__text { color: var(--dark); }

/* ═══ QUEM SOMOS ═════════════════════════════════════════════ */
.hm-about { background: var(--white); padding: 120px 56px; overflow: clip; }
.hm-about__grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 104px); align-items: center;
}
.hm-about__media { position: relative; margin: 0 22px 22px 0; }
/* moldura verde deslocada, com a abertura do lado direito como no logo */
.hm-about__frame {
  position: absolute; inset: 0; translate: 22px 22px;
  border: 2px solid var(--green); border-radius: 32px; pointer-events: none;
}
.hm-about__frame::after { content: ''; position: absolute; right: -4px; top: 56%; width: 6px; height: 18%; background: var(--white); }
.hm-about__img {
  position: relative; overflow: hidden; aspect-ratio: 1420 / 1322; border-radius: 32px;
  background: #e9e9e4; box-shadow: 0 2px 6px rgba(29,29,27,.06), 0 28px 56px rgba(29,29,27,.14);
}
.hm-about__img img { width: 100%; height: 100%; object-fit: cover; object-position: 35% center; }
.hm-about__badge {
  position: absolute; left: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px);
  display: flex; align-items: center; gap: 12px;
  padding: 8px 18px 8px 8px; border-radius: 100px;
  background: rgba(29,29,27,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
  font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--white);
}
.hm-about__badge-icon {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--dark);
}
.hm-about__badge-icon svg { width: 20px; height: 20px; }
.hm-about__stamp {
  position: absolute; top: -22px; right: -22px; z-index: 2;
  width: clamp(76px, 8vw, 104px); padding: clamp(12px, 1.4vw, 16px);
  border-radius: 22px; background: var(--white); box-shadow: 0 16px 40px rgba(0,0,0,.14);
}
.hm-about__stamp img { width: 100%; height: auto; }
.hm-about__content { display: flex; flex-direction: column; align-items: flex-start; max-width: 560px; }
.hm-about__title {
  margin-top: 16px;
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: clamp(30px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -.5px; color: var(--dark);
}
.hm-about__lead { margin-top: 28px; font-size: clamp(18px, 1.45vw, 21px); font-weight: 600; line-height: 1.5; color: var(--dark); }
.hm-about__text { margin-top: 14px; font-size: 17px; line-height: 1.75; color: #555; }
.hm-about .hm-btn { margin-top: 36px; }

/* ═══ PRODUTOS ═══════════════════════════════════════════════ */
.hm-products { background: var(--gray-bg); padding: 120px 56px; overflow: clip; }
.hm-products__grid {
  list-style: none; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.hm-product {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  height: clamp(480px, 44vw, 580px); padding: 32px; border-radius: 26px;
  background: #2a2a28; color: var(--white); text-decoration: none;
  transition: transform .35s, box-shadow .35s;
}
.hm-product img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hm-product::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(29,29,27,0) 28%, rgba(29,29,27,.62) 56%, rgba(29,29,27,.94) 100%);
}
.hm-product:hover { transform: translateY(-6px); box-shadow: 0 0 50px rgba(188,207,15,.25), 0 20px 40px rgba(0,0,0,.2); }
.hm-product__arrow {
  position: absolute; top: 22px; right: 22px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-45deg); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.hm-product__arrow svg { width: 22px; height: 22px; fill: currentColor; }
.hm-product:hover .hm-product__arrow { transform: rotate(0deg); }
.hm-product__title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 24px; line-height: 1.25; }
.hm-product__text { margin-top: 10px; font-family: 'Montserrat', sans-serif; font-size: 14px; line-height: 1.65; opacity: .88; }

/* ═══ INDIQUE E GANHE ════════════════════════════════════════ */
.hm-indique { position: relative; isolation: isolate; overflow: clip; background: var(--dark); color: var(--white); padding: 120px 56px; }
.hm-indique__bg { position: absolute; inset: 0; z-index: -1; display: block; }
.hm-indique__bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hm-indique__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29,29,27,.9) 0%, rgba(29,29,27,.55) 42%, rgba(29,29,27,0) 72%); }
.hm-indique__inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hm-indique__title {
  max-width: 11em;
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: clamp(30px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -.5px;
}
.hm-indique__title em { font-style: normal; color: var(--green); }
.hm-indique__text { max-width: 31em; font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.78); }
.hm-indique__perks { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 10px; }
.hm-perk {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 10px; border-radius: 100px;
  background: var(--white); color: var(--dark);
  font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700; line-height: 1.3;
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
}
.hm-perk__check { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; }
.hm-perk__check svg { width: 15px; height: 15px; fill: var(--dark); }
.hm-indique .hm-btn { margin-top: 4px; }

/* ═══ RESPONSIVO ═════════════════════════════════════════════ */
@media (max-width: 1280px) {
  :root { --hm-overlap: 170px; }
  .hm-hero__machine { width: clamp(320px, 34vw, 440px); }
  .hm-tag { font-size: 13px; }
  .hm-hero__tags--left  .hm-tag:nth-child(2) { margin-right: 16px; }
  .hm-hero__tags--right .hm-tag:nth-child(1) { margin-left: 16px; }
}

@media (max-width: 1100px) {
  .hm-hero, .hm-features, .hm-about, .hm-products, .hm-indique { padding-left: 32px; padding-right: 32px; }
  .hm-hero__stage { gap: 20px; }
  .hm-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
  .hm-feature__media { aspect-ratio: 16 / 10; }
}

/* produtos viram carrossel com scroll-snap (igual aos pilares da quem-somos) */
@media (max-width: 1024px) {
  .hm-about, .hm-products, .hm-indique { padding-top: 88px; padding-bottom: 88px; }
  .hm-products__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 360px);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -32px; padding: 0 32px 8px; scroll-padding-inline: 32px;
  }
  .hm-products__grid::-webkit-scrollbar { display: none; }
  .hm-products__grid > li { scroll-snap-align: start; }
  .hm-product { height: 500px; padding: 26px; }
  .hm-product:hover { transform: none; }
}

/* hero empilhado: máquina em cima, tags numa grade 2×2 abaixo */
@media (max-width: 900px) {
  :root { --hm-overlap: 0px; }
  .hm-hero { padding-top: 56px; padding-bottom: 64px; }
  .hm-hero__stage { grid-template-columns: 1fr 1fr; gap: 10px; max-width: 560px; margin-top: 28px; margin-bottom: 0; }
  .hm-hero__machine { grid-column: 1 / -1; order: -1; justify-self: center; width: min(320px, 72vw); margin-bottom: 18px; }
  .hm-hero__tags { display: contents; } /* as 4 tags entram direto na grade e as linhas ficam com a mesma altura */
  .hm-hero__tags--left  .hm-tag:nth-child(2),
  .hm-hero__tags--right .hm-tag:nth-child(1) { margin: 0; }
  .hm-tag { max-width: none; align-items: flex-start; gap: 8px; border-radius: 16px; padding: 12px; font-size: 12.5px; }
  .hm-tag__check { width: 20px; height: 20px; }
  .hm-tag__check svg { width: 13px; height: 13px; }
  .hm-features { padding-top: 88px; padding-bottom: 88px; }

  .hm-about__grid { grid-template-columns: 1fr; gap: 56px; }
  .hm-about__media { max-width: 620px; margin: 0 14px 14px 0; }
  .hm-about__frame { translate: 14px 14px; border-radius: 26px; }
  .hm-about__img { border-radius: 26px; }
  .hm-about__stamp { top: -16px; right: -8px; border-radius: 18px; }
  .hm-about__content { max-width: 640px; }

}

@media (max-width: 768px) {
  .hm-hero, .hm-features, .hm-about, .hm-products, .hm-indique { padding-left: 24px; padding-right: 24px; }
  .hm-hero { padding-top: 44px; }
  .hm-hero__title { font-size: clamp(28px, 8.2vw, 52px); }
  .hm-features, .hm-about, .hm-products, .hm-indique { padding-top: 72px; padding-bottom: 72px; }
  .hm-indique__text { font-size: 16px; }
  .hm-indique .hm-btn { width: 100%; }
  .hm-head { margin-bottom: 40px; }
  .hm-products__grid { grid-auto-columns: min(84%, 340px); margin: 0 -24px; padding: 0 24px 8px; scroll-padding-inline: 24px; }
  .hm-product { height: 460px; padding: 22px; }
  .hm-product__title { font-size: 20px; }
  .hm-product__title br { display: none; }
  .hm-product__text { font-size: 13.5px; }
  .hm-about__badge { font-size: 13px; padding-right: 14px; }
  .hm-about__badge-icon { width: 34px; height: 34px; }
  .hm-about .hm-btn { width: 100%; }
}

/* funcionalidades viram carrossel no celular */
@media (max-width: 640px) {
  .hm-features__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(80%, 320px);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -24px; padding: 0 24px 12px; scroll-padding-inline: 24px; max-width: none;
  }
  .hm-features__grid::-webkit-scrollbar { display: none; }
  .hm-features__grid > div { scroll-snap-align: start; }
  .hm-feature:hover { transform: none; }
  .hm-feature__media { aspect-ratio: 4 / 3.2; }
}


@media (prefers-reduced-motion: reduce) {
  .hm-feature, .hm-feature__media img, .hm-product, .hm-product__arrow { transition: none; }
}
