/* E-lia site: small additions on top of the Elementor styles, for things the
   WordPress scripts used to do (sticky header, menus, form states). */

/* Sticky header */
.elementor-location-header > .e-con {
  position: sticky;
  top: 0;
  z-index: 99;
}
.elementor-location-header { position: relative; z-index: 99; }

/* Desktop submenu ("Solutions") */
.elementor-nav-menu--main .menu-item-has-children { position: relative; }
.elementor-nav-menu--main .menu-item-has-children > .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 14em;
  z-index: 100;
}
.elementor-nav-menu--main .menu-item-has-children:hover > .sub-menu,
.elementor-nav-menu--main .menu-item-has-children:focus-within > .sub-menu,
.elementor-nav-menu--main .menu-item-has-children.is-open > .sub-menu {
  display: block;
}

/* Mobile dropdown menu, full width below the header */
.elementor-nav-menu--stretch .elementor-nav-menu__container.elementor-nav-menu--dropdown {
  position: absolute;
  top: 36px;
}
.elementor-nav-menu--dropdown .menu-item-has-children > .sub-menu { display: none; }
.elementor-nav-menu--dropdown .menu-item-has-children.is-open > .sub-menu { display: block; }
.elementor-nav-menu--dropdown .sub-menu { position: static; width: auto; }

/* Forms */
.elementor-form-waiting button { opacity: .6; cursor: progress; }
.elementor-message { margin-top: 10px; }

/* Content that used to be revealed by scripts */
.elementor-invisible { visibility: visible; }

/* Skip link */
.skip-link.screen-reader-text {
  position: absolute; left: -9999px; top: 0;
}
.skip-link.screen-reader-text:focus {
  left: 8px; top: 8px; z-index: 1000; background: #fff; padding: 8px 12px; border-radius: 4px;
}

/* 404 page */
.page-404 { max-width: 720px; margin: 0 auto; padding: 120px 20px; text-align: center; }
.page-404 h1 { margin-bottom: 16px; }

/* Homepage phone mockup: the image has its own shadow and card, so no frame around it */
.elementor img.e-phone-mockup {
  box-shadow: none !important;
  border-radius: 0 !important;
  background: none !important;
  max-width: 520px !important;
  width: 100% !important;
  height: auto !important;
}
.elementor-widget-image:has(.e-phone-mockup) { width: 100%; text-align: center; }
.elementor-widget-image:has(.e-phone-mockup) { animation: none !important; }

/* Homepage product images: they carry their own rounded panel, so no extra frame or fixed height */
.elementor-widget-image:has(.e-feature-img) .elementor-widget-container {
  padding: 0 !important; background: none !important; box-shadow: none !important; height: auto !important;
}
.elementor img.e-feature-img {
  width: 100% !important; height: auto !important; max-height: none !important; max-width: 100% !important;
  box-shadow: none !important; border-radius: 0 !important; object-fit: initial !important;
}
.elementor-widget-image:has(.e-feature-img) { height: auto !important; animation: none !important; }

/* Customer logos: continuous carousel */
.logo-marquee { width: 100%; overflow: hidden; padding: 12px 0 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.logo-track { display: flex; width: max-content; animation: logo-scroll 45s linear infinite; }
.logo-dup { display: flex; }
.logo-marquee:hover .logo-track, .logo-marquee:focus-within .logo-track { animation-play-state: paused; }
.logo-card { position: relative; flex: none; width: 240px; height: 124px; margin-right: 20px; border-radius: 20px; background: #fff;
  border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; text-decoration: none;
  box-shadow: 0 10px 24px -18px rgba(15, 23, 42, .35); transition: transform .2s ease, box-shadow .2s ease; }
.logo-card img { display: block; max-width: 200px; max-height: 76px; width: auto; height: auto; object-fit: contain; }
a.logo-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(15, 23, 42, .45); }
.logo-case { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 600;
  color: var(--e-global-color-primary, #399dff); opacity: 0; transition: opacity .2s ease; }
a.logo-card:hover .logo-case, a.logo-card:focus-visible .logo-case { opacity: 1; }
@keyframes logo-scroll { to { transform: translateX(-50%); } }
@media (max-width: 767px) { .logo-card { width: 180px; height: 100px; margin-right: 14px; } .logo-card img { max-width: 150px; max-height: 60px; } }
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 14px 0; }
  .logo-dup { display: none; }
}
img.e-phone-mockup { max-width: 520px; width: 100%; height: auto; }
img.e-feature-img { max-width: 100%; height: auto; }

/* Invisible bridge over the gap between "Solutions" and its submenu, so it stays open while moving the mouse down */
.elementor-nav-menu--main .menu-item-has-children > .sub-menu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px;
}

/* About page: timeline and team */
.about-story, .about-team { padding: 80px 20px; }
.about-team { background: #f8fafc; }
.about-wrap { max-width: 1000px; margin: 0 auto; }
.about-story h2, .about-team h2 { font-size: 2.4rem; font-weight: 800; letter-spacing: -.5px; color: var(--e-global-color-ea6960f, #1e293b); text-align: center; margin: 0; }
.about-lead { text-align: center; color: var(--e-global-color-9f5a6ad, #475569); font-size: 1.1rem; line-height: 1.6; max-width: 640px; margin: 12px auto 48px; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 47px; top: 8px; bottom: 8px; width: 2px; background: #dbeafe; }
.tl-item { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 24px; margin-bottom: 28px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-year { position: relative; z-index: 1; align-self: start; justify-self: center; background: #fff; border: 2px solid #399dff; color: #1c80e0;
  font-weight: 800; font-size: 1.05rem; border-radius: 999px; padding: 6px 14px; }
.tl-now .tl-year { background: #399dff; color: #fff; }
.tl-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 22px 24px; box-shadow: 0 12px 28px -22px rgba(15, 23, 42, .35);
  display: grid; grid-template-columns: 1fr; gap: 0 24px; }
.tl-card:has(.tl-img) { grid-template-columns: 1fr 260px; grid-template-rows: min-content 1fr; }
.tl-card h3 { grid-column: 1; font-size: 1.25rem; font-weight: 800; color: #0f172a; margin: 0 0 10px; }
.tl-card ul { grid-column: 1; margin: 0; padding-left: 18px; color: #475569; line-height: 1.6; font-size: 1rem; }
.tl-card li { margin: 4px 0; }
.tl-card a { color: #1c80e0; font-weight: 600; }
.tl-img { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: center; }
.tl-img img { display: block; width: 100%; height: 180px; object-fit: cover; border-radius: 14px; }
.team { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.team-card { flex: 1 1 380px; max-width: 460px; background: #fff; border: 1px solid #e2e8f0; border-radius: 24px; padding: 22px 24px;
  display: flex; gap: 22px; align-items: center; box-shadow: 0 14px 30px -22px rgba(15, 23, 42, .35); }
.team-ph { flex: none; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 6px #ebf5ff; }
.team-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-n { font-size: 1.3rem; font-weight: 800; color: #0f172a; }
.team-r { color: #1c80e0; font-weight: 600; margin-top: 4px; }
@media (max-width: 767px) {
  .about-story, .about-team { padding: 56px 16px; }
  .about-story h2, .about-team h2 { font-size: 1.9rem; }
  .tl::before { left: 27px; }
  .tl-item { grid-template-columns: 56px 1fr; gap: 12px; }
  .tl-year { font-size: .85rem; padding: 4px 8px; }
  .tl-card, .tl-card:has(.tl-img) { grid-template-columns: 1fr; padding: 18px; }
  .tl-img { grid-column: 1; grid-row: auto; margin-top: 14px; }
  .team-ph { width: 92px; height: 92px; }
}

/* Hero mockups (WhatsApp phone with floating cards), landscape */
.elementor img.e-hero-mockup { box-shadow: none !important; border-radius: 0 !important; background: none !important;
  max-width: 600px !important; width: 100% !important; height: auto !important; max-height: none !important; object-fit: initial !important; }
.elementor-widget-image:has(.e-hero-mockup) { width: 100%; text-align: center; animation: none !important; }
.elementor-widget-image:has(.e-hero-mockup) .elementor-widget-container { padding: 0 !important; background: none !important; box-shadow: none !important; height: auto !important; }
img.e-hero-mockup { max-width: 600px; width: 100%; height: auto; }
.elementor img.e-feature-img.e-tab-mockup { max-width: 560px !important; margin: 0 auto; display: block; }

/* Hero: text and mockup in two equal columns, as on /site-induction/ */
@media (min-width: 1025px) {
  .e-grid:has(img.e-hero-mockup) > .e-con-inner,
  .e-grid.e-con-full:has(> .e-con img.e-hero-mockup) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: center;
  }
  .elementor img.e-hero-mockup { max-width: 100% !important; }
}

/* Download band: presentation PDF for visitors who rather read first */
.e-download-band { padding: 72px 20px; background: #f6f9fc; }
.e-download-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center;
  background: #fff; border: 1px solid #e6edf5; border-radius: 24px; padding: 48px; box-shadow: 0 20px 40px -24px rgba(16, 24, 40, .18); }
.e-download-label { margin: 0 0 8px !important; font-size: 14px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #3e9bff !important; }
.e-download-text h2 { margin: 0 0 16px; font-size: 36px; line-height: 1.15; color: #1f2937; }
.e-download-text p { margin: 0 0 24px; font-size: 17px; line-height: 1.6; color: #475467; }
.e-download-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.e-download-btn { display: inline-block; padding: 16px 28px; border-radius: 999px; background: #3e9bff; color: #fff !important; font-weight: 700; font-size: 16px; text-decoration: none; }
.e-download-btn:hover { background: #2384ec; }
.e-download-meta { font-size: 14px; color: #667085; }
.e-download-cover img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 24px 48px -20px rgba(16, 24, 40, .35); transform: rotate(-1.5deg); }
.e-hero-download { margin: 18px 0 0; font-size: 15px; color: #475467; }
.e-hero-download a { color: #1f6fd6; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1024px) {
  .e-download-inner { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
  .e-download-text h2 { font-size: 28px; }
}

/* Short lists inside text blocks and FAQ answers */
.elementor-widget-text-editor ul, .e-n-accordion ul { margin: 0 0 1em !important; padding-left: 1.25em !important; }
.elementor-widget-text-editor li, .e-n-accordion li { margin-bottom: 4px; }

/* About us: one width for all sections, calmer impact cards */
.page-id-26155 .about-wrap { max-width: 1080px; }
.page-id-26155 .about-lead { text-wrap: balance; }
.page-id-26155 .team-card { flex: 1 1 0; max-width: none; }
.page-id-26155 .elementor-element-50993323 > .e-con-inner { max-width: 1080px; }
.page-id-26155 .elementor-element-45b46e7d .elementor-heading-title { color: #0f172a; }
.page-id-26155 .case-card:after { display: none; }
.page-id-26155 .case-card, .page-id-26155 .case-card * { font-style: normal !important; }
.tl-img-logo { position: relative; }
.tl-logo { position: absolute; left: 10px; bottom: 10px; background: #fff; border-radius: 10px; padding: 6px 10px; box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .4); }
.tl-logo img { display: block; width: 110px !important; height: auto !important; border-radius: 0 !important; object-fit: contain !important; }
.tl-img-mock img { object-fit: contain !important; background: #f1f6fd; }

/* Customer story: logo above the article */
.case-logo { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid #eef2f6; }
.case-logo img { width: 170px; height: auto; }
.case-logo span { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }

/* Toolbox talk downloads (/ppe-toolbox-talk/ etc.) and toolbox talk topics: cover image, content, FAQ, more cards */
.elementor img.tdl-cover { box-shadow: none !important; border-radius: 0 !important; background: none !important;
  width: 100% !important; max-width: 640px !important; height: auto !important; max-height: none !important; object-fit: initial !important; }
.elementor-widget-image:has(.tdl-cover) .elementor-widget-container { padding: 0 !important; background: none !important; box-shadow: none !important; height: auto !important; }
.elementor-widget-image:has(.tdl-cover) { width: 100%; text-align: center; animation: none !important; }
.tdl-section { padding: 72px 20px; }
.tdl-section:nth-of-type(even) { background: #f6f9fc; }
.tdl-wrap { max-width: 1200px; margin: 0 auto; }
.tdl-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.tdl-label { margin: 0 0 8px !important; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #3e9bff; }
.tdl-section h2 { margin: 0 0 16px; font-size: 32px; line-height: 1.2; color: #1f2937; font-weight: 800; }
.tdl-section p { font-size: 17px; line-height: 1.6; color: #475467; margin: 0 0 16px; }
.tdl-section a:not(.tdl-more-card):not(.tdl-btn) { color: #1f6fd6; font-weight: 600; }
.tdl-agenda { counter-reset: tdl; list-style: none; margin: 8px 0 20px; padding: 0; }
.tdl-agenda li { counter-increment: tdl; position: relative; padding: 12px 14px 12px 56px; margin-bottom: 8px; background: #fff; border: 1px solid #e6edf5; border-radius: 12px; font-size: 16px; color: #1f2937; }
.tdl-agenda li::before { content: counter(tdl); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%;
  background: #3e9bff; color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.tdl-faq-item { background: #fff; border: 1px solid #e6edf5; border-radius: 12px; margin-bottom: 10px; }
.tdl-faq-item summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; color: #1f2937; font-size: 16px; position: relative; }
.tdl-faq-item summary::-webkit-details-marker { display: none; }
.tdl-faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #3e9bff; }
.tdl-faq-item[open] summary::after { content: "–"; }
.tdl-faq-item p { padding: 0 18px 16px; margin: 0; font-size: 16px; }
.tdl-more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 24px; }
.tdl-more-card { display: block; background: #fff; border: 1px solid #e6edf5; border-radius: 16px; overflow: hidden; text-decoration: none; color: #1f2937;
  box-shadow: 0 12px 28px -22px rgba(15, 23, 42, .35); transition: transform .15s ease; }
.tdl-more-card:hover { transform: translateY(-3px); }
.tdl-more-card img { display: block; width: 100%; height: auto; }
.tdl-more-card span { display: block; padding: 14px 16px; font-weight: 700; font-size: 16px; }
.tdl-more-card small { display: block; padding: 0 16px 16px; margin-top: -8px; font-size: 14px; color: #667085; line-height: 1.5; }
.tdl-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }
.tdl-topic { background: #fff; border: 1px solid #e6edf5; border-radius: 16px; padding: 20px 22px; }
.tdl-topic h3 { margin: 0 0 10px; font-size: 18px; font-weight: 800; color: #0f172a; }
.tdl-topic ul { margin: 0; padding-left: 18px; color: #475467; font-size: 15px; line-height: 1.7; }
.tdl-topic a { color: #1f6fd6; font-weight: 600; }
.tdl-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #e8f3ff; color: #1c80e0; font-size: 12px; font-weight: 700; vertical-align: 1px; }
.tdl-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 24px; }
.tdl-month { background: #fff; border: 1px solid #e6edf5; border-radius: 12px; padding: 14px 16px; }
.tdl-month b { display: block; color: #3e9bff; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.tdl-month span { color: #1f2937; font-size: 15px; line-height: 1.4; }
.tdl-btn { display: inline-block; padding: 14px 24px; border-radius: 999px; background: #3e9bff; color: #fff !important; font-weight: 700; text-decoration: none; }
.tdl-btn.tdl-btn-ghost { background: #fff; color: #1f6fd6 !important; border: 2px solid #3e9bff; }
.tdl-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 1024px) {
  .tdl-two { grid-template-columns: 1fr; gap: 40px; }
  .tdl-section { padding: 56px 16px; }
  .tdl-section h2 { font-size: 26px; }
}
.tdl-check { list-style: none; margin: 0 0 16px; padding: 0; }
.tdl-check li { position: relative; padding-left: 30px; margin-bottom: 10px; font-size: 16px; color: #1f2937; }
.tdl-check li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #3e9bff; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tdl-formcard { background: #0b141a; border-radius: 20px; padding: 32px; color: #fff; }
.tdl-formcard h3 { color: #fff; font-size: 22px; font-weight: 800; margin: 0 0 18px; }
.tdl-form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tdl-form-fields .tdl-full { grid-column: 1 / -1; }
.tdl-form .elementor-field { width: 100%; border-radius: 10px; border: 1px solid #cfd8e3; padding: 12px 14px; font-size: 16px; background: #fff; color: #1f2937; }
.tdl-form .tdl-btn { width: 100%; border: 0; cursor: pointer; font-size: 16px; }
.tdl-formcard .tdl-small, .tdl-small { font-size: 13px !important; color: #9fb0bb !important; text-align: center; margin: 12px 0 0 !important; }
.tdl-formcard .tdl-small a { color: #7cc0ff !important; }
.tdl-formcard .elementor-message { color: #fff; }
@media (max-width: 600px) { .tdl-form-fields { grid-template-columns: 1fr; } .tdl-formcard { padding: 24px 18px; } }

/* ---- CookieHub cookie banner (loaded via GTM) on e-lia.co.uk ----
   The Elementor kit gives every <button> 24px text and 22px/32px padding; that
   makes the CookieHub buttons too big and cuts off the text. Here they go
   back to the site style: blue pill buttons like "Start my demo".
   Colour and position (bar at the bottom, non-blocking) are set in dash.cookiehub.com. */
.ch2-container,
.ch2-container .ch2-dialog,
.ch2-container .ch2-settings { font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.ch2-container .ch2-btn {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  padding: 12px 22px !important;
  height: auto !important;
  min-height: 0 !important;
  width: auto !important;
  max-width: 100%;
  white-space: nowrap;
  border-radius: 100px !important;
  box-shadow: none !important;
}
.ch2-container .ch2-btn-primary {
  background-color: #399DFF !important;
  border: 1px solid #399DFF !important;
  color: #fff !important;
}
.ch2-container .ch2-btn-primary:hover,
.ch2-container .ch2-btn-primary:focus {
  background-color: #007EF9 !important;
  border-color: #007EF9 !important;
  color: #fff !important;
}
.ch2-container .ch2-btn-transparent,
.ch2-container .ch2-btn:not(.ch2-btn-primary) {
  background-color: #fff !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
}
.ch2-container .ch2-btn-transparent:hover,
.ch2-container .ch2-btn-transparent:focus,
.ch2-container .ch2-btn:not(.ch2-btn-primary):hover,
.ch2-container .ch2-btn:not(.ch2-btn-primary):focus {
  background-color: #EBF5FF !important;
  border-color: #399DFF !important;
  color: #0F172A !important;
}
.ch2-container .ch2-learn-more { color: #399DFF; }
@media (max-width: 767px) {
  .ch2-container .ch2-btn { white-space: normal; }
}

/* Brand name next to the round logo in the header */
.e-brand { display: inline-flex !important; align-items: center; gap: 10px; vertical-align: middle; text-decoration: none; }
.e-brand-name { font-family: "Chivo", sans-serif; font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: -0.01em; color: #334155; white-space: nowrap; }
@media (max-width: 767px) {
  .e-brand { gap: 8px; }
  .e-brand-name { font-size: 22px; }
}

/* Blog overview (tools/blog_index.py): topic sections, short card text */
.e-blog-topics { max-width: 1200px; margin: 0 auto; padding: 0 20px; text-align: center; font-size: 15px; line-height: 2.2; }
.e-blog-topics a { color: #1d2b36; font-weight: 600; text-decoration: none; white-space: nowrap; }
.e-blog-topics a:hover { color: #28A745; }
.elementor-element.e-blog-cluster { --padding-top: 40px; --padding-bottom: 20px; --gap: 16px 0px; --row-gap: 16px; scroll-margin-top: 90px; }
.e-blog-cluster-intro { margin: 0 0 8px; color: #4a5866; max-width: 760px; }
.elementor-19268 .elementor-element-2d724d1 > .elementor-widget-container { display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-height: 4.8em; }
.elementor-19268 .elementor-element-377c694 .elementor-heading-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
