/* ===== Inner page hero (red product banner, rebuilt as real text and images) ===== */
.ph {
  --ph-red: #c4262b;
  --ph-deep: #6f0d13;
  --ph-wrap: 1350px;
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ph-red); color: #fff;
  font-family: Montserrat, system-ui, sans-serif;
}
.ph *, .ph *::before, .ph *::after { box-sizing: border-box; }
.ph p, .ph h1, .ph ul { margin: 0; padding: 0; }
.ph ul { list-style: none; }

/* City photo under a red wash that is darkest behind the heading */
.ph-bg img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.ph::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(111,13,19,.95) 0%, rgba(160,24,30,.86) 48%, rgba(196,38,43,.6) 100%); }

.ph-wrap { max-width: var(--ph-wrap); margin-inline: auto; padding: 56px 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; }

.ph h1 { font-family: "Open Sans", system-ui, sans-serif; font-size: clamp(30px, 3.7vw, 56px); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.ph h1::after { content: ""; display: block; width: 72px; height: 4px; margin-top: 26px; background: #fff; }

.ph-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin-top: 26px !important; font-family: "Open Sans", system-ui, sans-serif; font-size: clamp(19px, 1.7vw, 26px); font-weight: 600; line-height: 1.25; }
.ph-facts li { white-space: nowrap; }
.ph-facts li + li { margin-left: 22px; padding-left: 22px; border-left: 2px solid rgba(255,255,255,.45); }

/* The two product families from the old banner */
.ph-ranges { display: grid; grid-template-columns: repeat(2, 300px); gap: 20px; }
.ph-ranges li { display: flex; flex-direction: column; background: var(--ph-deep); box-shadow: 0 18px 40px rgba(40,0,4,.35); }
.ph-ranges img { display: block; width: 100%; height: auto; }
.ph-ranges p { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; border-top: 3px solid #fff; }
.ph-ranges strong { font-size: 18px; font-weight: 700; line-height: 1.25; color: #fff; }
.ph-ranges span { font-size: 14px; font-weight: 500; line-height: 1.4; color: rgba(255,255,255,.85); text-wrap: balance; }

@media (max-width: 1240px) {
  .ph-wrap { gap: 40px; padding-block: 48px; }
  .ph-ranges { grid-template-columns: repeat(2, 240px); gap: 16px; }
}

@media (max-width: 900px) {
  .ph-wrap { grid-template-columns: 1fr; gap: 32px; }
  .ph-ranges { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; }
}

@media (max-width: 767px) {
  .ph-wrap { padding: 40px 16px; }
  .ph h1::after { margin-top: 20px; }
  .ph-facts { margin-top: 20px !important; }
  .ph-ranges { gap: 12px; }
  .ph-ranges p { padding: 12px 12px 14px; }
  .ph-ranges strong { font-size: 15px; }
  .ph-ranges span { font-size: 12.5px; }
}

/* Small phones: the two facts stack instead of wrapping around the divider */
@media (max-width: 480px) {
  .ph-facts { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ph-facts li + li { margin-left: 0; padding-left: 0; border-left: 0; }
}

/* Blue pages (Power Conditioners) */
.ph--blue { --ph-red: #01579b; --ph-deep: #013f70; }
.ph--blue::before { background: linear-gradient(100deg, rgba(1,63,112,.95) 0%, rgba(1,87,155,.86) 48%, rgba(1,87,155,.6) 100%); }
.ph--blue .ph-ranges li { background: #16163f; box-shadow: 0 18px 40px rgba(0,20,50,.35); }

/* Charcoal pages (Variable Transformers) */
.ph--dark { --ph-red: #3a3d42; --ph-deep: #17181b; }
.ph--dark::before { background: linear-gradient(100deg, rgba(23,24,27,.95) 0%, rgba(40,42,46,.86) 48%, rgba(58,61,66,.6) 100%); }
.ph--dark .ph-ranges li { box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.ph--dark h1::after, .ph--dark .ph-ranges p { border-color: #c4262b; }
.ph--dark h1::after { background: #c4262b; }
/* Three facts stack */
.ph-facts--stack { flex-direction: column; align-items: flex-start; gap: 6px; }
.ph-facts--stack li + li { margin-left: 0; padding-left: 0; border-left: 0; }
.ph-facts--stack li { white-space: normal; }
.ph-copy { min-width: 0; }

/* Orange pages (Volt Drop Compensators) and green pages (Automatic Voltage Optimisers) */
.ph--orange { --ph-red: #d9661a; --ph-deep: #9a3f06; }
.ph--orange::before { background: linear-gradient(100deg, rgba(154,63,6,.95) 0%, rgba(200,90,20,.86) 48%, rgba(217,102,26,.6) 100%); }
.ph--green { --ph-red: #3d9440; --ph-deep: #1d5a24; }
.ph--green::before { background: linear-gradient(100deg, rgba(29,90,36,.95) 0%, rgba(50,125,55,.86) 48%, rgba(61,148,64,.6) 100%); }
.ph--orange .ph-ranges li, .ph--green .ph-ranges li { box-shadow: 0 18px 40px rgba(0,0,0,.28); }

/* Hero with a single emblem on the right (Warranties) */
.ph--emblem .ph-wrap { padding-block: 64px; }
.ph-emblem { width: 210px; margin-right: 60px; filter: drop-shadow(0 18px 30px rgba(0,20,50,.4)); }
.ph-emblem svg { display: block; width: 100%; height: auto; }
@media (max-width: 1240px) { .ph-emblem { width: 170px; margin-right: 20px; } }
@media (max-width: 900px) { .ph-emblem { display: none; } }

.ph-facts li { white-space: normal; }
.ph--emblem .ph-copy { max-width: 900px; }

/* Hero with their photo wall on the right (About) */
.ph--wall .ph-wrap { padding-block: 60px; }
.ph-wall { width: 640px; max-width: 100%; }
.ph-wall img { display: block; width: 100%; height: auto; }
@media (max-width: 1240px) { .ph-wall { width: 480px; } }
@media (max-width: 900px) { .ph-wall { width: 100%; max-width: 640px; } }

/* Breadcrumb trail, above the page title */
.ph .ph-crumbs { margin: 0 0 20px; padding: 0; font-family: Montserrat, system-ui, sans-serif; font-size: 13px; font-weight: 500; line-height: 1.5; color: rgba(255,255,255,.78); }
.ph .ph-crumbs a { color: #fff; text-decoration: none; }
.ph .ph-crumbs a:hover, .ph .ph-crumbs a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
