:root {
  --accent-blue: #178bff;
  --text-primary: #111;
  --text-secondary: #666;
  --card-bg: #fff;
}
/* p-hero starting from here */
.p-hero {
  position: relative;
  min-height: 100vh;
  padding-top: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #000;
  color: #fff;
  overflow: hidden;
}
/* Background presets by product */
.p-hero--block-machine {
  background-image: url("../image/Pallets/gmt-cover-page.png");
}
.p-hero--c-profile {
  background-image: url("../image/Pallets/c-coverr.png");
}
.p-hero--pallets {
  background-image: url("../image/steel-pallet/cover-other.jpg");
}
.p-hero--moulds {
  background-image: url("../image/Block%20Moulds/cover.jpg");
}
.p-hero--product1 {
  background-image: url("../image/pv-cover.jpg");
}
.p-hero-inner {
  position: relative;
  width: min(1200px, 92%);
  min-height: clamp(520px, 78vh, 780px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 64px;
}

.p-hero-title {
  position: absolute;
  top: clamp(56px, 10vh, 120px);
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(34px, 5.6vw, 84px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: #fff;
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
}
.p-hero-machine {
  display: none;
}
.p-hero-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: none;
}
.p-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 8vh, 72px);
  transform: translateX(-50%);
  z-index: 1;
}
.p-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}
.p-btn--primary {
  background: #0f3f68;
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 63, 104, 0.35);
}
.p-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 63, 104, 0.45);
}
.p-btn--secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}
.p-btn--secondary:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
}
@media (max-width: 780px) {
  .p-hero {
    padding-top: 84px;
  }
  .p-hero-inner {
    min-height: clamp(480px, 70vh, 680px);
    padding-bottom: 48px;
  }
  .p-hero-title {
    top: clamp(48px, 10vh, 90px);
    font-size: clamp(28px, 8.6vw, 56px);
    letter-spacing: 0.015em;
    max-width: 92vw;
  }
  .p-hero-machine {
    display: none;
  }
  .p-hero-cta {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    width: min(320px, 82%);
    bottom: clamp(18px, 6vh, 44px);
  }

  .p-btn {
    text-align: center;
    font-size: clamp(0.84rem, 2.9vw, 0.96rem);
    padding: 11px 18px;
  }
}

@media (max-width: 1024px) {
  .p-hero {
    min-height: clamp(72vh, 86vh, 94vh);
    padding-top: clamp(72px, 10vw, 96px);
  }

  .p-hero-inner {
    width: min(100%, 94%);
    min-height: clamp(460px, 70vh, 640px);
    padding-bottom: clamp(26px, 5vw, 44px);
  }

  .p-hero-title {
    white-space: normal;
    overflow: visible;
    text-align: center;
    line-height: 1.12;
    max-width: min(92vw, 28ch);
    font-size: clamp(26px, 6.6vw, 52px);
    top: clamp(44px, 8vh, 82px);
  }

  .p-hero-cta {
    width: min(340px, 86%);
    gap: clamp(8px, 2vw, 12px);
  }
}

@media (max-width: 768px) {
  .p-hero {
    min-height: clamp(52vh, 64vh, 76vh);
  }

  .p-hero-inner {
    justify-content: space-between;
    gap: clamp(12px, 3vw, 18px);
    min-height: clamp(320px, 58vh, 460px);
    padding-bottom: clamp(16px, 4.5vw, 26px);
  }

  .p-hero-title {
    position: static;
    transform: none;
    margin: 0 auto;
    font-size: clamp(22px, 7.8vw, 38px);
    max-width: min(94vw, 22ch);
  }

  .p-hero-machine,
  .p-hero-img {
    display: none !important;
  }

  .p-hero-cta {
    position: static;
    transform: none;
    width: min(320px, 90vw);
  }
}

@media (max-width: 420px) {
  .p-hero {
    min-height: clamp(48vh, 60vh, 72vh);
    padding-top: 72px;
  }

  .p-hero-inner {
    width: 94%;
    min-height: clamp(300px, 54vh, 420px);
    padding-bottom: 14px;
  }

  .p-hero-title {
    font-size: clamp(20px, 7vw, 30px);
    max-width: 20ch;
  }

  .p-btn {
    width: 100%;
    font-size: 0.84rem;
    padding: 10px 14px;
    border-radius: 10px;
  }
}
/* p-hero finished here */
