/*
 * Management-approved visual changes (codes from the approval form).
 * Linked last in <head> by tools/approved.py with a content hash (?v=); markup changes live there.
 * Most rules need !important: the theme, the Elementor kit and per-widget Elementor CSS set the
 * same properties with high specificity, and inline style attributes are common.
 */

:root {
  --z1-font-body: "Inter", Arial, Helvetica, sans-serif;
  --z1-font-heading: "Space Grotesk", Arial, Helvetica, sans-serif;
  /* B3: one heading scale (desktop) */
  --z1-h1: 48px;
  --z1-h2: 32px;
  --z1-h3: 22px;
  --z1-h4: 20px;
  --z1-h5: 18px;
  --z1-h6: 16px;
  --z1-accent: var(--e-global-color-accent, #F14F44);
}

/* ------------------------------------------------------------------ B1
 * Two font families: Space Grotesk for headings, Inter for everything else.
 * :where() keeps specificity at zero so the heading rule below wins. Elements that carry an icon
 * font themselves (font-family or the font shorthand in theme / plugin CSS) are left alone.
 */
:where(body, body *:not(i, .fa, .fab, .far, .fas, .fal, .fad, [class*="eicon"], .dashicons, [class*="dashicons-"],
  .fontello, [class^="icon"], [class*=" icon-"], .dropdown-trigger-item, .extra-trigger-item, .menu-close-icon,
  .search-trigger-icon, .search-form-icon, .site-search-close, .slide-extra-close, .shop-hidden-sidebar-close,
  .simple-sidebar-trigger, .archive-icon, .select2-selection__arrow, .widget-archive-trigger, .block-archive-trigger,
  .widget-menu-trigger, .slick-button, .star-rating, .wrapper-socials a, .meta_item_socials a)) {
  font-family: var(--z1-font-body) !important;
}

:where(h1, h2, h3, h4, h5, h6, .elementor-heading-title, .page-title, .page-title-additional,
  .wp-block-latest-posts__post-title, .wpforms-field-label, .elementor-counter-number-wrapper, .z1-font-heading),
:where(h1, h2, h3, h4, h5, h6, .elementor-heading-title, .page-title, .page-title-additional,
  .wpforms-field-label, .elementor-counter-number-wrapper, .z1-font-heading)
  :where(*:not(i, .fa, .fab, .far, .fas, .fal, .fad, [class*="eicon"], .fontello, [class^="icon"], [class*=" icon-"])) {
  font-family: var(--z1-font-heading) !important;
}

/* ------------------------------------------------------------------ B3 / B4
 * One heading scale for every page type. Headings that were retagged for a correct outline (B4)
 * carry "z1-retagged z1-hN" and keep the size of their original level N.
 */
h1:not(.z1-retagged), .z1-retagged.z1-h1 { font-size: var(--z1-h1) !important; line-height: 1.15 !important; }
h2:not(.z1-retagged), .z1-retagged.z1-h2 { font-size: var(--z1-h2) !important; line-height: 1.2 !important; }
h3:not(.z1-retagged), .z1-retagged.z1-h3 { font-size: var(--z1-h3) !important; line-height: 1.3 !important; }
h4:not(.z1-retagged), .z1-retagged.z1-h4 { font-size: var(--z1-h4) !important; line-height: 1.35 !important; }
h5:not(.z1-retagged), .z1-retagged.z1-h5 { font-size: var(--z1-h5) !important; line-height: 1.35 !important; }
h6:not(.z1-retagged), .z1-retagged.z1-h6 { font-size: var(--z1-h6) !important; line-height: 1.4 !important; }

/* text inside a heading follows the heading (some carry inline font sizes) */
:is(h1, h2, h3, h4, h5, h6) :where(*:not(i, .fa, .fab, .far, .fas, [class*="eicon"], .fontello, svg, svg *)) {
  font-size: inherit !important;
  line-height: inherit !important;
}

/* tag-based theme rules a retagged heading must keep from its original level (same specificity as
   the theme's "hN:not(:last-child)" / "h2" rules, loaded later): spacing below, letter-spacing */
:is(h1, h2, h3, h4, h5, h6):where(.z1-h1):not(:last-child) { margin-bottom: 0.325em; }
:is(h1, h2, h3, h4, h5, h6):where(.z1-h2):not(:last-child) { margin-bottom: 0.5em; }
:is(h1, h2, h3, h4, h5, h6):where(.z1-h3):not(:last-child) { margin-bottom: 0.8333em; }
:is(h1, h2, h3, h4, h5, h6):where(.z1-h4):not(:last-child) { margin-bottom: 1em; }
:is(h1, h2, h3, h4, h5, h6):where(.z1-h5):not(:last-child) { margin-bottom: 1.1111em; }
:is(h1, h2, h3, h4, h5, h6):where(.z1-h6):not(:last-child) { margin-bottom: 1.25em; }
:is(h1, h2, h3, h4, h5, h6):where(.z1-h3, .z1-h4, .z1-h5, .z1-h6) { letter-spacing: 0em; }

@media (max-width: 1279px) {
  :root { --z1-h1: 42px; --z1-h2: 30px; }
}
@media (max-width: 767px) {
  :root { --z1-h1: 30px; --z1-h2: 24px; --z1-h3: 20px; --z1-h4: 18px; --z1-h5: 17px; --z1-h6: 16px; }
}

/* ------------------------------------------------------------------ B2
 * Body text at least 16px, secondary text (labels, captions, meta) at least 14px.
 */
[style*="font-size:12px"], [style*="font-size: 12px"], [style*="font-size:13px"], [style*="font-size: 13px"],
[style*="font-size:11px"], [style*="font-size: 11px"], [style*="font-size:10px"], [style*="font-size: 10px"] {
  font-size: 14px !important;
}
.elementor-image-carousel-caption { font-size: 14px !important; }
@media (max-width: 767px) {
  /* Smart Slider scales its texts to 60% on phones (12px descriptions, 15px titles) */
  .n2-ss-item-content.n2-ss-text { font-size: 14px !important; }
  .n2-ss-item-content.n2-ss-text.z1-font-heading { font-size: 17px !important; }
}

/* ------------------------------------------------------------------ C2
 * Partner / certification logo band on the dark background, logos in white (SVG filter
 * #z1-logo-white: white where the logo is, transparent where its background was).
 */
.z1-logo-band,
.z1-logo-band > .elementor-background-overlay { background-color: transparent !important; background-image: none !important; }
.z1-logo-band .neuros-heading,
.z1-logo-band .neuros-heading * { color: #fff !important; -webkit-text-fill-color: #fff !important; background: none !important; }
.z1-logo-band .swiper-slide-image { filter: url("#z1-logo-white"); }
/* the carousels' white glow was invisible on white; on dark use the site's dark glass card style */
.z1-logo-band .elementor-widget-image-carousel {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 19px 26px 1px rgba(0, 0, 0, 0.78) !important;
}
.z1-svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ------------------------------------------------------------------ C6
 * "Strategy and Consulting" sidebar box: call-to-action button to /contacts/.
 */
.z1-sidebar-cta { margin-top: 16px; }

/* ------------------------------------------------------------------ D3
 * Expanded blog articles (content/posts/). Five of them use the older section / column layout, whose
 * per-post Elementor CSS fixes the text block at 759.787px below 1280px and shrinks its only column
 * to 35% between 576px and 991px: on phones and tablets the text was wider than the screen and cut
 * off. The column keeps its full width and the text block never gets wider than the column.
 */
.single-post .post-content .elementor-top-column.elementor-col-100 { width: 100% !important; }
.single-post .post-content .elementor-widget-wrap > .elementor-widget-text-editor { max-width: 100% !important; }

/* ------------------------------------------------------------------ D10
 * Visually hidden link text (post titles behind "Read More", directions targets).
 */
.z1-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ------------------------------------------------------------------ E3
 * Static office block on /contacts/ and /support/ (replaces the Google map embed).
 * .z1-locations__map is the reserved spot for a static map image (hidden while empty).
 */
.z1-locations-con .elementor-widget-html { width: 100% !important; max-width: 100% !important; }
.z1-locations { padding: 32px 40px; color: #fff; }
.z1-locations__title { margin: 0 0 24px; color: #fff; }
.z1-locations__map { margin: 0 0 24px; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 6; }
.z1-locations__map[hidden] { display: none; }
.z1-locations__map img { display: block; width: 100%; height: 100%; object-fit: cover; }
.z1-locations__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 48px; }
.z1-location__name { margin: 0 0 8px; color: #fff; }
.z1-location__address { margin: 0 0 12px; font-style: normal; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
/* white, not the accent colour: the accent on this card background has a contrast of only 3.6:1 */
.z1-locations a.z1-location__directions { font-weight: 600; color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
.z1-locations a.z1-location__directions:hover, .z1-locations a.z1-location__directions:focus { color: var(--z1-accent) !important; }
@media (max-width: 767px) {
  .z1-locations { padding: 24px 20px; }
}

/* ------------------------------------------------------------------ A1
 * Language link (TR / EN) at the end of the header menu. The extra item and the longer Turkish
 * labels must not push the desktop menu onto a second line (it is shown from 1341px up and has
 * about 700px at 1366px), so the items sit closer together below 1600px.
 */
@media (min-width: 1341px) and (max-width: 1599px) {
  .header .header-menu-container .main-menu > li { margin-right: 2px !important; }
  .header .header-menu-container .main-menu > li > a { padding-left: 12px !important; padding-right: 12px !important; }
  html[lang^="tr"] .header .header-menu-container .main-menu > li > a { padding-left: 9px !important; padding-right: 9px !important; }
}
.header .main-menu > li.z1-lang-item > a { opacity: 0.85; }
.header .main-menu > li.z1-lang-item > a:hover, .header .main-menu > li.z1-lang-item > a:focus { opacity: 1; }
