/* ===== Voltage Stabilisers page: a product range (intro, badge box, range cards) ===== */
.vr {
  --vr-blue: #01579b;
  --vr-blue-dark: #013f70;
  --vr-navy: #16163f;
  --vr-red: #c4262b;
  --vr-deep: #6f0d13;
  --vr-ink: #2c3140;
  --vr-wrap: 1350px;
  background: #fff; color: var(--vr-ink);
  font-family: Montserrat, system-ui, sans-serif;
  scroll-margin-top: 90px;
}
.vr *, .vr *::before, .vr *::after { box-sizing: border-box; }
.vr p, .vr h2, .vr h3, .vr h4, .vr ul { margin: 0; padding: 0; }
.vr ul { list-style: none; }
.vr-wrap { max-width: var(--vr-wrap); margin-inline: auto; padding: 0 10px; }
/* The red range header runs the full width of the page; its content stays in the page container */
.vr-head { color: #fff; background: linear-gradient(120deg, var(--vr-deep) 0%, var(--vr-red) 100%); }
.vr-avail { padding: 76px 0 92px; background: #fff; }

/* Range header: one navy panel, copy on the left, the range and its badge on the right */
.vr-intro { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 88px; align-items: stretch; padding: 64px 0; }
.vr .vr-title { font-family: "Open Sans", system-ui, sans-serif; font-size: clamp(26px, 2.6vw, 42px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.vr .vr-title::after { content: ""; display: block; width: 72px; height: 4px; margin-top: 22px; background: #fff; }
.vr-copy p { max-width: 80ch; margin-top: 14px; font-size: 16.5px; line-height: 1.75; color: rgba(255,255,255,.88); text-wrap: pretty; }
.vr-copy a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.vr-copy a:hover, .vr-copy a:focus-visible { color: #01c4fc; }
.vr-copy .vr-lead { margin-top: 26px; font-family: "Open Sans", system-ui, sans-serif; font-size: clamp(18px, 1.4vw, 21px); font-weight: 600; line-height: 1.5; color: #fff; }

.vr-badge { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.vr-badge p { font-family: "Open Sans", system-ui, sans-serif; font-size: 38px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.vr-badge img { flex: 1 1 200px; display: block; width: 100%; max-width: 300px; min-height: 0; object-fit: contain; background: #fff; }

.vr .vr-sub { font-family: "Open Sans", system-ui, sans-serif; font-size: clamp(22px, 1.9vw, 30px); font-weight: 700; line-height: 1.25; color: var(--vr-navy); text-align: center; text-wrap: balance; }
.vr .vr-sub::after { content: ""; display: block; width: 72px; height: 4px; margin: 20px auto 0; background: var(--vr-red); }

/* Range cards: photo, range, then the details revealed inside the card */
.vr .vr-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 44px; }
.vr-card { flex: 0 0 calc((100% - 88px) / 5); display: flex; flex-direction: column; background: #fff; box-shadow: 0 0 0 1px #e3e8ef, 0 14px 34px rgba(22,22,63,.1); transition: transform .25s, box-shadow .25s; }
.vr-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(22,22,63,.15); }
/* Four-box rows fill the same width as the five-box rows */
.vr-cards--4 .vr-card { flex-basis: calc((100% - 66px) / 4); }
/* These photos carry an OIL / AIR badge in the top-left corner, so the Details button sits in a strip above the photo instead of on it */
.vr-cards--4:not(.vr-cards--over) .vr-media { padding-top: 44px; background: #fff; }
/* Photo, range and the reveal share one grid area, so a box is always tall enough for its own details: nothing is ever cut off */
.vr-top { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; overflow: hidden; }
.vr-media { grid-column: 1; grid-row: 1; }
.vr-media img { display: block; width: 100%; height: auto; }
.vr .vr-toggle { position: absolute; left: 0; top: 0; z-index: 2; display: inline-flex; align-items: center; gap: 8px; height: 44px; margin: 0; padding: 0 14px; font: 600 14px/1 Montserrat, system-ui, sans-serif; text-transform: none; letter-spacing: 0; color: #fff; background: var(--vr-navy); border: 0; border-radius: 0; cursor: pointer; transition: background .2s; }
.vr-card.is-open .vr-toggle { position: absolute; }
.vr .vr-toggle:hover, .vr .vr-toggle:focus-visible { background: var(--vr-blue); color: #fff; }
.vr .vr-toggle:focus-visible, .vr .vr-btn:focus-visible { outline: 3px solid #01c4fc; outline-offset: 2px; }
.vr-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; transition: transform .3s; }
.vr-card.is-open .vr-toggle svg { transform: rotate(45deg); }
.vr-body { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 26px 22px 28px; }
.vr .vr-range { font-family: "Open Sans", system-ui, sans-serif; font-size: 27px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: var(--vr-navy); white-space: nowrap; }
.vr-phase { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.4; color: #5d6373; }
.vr-phase strong { font-size: 15px; font-weight: 700; color: var(--vr-ink); }

.vr-reveal { grid-column: 1; grid-row: 1 / span 2; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding: 62px 20px 24px; color: #fff; background: linear-gradient(160deg, var(--vr-red) 0%, var(--vr-deep) 100%); clip-path: circle(0 at var(--vr-cx, 20%) var(--vr-cy, 6%)); visibility: hidden; transition: clip-path .5s cubic-bezier(.4,0,.2,1), visibility 0s linear .5s; }
.vr-card.is-open .vr-reveal { clip-path: circle(150% at var(--vr-cx, 20%) var(--vr-cy, 6%)); visibility: visible; transition: clip-path .5s cubic-bezier(.4,0,.2,1), visibility 0s; }
.vr-reveal p { font-size: 15px; line-height: 1.55; color: #fff; text-wrap: pretty; }
.vr-reveal .vr-reveal-title { font-family: "Open Sans", system-ui, sans-serif; font-size: 18px; font-weight: 700; line-height: 1.25; }

.vr .vr-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 0 16px; font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; color: #fff; text-decoration: none; background: var(--vr-blue); transition: background .2s; }
.vr .vr-btn:hover, .vr .vr-btn:focus-visible { background: var(--vr-navy); color: #fff; }
.vr-btn svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }

@media (max-width: 1240px) {
  .vr-intro { grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; padding: 52px 0; }
  .vr-card { flex-basis: calc((100% - 44px) / 3); }
  .vr-cards--4 .vr-card { flex-basis: calc((100% - 22px) / 2); max-width: 360px; }
}

@media (max-width: 900px) {
  .vr-avail { padding: 60px 0 72px; }
  .vr-intro { grid-template-columns: 1fr; gap: 32px; }
  .vr-badge { flex-direction: row; justify-content: flex-start; gap: 24px; }
  .vr-badge img { flex: none; width: 200px; height: auto; }
  .vr-card, .vr-cards--4 .vr-card { flex-basis: calc((100% - 22px) / 2); }
}

@media (max-width: 767px) {
  .vr-wrap { padding: 0 16px; }
  .vr-intro { padding: 44px 0; }
  .vr-avail { padding: 48px 0 60px; }
  .vr-copy p { font-size: 16px; }
  .vr .vr-cards { margin-top: 32px; gap: 18px; }
}

@media (max-width: 560px) {
  .vr-badge { flex-direction: column; align-items: flex-start; gap: 14px; }
  .vr-badge p { font-size: 30px; }
  .vr-card, .vr-cards--4 .vr-card { flex-basis: 100%; max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .vr * { transition: none !important; }
  .vr-card:hover { transform: none; }
}

.vr-reveal-title span { white-space: nowrap; }

/* Blue pages (Power Conditioners) */
.vr--blue { --vr-red: #01579b; --vr-deep: #16163f; }
.vr--blue .vr-btn { background: var(--vr-navy); }
.vr--blue .vr-btn:hover, .vr--blue .vr-btn:focus-visible { background: var(--vr-blue); }
.vr-title + p { margin-top: 26px; }
.vr-phase em { font-style: italic; }

/* A plain text block that closes a range (e.g. "How can a power line conditioner benefit me?") */
.vr-note { margin-top: 64px; padding: 40px 44px; background: #f3f6fa; border-top: 4px solid var(--vr-red); }
.vr .vr-note h2 { font-family: "Open Sans", system-ui, sans-serif; font-size: clamp(22px, 1.9vw, 30px); font-weight: 700; line-height: 1.25; color: var(--vr-navy); text-wrap: balance; }
.vr-note p { margin-top: 14px; font-size: 16.5px; line-height: 1.75; color: var(--vr-ink); text-wrap: pretty; }
@media (max-width: 767px) { .vr-note { margin-top: 44px; padding: 28px 22px; } }

/* Charcoal pages (Variable Transformers) */
.vr--dark { --vr-red: #3a3d42; --vr-deep: #17181b; --vr-navy: #1e2024; }
.vr--dark .vr-sub::after, .vr--dark .vr-note { border-color: #c4262b; }
.vr--dark .vr-sub::after { background: #c4262b; }
.vr-reveal ul { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.vr-reveal li { font-size: 15px; font-weight: 600; line-height: 1.45; color: #fff; }
/* Note box with one of their image buttons beside the text */
.vr-note--cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.vr-note--cta a { display: block; transition: transform .2s; }
.vr-note--cta a:hover, .vr-note--cta a:focus-visible { transform: translateY(-2px); }
.vr-note--cta img { display: block; width: 280px; max-width: 100%; height: auto; }
@media (max-width: 900px) { .vr-note--cta { grid-template-columns: 1fr; } }

.vr-reveal li .vr-in { display: block; font-weight: 400; }
/* Short notes under a row of boxes */
.vr-extra { margin-top: 40px; display: grid; gap: 10px; font-size: 17px; line-height: 1.7; color: var(--vr-ink); text-align: center; }
.vr-extra p { text-wrap: balance; }
.vr .vr-extra a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--vr-navy); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.vr .vr-extra a:hover, .vr .vr-extra a:focus-visible { color: #c4262b; }
