/*
 * "איך זה עובד" — density + background-separation study.
 *
 * The first pass gave every inner page the same recipe: white background,
 * generous section padding, one full-width row per item. On a page that is
 * almost entirely body copy that reads as a lot of text floating in a lot of
 * nothing. This variant changes three things and nothing else:
 *
 *   1. BANDS. Navy hero → tinted stage field → deep-blue close. The page now
 *      has a top, a middle and an end instead of one continuous white sheet.
 *   2. DENSITY. Six full-width rows become a two-column grid, section padding
 *      drops by roughly a third, and body copy tightens from 1.85 to 1.65.
 *   3. CORAL. --brand-coral carries the stage numbers, so the page is not one
 *      more all-blue screen.
 *
 * Scoped to this page's three section ids, so the other twelve pages are
 * untouched until the direction is approved.
 *
 * FILENAME MATTERS: the mu-plugin globs sections/*.css and enqueues in sorted
 * order, so this file must sort AFTER dn-pages2.css or its equal-specificity
 * rules lose the tie. Named dn-hw-v2 first, it loaded before dn-pages2 and the
 * coral badges silently stayed blue. Hence the zz- prefix.
 */

/* ------------------------------------------------------------------ hero */

#dn-hw-hero.dn-page-head {
  background: linear-gradient(135deg, #0d1a2e 0%, #16294a 55%, #1d3a6b 100%);
  /* was clamp(128px, 13vw, 184px) top — the band reads as deliberate at less */
  padding-top: clamp(112px, 11vw, 152px) !important;
  padding-bottom: clamp(56px, 7vw, 84px);
  overflow: hidden;
}

/* A soft brand wash so the navy is not flat. */
#dn-hw-hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -8%;
  top: -30%;
  width: min(60vw, 760px);
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 40% 40%, rgba(41, 128, 242, 0.34), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

/* 1fr 1fr left the illustration marooned in the middle of its cell with dead
   navy on both sides. Give the copy the wider track and let the art fill. */
#dn-hw-hero .dn-split {
  position: relative;
  z-index: 1;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 3vw, 40px) !important;
  align-items: center;
}

#dn-hw-hero .dn-h1 .elementor-heading-title {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.12;
  color: #fff;
}

#dn-hw-hero .dn-lead-h2 { margin-top: 14px; }

#dn-hw-hero .dn-lead-h2 .elementor-heading-title {
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 500;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

#dn-hw-hero .dn-split-img img {
  max-width: 100%;
  width: min(100%, 460px);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.4));
}

/* The band was 644px tall for ~200px of content. */
#dn-hw-hero.dn-page-head {
  padding-bottom: clamp(40px, 5vw, 60px);
}

/* ---------------------------------------------------------------- stages */

#dn-hw-stages {
  /* --page-panel (#f4f8ff) is barely off-white and read as "still white".
     This is a real tint, so the white cards actually sit ON something. */
  background:
    radial-gradient(1200px 420px at 80% -8%, rgba(41, 128, 242, 0.14), transparent 62%),
    linear-gradient(180deg, #e6eefc 0%, #dee9fa 55%, #e9f0fd 100%);
  padding-block: clamp(52px, 6.5vw, 84px);
}

#dn-hw-stages .dn-stages-h2 {
  margin-bottom: clamp(24px, 3vw, 34px);
}

#dn-hw-stages .dn-stages-h2 .elementor-heading-title {
  font-size: clamp(26px, 2.8vw, 38px);
}

/*
 * Six stacked full-width rows was the main source of dead space: each row left
 * a wide empty gutter beside a narrow column of text. Two columns fill the
 * measure and cut the section height roughly in half.
 */
#dn-hw-stages .dn-steps {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 18px !important;
  max-width: 1120px;
  margin-top: 0;
  align-items: start;
}

#dn-hw-stages .dn-step {
  /* The card is now a column: badge + title on top, copy beneath. Side-by-side
     inside a half-width card would leave the text ~200px wide. */
  flex-direction: column !important;
  border-radius: var(--r-lg);
  padding: 22px 24px;
  background: #fff;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 22px -8px rgba(18, 49, 99, 0.22);
}

#dn-hw-stages .dn-step:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

#dn-hw-stages .dn-step-head {
  flex: 0 0 auto !important;
  width: 100% !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* Coral badge instead of the oversized gradient numeral — same information,
   a third of the vertical cost, and the page stops being monochrome blue. */
#dn-hw-stages .dn-step-num {
  flex: 0 0 auto;
}

#dn-hw-stages .dn-step-num .elementor-heading-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--brand-coral), #f2b39f);
  color: #4a1d10;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  direction: ltr;
  unicode-bidi: isolate;
}

#dn-hw-stages .dn-step-title {
  flex: 1 1 auto;
  min-width: 0;
}

#dn-hw-stages .dn-step-title .elementor-heading-title {
  font-size: 19px;
  margin-top: 0;
}

#dn-hw-stages .dn-step-body {
  width: 100% !important;
}

#dn-hw-stages .dn-step-text p {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 9px;
}

/* Stage 1 carries three paragraphs including the reporting list; it earns the
   full row rather than being squeezed into a half. */
#dn-hw-stages .dn-step:first-child {
  grid-column: 1 / -1;
}

#dn-hw-stages .dn-step:first-child .dn-step-head {
  border-bottom-color: rgba(242, 155, 136, 0.35);
}

/* The bullet run inside stage 1 reads as a list, not a paragraph. */
#dn-hw-stages .dn-step:first-child .dn-step-text p:nth-child(2) {
  background: #f1f6ff;
  border-inline-start: 3px solid var(--brand-coral);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-block: 12px;
  color: var(--page-fg);
}

#dn-hw-stages .dn-step:nth-child(2) { --reveal-delay: 60ms; }
#dn-hw-stages .dn-step:nth-child(3) { --reveal-delay: 100ms; }
#dn-hw-stages .dn-step:nth-child(4) { --reveal-delay: 140ms; }
#dn-hw-stages .dn-step:nth-child(5) { --reveal-delay: 180ms; }
#dn-hw-stages .dn-step:nth-child(6) { --reveal-delay: 220ms; }

/* ------------------------------------------------------------------- CTA */

#dn-hw-cta.dn-cta-band {
  background: linear-gradient(135deg, #123163 0%, #1d4d9e 60%, #2980f2 100%);
  padding-block: clamp(52px, 6.5vw, 84px);
}

#dn-hw-cta .dn-cta-blob {
  background: rgba(255, 255, 255, 0.06);
  filter: blur(10px);
}

#dn-hw-cta .dn-cta-h2 .elementor-heading-title {
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.2;
  color: #fff;
}

#dn-hw-cta .dn-cta-sub { margin-top: 14px; }

#dn-hw-cta .dn-cta-sub .elementor-heading-title {
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 720px;
  margin-inline: auto;
}

#dn-hw-cta .dn-cta-note { margin-top: 12px; }

#dn-hw-cta .dn-cta-note .elementor-heading-title {
  font-size: 14px;
  color: var(--brand-coral);
}

#dn-hw-cta .dn-form-card {
  margin-top: clamp(22px, 3vw, 32px);
  padding: clamp(20px, 2.6vw, 28px);
  border: 0;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.45);
}

/* On the blue plate the submit needs to be the coral, not another blue pill. */
#dn-hw-cta .dn-form.elementor-widget-form .elementor-button[type="submit"] {
  background: var(--brand-coral);
  color: #4a1d10;
}

#dn-hw-cta .dn-form.elementor-widget-form .elementor-button[type="submit"]:hover {
  background: #eb8d78;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  #dn-hw-stages .dn-steps { grid-template-columns: 1fr; }
  #dn-hw-stages .dn-step:first-child { grid-column: auto; }
}

@media (max-width: 767px) {
  #dn-hw-hero.dn-page-head { padding-top: clamp(96px, 20vw, 132px) !important; }
  #dn-hw-stages .dn-step-head { flex-wrap: wrap; }
}
