/*
 * Shared patterns for the inner pages of the dia-nobel.com rebuild.
 *
 * Content and section order are 1:1 with the client's live site; the visual
 * language comes from tokens.css. Classes here are generic (dn-h1, dn-split,
 * dn-note…) because the live site repeats the same handful of layouts across
 * pages — one definition beats thirteen near-identical section files.
 */

/* The header is sticky and translucent; inner pages open straight into content
   and need the extra top run so the first line never sits under the capsule. */
.dn-page-head {
  padding-top: clamp(128px, 13vw, 184px) !important;
}

/* ------------------------------------------------------------- typography */

.dn-h1 .elementor-heading-title {
  font-size: var(--t-h1);
  font-weight: 900;
  line-height: 1.08;
  color: var(--page-fg-strong);
}

.dn-h1-accent .elementor-heading-title {
  font-size: var(--t-h1);
  font-weight: 900;
  line-height: 1.08;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dn-h2 .elementor-heading-title {
  font-size: var(--t-h2);
  font-weight: 900;
  line-height: 1.1;
  color: var(--page-fg-strong);
}

.dn-h2-accent .elementor-heading-title {
  font-size: var(--t-h2);
  font-weight: 900;
  line-height: 1.1;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dn-lead-h2 .elementor-heading-title {
  font-size: var(--t-lead);
  font-weight: 600;
  line-height: 1.6;
  color: var(--page-fg-muted);
}

.dn-lead-h3 .elementor-heading-title {
  font-size: var(--t-lead);
  font-weight: 500;
  line-height: 1.65;
  color: var(--page-fg-muted);
}

.dn-lead-h2,
.dn-lead-h3 {
  margin-top: 18px;
  --reveal-delay: 90ms;
}

/* A rhetorical one-word question the live site sets as its own heading. */
.dn-ask .elementor-heading-title {
  font-size: var(--t-h3);
  font-weight: 800;
  line-height: 1.2;
  color: var(--brand-primary);
}

.dn-ask {
  margin-top: 20px;
  --reveal-delay: 150ms;
}

/* ------------------------------------------------------------- eyebrows */

.dn-eyebrow {
  align-self: flex-start;
  color: var(--brand-primary);
  background: rgba(41, 128, 242, 0.08);
  box-shadow: inset 0 0 0 1px rgba(41, 128, 242, 0.18);
  margin-bottom: 16px;
}

/* "הבעיה:" is the negative half of the pair — warm tint so the problem and the
   solution read as opposites without changing the copy. */
.dn-eyebrow-warn {
  color: var(--brand-coral);
  background: rgba(242, 155, 136, 0.12);
  box-shadow: inset 0 0 0 1px rgba(242, 155, 136, 0.3);
}

/* --------------------------------------------------------- split layouts */

.dn-split {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Elementor writes width:50% on the children; inside a grid that resolves
   against the cell, not the row. */
.dn-split-text,
.dn-split-visual {
  width: auto !important;
  min-width: 0;
}

.dn-split-img img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 500px;
  margin-inline: auto;
  transition: transform var(--dur-slow) var(--ease);
}

.dn-split:hover .dn-split-img img {
  transform: translateY(-6px);
}

/* The prose column of a problem/solution row sits in a card so the two halves
   read as a pair rather than as one long paragraph beside a title. */
.dn-note p {
  font-size: var(--t-body);
  line-height: 1.8;
  color: var(--page-fg-muted);
  margin: 0;
}

.dn-note {
  background: #fff;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--brand-primary);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-card);
  --reveal-delay: 120ms;
}

.dn-note-warn {
  border-inline-start-color: var(--brand-coral);
}

/* --------------------------------------------------------------- sections */

#dn-pr-hero { background: linear-gradient(180deg, var(--page-panel) 0%, var(--page-bg) 100%); }
#dn-pr-system { background: var(--page-bg); }
#dn-pr-problem { background: var(--page-bg); }
#dn-pr-solution { background: var(--page-panel); }

#dn-pr-hero .dn-pr-blob {
  top: -110px;
  inset-inline-end: -130px;
  width: 480px;
  height: 420px;
  border-radius: 55% 45% 45% 55% / 50% 55% 45% 50%;
  background: rgba(41, 128, 242, 0.04);
  filter: blur(8px);
}

#dn-pr-solution .dn-sol-blob {
  bottom: -90px;
  inset-inline-start: -110px;
  width: 440px;
  height: 380px;
  border-radius: 45% 55% 55% 45% / 55% 45% 55% 45%;
  background: rgba(41, 128, 242, 0.045);
  filter: blur(8px);
}

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

.dn-cta-band {
  background: linear-gradient(180deg, var(--page-bg) 0%, var(--page-panel) 100%);
}

.dn-cta-inner {
  text-align: center;
  max-width: 900px;
}

.dn-cta-h2 .elementor-heading-title {
  font-size: var(--t-h2);
  font-weight: 900;
  line-height: 1.12;
  color: var(--page-fg-strong);
}

.dn-cta-sub {
  margin-top: 20px;
  --reveal-delay: 90ms;
}

.dn-cta-sub .elementor-heading-title {
  font-size: var(--t-lead);
  font-weight: 500;
  line-height: 1.65;
  color: var(--page-fg-muted);
}

.dn-cta-note {
  margin-top: 16px;
  --reveal-delay: 140ms;
}

.dn-cta-note .elementor-heading-title {
  font-size: var(--t-small);
  font-weight: 700;
  line-height: 1.5;
  color: var(--brand-coral);
}

.dn-cta-band .dn-form-card {
  margin: clamp(28px, 4vw, 40px) auto 0;
  --reveal-delay: 200ms;
}

.dn-cta-band .dn-cta-blob {
  top: -80px;
  inset-inline-start: -120px;
  width: 460px;
  height: 400px;
  border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
  background: rgba(126, 176, 242, 0.08);
  filter: blur(8px);
}

/* ------------------------------------------------------------------- FAQ */

#dn-faq {
  background: linear-gradient(180deg, var(--page-panel) 0%, var(--page-bg) 100%);
}

#dn-faq .dn-faq-blob {
  top: 4%;
  inset-inline-end: -120px;
  width: 440px;
  height: 380px;
  border-radius: 55% 45% 50% 50% / 45% 55% 45% 55%;
  background: rgba(41, 128, 242, 0.045);
  filter: blur(8px);
}

#dn-faq .dn-faq-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

#dn-faq .dn-h1-accent { margin-top: 2px; --reveal-delay: 80ms; }

#dn-faq .dn-acc {
  width: 100%;
  max-width: 880px;
  margin: clamp(36px, 5vw, 52px) auto 0;
  text-align: start;
  --reveal-delay: 160ms;
}

#dn-faq .elementor-accordion .elementor-accordion-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur) var(--ease);
}

#dn-faq .elementor-accordion .elementor-accordion-item:hover {
  box-shadow: var(--shadow-strong);
}

#dn-faq .elementor-tab-title {
  padding: 20px 24px;
  border: 0;
  font-size: var(--t-h4);
  font-weight: 800;
  line-height: 1.4;
}

/*
 * The title is an <a>, so it takes the kit's link colour and the active state
 * its own — colouring .elementor-tab-title alone left the closed titles blue
 * and the open one green. Style the anchor itself.
 */
#dn-faq .elementor-accordion-title {
  color: var(--page-fg-strong);
  transition: color var(--dur) var(--ease);
}

#dn-faq .elementor-tab-title:hover .elementor-accordion-title,
#dn-faq .elementor-tab-title.elementor-active .elementor-accordion-title {
  color: var(--brand-primary);
}

/* e_font_icon_svg is active on this install, so the icon is an inline <svg>
   and needs fill, not color. Both are set so it survives either mode. */
#dn-faq .elementor-accordion-icon,
#dn-faq .elementor-accordion-icon i {
  color: var(--brand-primary);
}

#dn-faq .elementor-accordion-icon svg {
  fill: var(--brand-primary);
  width: 16px;
  height: 16px;
}

#dn-faq .elementor-tab-content {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 20px 24px 26px;
}

#dn-faq .elementor-tab-content p {
  font-size: var(--t-body);
  line-height: 1.85;
  color: var(--page-fg-muted);
  margin: 0;
}

/* --------------------------------------------------------------- contact */

#dn-contact {
  background: linear-gradient(180deg, var(--page-panel) 0%, var(--page-bg) 100%);
}

#dn-contact .dn-contact-blob {
  top: 2%;
  inset-inline-start: -110px;
  width: 420px;
  height: 380px;
  border-radius: 50% 50% 55% 45% / 45% 55% 45% 55%;
  background: rgba(41, 128, 242, 0.045);
  filter: blur(8px);
}

#dn-contact .dn-contact-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

#dn-contact .dn-contact-card {
  margin: clamp(30px, 4vw, 44px) auto 0;
  text-align: start;
  --reveal-delay: 140ms;
}

#dn-contact .dn-form textarea {
  resize: vertical;
  min-height: 120px;
}

#dn-contact .dn-contact-list {
  list-style: none;
  margin: clamp(28px, 4vw, 40px) 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 36px);
}

#dn-contact .dn-contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--brand-primary);
  font-size: var(--t-body);
  font-weight: 700;
  text-decoration: none;
  transition: gap var(--dur) var(--ease);
}

#dn-contact .dn-contact-list a:hover { gap: 13px; }

/* ---------------------------------------------------------- testimonials */

#dn-testi.dn-page-head {
  background: linear-gradient(180deg, var(--page-panel) 0%, var(--page-bg) 100%);
}

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

@media (max-width: 1024px) {
  .dn-split {
    grid-template-columns: 1fr;
  }

  /* The live site reverses these rows on tablet/mobile so the copy leads. */
  .dn-pr-system .dn-split-visual,
  .dn-ps-row .dn-note-col {
    order: 2;
  }

  .dn-eyebrow { align-self: center; }
}

@media (max-width: 767px) {
  .dn-page-head {
    padding-top: clamp(108px, 22vw, 148px) !important;
  }

  #dn-faq .elementor-tab-title { font-size: 18px; padding: 17px 18px; }
  #dn-faq .elementor-tab-content { padding: 17px 18px 22px; }
}
