/* ZAT v1.8 - headings.css (v1.10: + section 3 .h2-1l; v1.11: + section 4 .h1-services-lead; v1.12: new 2nd line of .h2-2l, --w re-measured) (loaded right after style.css; cache-busting code 20261018e)
   1) Home page "services" heading (.h2-2l): exactly two lines - one sentence per line - on every screen size.
   2) text-wrap: balance (headings) / pretty (running text): no single word alone on the last line.
   Plain 'self' stylesheet: the CSP (style-src 'self' ...) and the hashed <head> script are not affected. */

/* ---- 1. two-line section heading ----------------------------------------------------------------
   Each sentence is a block span that never wraps (white-space:nowrap), so the heading can never become
   three lines. The font size is the normal heading size (4.4vw, max 68px) - or, when the longer sentence of
   the language does not fit at that size, the size at which it exactly fills the column: column width / --w,
   where --w = width of the longer line in em (uppercase bold Calibri/Carlito, measured per language, with a
   3% safety margin; 12% for Arabic/Urdu whose web fonts differ by platform). v1.12: the second sentence is now
   "Each one a working solution." etc.; --w was re-measured from the real rendered text (font-size 100px, real
   style.css + Carlito). The longer line is the 2nd one in every language except ar (its 1st line is a hair longer).
   The wrapper .svc-head__t is a
   size container, so the column is measured beside the "all services" link on desktop and full width on
   phones. main.js (fitHeadings) stays as a last-resort safety net. RTL needs nothing: spans are blocks. */
.svc-head .svc-head__t{flex:1 1 0;min-width:0;width:100%}
.svc-head h2.h2-2l{--w:24;max-width:none;font-size:clamp(14px,calc((100vw - 48px) / var(--w)),68px)}
@media (min-width:901px){
  .svc-head h2.h2-2l{font-size:min(clamp(36px,4.4vw,68px),calc((100vw - 340px) / var(--w)))}
}
.h2-2l .h2-l{display:block;white-space:nowrap}
@supports (width:1cqw){
  .svc-head .svc-head__t{container-type:inline-size}
  .svc-head h2.h2-2l{font-size:min(clamp(36px,4.4vw,68px),calc(100cqw / var(--w)))}
}
html[lang="en"] .h2-2l{--w:14.94}
html[lang="ar"] .h2-2l{--w:9.52}
html[lang="de"] .h2-2l{--w:16.94}
html[lang="es"] .h2-2l{--w:17.59}
html[lang="fr"] .h2-2l{--w:19.53}
html[lang="id"] .h2-2l{--w:18.48}
html[lang="it"] .h2-2l{--w:18.85}
html[lang="nl"] .h2-2l{--w:13.91}
html[lang="pl"] .h2-2l{--w:16.47}
html[lang="pt"] .h2-2l{--w:17.68}
html[lang="ru"] .h2-2l{--w:14.23}
html[lang="tr"] .h2-2l{--w:13.15}
html[lang="ur"] .h2-2l{--w:9.16}
html[lang="zh"] .h2-2l{--w:15.76}

/* ---- 2. no orphans -------------------------------------------------------------------------------
   Older browsers ignore text-wrap (and the @supports guard keeps them on the normal wrapping). */
@supports (text-wrap:balance){
  h1,h2,h3{text-wrap:balance}
}
@supports (text-wrap:pretty){
  p,li,dd,dt,blockquote,figcaption,.lead,.about__text,.pull{text-wrap:pretty}
}

/* ---- 3. one-line section heading (.h2-1l) --------------------------------------------------------
   Home page "domains" heading (Air. Sea. Land.): always exactly one line (white-space:nowrap). Same technique as
   the two-line hero heading: normal heading size (4.4vw, 36-68px) whenever the line fits, otherwise the size at
   which it exactly fills its column: column width / --w, where --w = width of the line in em (uppercase bold
   Calibri/Carlito, measured per language, +3% safety margin; +10% for Arabic/Urdu whose fonts differ by platform,
   +4% for Chinese). The wrapper .svc-head__t (size container) is the column: beside the "hud" label on desktop,
   full width on phones, so the label can never be overlapped. Only this heading carries the class. */
.svc-head h2.h2-1l{--w:11;max-width:none;white-space:nowrap;font-size:min(clamp(36px,4.4vw,68px),calc((100vw - 48px) / var(--w)))}
@media (min-width:1025px){
  .svc-head h2.h2-1l{font-size:min(clamp(36px,4.4vw,68px),calc((100vw - 340px) / var(--w)))}
}
@supports (width:1cqw){
  .svc-head h2.h2-1l{font-size:min(clamp(36px,4.4vw,68px),calc(100cqw / var(--w)))}
}
html[lang="en"] .h2-1l{--w:6.83}
html[lang="ar"] .h2-1l{--w:5.09}
html[lang="de"] .h2-1l{--w:7.21}
html[lang="es"] .h2-1l{--w:8.55}
html[lang="fr"] .h2-1l{--w:7.52}
html[lang="id"] .h2-1l{--w:9.46}
html[lang="it"] .h2-1l{--w:8.9}
html[lang="nl"] .h2-1l{--w:7.94}
html[lang="pl"] .h2-1l{--w:11.29}
html[lang="pt"] .h2-1l{--w:7.49}
html[lang="ru"] .h2-1l{--w:10.27}
html[lang="tr"] .h2-1l{--w:8.79}
html[lang="ur"] .h2-1l{--w:5.28}
html[lang="zh"] .h2-1l{--w:6.36}

/* ---- 4. services page lead heading (.h1-services-lead) ---------------------------------------------
   The h1 of the services index page (a long two-sentence lead) was the full page-hero size (6vw, up to 96px;
   44px on phones) and far too big for its length. Only that h1 carries the class: 3.75vw (max 54px, min 26px) =
   about 62% of before (86.4 -> 54 px at 1440, 44 -> 26 px at 390). The 16ch cap of .page-hero h1 is replaced by a
   wider measure; text-wrap:balance (section 2) keeps the lines even. Sub-service pages are not touched. */
.page-hero h1.h1-services-lead{font-size:clamp(26px,3.75vw,54px);line-height:1.1;max-width:min(100%,26em)}
html[lang="ar"] .page-hero h1.h1-services-lead{line-height:1.45}
html[lang="ur"] .page-hero h1.h1-services-lead{line-height:1.75}
html[lang="zh"] .page-hero h1.h1-services-lead{line-height:1.3}

/* ---- 5. e-mail address on the contact page (v1.13) -------------------------------------------------
   .contact-mail sits inside an <h2>, which is upper-cased globally (style.css), so the address was shown as
   INFO@ZATDT.COM. E-mail addresses are written in lower case; only this link is reset. */
.contact-mail{text-transform:none}
