/* =========================================================
   Ozzun — WordPress & Elementor compatibility layer
   (loaded after main.css, which is the original site design)
   ========================================================= */

/* ---------- Elementor containers that hold an Ozzun widget: full width, no padding/gap ---------- */
.e-con.ozz-sec,
.e-con:has(> .elementor-widget[class*="elementor-widget-ozz-"]),
.e-con:has(> .e-con-inner > .elementor-widget[class*="elementor-widget-ozz-"]) {
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
  --gap: 0px 0px; --row-gap: 0px; --column-gap: 0px;
  --content-width: 100%; --container-max-width: 100%;
  --flex-wrap: nowrap;
  padding: 0;
  max-width: 100%;
}
.e-con.ozz-sec > .e-con-inner,
.e-con > .e-con-inner:has(> .elementor-widget[class*="elementor-widget-ozz-"]) {
  max-width: 100%; width: 100%; padding: 0; gap: 0;
}
.elementor-widget[class*="elementor-widget-ozz-"] { width: 100%; max-width: 100%; margin: 0; }
.elementor-widget[class*="elementor-widget-ozz-"] > .elementor-widget-container { margin: 0; padding: 0; }
/* old-style sections/columns */
.elementor-column:has(> .elementor-widget-wrap > .elementor-widget[class*="elementor-widget-ozz-"]) > .elementor-widget-wrap { padding: 0 !important; }
.elementor-section:has(.elementor-widget[class*="elementor-widget-ozz-"]) > .elementor-container { max-width: 100%; }

/* Elementor's own image reset must not fight the design */
.elementor .logo-tile img { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.elementor .bubble__face img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.elementor .case__view img,
.elementor .nav__logo img,
.elementor .footer__brand img,
.elementor .preloader__logo { max-width: none; }
.elementor .case__view img { width: 100%; height: auto; }
.elementor .footer__brand img { max-width: 100%; height: auto; }
.elementor a { box-shadow: none; }
.elementor h1, .elementor h2, .elementor h3, .elementor h4, .elementor h5 { font-family: var(--font); }

/* ---------- Grids that adapt to the number of items ---------- */
@media (min-width: 761px) {
  .stats__grid[style*="--cols"] { grid-template-columns: repeat(var(--cols, 4), 1fr); }
  .steps[style*="--cols"] { grid-template-columns: repeat(var(--cols, 3), 1fr); }
  .steps[style*="--edge"] .steps__line { left: var(--edge, 16.66%); right: var(--edge, 16.66%); }
}

/* ---------- WordPress admin bar ---------- */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .nav { top: 0; } }

/* ---------- Editing inside Elementor: everything visible & static ---------- */
.ozz-editor .reveal, .ozz-editor .reveal-stagger, .ozz-editor .hero-intro { opacity: 1 !important; transform: none !important; }
.ozz-editor .vs-done { opacity: 1; transform: none; }
.ozz-editor .vs-head { --p: 100%; }
.ozz-editor .vs-card__check { background: var(--blue); border-color: var(--blue); }
.ozz-editor .vs-col--old .vs-card__check { background: var(--text); border-color: var(--text); }
.ozz-editor .vs-card__check svg { stroke-dashoffset: 0; }
.ozz-editor .steps__line span { transform: none; }
.ozz-editor .wa-float { transform: scale(1); }
.ozz-editor .nav { position: absolute; }
.ozz-editor .work__track { width: auto; overflow-x: auto; padding-bottom: 20px; }
.ozz-editor .cursor { display: none !important; }

/* Header / Footer block preview (Ozzun → Header & Footer) */
.ozz-block-preview { background: #eef3f9; min-height: 100vh; }
.ozz-block-preview__main { padding: 0; }
.ozz-block-preview .nav { position: relative; transform: none !important; background: #fff; }
.ozz-block-preview .mmenu { display: none; }
.ozz-block-preview .preloader { display: none; }

/* ---------- Widget variations ---------- */
.hero__inner--solo { grid-template-columns: 1fr; max-width: 900px; }
.hero__visual--img { display: flex; align-items: center; justify-content: center; }
.hero__visual--img img { max-height: 620px; width: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.logos--color .logo-tile img { filter: none; opacity: 1; }
.av--img { overflow: hidden; padding: 0; background: #e9eef5; }
.av--img img { width: 100%; height: 100%; object-fit: cover; }
.mk-image { position: absolute; inset: 24px; display: flex; align-items: center; justify-content: center; }
.mk-image img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 18px; box-shadow: var(--shadow-md); }
.work--static .work__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 24px; scrollbar-width: thin; }
.work--static .case { scroll-snap-align: start; }

/* ---------- Page banner (inner pages — Atmospheric Blue Glass) ---------- */
.pbanner {
  position: relative; overflow: hidden; padding: 156px 0 92px;
  color: #fff;
  background:
    radial-gradient(ellipse 75% 55% at 50% 0%, rgba(255, 255, 255, .38), transparent 62%),
    linear-gradient(180deg, #9ad1ff 0%, #469bff 44%, #1868eb 85%, #1153cc 100%);
}
.pbanner__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 20px; }
.pbanner--center .pbanner__inner { align-items: center; text-align: center; }
.pbanner--center .lead { margin: 0 auto; }
.pbanner--left .pbanner__inner { align-items: flex-start; }

.pbanner__crumb {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .42);
  box-shadow: 0 12px 30px -12px rgba(10, 42, 120, .35), inset 0 1px 0 rgba(255, 255, 255, .45);
  font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .88);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.pbanner__crumb:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .28);
  box-shadow: 0 16px 36px -12px rgba(10, 42, 120, .45), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.pbanner__crumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .36) 50%, transparent 75%);
  transform: translateX(-120%);
  animation: crumbShimmer 4.8s var(--ease) 1s infinite;
}
@keyframes crumbShimmer {
  0% { transform: translateX(-120%); }
  32%, 100% { transform: translateX(120%); }
}
.pbanner__home {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .22); color: #fff;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.pbanner__home:hover { background: rgba(255, 255, 255, .36); transform: translateX(-1px); }
.pbanner__home svg { width: 13px; height: 13px; stroke-width: 2; }
.pbanner__sep { color: rgba(255, 255, 255, .55); font-size: 14px; line-height: 1; }
.pbanner__crumb-mid { padding: 0 2px; color: rgba(255, 255, 255, .85); }
.pbanner__crumb-cur {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  background: rgba(11, 27, 51, .78); color: #fff; font-weight: 700;
  box-shadow: 0 4px 12px rgba(11, 27, 51, .25);
}
.pbanner__crumb-cur i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 8px #4ade80;
  animation: blink 1.6s infinite;
}
.pbanner .eyebrow {
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .16);
  color: #fff;
  backdrop-filter: blur(12px);
}
.pbanner .eyebrow__dot { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }
.pbanner__title {
  font-size: clamp(38px, 5.2vw, 72px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.04; max-width: 980px;
  color: #fff; text-shadow: 0 2px 24px rgba(13, 60, 160, .2);
}
.pbanner__title .serif {
  font-size: 1.06em; color: #fff;
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .38); text-underline-offset: 6px;
}
.pbanner .lead { color: rgba(255, 255, 255, .88); max-width: 640px; }
.pbanner .lead strong { color: #fff; }
.pbanner__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (max-width: 760px) { .pbanner { padding: 124px 0 68px; } }

/* Breadcrumb stays on one line; a long current-page name is shortened with "…" */
.pbanner__crumb { max-width: 100%; white-space: nowrap; }
.pbanner__home, .pbanner__crumb-mid { flex: none; white-space: nowrap; }
.ozx-chero__copy, .pbanner__inner { min-width: 0; max-width: 100%; }
.pbanner__crumb-cur { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
.pbanner__crumb-cur i { display: inline-block; vertical-align: middle; margin-right: 6px; }

/* ---------- Plain pages, blog, posts ---------- */
.ozz-plain { padding: 160px 0 100px; }
.ozz-plain__title { margin-bottom: 32px; }
.ozz-plain__content { max-width: 820px; font-size: 17px; color: var(--text-2); }
.ozz-plain__content > * + * { margin-top: 1.1em; }
.ozz-plain__content h2, .ozz-plain__content h3 { margin-top: 1.6em; color: var(--text); }
.ozz-plain__content a { color: var(--blue-2); text-decoration: underline; }
.ozz-plain__content ul, .ozz-plain__content ol { padding-left: 1.3em; list-style: revert; }
.ozz-plain__content img { border-radius: 18px; height: auto; }
.ozz-post__meta { color: var(--muted); margin: -16px 0 28px; font-size: 14px; }
.ozz-post__thumb img { border-radius: var(--radius-lg); margin-bottom: 32px; width: 100%; height: auto; }
.ozz-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.ozz-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.ozz-card__img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; height: auto; }
.ozz-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.ozz-card__body small { color: var(--muted); }
.ozz-card__body h3 { font-size: 21px; letter-spacing: -.02em; }
.ozz-card__body p { color: var(--muted); font-size: 15px; }
.ozz-pagination { margin-top: 40px; }
.ozz-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.ozz-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 100px; font-weight: 600; }
.ozz-pagination .page-numbers.current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Elementor pages that do not start with a hero/banner: keep content below the fixed header */
.ozz-main > .elementor > .e-con:first-child:not(:has(.hero, .pbanner, .ozx-split--hero, .ozx-chero)),
.ozz-main > .elementor > .elementor-section:first-child:not(:has(.hero, .pbanner, .ozx-split--hero, .ozx-chero)) { margin-top: 110px; }

/* =========================================================
   Brand colours & fonts follow Elementor -> Site Settings
   (Global Colors / Global Fonts). Defaults = current design.
   ========================================================= */
body {
  --blue: var(--e-global-color-primary, #1683f8);
  --text: var(--e-global-color-secondary, #0b1b33);
  --muted: var(--e-global-color-text, #5f6f86);
  --blue-2: var(--e-global-color-accent, #046bd2);
  --blue-soft: color-mix(in srgb, var(--blue) 8%, transparent);
  --grad: linear-gradient(120deg, var(--blue) 0%, var(--blue-2) 50%, #6d5ef5 100%);
  --font: var(--e-global-typography-text-font-family, "Poppins"), system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--e-global-typography-secondary-font-family, "Poppins"), system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Speed: after the first page of a visit, skip the preloader (no flash, page scrolls right away) */
.ozz-seen .preloader { display: none !important; }
.ozz-seen body.is-loading { overflow: visible; }

/* Italic words (written as {text} in headings) = Poppins Italic, same weight & size as the heading */
.serif { font-weight: inherit; letter-spacing: inherit; }
.h2 .serif, .hero__title .serif, .pbanner__title .serif, .ozx-h1 .serif, .partners__title em { font-size: 1em; }
.partners__title { font-weight: 700; letter-spacing: -.03em; }
.partners__title em { font-style: italic; }
