/* ==========================================================================
   HOME — estilos próprios da página inicial.
   Usa a base de ppf.css (body.ppf-page) e acrescenta só o que é da home.
   ========================================================================== */

/* ---------- Serviços em destaque (PPF e Car Wrap) ---------- */
.hm-features { margin-top: 30px; display: grid; gap: 18px; }

.hm-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  scroll-margin-top: calc(var(--nav-height) + 14px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.hm-feature:hover { color: var(--text-primary); border-color: rgba(227, 30, 36, 0.55); }

.hm-stage {
  position: relative;
  padding: 44px 10px 14px;
  background: radial-gradient(ellipse at 50% 62%, rgba(227, 30, 36, 0.14) 0%, rgba(227, 30, 36, 0) 66%), #0c0c0c;
  overflow: hidden;
}
.hm-feature.wrap .hm-stage {
  background: radial-gradient(ellipse at 50% 62%, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 66%), #0c0c0c;
}
.hm-car { position: relative; }
.hm-car img { width: 100%; height: auto; display: block; }

/* PPF: a mesma película da página PPF, alternando entre os níveis de cobertura */
.hm-cov { margin: 0; display: block; }
.hm-stage .hm-cov:not([data-level=""]) .sheen { animation: ppf-sheen 2.8s linear 0.9s 1 both; }

/* Car wrap: só a carroceria muda de cor (as pinças de freio continuam vermelhas) */
.hm-paint {
  position: absolute;
  inset: 0;
  background: url('assets/images/ppf-superdeportivo.webp') center / 100% 100% no-repeat;
  -webkit-mask: url('assets/images/ppf-superdeportivo-carroceria.webp') center / 100% 100% no-repeat;
  mask: url('assets/images/ppf-superdeportivo-carroceria.webp') center / 100% 100% no-repeat;
  opacity: 0;
  pointer-events: none;
}
.hm-paint.on { opacity: 1; }
.hm-paint.go { opacity: 1; animation: hm-wrap-sweep 1.5s cubic-bezier(0.45, 0, 0.2, 1) both; }
@keyframes hm-wrap-sweep {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
.hm-paint.c-nardo { filter: grayscale(1) brightness(2.15) contrast(0.6); }
.hm-paint.c-miami { filter: hue-rotate(188deg) saturate(1.15) brightness(1.55); }
.hm-paint.c-negro { filter: grayscale(1) brightness(0.5) contrast(0.75); }
.hm-paint.c-verde { filter: hue-rotate(128deg) saturate(0.75) brightness(0.8); }
.hm-paint.c-amarillo { filter: hue-rotate(66deg) saturate(1.7) brightness(2.3); }
.hm-paint.c-naranja { filter: hue-rotate(26deg) saturate(1.3) brightness(1.35); }
.hm-paint.c-morado { filter: hue-rotate(282deg) saturate(0.9) brightness(0.95); }

.hm-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.hm-feature.ppf .hm-pill { background: var(--accent); border-color: var(--accent); }

.hm-feature-body { padding: 22px 18px 24px; }
.hm-feature-body h3 { font-size: clamp(1.35rem, 5vw, 1.9rem); font-weight: 900; line-height: 1.15; margin-bottom: 10px; }
.hm-feature-body p { color: var(--text-secondary); font-size: 0.96rem; line-height: 1.65; }
.hm-points { margin: 16px 0 20px; display: grid; gap: 8px; }
.hm-points li { position: relative; padding-left: 22px; font-size: 0.9rem; line-height: 1.5; color: #dcdcdc; }
.hm-points li::before { content: ''; position: absolute; left: 0; top: 9px; width: 11px; height: 2px; background: var(--accent); }

/* ---------- Outros serviços ---------- */
.hm-more-title { margin: 44px 0 16px; font-size: 1.1rem; font-weight: 700; }
.hm-svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.hm-svc a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  transition: border-color 0.25s ease;
}
.hm-svc a:hover { color: var(--text-primary); border-color: rgba(227, 30, 36, 0.55); }
.hm-svc img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; }
.hm-svc div { padding: 12px 12px 14px; }
.hm-svc h4 { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; line-height: 1.25; margin-bottom: 4px; }
.hm-svc p { font-size: 0.82rem; line-height: 1.5; color: var(--text-secondary); }
.hm-also { margin-top: 16px; font-size: 0.9rem; color: var(--text-secondary); }
.hm-also a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Materiais ---------- */
.hm-brands { margin-top: 30px; padding: 22px 18px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--glass-border); scroll-margin-top: calc(var(--nav-height) + 14px); }
.hm-brands h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.hm-brands dl { display: grid; gap: 14px; }
.hm-brands dt { font-size: 0.7rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.hm-brands dd { margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: 0.98rem; line-height: 1.5; color: var(--text-primary); }
.hm-brands p { margin-top: 16px; font-size: 0.86rem; line-height: 1.55; color: var(--text-secondary); }

.home .ppf-map { scroll-margin-top: var(--nav-height); }
.home .ppf-chips span { min-height: 48px; }

@media (min-width: 700px) {
  .hm-svc { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}

@media (min-width: 960px) {
  .hm-features { gap: 26px; margin-top: 44px; }
  .hm-feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
  .hm-feature.wrap .hm-stage { order: 2; }
  .hm-stage { padding: 64px 28px 40px; height: 100%; display: flex; align-items: center; }
  .hm-car { width: 100%; }
  .hm-feature-body { padding: 40px 44px; }
  .hm-feature:hover { transform: translateY(-3px); }
  .hm-brands { margin-top: 0; padding: 34px; }
  .hm-svc h4 { font-size: 1.02rem; }
  .hm-svc p { font-size: 0.88rem; }
  .hm-svc div { padding: 16px 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-paint.go { animation: none; }
  .hm-feature { transition: none; }
}

/* ---------- Topo ---------- */
.home .ppf-hero .ppf-eyebrow { color: #fff; }
@media (min-width: 960px) {
  .home .ppf-hero h1 { font-size: clamp(2.5rem, 4.3vw, 3.7rem); }
  .home .ppf-hero .ppf-eyebrow { color: var(--accent); }
}

.hm-feature-btns { display: grid; gap: 10px; }
@media (min-width: 700px) { .hm-feature-btns { grid-template-columns: auto auto; justify-content: start; } }
