/* ===== Other Voltage Control Solutions =====
   Same boxes as the Voltage Stabilizers section, two by two: full photo,
   range, title, View bar. A Features button on the photo reveals the list
   inside the box. */
.os {
  --os-blue: #01579b;
  --os-blue-dark: #013f70;
  --os-cyan: #01c4fc;
  --os-navy: #16163f;
  --os-wrap: 1350px; /* same as the page content container */
  --os-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
  background: #fff; color: var(--os-navy);
  font-family: Montserrat, system-ui, sans-serif;
}
.os *, .os *::before, .os *::after { box-sizing: border-box; }
.os h2, .os h3, .os p, .os ul { margin: 0; padding: 0; }
.os ul { list-style: none; }
.os a svg, .os button svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.os a:focus-visible, .os button:focus-visible { outline: 2px solid var(--os-cyan); outline-offset: 3px; }
.os-wrap { max-width: var(--os-wrap); margin-inline: auto; padding: 76px 10px 88px; }

.os-head { text-align: center; }
.os .os-title { font-family: "Open Sans", system-ui, sans-serif; font-size: clamp(28px, 2.9vw, 46px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: var(--os-navy); text-wrap: balance; }
.os .os-title::after { content: ""; display: block; width: 72px; height: 4px; margin: 22px auto 0; background: var(--os-blue); }

.os-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.os-card { display: flex; flex-direction: column; background: #fff; box-shadow: 0 0 0 1px #e3e8ef, 0 30px 60px -34px rgba(22,22,63,.5); }
.os-top { position: relative; flex: 1; display: grid; grid-template-rows: auto 1fr; overflow: hidden; container-type: inline-size; }
.os-media { background: #e9e9e9; }
.os-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.os-body { padding: 26px 36px 30px; border-top: 4px solid var(--os-blue); }
.os .os-range { font-size: 18px; font-weight: 700; line-height: 1.2; color: var(--os-blue); }
.os .os-card h3 { margin-top: 10px; font-family: "Open Sans", system-ui, sans-serif; font-size: clamp(21px, 1.7vw, 27px); font-weight: 700; line-height: 1.25; color: var(--os-navy); text-wrap: balance; }

/* Features button: top left of the photo, same as the Voltage Stabilizers boxes */
.os .os-toggle { position: absolute; z-index: 3; top: 20px; left: 20px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 60px; padding: 10px 24px 10px 28px; border: 0; border-radius: 0; background: var(--os-navy); color: #fff; font: 700 18px/1.3 Montserrat, system-ui, sans-serif; cursor: pointer; box-shadow: 0 16px 28px -12px rgba(22,22,63,.65); transition: background .25s, color .25s; }
.os .os-toggle:hover, .os .os-toggle:focus-visible { background: var(--os-blue); color: #fff; }
.os .os-toggle[aria-expanded="true"] { background: var(--os-navy); color: #fff; box-shadow: none; }
.os .os-toggle svg { font-size: 22px; stroke-width: 2.5; transition: transform .45s cubic-bezier(.3, .7, .2, 1); }
.os .os-toggle[aria-expanded="true"] svg { transform: rotate(135deg); }

/* The reveal: the list grows out of the button and fills the box */
.os-reveal { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 100px 52px 30px; background: linear-gradient(150deg, var(--os-blue) 0%, var(--os-navy) 100%); color: #fff; clip-path: circle(0 at var(--os-cx, 15%) var(--os-cy, 45px)); visibility: hidden; transition: clip-path .6s cubic-bezier(.4, 0, .2, 1), visibility 0s .6s; }
.os-card.is-open .os-reveal { clip-path: circle(150% at var(--os-cx, 15%) var(--os-cy, 45px)); visibility: visible; transition: clip-path .6s cubic-bezier(.4, 0, .2, 1), visibility 0s; }
.os .os-reveal-title { font-family: "Open Sans", system-ui, sans-serif; font-size: 25px; font-weight: 700; line-height: 1.2; color: #fff; }
.os .os-reveal-title::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 14px; background: var(--os-cyan); }
.os-features { margin-top: 20px !important; }
.os-features li { position: relative; padding-left: 34px; font-size: 17px; line-height: 1.4; }
.os-features li + li { margin-top: 7px; }
.os-features li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; background: var(--os-cyan); -webkit-mask: var(--os-tick) center / contain no-repeat; mask: var(--os-tick) center / contain no-repeat; }

/* View link, flush with the bottom of the box */
.os .os-btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; padding: 10px 36px; background: var(--os-blue); color: #fff; font-size: 17px; font-weight: 600; line-height: 1.3; text-decoration: none; transition: background .2s; }
.os .os-btn:hover, .os .os-btn:focus-visible { background: var(--os-blue-dark); color: #fff; }
.os .os-btn svg { font-size: 22px; transition: transform .2s; }
.os .os-btn:hover svg { transform: translateX(5px); }

@media (max-width: 1240px) {
  .os-wrap { padding-block: 60px 68px; }
  .os-cards { gap: 24px; margin-top: 40px; }
  .os-body { padding: 22px 26px 26px; }
  .os .os-range { font-size: 17px; }
  .os .os-toggle { top: 16px; left: 16px; }
  .os-reveal { padding: 90px 34px 24px; }
  .os .os-reveal-title { font-size: 21px; }
  .os-features { margin-top: 16px !important; }
  .os-features li { font-size: 16px; }
  .os-features li + li { margin-top: 6px; }
  .os .os-btn { padding-inline: 26px; font-size: 16px; }
}

/* Narrower boxes: the list can be taller than the box, so the open list sets the height */
@media (max-width: 1100px) {
  .os-cards { align-items: start; }
  .os-card.is-open .os-reveal { position: relative; inset: auto; grid-area: 1 / 1 / 3 / 2; }
  .os-card.is-open .os-media { grid-area: 1 / 1; }
  .os-card.is-open .os-body { grid-area: 2 / 1; }
}

@media (max-width: 767px) {
  .os-wrap { padding-block: 48px 56px; }
  .os-cards { grid-template-columns: 1fr; margin-top: 32px; }
  .os-body { padding: 20px 20px 22px; }
  .os .os-toggle { top: 12px; left: 12px; min-height: 52px; padding: 8px 18px 8px 20px; font-size: 16px; }
  .os-reveal { padding: 84px 22px 26px; justify-content: flex-start; }
  .os .os-reveal-title { font-size: 20px; }
  .os .os-btn { padding-inline: 20px; font-size: 15px; }
}

/* Phones: a little more room at the screen edges */
@media (max-width: 767px) {
  .os-wrap { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .os * { transition: none !important; }
}
