/* =========================================================
   PPGL FRONT PAGE CSS
   Only for index.html
   Requires style.css to load first
========================================================= */

/* HERO */

.homepage-hero {
  min-height: auto;
  padding: 72px 0 58px;
}

.homepage-hero .hero-layout {
  grid-template-columns: 1fr 0.88fr;
  gap: 44px;
}

.homepage-hero .hero-copy {
  max-width: 720px;
}

.homepage-hero h1 {
  font-size: clamp(2.9rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.078em;
  margin-bottom: 18px;
}

.homepage-hero p {
  max-width: 660px;
  font-size: 0.98rem;
  line-height: 1.68;
}

.front-hero-image {
  height: 350px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.front-hero-card {
  padding: 18px;
  border-radius: 28px;
}

.front-mini-metrics {
  margin-top: 15px;
}

/* WHAT WE DO */

.front-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.front-overview-card {
  min-height: 210px;
}

/* CORE DIVISIONS */

.front-division-img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.front-division-card {
  overflow: hidden;
}

.front-division-card h2 {
  max-width: 520px;
}

/* INDUSTRIES */

.front-industries .section-heading {
  text-align: center;
  margin-inline: auto;
}

.front-industries .service-card {
  min-height: 245px;
}

.front-industries .service-card h3 {
  margin-top: 74px;
}

.front-industries-action {
  justify-content: center;
  margin-top: 28px;
}

/* ERP SECTION */

.front-erp-shot {
  border-radius: 20px;
  border: 1px solid var(--border);
  margin-bottom: 18px;
  box-shadow: var(--shadow-soft);
}

.front-erp-card {
  padding: 20px;
}

.front-erp-card .pipeline-list div {
  padding: 13px;
}

/* COMPLIANCE SNAPSHOT */

.front-compliance-img {
  height: 280px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.front-compliance-card {
  min-height: 100%;
}

/* CTA */

.front-cta {
  text-align: center;
}

.front-cta .hero-actions {
  justify-content: center;
}

/* SECTION TIGHTENING */

.homepage-hero + .section-light,
.front-page-section {
  padding: 64px 0;
}

.front-page-section .section-heading {
  margin-bottom: 28px;
}

.front-page-section .section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
}

.front-page-section .section-heading p {
  font-size: 0.94rem;
}

/* NAV FIX FOR HOME PAGE */

.home-page .brand small {
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-page .nav-panel {
  gap: 3px;
}

.home-page .nav-panel a,
.home-page .theme-toggle {
  font-size: 0.75rem;
  padding: 8px 8px;
}

.home-page .candidate-portal-btn {
  padding: 9px 12px !important;
}

/* RESPONSIVE */

@media (max-width: 1180px) {
  .homepage-hero .hero-layout {
    grid-template-columns: 1fr;
  }

  .front-hero-card {
    max-width: 720px;
  }

  .front-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .homepage-hero {
    padding: 56px 0 46px;
  }

  .homepage-hero h1 {
    font-size: clamp(2.35rem, 10vw, 3.75rem);
  }

  .front-overview-grid {
    grid-template-columns: 1fr;
  }

  .front-hero-image,
  .front-division-img,
  .front-compliance-img {
    height: 230px;
  }
}

@media (max-width: 560px) {
  .homepage-hero h1 {
    font-size: 2.25rem;
    letter-spacing: -0.06em;
  }

  .front-hero-image,
  .front-division-img,
  .front-compliance-img {
    height: 210px;
  }

  .front-page-section {
    padding: 50px 0;
  }
}
