/* =========================================================
   Montserrat typography layer
   Loaded last on every page. Changes ONLY font-family and
   font-weight (plus a light heading letter-spacing tweak).
   ========================================================= */

/* Font family everywhere (replaces Instrument Serif / Arial) */
html, body,
body *:not(svg):not(svg *),
button, input, textarea, select, optgroup,
h1, h2, h3, h4, h5, h6,
.brand strong, .brand small, header .brand small,
.site-nav .nav-trigger {
  font-family: 'Montserrat', Arial, sans-serif !important;
}

/* Paragraphs / body copy — Regular 400 */
body, p, li, td, dd, label, input, textarea, select {
  font-weight: 400;
}

/* Main headings — ExtraBold 800 */
h1, .page-hero h1 {
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

/* Subheadings — Bold 700 */
h2, h3, h4, h5, h6 {
  font-weight: 700 !important;
}

/* Buttons & navigation — SemiBold 600 */
button,
.button, .actions .button, .text-link,
nav, nav a, .menu a, .site-nav .nav-trigger, .nav-trigger, .nav-cta,
.motion-toggle, .menu-close,
input[type="submit"], input[type="button"] {
  font-weight: 600 !important;
}

/* Highlighted text — ExtraBold 800 */
strong, em, mark,
h1 em, h2 em, h3 em,
.mission strong, .company-record strong,
.brand strong, header .brand strong,
.eyebrow {
  font-weight: 800 !important;
}

/* Keep accent spans inside headings in step with their heading */
.sector-tile h3 span, .focus-card h3 span {
  font-weight: inherit !important;
}

/* Paragraph size — matches reference (approx. 15px / 1.65) */
main p:not(.eyebrow):not(.lead):not(.industry-tagline):not(.form-note):not(.sr-only),
main li:not(.nav-trigger),
.home-banner-copy p:not(.eyebrow),
.page-hero > p:last-child {
  font-size: 15px !important;
  line-height: 1.65 !important;
}

/* Main heading size — reduced ~15% for Montserrat ExtraBold */
.home-banner-copy h1 { font-size: clamp(34px, 3.5vw, 54px) !important; }
.page-hero h1 { font-size: clamp(36px, 4.2vw, 62px) !important; }
@media (max-width: 760px) {
  .home-banner-copy h1 { font-size: clamp(32px, 7.5vw, 46px) !important; }
  .page-hero h1 { font-size: clamp(32px, 7vw, 46px) !important; }
}

/* Section headings (H2) — smaller, uniform */
main h2:not(.product-specification h2):not(.industry-page-grid h2):not(.related-products > h2):not(.about-mvv h2) {
  font-size: clamp(26px, 2.6vw, 38px) !important;
}

/* "Work with GES" call-to-action band — smaller */
.page-cta h2 { font-size: clamp(24px, 2.2vw, 30px) !important; }
.page-cta p { font-size: 14px !important; }

/* Footer — smaller, uniform text */
.official-footer-grid h2 { font-size: 15px !important; }
.official-footer-grid p,
.official-footer-grid address,
.official-footer-grid a:not(.footer-brand),
.official-footer-grid span { font-size: 14px !important; line-height: 1.6 !important; }
.official-footer-grid strong:not(.footer-cert) { font-size: 26px !important; }
.page-footer-links a, .footer-bottom, .footer-bottom * { font-size: 13px !important; }
.official-footer-grid h2 a:not(.footer-brand) { font-size: inherit !important; }

/* Footer — every text item styled like the Office address */
.official-footer-grid p,
.official-footer-grid address,
.official-footer-grid a:not(.footer-brand),
.official-footer-grid span,
.official-footer .page-footer-links a {
  color: #f5f5f7 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
}
.official-footer-grid a:not(.footer-brand) {
  margin-bottom: 0 !important;
}
.official-footer-grid p {
  margin: 0 0 8px !important;
}
.official-footer-grid h2,
.official-footer-grid h2 a:not(.footer-brand) {
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}
.official-footer-grid a:not(.footer-brand):hover,
.official-footer .page-footer-links a:hover {
  color: #ffb2b4 !important;
}


/* Whole footer — more compact */
.official-footer { padding-top: 36px !important; }
.official-footer-grid { gap: 24px !important; margin-bottom: 22px !important; }
.official-footer-grid p,
.official-footer-grid address,
.official-footer-grid a:not(.footer-brand),
.official-footer-grid span,
.official-footer .page-footer-links a {
  font-size: 13px !important;
  line-height: 1.65 !important;
}
.official-footer-grid h2,
.official-footer-grid h2 a:not(.footer-brand) { font-size: 14px !important; margin-bottom: 8px !important; }
.official-footer .footer-brand img { width: 38px !important; height: 38px !important; }
.official-footer-grid strong:not(.footer-cert) { font-size: 22px !important; }
.official-footer .footer-registrations img { width: 84px !important; height: auto !important; }
.official-footer .page-footer-links { gap: 20px !important; padding-bottom: 14px !important; }
.official-footer .footer-bottom, .official-footer .footer-bottom * { font-size: 12px !important; }
.official-footer .footer-bottom { padding-top: 14px !important; padding-bottom: 14px !important; }

/* "Work with GES" Contact button — stylish */
.page-cta .button {
  border-radius: 999px !important;
  padding: 8px 8px 8px 26px !important;
  gap: 18px !important;
  align-items: center !important;
  background: var(--red) !important;
  border: 1px solid var(--red) !important;
  color: #fff !important;
  letter-spacing: .02em;
  box-shadow: 0 10px 24px -10px rgba(229, 43, 50, .65);
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease !important;
}
.page-cta .button span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  font-size: 16px !important;
  line-height: 1;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.page-cta .button:hover,
.page-cta .button:focus-visible {
  background: #fff !important;
  color: var(--red) !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .55);
}
.page-cta .button:hover span,
.page-cta .button:focus-visible span {
  background: var(--red);
  color: #fff;
  transform: translate(2px, -2px) rotate(0deg);
}

/* Contact button — same gentle curve as the menu buttons */
.page-cta .button { border-radius: 6px !important; padding: 8px 8px 8px 22px !important; }
.page-cta .button span { border-radius: 4px; }

/* Body text size — matches reference (16px / 1.6) across the whole site */
main p:not(.eyebrow):not(.lead):not(.industry-tagline):not(.form-note):not(.sr-only),
main li:not(.nav-trigger),
.home-banner-copy p:not(.eyebrow),
.page-hero > p:last-child,
.about-split-copy p,
.about-mvv-panel p {
  font-size: 16px !important;
  line-height: 1.6 !important;
}

/* Body text — smaller (14px) */
main p:not(.eyebrow):not(.lead):not(.industry-tagline):not(.form-note):not(.sr-only),
main li:not(.nav-trigger),
.home-banner-copy p:not(.eyebrow),
.page-hero > p:last-child,
.about-split-copy p,
.about-mvv-panel p {
  font-size: 14px !important;
  line-height: 1.65 !important;
}

/* Body text — darker and slightly heavier, like the reference */
main p:not(.eyebrow):not(.lead):not(.industry-tagline):not(.form-note):not(.sr-only),
main li:not(.nav-trigger),
.home-banner-copy p:not(.eyebrow),
.about-split-copy p,
.about-mvv-panel p {
  font-weight: 500 !important;
  color: #1f2427 !important;
}
/* Text on dark backgrounds stays light */
.page-hero > p:last-child,
.page-cta p,
.page-hero-dark p:not(.eyebrow) {
  font-weight: 500 !important;
  color: #f1f3f5 !important;
}

/* Fix: text on dark bands must stay light (higher specificity than the body-text rule) */
main .page-hero.section > p:not(.eyebrow):not(.lead):not(.industry-tagline):not(.form-note):not(.sr-only),
main .page-hero-dark p:not(.eyebrow):not(.lead):not(.industry-tagline):not(.form-note):not(.sr-only),
main .page-cta.section p:not(.eyebrow):not(.lead):not(.industry-tagline):not(.form-note):not(.sr-only) {
  color: #f1f3f5 !important;
  font-weight: 500 !important;
}

/* Headings — Lato Bold (reference style) */
h1, h2, h3, h4, h5, h6,
.page-hero h1, .home-banner-copy h1,
.official-footer-grid h2, .official-footer-grid h2 a {
  font-family: 'Lato', 'Montserrat', Arial, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

/* Lato headings — stronger selector so it wins over the global Montserrat rule */
html body :is(h1, h2, h3, h4, h5, h6):not(#_),
html body :is(h1, h2, h3, h4, h5, h6):not(#_) a {
  font-family: 'Lato', 'Montserrat', Arial, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}


/* Products page — card headings (Piping, Process Equipment…) smaller */
html body .catalogue-card h2:not(#_),
html body .catalogue-card h2:not(#_) a {
  font-size: clamp(22px, 2vw, 28px) !important;
}

/* Sub-headings — same style/size as About page ("Our Philosophy"): Lato Bold 26px */
html body .catalogue-card h2:not(#_),
html body .catalogue-card h2:not(#_) a,
html body .product-specification h2:not(#_),
html body .related-product h3:not(#_) {
  font-size: 26px !important;
  line-height: 1.25 !important;
}
@media (max-width: 860px) {
  html body .catalogue-card h2:not(#_),
  html body .catalogue-card h2:not(#_) a,
  html body .product-specification h2:not(#_),
  html body .related-product h3:not(#_) { font-size: 22px !important; }
}

/* ===== Unified heading scale (Lato Bold) ===== */
/* H1 — page titles */
html body h1:not(#_),
html body .page-hero h1:not(#_),
html body .home-banner-copy h1:not(#_) {
  font-size: clamp(34px, 3.4vw, 48px) !important;
  line-height: 1.15 !important;
}
/* H2 — section headings */
html body main h2:not(#_) {
  font-size: clamp(26px, 2.4vw, 34px) !important;
  line-height: 1.2 !important;
}
/* H3 / sub-headings */
html body main h3:not(#_),
html body main h4:not(#_),
html body .about-mvv-panel h2:not(#_),
html body .catalogue-card h2:not(#_),
html body .catalogue-card h2:not(#_) a,
html body .product-specification h2:not(#_),
html body .related-product h3:not(#_) {
  font-size: 26px !important;
  line-height: 1.25 !important;
}
@media (max-width: 860px) {
  html body main h3:not(#_),
  html body main h4:not(#_),
  html body .about-mvv-panel h2:not(#_),
  html body .catalogue-card h2:not(#_),
  html body .catalogue-card h2:not(#_) a,
  html body .product-specification h2:not(#_),
  html body .related-product h3:not(#_) { font-size: 22px !important; }
}
/* Footer headings stay small */
html body .official-footer-grid h2:not(#_),
html body .official-footer-grid h2:not(#_) a { font-size: 14px !important; }

/* Contact page — details and form text match the rest of the site */
html body .contact-information dt:not(#_) {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1f2427 !important;
}
html body .contact-information dd:not(#_),
html body .contact-information dd:not(#_) address,
html body .contact-information dd:not(#_) a,
html body .contact-information p:not(.eyebrow):not(#_) {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
  color: #1f2427 !important;
}
html body .contact-layout .enquiry label:not(#_),
html body .contact-layout .enquiry > p:not(#_) {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1f2427 !important;
}
html body .contact-layout .enquiry :is(input, select, textarea):not(#_),
html body .contact-layout .enquiry :is(input, textarea):not(#_)::placeholder {
  font-size: 14px !important;
  font-weight: 500 !important;
}
html body main .profile-download:not(#_) {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1f2427 !important;
}

/* Links inside paragraphs use the paragraph's size */
html body main p:not(#_) > a.arrow-link {
  font-size: inherit !important;
  font-weight: 700 !important;
}

/* Contact page — enquiry section: same gentle curve as the Contact button */
html body .contact-layout .enquiry:not(#_) {
  border-radius: 6px !important;
}
html body .contact-layout .enquiry :is(input, select, textarea):not([type="hidden"]):not(#_) {
  border-radius: 6px !important;
}
html body .contact-layout .enquiry .button:not(#_) {
  border-radius: 6px !important;
}
html body .contact-layout .enquiry :is(input, textarea):not([type="hidden"]):not(#_) {
  padding-left: 12px !important;
  padding-right: 12px !important;
}
html body .contact-layout .enquiry select:not(#_) { padding-left: 10px !important; }


/* Top bar — exact company-profile stripe: red | white gap | dark | white | dark */
html body .topbar:not(#_) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #20262a !important;
  color: #ffffff;
}
html body .topbar:not(#_) > * { position: relative; z-index: 2; color: #ffffff; }
html body .topbar:not(#_)::before,
html body .topbar:not(#_)::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  transform: skewX(-35deg);
  pointer-events: none;
  z-index: 1;
}
/* red block (with a thin white gap after it) */
html body .topbar:not(#_)::before {
  left: -40px;
  width: calc(5% + 380px);
  background: #e52b32;
  box-shadow: 9px 0 0 #ffffff;
}
/* long white middle section; dark piece and dark right end are the bar itself */
html body .topbar:not(#_)::after {
  left: calc(5% + 400px);
  right: calc(5% + 210px);
  background: #ffffff;
}
@media (max-width: 760px) {
  html body .topbar:not(#_)::before { width: 66%; }
  html body .topbar:not(#_)::after { display: none; }
}
html body .topbar:not(#_) { height: 31px !important; }
@media (max-width: 760px) { html body .topbar:not(#_) { height: 26px !important; } }
/* White middle with a soft shade at the bottom so it separates from the header */
html body .topbar:not(#_)::after {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 60%, #f3f4f6 100%) !important;
  box-shadow: inset 0 -1px 0 #eceef0;
}
/* Same light shade inside the small white gap after the red block */
html body .topbar:not(#_)::before {
  width: calc(5% + 389px) !important;
  box-shadow: none !important;
  background:
    linear-gradient(90deg, #e52b32 calc(100% - 9px), transparent calc(100% - 9px)),
    linear-gradient(180deg, #ffffff 0%, #ffffff 60%, #f3f4f6 96%, #eceef0 100%) !important;
}
@media (max-width: 760px) { html body .topbar:not(#_)::before { width: 66% !important; } }

/* Logo — flat, no shadow/box: blends into the white header like a stamp */
html body header .brand img:not(#_),
html body .footer-brand img:not(#_) {
  filter: none !important;
  box-shadow: none !important;
  background: transparent !important;
  mix-blend-mode: multiply;
}
html body header .brand strong:not(#_),
html body header .brand small:not(#_) { text-shadow: none !important; }
html body header .brand:not(#_)::after { display: none !important; }
html body .footer-brand img:not(#_) { mix-blend-mode: normal !important; }
