/*
 * SEO heading compat.
 * Popup / modal titles, navbar menu labels and footer column titles were
 * <h1>-<h4> tags; they are now <div>/<span> so each page keeps a single H1
 * and a clean heading outline. These rules restore what those elements used
 * to inherit from the global h1/h2/h3/h4 rules (style.css, design-services.css)
 * and the browser's heading defaults.
 *
 * :where() keeps specificity at 0, so every element's own class rules still win
 * exactly as before; this only fills in the properties they never set.
 */

/* was <h1> */
:where(.msf-title, .msf-thankyou-title, .dpop-title) {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.5008px;
  color: var(--navy-text, var(--black));
  font-weight: 500;
  margin-bottom: 20px;
  animation: fadeUp 0.5s 0.1s ease both;
}

/* was <h2> */
:where(.nl-title) {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.2992px;
  margin-bottom: 16px;
  color: var(--navy-text, var(--black));
}

/* was <h3> */
:where(.hero-banner-form__title, .side-rail__form-title, .dpop-success-title) {
  display: block;
  font-family: var(--font-heading, "Playfair Display", serif);
  color: var(--navy-text, var(--black));
  line-height: 1.15;
  font-size: 1.17em;
  font-weight: bold;
}

/* was <h4> */
:where(.nav-mega-heading, .footer-heading) {
  display: block;
  font-weight: bold;
}

:where(.msf-title, .msf-thankyou-title, .dpop-title, .nl-title,
  .hero-banner-form__title, .side-rail__form-title, .dpop-success-title) em {
  font-style: italic;
  color: var(--midnight);
}

:where(.msf-title, .msf-thankyou-title, .dpop-title) strong {
  font-weight: 600;
}

@media (max-width: 768px) {
  :where(.msf-title, .msf-thankyou-title, .dpop-title, .nl-title,
    .hero-banner-form__title, .side-rail__form-title, .dpop-success-title,
    .nav-mega-heading, .footer-heading) {
    overflow-wrap: break-word;
  }
}

/* Pricing package names are now <h3> (were <div>): keep the inherited
   line-height instead of the global h1,h2,h3 { line-height: 1.15 }. */
h3.p-name {
  line-height: inherit;
}
