/* Full-width metal surface with a centered, readable content layer. */
.pl-home:has(.automotive-section) {
  max-width: none;
  padding-inline: 0;
}

.pl-home>.model-section {
  max-width: var(--layout-content-max);
  margin-inline: auto;
  padding-inline: var(--layout-gutter);
}

.automotive-section {
  --metal-base: #e8eaed;
  --metal-line: rgb(56 64 74 / .26);
  --metal-shine: rgb(255 255 255 / .8);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 660px;
  display: grid;
  place-items: center;
  border-block: 1px solid var(--color-border);
  background: var(--metal-base);
}

[data-theme=dark] .automotive-section {
  --metal-base: #0c0d0f;
  --metal-line: rgb(207 214 225 / .26);
  --metal-shine: rgb(211 219 230 / .025);
}

.automotive-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgb(100 110 125 / .045) 2px 3px), linear-gradient(125deg, transparent 10%, var(--metal-shine) 45%, transparent 70%);
}

.automotive-art {
  position: absolute;
  inset: -50px;
  z-index: -1;
  pointer-events: none;
  transform: translate3d(var(--metal-x, 0px), var(--metal-y, 0px), 0);
  transition: transform .7s cubic-bezier(.2, .65, .3, 1);
}

.automotive-reflection {
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 35%, var(--metal-shine) 50%, transparent 65%);
  animation: metal-sweep 18s ease-in-out infinite alternate;
}

.automotive-ring {
  position: absolute;
  width: clamp(230px, 30vw, 470px);
  aspect-ratio: 1;
  border: 1px solid var(--metal-line);
  border-radius: 50%;
  box-shadow: inset 0 0 0 12px rgb(140 150 165 / .04), 0 0 0 28px rgb(140 150 165 / .025);
  animation: metal-turn 90s linear infinite;
}

.automotive-ring::before {
  content: '';
  position: absolute;
  inset: 22px;
  border: 2px dashed var(--metal-line);
  border-radius: 50%;
}

.automotive-ring::after {
  content: '';
  position: absolute;
  inset: 34%;
  border: 1px solid var(--metal-line);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgb(140 150 165 / .04);
}

.automotive-ring--left {
  left: -3%;
  top: 13%;
}

.automotive-ring--right {
  right: -1%;
  bottom: 0;
  width: clamp(180px, 24vw, 350px);
  animation-direction: reverse;
}

.automotive-line {
  position: absolute;
  width: 35%;
  height: 1px;
  left: 3%;
  bottom: 22%;
  background: linear-gradient(90deg, transparent, rgb(var(--gradient-start-rgb)), rgb(var(--gradient-middle-rgb)), rgb(var(--gradient-end-rgb)), transparent);
  transform: rotate(-28deg);
  opacity: .45;
}

.automotive-line--right {
  left: auto;
  right: 4%;
  top: 21%;
  bottom: auto;
  transform: rotate(-28deg);
}

.automotive-kicker {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--color-border);
  border-radius: 99px;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  background: var(--color-surface);
}

:root body .automotive-title {
  margin: 28px auto 20px;
  max-width: 820px;
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 1.12;
  letter-spacing: -.045em;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--color-text);
  text-wrap: balance;
}

.automotive-title span {
  display: block;
  background: var(--gradient-title);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.automotive-cta {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  border-radius: 99px;
  padding: 15px 24px;
  background: var(--color-strong);
  color: var(--color-on-strong);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}

/* Especificidade acima da regra global a[href]:hover, que deixava o texto vermelho sobre o fundo vermelho. */
@media (hover: hover) {
  :root body a.automotive-cta[href]:hover {
    background: var(--gradient-action);
    color: var(--color-on-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--color-hover-shadow);
  }
}

.automotive-section:not(.is-visible) .automotive-art * {
  animation-play-state: paused;
}

@keyframes metal-turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes metal-sweep {
  from {
    transform: translateX(-8%);
  }

  to {
    transform: translateX(8%);
  }
}

@media (max-width: 767px) {
  .automotive-section {
    min-height: 580px;
  }

  .automotive-ring--left {
    left: -140px;
    top: 8%;
  }

  .automotive-ring--right {
    right: -95px;
    bottom: 4%;
  }

  .automotive-art {
    opacity: .65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .automotive-art {
    transform: none!important;
    transition: none;
  }

  .automotive-art * {
    animation: none!important;
  }
}

@media (forced-colors: active) {
  .automotive-art {
    display: none;
  }

  .automotive-title span {
    -webkit-text-fill-color: currentColor;
    background: none;
  }
}

/* Occupy the full visible desktop area below the sticky header. */
@media (min-width: 768px) {
  .automotive-section {
    min-height: calc(100svh - var(--header-height, 64px));
    scroll-margin-top: var(--header-height, 64px);
  }
}

/* ==========================================================================
   Seção institucional "A PL Automotivo"
   Linha 1: apresentação + Missão/Visão. Linha 2: três valores em cards.
   ========================================================================== */
.pl-about-section {
  position: relative;
  border-block: 1px solid var(--color-border);
  scroll-margin-top: var(--header-height, 64px);
}

.pl-about {
  width: var(--layout-content-width);
  margin-inline: auto;
  display: grid;
  gap: clamp(40px, 5vw, 64px);
}

.pl-about-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

/* Apresentação */
.pl-about-lead {
  min-width: 0;
}

:root body .pl-about .automotive-title {
  margin: 18px 0 22px;
  max-width: none;
  font-size: clamp(34px, 3.4vw, 54px);
  text-align: left;
}

.pl-about .automotive-title span {
  display: inline;
}

.pl-about-story {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.8;
}

.pl-about-story p {
  margin: 0;
}

.pl-about-story p+p {
  margin-top: 14px;
}

.pl-about-lead .automotive-cta {
  padding: 13px 22px;
  font-size: 14px;
}

/* Cards: mesma superfície, borda e sombra dos cards de produto. */
.pl-about-card {
  position: relative;
  min-width: 0;
  padding: 26px 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 18px);
  background: var(--color-surface);
  box-shadow: 0 5px 16px rgb(var(--ink-rgb) / .055);
  transition: border-color var(--dur-fast, .2s), box-shadow var(--dur-base, .3s), transform var(--dur-base, .3s);
}

@media (hover: hover) {
  .pl-about-card:hover {
    border-color: rgb(var(--gradient-middle-rgb) / .35);
    box-shadow: 0 12px 28px var(--color-hover-shadow);
    transform: translateY(-3px);
  }
}

.pl-about-card h3,
.pl-about-card h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
}

.pl-about-card h3 {
  font-size: 22px;
}

.pl-about-card h4 {
  font-size: 18px;
}

.pl-about-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.pl-about-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 6px 14px var(--color-hover-shadow);
}

.pl-about-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Missão e Visão: ícone ao lado do texto, um card sobre o outro. */
.pl-about-purpose {
  display: grid;
  gap: 18px;
}

.pl-about-purpose .pl-about-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* Valores */
.pl-about-values-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.pl-about-values-head h3 {
  margin: 0;
  font-size: clamp(24px, 2vw, 30px);
  white-space: nowrap;
}

.pl-about-values-head h3 span {
  background: var(--gradient-title);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pl-about-values-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.pl-about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pl-about-values-grid .pl-about-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
}

.pl-about-values-grid .pl-about-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pl-about-index {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-border);
}

@media (max-width: 1000px) {
  .pl-about-top {
    grid-template-columns: 1fr;
  }

  .pl-about-story {
    max-width: none;
  }

  .pl-about-purpose {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .pl-about {
    gap: 36px;
  }

  .pl-about-purpose,
  .pl-about-values-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pl-about-card,
  .pl-about-values-grid .pl-about-card {
    padding: 22px;
  }

  .pl-about-purpose .pl-about-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pl-about-story {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pl-about-card {
    transition: none;
    transform: none;
  }

  @media (hover: hover) {
    .pl-about-card:hover {
      transition: none;
      transform: none;
    }
  }
}

@media (forced-colors: active) {
  .pl-about-values-head h3 span {
    -webkit-text-fill-color: currentColor;
    background: none;
  }
}

.pl-about-section:focus {
  outline: none;
}

/* Valores em tablet e celular: um por linha, com o ícone ao lado do texto
   (mesma leitura de Missão e Visão); o número fica no canto. */
@media (max-width: 1000px) {
  .pl-about-values-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pl-about-values-grid .pl-about-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 0;
    align-items: start;
  }

  .pl-about-values-grid .pl-about-card-top {
    grid-row: 1 / span 2;
  }

  .pl-about-values-grid .pl-about-index {
    position: absolute;
    top: 20px;
    right: 22px;
    font-size: 26px;
  }

  .pl-about-values-grid .pl-about-card h4 {
    padding-right: 44px;
  }
}

/* Celular: Missão e Visão mantêm o ícone ao lado do texto, como no computador. */
@media (max-width: 767px) {
  .pl-about-purpose .pl-about-card,
  .pl-about-values-grid .pl-about-card {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 16px;
    padding: 20px;
  }

  .pl-about-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .pl-about-card h3 {
    font-size: 20px;
  }

  .pl-about-card p {
    font-size: 14.5px;
    line-height: 1.65;
  }
}
