/* Opening hero: shared animated metal surface, text left and interactive model right. */
.pl-home>.pl-hero {
  max-width: none;
  width: 100%;
  padding: 0;
  min-height: calc(100svh - var(--header-height, 76px));
  display: grid;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 76px);
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 48px var(--layout-gutter);
}

.pl-hero .model-heading {
  display: block;
  min-width: 0;
  margin: 0;
}

.pl-hero .model-kicker {
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .13em;
  color: var(--color-text-muted);
  margin-bottom: 22px;
}

:root body .pl-hero h1 {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--color-text);
  font-size: clamp(36px, 3.55vw, 68px);
  line-height: 1.08;
  letter-spacing: -.045em;
  margin: 0 0 26px;
  max-width: 720px;
  text-wrap: balance;
}

.pl-hero h1 span {
  display: block;
  background: var(--gradient-title);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pl-hero .model-heading p {
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.8;
  max-width: 530px;
  margin: 0 0 28px;
}

.hero-links {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-about-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  padding-block: 12px;
}

.hero-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
  font-size: 11px;
  color: var(--color-text-muted);
}

.hero-categories li::before {
  content: '+';
  margin-right: 7px;
  color: var(--color-hover);
}

.pl-home .pl-hero .model-stage {
  min-width: 0;
  width: 100%;
  overflow: visible;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.pl-hero .model-stage model-viewer {
  height: clamp(520px, 78svh, 840px);
  max-height: none;
  background: transparent;
}

.pl-hero .automotive-art {
  opacity: .65;
}

/* Institutional section keeps only a static texture and a distinct surface tone. */
.pl-about-section {
  background-color: var(--color-bg);
  background-image: var(--texture-dots);
  background-size: 20px 20px;
}

.pl-about-section::before {
  content: none;
}

@media (max-width: 1100px) {
  .hero-inner {
    gap: 24px;
  }

  .pl-hero .model-stage model-viewer {
    height: 580px;
  }
}

@media (max-width: 767px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 40px 28px;
  }

  :root body .pl-hero h1 {
    font-size: clamp(34px, 8vw, 48px);
    max-width: 520px;
    margin-bottom: 20px;
  }

  .pl-hero .model-kicker {
    margin-bottom: 16px;
    font-size: 10px;
  }

  .pl-hero .model-heading p {
    font-size: 15px;
    margin-bottom: 22px;
  }

  .hero-links {
    gap: 16px;
  }

  .hero-links .automotive-cta {
    font-size: 13px;
    padding: 13px 18px;
  }

  .hero-categories {
    margin-top: 22px;
    font-size: 10px;
    gap: 8px 14px;
  }

  .pl-hero .model-stage model-viewer {
    height: 500px;
    max-height: 75svh;
  }
}

@media (forced-colors: active) {
  .pl-hero h1 span {
    -webkit-text-fill-color: currentColor;
    background: none;
  }
}

/* Seção independente: dois banners dividem igualmente toda a linha. */
.pl-home>.hero-banners {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 0 24px;
  box-sizing: border-box;
}

.hero-banners-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: var(--layout-content-width);
  height: 100%;
  min-height: 0;
  margin-inline: auto;
}

.hero-banner-slot {
  display: block;
  min-width: 0;
  aspect-ratio: 3 / 1;
  box-sizing: border-box;
}

/* Mesmo arredondamento dos cards de produto (.pcard). */
.hero-banner-slot {
  border: 0;
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
}

.hero-banner-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

@media (max-width: 767px) {
  .hero-banners-inner {
    gap: 12px;
  }
}

/* As duas seções compartilham a altura visível abaixo do cabeçalho. */
.pl-home {
  --opening-height: calc(100svh - var(--header-height, 76px));
}

.pl-home>.pl-hero {
  height: auto;
  min-height: calc(var(--opening-height)*.7);
}

.pl-hero .hero-inner {
  height: auto;
  min-height: 0;
  padding-block: 0;
  gap: 24px;
}

.pl-hero .model-heading {
  padding-block: 0;
}

.pl-hero .model-stage {
  height: auto;
  min-height: 0;
}

.pl-hero .model-stage model-viewer {
  height: max(300px, calc(var(--opening-height)*.7 - var(--section-spacing)*2));
  max-height: none;
  min-height: 0;
}

:root body .pl-hero h1 {
  font-size: clamp(28px, min(3vw, 5.8svh), 56px);
  margin-bottom: 14px;
}

.pl-hero .model-kicker {
  margin-bottom: 10px;
}

.pl-hero .model-heading p {
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.5;
  margin-bottom: 14px;
}

.pl-hero .hero-categories {
  margin-top: 14px;
}

.pl-home>.hero-banners {
  height: auto;
  min-height: 0;
}

.hero-banners-inner {
  height: auto;
  min-height: 0;
}

.hero-banner-slot {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
}

@media (max-width: 767px) {
  .pl-hero .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 8px;
    padding-inline: var(--layout-gutter);
    padding-block: 0;
  }

  :root body .pl-hero h1 {
    font-size: clamp(21px, 4.8vw, 34px);
    margin-bottom: 10px;
  }

  .pl-hero .model-kicker {
    font-size: 8px;
    letter-spacing: .06em;
    margin-bottom: 8px;
  }

  .pl-hero .model-heading p {
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .pl-hero .hero-links {
    gap: 4px;
  }

  .pl-hero .hero-links .automotive-cta {
    font-size: 10px;
    padding: 10px 12px;
  }

  .pl-hero .hero-about-link {
    font-size: 10px;
    padding-block: 8px;
  }

  .pl-hero .hero-categories {
    font-size: 8px;
    gap: 4px 8px;
    margin-top: 8px;
  }
}

/* O espaçamento pertence à seção, sem duplicação nos contêineres internos. */
.pl-home>section {
  padding-block: var(--section-spacing);
  box-sizing: border-box;
}

.pl-home>.pl-hero,
.pl-home>.hero-banners,
.pl-home>.pl-about-section {
  padding-block: var(--section-spacing);
}

.pl-home>.pl-about-section {
  height: auto;
  min-height: 0;
}

/* ==========================================================================
   Celular (até 767px): texto e peça 3D empilhados, banners em coluna única.
   ========================================================================== */
@media (max-width: 767px) {
  .pl-home>.pl-hero {
    min-height: 0;
  }

  .pl-hero .hero-inner {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-block: 8px 0;
  }

  .pl-hero .model-kicker {
    font-size: 10px;
    letter-spacing: .1em;
    margin-bottom: 10px;
  }

  :root body .pl-hero h1 {
    font-size: clamp(30px, 8.6vw, 40px);
    line-height: 1.08;
    margin-bottom: 12px;
  }

  .pl-hero .model-heading p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: none;
  }

  .pl-hero .hero-links {
    gap: 18px;
  }

  .pl-hero .hero-links .automotive-cta {
    font-size: 14px;
    padding: 13px 20px;
  }

  .pl-hero .hero-about-link {
    font-size: 14px;
    padding-block: 12px;
  }

  .pl-hero .hero-categories {
    font-size: 11px;
    gap: 6px 16px;
    margin-top: 16px;
  }

  .pl-hero .model-stage model-viewer {
    height: clamp(240px, 70vw, 320px);
    min-height: 0;
  }

  .hero-banners-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-banner-slot {
    min-height: 0;
    aspect-ratio: 3 / 1;
  }
}

.hero-banner-slot:focus-visible {
  outline: 3px solid var(--color-text);
  outline-offset: 4px;
}

/* Hover: o mesmo dos cards da seção "Sobre" (.pl-about-card) — sobe 3px, borda e brilho avermelhados.
   A borda vira um anel no box-shadow, porque a imagem ocupa o banner inteiro. */
.hero-banner-slot {
  box-shadow: 0 0 0 1px transparent;
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-banner-slot:hover,
  .hero-banner-slot:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px rgb(var(--gradient-middle-rgb) / .35), 0 12px 28px var(--color-hover-shadow);
  }
}

/* Banners: lado a lado só quando cada um tem largura para o texto ser lido. */
@media (max-width: 1100px) {
  .hero-banners-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Topo da home no computador/tablet: 60% da largura útil para os textos e 40% para a peça 3D. */
@media (min-width: 768px) {
  .pl-hero .hero-inner {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  :root body .pl-hero h1 {
    max-width: none;
  }

  .pl-hero .model-heading p {
    max-width: 620px;
  }
}
