/* MASAR_EN_PREMIUM_V1 - scoped to the English website only. */

html[lang="en"] {
  --masar-en-font: "Plus Jakarta Sans", "Manrope", Arial, sans-serif;
  --font-latin: var(--masar-en-font);
  --font-display: var(--masar-en-font);
}

html[lang="en"] body {
  font-family: var(--masar-en-font) !important;
  font-size: 14.5px;
  line-height: 1.78;
  font-weight: 450;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="en"] body :is(
  h1,h2,h3,h4,h5,h6,p,li,span,strong,b,
  a,button,label,small,blockquote,figcaption
) {
  -webkit-hyphens: none !important;
  hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

html[lang="en"] :is(
  h1,h2,h3,h4,h5,h6,
  .section-title,
  .v324-article-head h1
) {
  font-family: var(--masar-en-font) !important;
  font-style: normal;
  letter-spacing: -0.027em !important;
  text-transform: none;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  -webkit-hyphens: none !important;
  hyphens: none !important;
  text-wrap: balance;
  max-width: 100%;
}

/* Hero titles - deliberately smaller than the old Arabic scale. */
html[lang="en"] :is(.hero h1,.hero-content h1) {
  font-size: clamp(34px, 3.2vw, 48px) !important;
  font-weight: 700 !important;
  line-height: 1.23 !important;
  letter-spacing: -0.038em !important;
}

html[lang="en"] :is(
  .page-hero h1,
  .page-hero-content h1,
  .v324-article-head h1
) {
  font-size: clamp(30px, 2.85vw, 42px) !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
}

/* All major section headings and CTA titles. */
html[lang="en"] :is(
  h2,
  .section-head h2,
  .section-title,
  .intro-copy h2,
  .cta-content h2,
  .office-location-content h2
) {
  font-size: clamp(25px, 2.45vw, 36px) !important;
  font-weight: 680 !important;
  line-height: 1.32 !important;
}

html[lang="en"] :is(
  h3,
  .service-card h3,
  .trust-card h3,
  .portfolio-card h3,
  .cms-news-text h3,
  .v324-news-feature-card h3,
  .country-card h3
) {
  font-size: clamp(18px, 1.5vw, 22px) !important;
  font-weight: 670 !important;
  line-height: 1.4 !important;
}

html[lang="en"] :is(h4,h5,h6) {
  font-size: clamp(15px, 1.2vw, 18px) !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
}

/* Premium, calm body copy. */
html[lang="en"] :is(
  p,
  .hero-lead,
  .page-hero-content > p,
  .section-lead,
  .office-location-lead,
  .v324-article-copy,
  .cms-news-text p,
  .trust-card p
) {
  font-family: var(--masar-en-font) !important;
  font-size: clamp(14px, 1.04vw, 15.5px) !important;
  font-weight: 450 !important;
  line-height: 1.78 !important;
  letter-spacing: -0.008em;
  text-wrap: pretty;
}

html[lang="en"] :is(strong,b) {
  font-weight: 680 !important;
}

html[lang="en"] :is(
  .eyebrow,
  .hero-eyebrow,
  .page-hero .eyebrow,
  .section-kicker,
  .hero-type-line,
  .nav-item,
  .navigation a,
  .btn,
  button,
  .v324-kicker
) {
  font-family: var(--masar-en-font) !important;
  font-weight: 620 !important;
  letter-spacing: 0.005em !important;
}

/* Allow space-based wrapping inside layouts rather than cut words. */
html[lang="en"] :is(
  .hero-content,
  .page-hero-content,
  .section-head,
  .intro-copy,
  .cta-content,
  .office-location-content,
  .service-grid > *,
  .portfolio-cards > *,
  .trust-grid > *,
  .cms-live-news-grid > *
) {
  min-width: 0;
}

html[lang="en"] a[href^="mailto:"] {
  overflow-wrap: anywhere !important;
}

/* Tablet */
@media (max-width: 900px) {
  html[lang="en"] :is(.hero h1,.hero-content h1) {
    font-size: clamp(31px, 4.5vw, 41px) !important;
    line-height: 1.24 !important;
  }

  html[lang="en"] :is(.page-hero h1,.page-hero-content h1) {
    font-size: clamp(28px, 4.1vw, 37px) !important;
    line-height: 1.29 !important;
  }

  html[lang="en"] h2 {
    font-size: clamp(24px, 3.45vw, 32px) !important;
  }
}

/* Mobile */
@media (max-width: 600px) {
  html[lang="en"] body {
    font-size: 14px;
    line-height: 1.75;
  }

  html[lang="en"] :is(.hero h1,.hero-content h1) {
    font-size: clamp(27px, 7.3vw, 34px) !important;
    font-weight: 700 !important;
    line-height: 1.28 !important;
    letter-spacing: -0.025em !important;
  }

  html[lang="en"] :is(
    .page-hero h1,
    .page-hero-content h1,
    .v324-article-head h1
  ) {
    font-size: clamp(26px, 6.7vw, 32px) !important;
    line-height: 1.32 !important;
  }

  html[lang="en"] :is(
    h2,.section-head h2,.section-title,
    .cta-content h2,.office-location-content h2
  ) {
    font-size: clamp(22px, 5.6vw, 28px) !important;
    font-weight: 680 !important;
    line-height: 1.36 !important;
  }

  html[lang="en"] h3 {
    font-size: clamp(17px, 4.35vw, 20px) !important;
    line-height: 1.43 !important;
  }

  html[lang="en"] :is(
    p,.hero-lead,.page-hero-content > p,
    .section-lead,.trust-card p,.cms-news-text p
  ) {
    font-size: 14px !important;
    line-height: 1.77 !important;
  }

  html[lang="en"] :is(
    .section-head,.hero-content,.page-hero-content
  ) {
    max-width: 100% !important;
  }
}