/* 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 ("Oplossingen") */
.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 "Oplossingen" 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 e-lia.io/poortinstructie/ */
@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; }

/* Over ons: 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; }
