/* =============================================================
   Home page - page-specific styles
   ============================================================= */

/* Hero - additional polish */
.pe-hero-home .pe-hero-floats {
  position: absolute;
  // inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.pe-hero-home .pe-hero-floats .pe-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
}
.pe-hero-home .pe-hero-floats .pe-orb-1 { width: 280px; height: 280px; background: #F58220; top: -60px; right: -40px; animation: peFloat 12s ease-in-out infinite; }
.pe-hero-home .pe-hero-floats .pe-orb-2 { width: 220px; height: 220px; background: #3A3F9F; bottom: -40px; left: 20%; animation: peFloat 14s ease-in-out infinite reverse; }

@keyframes peFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%       { transform: translateY(-20px) translateX(10px); }
}

/* Hero side card (machine showcase) */
.pe-hero-card {
  position: relative;
  border-radius: var(--pe-radius-xl);
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  padding: 1rem;
  box-shadow: var(--pe-shadow-xl);
  transform: translateY(0);
  animation: peHeroCardFloat 6s ease-in-out infinite alternate;
}
.pe-hero-card img {
  width: 100%;
  border-radius: var(--pe-radius-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.pe-hero-card .pe-hero-card-tag {
  position: absolute;
  top: 1.6rem; left: 1.6rem;
  padding: .45rem .85rem;
  background: rgba(255,255,255,.92);
  color: var(--pe-ink);
  border-radius: var(--pe-radius-pill);
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .4rem;
}
.pe-hero-card .pe-hero-card-tag i { color: var(--pe-orange-500); }
.pe-hero-card .pe-hero-card-rating {
  position: absolute;
  bottom: 1.6rem; right: 1.6rem;
  padding: .55rem .85rem;
  background: var(--pe-grad-cta);
  color: #fff;
  border-radius: var(--pe-radius);
  font-size: .82rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .35rem;
  box-shadow: var(--pe-glow-orange);
}

@keyframes peHeroCardFloat {
  from { transform: translateY(-6px); }
  to   { transform: translateY(6px); }
}

/* Promise + stats split */
.pe-promise-stats {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: stretch;
}
@media (max-width: 991.98px) {
  .pe-promise-stats { grid-template-columns: 1fr; }
}

/* Insights heading row */
.pe-insights-head {
  display: flex; justify-content: space-between; align-items: end; gap: 2rem;
  margin-bottom: 2.5rem;
}
.pe-insights-head .pe-section-head { margin: 0; text-align: left; }
@media (max-width: 767.98px) { .pe-insights-head { flex-direction: column; align-items: flex-start; } }

/* =============================================================
   SEO content sections (home long-form)
   ============================================================= */

/* Hero subhead line */
.pe-hero-subhead {
  font-family: var(--pe-font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--pe-orange-300, #FA9947);
  margin: 0 0 1rem;
}

/* Lead intro paragraph under a left-aligned section head */
.pe-prose { color: var(--pe-text); line-height: 1.8; font-size: 1.02rem; }
.pe-prose p { margin-bottom: 1.1rem; }
.pe-prose p:last-child { margin-bottom: 0; }

/* Sub-heading inside content sections */
.pe-subheading {
  font-family: var(--pe-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pe-ink);
  margin: 0 0 1rem;
}

/* Check list */
.pe-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.pe-checklist.is-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
.pe-checklist li { display: flex; align-items: flex-start; gap: .65rem; color: var(--pe-text); line-height: 1.5; }
.pe-checklist li i { flex-shrink: 0; color: var(--pe-orange-500); font-size: 1.15rem; margin-top: .05rem; }
@media (max-width: 575.98px) { .pe-checklist.is-2col { grid-template-columns: 1fr; } }

/* Highlight badge row (Why choose / quality checks) */
.pe-badge-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.pe-badge-row li {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.1rem; border-radius: var(--pe-radius-pill);
  background: var(--pe-orange-50); color: var(--pe-orange-700);
  font-weight: 600; font-size: .9rem;
}
.pe-badge-row li i { color: var(--pe-orange-500); }

/* Info card (white panel wrapping prose/lists) */
.pe-info-card {
  background: #fff; border: 1px solid var(--pe-line);
  border-radius: var(--pe-radius-lg); padding: 2rem;
  height: 100%;
}
.pe-section-dark .pe-info-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }

/* Data table */
.pe-data-table-wrap {
  overflow-x: auto;
  border-radius: var(--pe-radius-lg);
  border: 1px solid var(--pe-line);
  background: #fff;
}
.pe-data-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 460px; }
.pe-data-table th, .pe-data-table td { padding: .9rem 1.25rem; text-align: left; border-bottom: 1px solid var(--pe-line); }
.pe-data-table thead th { background: var(--pe-bg-soft); font-weight: 700; color: var(--pe-ink); font-family: var(--pe-font-display); }
.pe-data-table tbody tr:last-child td { border-bottom: 0; }
.pe-data-table tbody tr:hover { background: var(--pe-orange-50); }
.pe-data-table td:first-child { font-weight: 600; color: var(--pe-ink); }

/* Semantic topic chips (internal links) */
.pe-topic-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.pe-topic-chips a {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .95rem; border-radius: var(--pe-radius-pill);
  background: #fff; border: 1px solid var(--pe-line);
  font-size: .85rem; font-weight: 500; color: var(--pe-text);
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.pe-topic-chips a:hover { border-color: var(--pe-orange-300, #FA9947); color: var(--pe-orange-600); transform: translateY(-1px); }
.pe-topic-chips a i { color: var(--pe-orange-500); font-size: .8rem; }

/* Equipment range card (icon + title + key features) */
.pe-equip-card {
  background: #fff; border: 1px solid var(--pe-line);
  border-radius: var(--pe-radius-lg); padding: 1.5rem; height: 100%;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.pe-equip-card:hover { transform: translateY(-5px); box-shadow: var(--pe-shadow-lg); border-color: transparent; }
.pe-equip-card .pe-equip-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--pe-orange-50);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.pe-equip-card .pe-equip-icon img { width: 32px; height: 32px; }
.pe-equip-card h3 { font-size: 1.1rem; margin: 0 0 .9rem; }
.pe-equip-card .pe-checklist { gap: .6rem; }
.pe-equip-card .pe-checklist li { font-size: .9rem; }
.pe-equip-card .pe-checklist li i { font-size: 1rem; }

/* Industries served pill list */
.pe-industries { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.pe-industries li {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.15rem; border-radius: var(--pe-radius);
  background: #fff; border: 1px solid var(--pe-line);
  font-weight: 600; font-size: .92rem; color: var(--pe-ink);
}
.pe-industries li i { color: var(--pe-orange-500); }

/* =============================================================
   Explorer: vertical tabs (desktop) / accordion (mobile)
   All panels stay in the DOM (display toggle) - SEO safe.
   ============================================================= */
.pe-explorer {
  display: grid;
  grid-template-columns: 290px 1fr;
  /* 9 content-sized tab rows keep the tabs tight at the top; the trailing 1fr row
     absorbs slack so the panel (spanning all rows) defines the section height
     without stretching the tab spacing. Update the count if items change. */
  grid-template-rows: repeat(9, min-content) 1fr;
  column-gap: 2rem;
  row-gap: .55rem;
  align-items: start;
}
.pe-explorer-item { display: contents; }

.pe-explorer-tab {
  grid-column: 1;
  display: flex; align-items: center; gap: .75rem;
  width: 100%;
  padding: .9rem 1.1rem;
  background: #fff;
  border: 1px solid var(--pe-line);
  border-radius: var(--pe-radius);
  color: var(--pe-ink);
  font-family: var(--pe-font-display);
  font-weight: 600; font-size: .96rem;
  text-align: left; cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
}
.pe-explorer-tab .pe-explorer-tab-ic {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pe-orange-50); color: var(--pe-orange-600);
  font-size: 1rem;
  transition: background .2s ease, color .2s ease;
}
.pe-explorer-tab .pe-explorer-tab-label { flex: 1; }
.pe-explorer-tab .pe-explorer-caret { display: none; flex-shrink: 0; color: var(--pe-muted); transition: transform .3s ease; }
.pe-explorer-tab:hover { border-color: var(--pe-orange-200, #FDD9B5); color: var(--pe-orange-600); }
.pe-explorer-item.is-active .pe-explorer-tab {
  background: var(--pe-grad-cta); border-color: transparent; color: #fff;
  box-shadow: var(--pe-glow-orange);
}
.pe-explorer-item.is-active .pe-explorer-tab .pe-explorer-tab-ic { background: rgba(255,255,255,.22); color: #fff; }

.pe-explorer-panel {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: start;
  display: none;
  /* white card surface so the content reads as a distinct panel on the soft section */
  background: #fff;
  border: 1px solid var(--pe-line);
  border-radius: var(--pe-radius-lg);
  box-shadow: 0 10px 30px rgba(16, 24, 64, .06);
  padding: 2.25rem 2.5rem;
  animation: peExpFade .35s ease;
}
.pe-explorer-item.is-active .pe-explorer-panel { display: block; }
@keyframes peExpFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pe-explorer-panel .pe-panel-title {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  margin: 0 0 .5rem;
}
.pe-explorer-panel .pe-panel-intro { color: var(--pe-muted); margin: 0 0 1.6rem; line-height: 1.7; }
.pe-explorer-panel .pe-subheading { font-size: 1.1rem; margin-top: 1.6rem; }
.pe-explorer-panel .pe-subheading:first-of-type { margin-top: 0; }

/* Panel layout: text content + a separate image div on the right (desktop) */
.pe-explorer-panel .pe-panel-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}
.pe-explorer-panel .pe-panel-media {
  width: 100%;
  border-radius: var(--pe-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: sticky;
  top: 100px;
}
.pe-explorer-panel .pe-panel-media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s ease;
}
.pe-explorer-panel .pe-panel-media:hover img { transform: scale(1.04); }

/* Mobile: accordion */
@media (max-width: 991.98px) {
  .pe-explorer {
    display: block;
    grid-template-rows: none;
    border: 1px solid var(--pe-line);
    border-radius: var(--pe-radius-lg);
    overflow: hidden;
    background: #fff;
  }
  .pe-explorer-item { display: block; border-bottom: 1px solid var(--pe-line); }
  .pe-explorer-item:last-child { border-bottom: 0; }
  .pe-explorer-tab { border: 0; border-radius: 0; background: #fff; box-shadow: none; }
  .pe-explorer-item.is-active .pe-explorer-tab { background: var(--pe-orange-50); color: var(--pe-orange-700); box-shadow: none; }
  .pe-explorer-item.is-active .pe-explorer-tab .pe-explorer-tab-ic { background: var(--pe-grad-cta); color: #fff; }
  .pe-explorer-tab .pe-explorer-caret { display: inline-block; }
  .pe-explorer-item.is-active .pe-explorer-caret { transform: rotate(180deg); }
  /* reset the desktop card - on mobile the panel is accordion content inside the list */
  .pe-explorer-panel {
    grid-row: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0 1.1rem 1.5rem;
  }
  /* stack on mobile: image on top, content below */
  .pe-explorer-panel .pe-panel-inner {
    display: flex;
    flex-direction: column-reverse;
  }
  .pe-explorer-panel .pe-panel-media {
    position: static;
    aspect-ratio: 16 / 9;
    margin-bottom: 1.25rem;
  }
}
