:root {
  --pp-shell: 1280px;
  --pp-bg: #f4f6ef;
  --pp-surface: #ffffff;
  --pp-surface-soft: #eef2e8;
  --pp-text: #12201a;
  --pp-muted: #5e6b61;
  --pp-green: #126f47;
  --pp-green-dark: #0b3d2a;
  --pp-yellow: #f2bd2e;
  --pp-blue: #1b80b6;
  --pp-ink: #0b1711;
  --pp-border: #d8dfd2;
  --pp-shadow: 0 18px 46px rgba(19, 37, 28, 0.12);
  --pp-shadow-strong: 0 30px 70px rgba(11, 61, 42, 0.18);
  --pp-watermark-logo: url("profiplast-logo-watermark.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 246, 239, 0.95) 380px),
    linear-gradient(90deg, rgba(18, 111, 71, 0.035), transparent 34%, rgba(242, 189, 46, 0.035)),
    var(--pp-bg);
  color: var(--pp-text);
  font-family: Inter, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  line-height: 1.5;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

.pp-copy-guard-active * {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.pp-header {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(244, 246, 239, 0.88);
  border-bottom: 1px solid var(--pp-border);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px clamp(16px, 4vw, 48px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.pp-brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
}

.pp-brand-logo,
.pp-header .pp-brand-logo,
.pp-brand > img.pp-brand-logo {
  display: block;
  height: 28px;
  max-height: 28px;
  max-width: min(150px, 48vw);
  object-fit: contain;
  width: auto;
}

.pp-brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--pp-blue), var(--pp-green));
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.pp-nav {
  color: var(--pp-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
  gap: 16px;
  justify-content: flex-end;
}

.pp-nav a:hover,
.pp-nav a:focus-visible,
.pp-card-link {
  color: var(--pp-green);
}

.pp-intro,
.pp-page-title,
.pp-band {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--pp-shell);
  padding-left: clamp(16px, 5vw, 72px);
  padding-right: clamp(16px, 5vw, 72px);
}

.pp-intro {
  display: grid;
  gap: clamp(22px, 4vw, 54px);
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.48fr);
  min-height: clamp(470px, 54vh, 620px);
  padding-bottom: clamp(36px, 6vw, 74px);
  padding-top: clamp(48px, 8vw, 96px);
  position: relative;
}

.pp-intro::after {
  align-self: stretch;
  background:
    linear-gradient(135deg, rgba(18, 111, 71, 0.94), rgba(11, 61, 42, 0.97)),
    linear-gradient(90deg, transparent 0 47%, rgba(242, 189, 46, 0.38) 47% 52%, transparent 52%);
  border: 1px solid rgba(18, 111, 71, 0.22);
  border-radius: 8px;
  box-shadow: var(--pp-shadow-strong);
  content: "Linhas selecionadas para compra, reposição e atendimento direto, com opções por aplicação.";
  color: #f5fbf4;
  display: flex;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 750;
  justify-content: flex-end;
  line-height: 1.35;
  min-height: 220px;
  padding: clamp(22px, 4vw, 38px);
}

.pp-intro::before {
  background: var(--pp-yellow);
  content: "";
  height: 4px;
  left: clamp(16px, 5vw, 72px);
  position: absolute;
  top: clamp(34px, 6vw, 72px);
  width: 84px;
}

.pp-page-title {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.48fr);
  padding-bottom: clamp(26px, 4vw, 46px);
  padding-top: clamp(42px, 7vw, 82px);
}

.pp-page-title-aside {
  align-self: end;
  background: var(--pp-surface-soft);
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  color: var(--pp-muted);
  padding: 16px;
}

.pp-band {
  padding-bottom: clamp(44px, 7vw, 88px);
  padding-top: clamp(34px, 5vw, 62px);
}

.pp-kicker {
  color: var(--pp-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(46px, 6.5vw, 86px);
  line-height: 0.98;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  margin-bottom: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.pp-lead {
  color: var(--pp-muted);
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 0;
  max-width: 780px;
}

.pp-section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  max-width: 820px;
}

.pp-niche-grid,
.pp-subgroup-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pp-niche-card,
.pp-subgroup-card,
.pp-detail-panel,
.pp-spec-panel {
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  box-shadow: var(--pp-shadow);
}

.pp-niche-card,
.pp-subgroup-card {
  align-self: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), #fff 42%),
    var(--pp-surface);
  display: grid;
  min-height: 0;
  overflow: hidden;
  position: relative;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.pp-niche-card::before,
.pp-subgroup-card::before {
  background: linear-gradient(90deg, var(--pp-green), var(--pp-yellow), var(--pp-blue));
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.pp-niche-card {
  grid-template-columns: 1fr;
}

.pp-niche-card-wide {
  grid-column: auto;
  grid-template-columns: 1fr;
}

.pp-subgroup-card {
  gap: 12px;
  padding: 14px;
}

.pp-niche-card:hover,
.pp-subgroup-card:hover,
.pp-niche-card:focus-visible,
.pp-subgroup-card:focus-visible {
  border-color: rgba(18, 111, 71, 0.45);
  box-shadow: var(--pp-shadow-strong);
  transform: translateY(-2px);
}

.pp-niche-card figure,
.pp-subgroup-card figure,
.pp-gallery-main figure,
.pp-gallery-strip figure,
.pp-source-pending {
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  margin: 0;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.pp-niche-card figure,
.pp-subgroup-card figure {
  display: grid;
  place-items: center;
}

.pp-niche-card figure {
  border: 0;
  border-bottom: 1px solid var(--pp-border);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(18, 111, 71, 0.045), transparent 42%),
    linear-gradient(180deg, #fff, #f9faf7);
}

.pp-niche-card-wide figure {
  border-bottom: 1px solid var(--pp-border);
  border-right: 0;
}

.pp-niche-card figure,
.pp-subgroup-card figure {
  aspect-ratio: 4 / 3;
}

.pp-niche-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.pp-area-index {
  color: var(--pp-yellow);
  font-weight: 900;
}

.pp-niche-card p,
.pp-subgroup-card p,
.pp-page-title-aside,
.pp-detail-panel p,
.pp-spec-panel dd,
.pp-contact p {
  color: var(--pp-muted);
}

.pp-product-notes {
  margin-top: 16px;
}

.pp-note-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pp-note-card {
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  padding: 16px;
}

.pp-note-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.pp-note-card p {
  color: var(--pp-muted);
  margin: 0;
}

.pp-note-specs {
  margin-top: 12px;
}

.pp-card-link {
  font-size: 14px;
  font-weight: 900;
  margin-top: auto;
}

.pp-mini-stack {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-items: center;
  padding: 8px;
}

.pp-protected {
  position: relative;
}

.pp-protected::before {
  background-image:
    radial-gradient(rgba(18, 111, 71, 0.045) 1px, transparent 1px),
    repeating-linear-gradient(135deg, rgba(18, 111, 71, 0.035) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(45deg, rgba(27, 128, 182, 0.025) 0 1px, transparent 1px 160px);
  background-size: 54px 54px, 120px 120px, 160px 160px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.pp-protected::after {
  background-image: var(--pp-watermark-logo);
  background-position: center;
  background-repeat: no-repeat;
  background-size: clamp(210px, 54%, 520px) auto;
  content: "";
  display: none;
  inset: -26%;
  opacity: 0.035;
  pointer-events: none;
  position: absolute;
  transform: rotate(-18deg);
  z-index: 2;
}

.pp-protected img {
  pointer-events: none;
}

.pp-niche-card img,
.pp-subgroup-card img,
.pp-mini-stack img,
.pp-gallery-main img,
.pp-gallery-strip img {
  height: 100%;
  object-fit: contain;
  padding: 10px;
  width: 100%;
}

.pp-niche-card img,
.pp-subgroup-card img,
.pp-mini-stack img {
  height: auto;
  max-height: 100%;
  max-width: 100%;
  width: auto;
}

.pp-mini-stack img {
  flex: 1 1 0;
  height: 100%;
  max-height: 100%;
  max-width: calc(50% - 3px);
  min-width: 0;
  object-fit: contain;
  padding: 0;
  width: calc(50% - 3px);
}

.pp-subgroup-card figure {
  aspect-ratio: 1 / 1;
}

.pp-source-pending {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: var(--pp-surface-soft);
  color: var(--pp-muted);
  display: flex;
  font-weight: 800;
  justify-content: center;
  padding: 18px;
  text-align: center;
}

.pp-subgroup-card strong {
  font-size: 18px;
}

.pp-breadcrumb {
  color: var(--pp-muted);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.pp-breadcrumb a {
  color: var(--pp-green);
}

.pp-product-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 0.58fr) minmax(300px, 0.42fr);
}

.pp-gallery-main,
.pp-detail-copy,
.pp-spec-panel {
  padding: 14px;
}

.pp-gallery-main figure {
  aspect-ratio: 4 / 3;
}

.pp-gallery-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.pp-gallery-strip figure {
  aspect-ratio: 1 / 1;
}

.pp-gallery-thumb {
  cursor: pointer;
  outline: 0;
}

.pp-gallery-thumb:focus-visible,
.pp-gallery-thumb.is-active {
  border-color: rgba(18, 111, 71, 0.72);
  box-shadow: inset 0 0 0 2px rgba(242, 189, 46, 0.9);
}

.pp-detail-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.56fr) minmax(280px, 0.44fr);
  overflow: hidden;
}

.pp-spec-panel {
  align-self: start;
}

.pp-spec-panel dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.pp-spec-panel dl div {
  border-top: 1px solid var(--pp-border);
  padding-top: 9px;
}

.pp-spec-panel dt {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pp-spec-panel dd {
  margin: 2px 0 0;
}

.pp-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 16px;
}

.pp-button-primary {
  background: var(--pp-green);
  color: #fff;
}

.pp-button-secondary {
  background: #fff;
  border-color: var(--pp-border);
  color: var(--pp-green-dark);
}

.pp-contact {
  align-items: center;
  background: var(--pp-green-dark);
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: clamp(30px, 5vw, 56px) clamp(16px, 5vw, 72px);
}

.pp-contact .pp-kicker,
.pp-contact p {
  color: #dfeede;
}

.pp-contact h2 {
  color: #fff;
}

.pp-rights-note {
  background: #fff;
  border-top: 1px solid var(--pp-border);
  color: var(--pp-muted);
  font-size: 13px;
  font-weight: 700;
  margin: 0 auto;
  max-width: var(--pp-shell);
  padding: 12px clamp(16px, 5vw, 72px);
}

@media (max-width: 1120px) {
  .pp-niche-grid,
  .pp-subgroup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pp-niche-card-wide {
    grid-column: span 1;
  }

  .pp-niche-card,
  .pp-detail-panel,
  .pp-product-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .pp-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .pp-nav {
    justify-content: flex-start;
  }

  .pp-page-title,
  .pp-intro,
  .pp-niche-grid,
  .pp-subgroup-grid,
  .pp-note-grid,
  .pp-product-layout {
    grid-template-columns: 1fr;
  }

  .pp-gallery-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pp-niche-card {
    grid-template-columns: 1fr;
  }

  .pp-niche-card figure {
    aspect-ratio: 16 / 10;
    border: 0;
    border-bottom: 1px solid var(--pp-border);
    border-radius: 0;
    max-height: 220px;
  }

  .pp-mini-stack {
    gap: 2px;
    display: grid;
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .pp-mini-stack img {
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    padding: 0;
    width: 100%;
  }

  .pp-mini-stack img:nth-child(n + 2) {
    display: none;
  }

  .pp-intro::after {
    min-height: 136px;
    padding: 22px;
  }

  .pp-subgroup-card figure {
    aspect-ratio: 16 / 10;
    max-height: 210px;
  }

  .pp-gallery-main figure,
  .pp-source-pending {
    aspect-ratio: 16 / 11;
    max-height: 300px;
  }

  .pp-gallery-strip figure {
    max-height: 110px;
  }

  .pp-niche-card img,
  .pp-subgroup-card img,
  .pp-mini-stack img,
  .pp-gallery-main img,
  .pp-gallery-strip img {
    padding: 8px;
  }

  .pp-contact {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 1600px) {
  :root {
    --pp-shell: 1360px;
  }

  .pp-niche-grid,
  .pp-subgroup-grid {
    gap: 20px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .pp-page {
    position: relative;
  }

  .pp-page::before {
    align-items: center;
    background:
      repeating-linear-gradient(135deg, rgba(18, 111, 71, 0.16) 0 1px, transparent 1px 34px),
      rgba(255, 255, 255, 0.78);
    color: rgba(18, 111, 71, 0.35);
    content: "ProfiPlast - imagem protegida";
    display: flex;
    font-size: 28px;
    font-weight: 900;
    inset: 0;
    justify-content: center;
    min-height: 100vh;
    position: fixed;
    text-align: center;
    transform: rotate(-18deg);
    z-index: 9999;
  }

  .pp-protected img {
    opacity: 0.28;
  }

  .pp-protected::after {
    opacity: 0.4;
  }
}
