/* NEXT Story widget: photo collage with a red badge, copy, highlights, button and phone.
 * Colors + fonts come from the site brand kit (--next-* tokens).
 */
.nx-story {
  --nx-gutter: clamp(16px, 4vw, 56px);
  position: relative; box-sizing: border-box;
  padding: clamp(64px, 8vw, 110px) var(--nx-gutter);
  background: var(--next-white); color: var(--next-body); font-family: var(--next-font-head);
}
.nx-story *, .nx-story *::before, .nx-story *::after { box-sizing: border-box; }
.nx-story-in {
  max-width: 1480px; margin: 0 auto; padding-inline: clamp(28px, 3vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); align-items: center;
}
.nx-story--flip .nx-story-media { order: 2; }

/* Collage: one tall photo, two stacked */
.nx-story-media { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(420px, 44vw, 600px); }
.nx-story-media figure { position: relative; margin: 0; overflow: hidden; background: var(--next-tint); }
.nx-story-media figure:first-child { grid-row: 1 / 3; }
.nx-story-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nx-story-media--1 { grid-template-columns: 1fr; }
.nx-story-media--2 { grid-template-rows: 1fr; }
.nx-story-media--2 figure:first-child { grid-row: auto; }

.nx-story-badge {
  position: absolute; left: 58%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 150px; padding: 22px 18px 20px; text-align: center;
  background: var(--next-red); color: var(--next-black);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18); outline: 8px solid var(--next-white);
}
.nx-story-media--1 .nx-story-badge { left: auto; right: 24px; top: auto; bottom: 24px; transform: none; }
/* One photo: shorter, with a red block behind its lower right corner, left edge cut at 19.03° */
.nx-story-media--1 { height: clamp(380px, 38vw, 540px); isolation: isolate; }
.nx-story-media--1 figure { overflow: visible; }
.nx-story-media--1 figure img { position: relative; z-index: 1; }
.nx-story-media--1::after { content: ""; position: absolute; right: -14px; bottom: -14px; z-index: -1; width: 52%; height: 52%; background: var(--next-red); clip-path: polygon(96px 0, 100% 0, 100% 100%, 0 100%); }
.nx-story-badge b { display: block; font: 700 54px/.9 var(--next-font-call); letter-spacing: -.02em; }
.nx-story-badge span { display: block; margin-top: 8px; font: 700 11px/1.3 var(--next-font-sub); letter-spacing: .14em; text-transform: uppercase; }

.nx-story .eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 16px;
  font: 700 12px/1 var(--next-font-sub); letter-spacing: .2em; text-transform: uppercase; color: var(--next-red);
}
.nx-story .eyebrow::after { content: ""; width: 48px; height: 2px; background: var(--next-red); }
.nx-story-copy h2, .nx-story-copy h3 { margin: 0 0 20px; color: var(--next-black); font: 700 clamp(32px, 4vw, 52px)/1.08 var(--next-font-head); letter-spacing: -.02em; text-wrap: balance; }
.nx-story-text p { margin: 0 0 16px; max-width: 62ch; font: 400 17px/1.7 var(--next-font-head); color: var(--next-body); }
.nx-story-text a { color: var(--next-black); text-decoration-color: var(--next-red); }

.nx-story-pull { margin: 28px 0 0; padding-left: 20px; border-left: 3px solid var(--next-red); font: 700 22px/1.3 var(--next-font-head); color: var(--next-black); }
.nx-story-pull span { display: block; margin-top: 6px; max-width: 56ch; font: 400 16px/1.55 var(--next-font-head); color: var(--next-muted); }
.nx-story-pull + .nx-story-checks { margin-top: 24px; }

.nx-story-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 8px 0 0; padding: 0; list-style: none; }
.nx-story-checks li { display: flex; gap: 12px; align-items: flex-start; margin: 0; font: 500 15px/1.4 var(--next-font-head); color: var(--next-black); }
.nx-story-checks li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 3px; background: var(--next-red); clip-path: polygon(0 0, 100% 0, calc(100% - 4.8px) 100%, 0 100%); }

/* Button + phone sit on the same two columns as the highlights, so the phone lines up
   with the right-hand red bullets. Falls back to a simple row where a column is
   narrower than the button (1101–1279px) and on phones (one bullet column). */
.nx-story-actions { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 22px 24px; margin-top: 30px; }
.nx-story-actions > * { justify-self: start; }
@media (min-width: 1101px) and (max-width: 1279px) {
  .nx-story-actions { display: flex; flex-wrap: wrap; gap: 22px 32px; }
}
/* Button: the hero Request a Quote shape (black text on red) */
.nx-story .btn { display: inline-flex; align-items: stretch; height: 58px; text-decoration: none; }
.nx-story .btn-label {
  display: flex; align-items: center; padding: 0 44px 0 28px;
  background: var(--next-red); color: var(--next-black);
  font: 700 15px/1 var(--next-font-call); letter-spacing: .08em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%); transition: background .2s;
}
.nx-story .btn-arrow { width: 64px; margin-left: -14px; padding-left: 14px; display: grid; place-items: center; background: var(--next-cyan); clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%); }
.nx-story .btn-arrow svg { width: 15px; height: 15px; stroke: #000; fill: none; stroke-width: 2.6; transition: transform .25s; }
.nx-story .btn[href]:hover .btn-label { background: var(--next-red-hover); }
.nx-story .btn[href]:hover .btn-arrow svg { transform: translateX(4px); }
.nx-story .btn:focus-visible { outline: 3px solid var(--next-cyan); outline-offset: 4px; }
/* Phone: same as the FAQ help row */
.nx-story .phone { display: inline-flex; align-items: center; gap: 12px; color: var(--next-black); text-decoration: none; }
.nx-story .phone .sq { width: 58px; height: 58px; display: grid; place-items: center; background: var(--next-red); }
.nx-story .phone .sq svg { width: 24px; height: 24px; fill: var(--next-black); }
.nx-story .phone small { display: block; font: 700 11px/1.2 var(--next-font-sub); letter-spacing: .12em; text-transform: uppercase; color: var(--next-muted); }
.nx-story .phone b { display: block; font: 700 22px/1.1 var(--next-font-call); letter-spacing: .02em; }
.nx-story .phone:focus-visible { outline: 3px solid var(--next-cyan); outline-offset: 4px; }

@media (max-width: 1100px) {
  .nx-story-in { grid-template-columns: 1fr; padding-inline: 28px; }
  .nx-story--flip .nx-story-media { order: 0; }
}
@media (max-width: 700px) {
  .nx-story-checks { grid-template-columns: 1fr; }
  .nx-story-actions { display: flex; flex-wrap: wrap; gap: 22px 32px; }
  .nx-story-media { height: 420px; }
}
@media (max-width: 560px) {
  .nx-story-in { padding-inline: 20px; }
  .nx-story-badge { width: 124px; padding: 16px 12px; }
  .nx-story-badge b { font-size: 42px; }
}
