

/* BEGIN EPMRIGA APPROVED VISUAL V3 */
/* EPM Rīga design alignment — approved concept, v3. Scoped to home page and Helix header. */
:root{--epm-orange:#ff650f;--epm-ink:#111923;--epm-gray:#606873}
/* Header remains standard Helix; only visual treatment is customized. */
#sp-header{background:#fff!important;box-shadow:0 3px 17px rgba(14,28,41,.07)!important}
#sp-header .container{max-width:1320px!important}
#sp-header .logo img{height:auto!important;max-height:48px!important;max-width:184px!important;width:auto!important}
#sp-header .sp-megamenu-parent>li>a{font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important;text-transform:none!important;letter-spacing:0!important;font-weight:600!important;font-size:14px!important;color:#242a31!important;padding-left:16px!important;padding-right:16px!important}
#sp-header .sp-megamenu-parent>li.active>a,#sp-header .sp-megamenu-parent>li>a:hover{color:var(--epm-orange)!important}
#sp-header .sp-megamenu-parent>li.active>a:after{background:var(--epm-orange)!important}
#sp-header .sp-megamenu-parent>li:last-child>a{background:var(--epm-orange)!important;color:#fff!important;border-radius:4px!important;height:40px!important;line-height:40px!important;margin-top:calc((70px - 40px)/2)!important;padding:0 18px!important}
#sp-header .sp-megamenu-parent>li:last-child>a:hover{background:#dd5200!important;color:#fff!important}
/* Avoid outer Joomla/Helix gutters crushing full-width SP Page Builder rows. */
body:has(#epm-hero) #sp-main-body{padding:0!important;margin:0!important}
body:has(#epm-hero) #sp-main-body>.container,
body:has(#epm-hero) #sp-main-body>.container-fluid{padding:0!important;max-width:none!important;width:100%!important}
body:has(#epm-hero) #sp-main-body>.container>.row{margin:0!important}
body:has(#epm-hero) #sp-main-body>.container>.row>[class*=col-]{padding:0!important;max-width:100%!important;flex:0 0 100%!important}
body:has(#epm-hero) .sp-page-builder .page-content{font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important;color:var(--epm-ink)!important}
body:has(#epm-hero) .sppb-row-container{max-width:1290px!important;width:calc(100% - 80px)!important;margin-inline:auto!important}
body:has(#epm-hero) #epm-hero{min-height:500px!important;display:flex;align-items:center;background-position:center 54%!important}
body:has(#epm-hero) #epm-hero:before{background:linear-gradient(90deg,rgba(7,14,21,.89) 0%,rgba(8,15,22,.67) 34%,rgba(8,15,22,.1) 75%)!important}
body:has(#epm-hero) #epm-hero .epm-h1 .sppb-addon-title{font-family:Inter,system-ui,Arial,sans-serif!important;font-size:clamp(43px,4.7vw,70px)!important;line-height:1.06!important;font-weight:850!important;max-width:670px!important;letter-spacing:-.046em!important;margin:0 0 22px!important;color:#fff!important}
body:has(#epm-hero) #epm-hero .epm-hero-sub,body:has(#epm-hero) #epm-hero .epm-hero-sub p{color:#f5f7f9!important;font-size:18px!important;max-width:600px!important;line-height:1.52!important}
body:has(#epm-hero) #sp-page-builder .epm-button .sppb-btn,body:has(#epm-hero) #sp-page-builder .sppb-btn-primary{background:var(--epm-orange)!important;border:1px solid var(--epm-orange)!important;border-radius:4px!important;color:#fff!important;font-family:Inter,system-ui,Arial,sans-serif!important;font-size:14px!important;font-weight:750!important;line-height:1.3!important;padding:14px 25px!important;box-shadow:none!important;text-transform:none!important}
body:has(#epm-hero) #sp-page-builder .epm-button .sppb-btn:hover,body:has(#epm-hero) #sp-page-builder .sppb-btn-primary:hover{background:#df5300!important;border-color:#df5300!important}
/* Approved three white cards with outlined orange icons. */
#epm-services{background:#f5f6f8!important}
#epm-services .sppb-row-container{max-width:1290px!important}
#epm-services .sppb-row-container .sppb-col-md-4{padding:9px!important}
#epm-services .sppb-column{height:100%!important;min-height:156px!important;border:0!important;border-radius:5px!important;background:#fff!important;box-shadow:0 12px 28px rgba(18,28,40,.09)!important;padding:25px 24px 30px 94px!important}
#epm-services .sppb-column:before{top:28px!important;left:24px!important;width:43px!important;height:43px!important}
#epm-services .epm-card-h .sppb-addon-title{font-size:17px!important;font-weight:800!important;line-height:1.3!important;color:var(--epm-ink)!important}
#epm-services .epm-card-copy, #epm-services .epm-card-copy p{font-size:14px!important;line-height:1.47!important;color:#646b73!important}
#epm-services .epm-card-action a{color:var(--epm-orange)!important}
/* Approved two-column about panel: large image, compact editorial text, slight fade. */
#epm-about{background:#fff!important;overflow:hidden}
#epm-about .sppb-row-container{max-width:1290px!important}
#epm-about .sppb-row{align-items:center!important}
#epm-about .epm-about-image{position:relative;overflow:hidden;margin-right:-10px;min-height:370px}
#epm-about .epm-about-image:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.92) 4%,rgba(255,255,255,0) 28%)}
#epm-about .epm-about-image img{height:370px!important;max-height:none!important;aspect-ratio:auto!important;border-radius:0!important;object-fit:cover!important;object-position:center 45%!important;width:100%!important}
#epm-about .epm-h2 .sppb-addon-title{font-size:clamp(34px,3.1vw,46px)!important;margin-bottom:18px!important;letter-spacing:-.04em!important}
#epm-about .epm-copy,#epm-about .epm-copy p{font-size:16px!important;line-height:1.63!important}
/* Section below About is compact rather than a second giant empty canvas. */
#epm-collaboration{background:#f6f7f9!important;overflow:hidden}
#epm-collaboration .sppb-row{align-items:center!important}
#epm-collaboration .epm-material-image{overflow:hidden}
#epm-collaboration .epm-material-image img{width:100%!important;height:335px!important;aspect-ratio:auto!important;border-radius:3px!important;object-fit:cover!important}
#epm-collaboration .epm-h2 .sppb-addon-title{font-size:clamp(30px,2.7vw,40px)!important;line-height:1.15!important}
#epm-collaboration .epm-copy,#epm-collaboration .epm-copy p{font-size:16px!important;line-height:1.64!important}
#epm-projects-title,#epm-projects{background:#fff!important}
#epm-projects-title .epm-h2 .sppb-addon-title{font-size:clamp(31px,3vw,43px)!important}
#epm-projects .sppb-row-container .sppb-col-md-4{padding-inline:10px!important}
#epm-projects .sppb-column{min-height:100%!important;border:1px solid #e9edf0!important;border-radius:6px!important;background:#fff!important;box-shadow:0 8px 24px rgba(15,30,40,.07)!important;overflow:hidden}
#epm-projects .epm-project-image img{display:block!important;width:100%!important;height:auto!important;aspect-ratio:1.96!important;object-fit:cover!important;border-radius:0!important}
#epm-projects .epm-project-h{padding:19px 22px 0!important}
#epm-projects .epm-project-h .sppb-addon-title{font-size:18px!important;font-weight:780!important;line-height:1.25!important;color:var(--epm-ink)!important}
#epm-projects .epm-project-copy{padding:9px 22px 24px!important;font-size:14px!important;color:#515b67!important;line-height:1.52!important}
#epm-partners-title,#epm-partners{background:#f6f7f8!important}
#epm-partners .epm-partner-image{box-shadow:none!important}
#epm-contact{background:#111920!important}
#epm-contact .epm-contact-heading .sppb-addon-title{font-size:clamp(34px,3vw,43px)!important}
/* Mobile / tablet must not inherit desktop column widths or oversized paddings. */
@media (max-width:1199px){body:has(#epm-hero) .sppb-row-container{width:calc(100% - 48px)!important}#epm-services .sppb-column{padding:23px 22px 30px 84px!important}#epm-services .sppb-column:before{left:19px!important}}
@media (max-width:991px){#sp-header .sp-megamenu-parent>li>a{padding-inline:8px!important;font-size:12px!important}#epm-services .sppb-column{padding:72px 16px 35px!important}#epm-services .sppb-column:before{top:19px!important;left:17px!important}#epm-about .epm-about-image img{height:330px!important}}
@media (max-width:767px){body:has(#epm-hero) .sppb-row-container{width:calc(100% - 32px)!important}body:has(#epm-hero) #epm-hero{min-height:420px!important}body:has(#epm-hero) #epm-hero .epm-h1 .sppb-addon-title{font-size:clamp(36px,10vw,50px)!important}#epm-services .sppb-column{padding:26px 23px 39px 89px!important;min-height:138px!important}#epm-services .sppb-column:before{top:28px!important;left:23px!important}#epm-about .epm-about-image{min-height:0;margin:20px 0 0}#epm-about .epm-about-image:after{display:none}#epm-about .epm-about-image img{height:270px!important;border-radius:4px!important}#epm-collaboration .epm-material-image img{height:255px!important}#epm-projects .epm-project-image img{aspect-ratio:2!important}#epm-projects .sppb-column{margin-bottom:15px}}

/* END EPMRIGA APPROVED VISUAL V3 */

/* BEGIN EPMRIGA_NAV_ORANGE */
/* Manufacturer uses ::before for the active/hover underline.
   Header height is set to 80px in Helix and is deliberately untouched here. */
:root { --epm-nav-accent: #ff650f; }
#sp-header .sp-megamenu-parent > li.active > a,
#sp-header .sp-megamenu-parent > li.current > a,
#sp-header .sp-megamenu-parent > li:hover > a,
#sp-header .sp-megamenu-parent > li > a:hover,
#sp-header .sp-megamenu-parent > li > a:focus {
  color: var(--epm-nav-accent) !important;
}
#sp-header .sp-megamenu-parent > li > a::before,
#sp-header .sp-megamenu-parent > li > span::before {
  background-color: var(--epm-nav-accent) !important;
  border-color: var(--epm-nav-accent) !important;
}
#sp-header .sp-megamenu-parent > li.active > a::after,
#sp-header .sp-megamenu-parent > li:hover > a::after {
  background-color: var(--epm-nav-accent) !important;
  border-color: var(--epm-nav-accent) !important;
}
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover,
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:focus,
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > a,
#sp-header .sp-megamenu-parent .sp-mega-group > li > a:hover,
.offcanvas-menu .offcanvas-inner ul.menu > li > a:hover,
.offcanvas-menu .offcanvas-inner ul.menu > li.active > a {
  color: var(--epm-nav-accent) !important;
}
/* Keep the orange Contacts CTA white, including its hover/active states. */
#sp-header .sp-megamenu-parent > li:last-child > a,
#sp-header .sp-megamenu-parent > li:last-child > a:hover,
#sp-header .sp-megamenu-parent > li:last-child > a:focus,
#sp-header .sp-megamenu-parent > li:last-child.active > a {
  color: #fff !important;
}
#sp-header .sp-megamenu-parent > li:last-child > a::before,
#sp-header .sp-megamenu-parent > li:last-child > a::after {
  display: none !important;
}
/* END EPMRIGA_NAV_ORANGE */

/* BEGIN EPMRIGA V4 */
/* EPM Rīga v4 – about, partner cards, compact header. No Gantry dependencies. */
:root {--epm-v4-orange:#ff650f;--epm-v4-ink:#111923;}
#sp-header .epm-lang-links {display:flex;align-items:center;gap:10px;margin-left:auto;padding:0 0 0 14px;font-size:12px;font-weight:700;white-space:nowrap}
#sp-header .epm-lang-links a {color:#7d8693;text-decoration:none}
#sp-header .epm-lang-links a[aria-current="page"],#sp-header .epm-lang-links a:hover {color:var(--epm-v4-orange)}
#sp-header .epm-lang-links span {color:#d6dbe1}
#sp-header .sp-megamenu-parent>li>a[href*="/aktualitates"],#sp-header .sp-megamenu-parent>li>a[href*="/sadarbibas-partneri"]{display:none!important}
#sp-header .sp-megamenu-parent>li:has(>a[href*="/aktualitates"]),#sp-header .sp-megamenu-parent>li:has(>a[href*="/sadarbibas-partneri"]){display:none!important}
/* Logo partners as actual cards; images remain Joomla/Sppagebuilder content. */
#epm-partners .sppb-col-md-3, #epm-v4-collab-partners .sppb-col-md-3 {padding:10px!important}
#epm-partners .sppb-column,#epm-v4-collab-partners .sppb-column {background:#fff!important;min-height:150px!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:6px!important;border:1px solid #e9edf0!important;box-shadow:0 9px 25px rgba(21,36,50,.095)!important;padding:22px!important;transition:transform .2s ease,box-shadow .2s ease}
#epm-partners .sppb-column:hover,#epm-v4-collab-partners .sppb-column:hover {transform:translateY(-3px)!important;box-shadow:0 16px 32px rgba(21,36,50,.13)!important}
#epm-partners .epm-partner-image img,#epm-v4-collab-partners .epm-partner-image img {object-fit:contain!important;max-width:100%!important;width:auto!important;max-height:92px!important;filter:none!important}
#epm-v4-collab-partners,#epm-v4-collab-partners-title{background:#f6f7f9!important}
/* SPPB about page – full bleed hero and native editable addons. */
body:has(#epm-v4-about-hero) #sp-main-body,body:has(#epm-v4-projects-title) #sp-main-body {padding:0!important;margin:0!important}
body:has(#epm-v4-about-hero) #sp-main-body>.container,body:has(#epm-v4-projects-title) #sp-main-body>.container {max-width:none!important;width:100%!important;padding:0!important}
body:has(#epm-v4-about-hero) #sp-main-body>.container>.row,body:has(#epm-v4-projects-title) #sp-main-body>.container>.row {margin:0!important}
body:has(#epm-v4-about-hero) #sp-main-body>.container>.row>[class*=col-],body:has(#epm-v4-projects-title) #sp-main-body>.container>.row>[class*=col-] {max-width:100%!important;flex:0 0 100%!important;padding:0!important}
body:has(#epm-v4-about-hero) .sppb-row-container,body:has(#epm-v4-projects-title) .sppb-row-container {max-width:1250px!important;width:calc(100% - 70px)!important;margin-inline:auto!important}
#epm-v4-about-hero {min-height:310px!important;display:flex!important;align-items:center!important;background-size:cover!important;background-position:center 48%!important;position:relative}
#epm-v4-about-hero:before {content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(90deg,rgba(7,14,22,.91),rgba(7,14,22,.58) 49%,rgba(7,14,22,.09))}
#epm-v4-about-hero .sppb-container-inner,#epm-v4-about-hero .sppb-row-container {position:relative;z-index:1}
#epm-v4-about-hero .epm-v4-hero-title .sppb-addon-title {color:#fff!important;font-size:clamp(45px,5vw,67px)!important;letter-spacing:-.045em!important;font-weight:850!important;line-height:1.05!important;margin-bottom:16px!important}
#epm-v4-about-hero .epm-v4-hero-sub,#epm-v4-about-hero .epm-v4-hero-sub p{max-width:680px;color:#f6f7fa!important;font-size:18px!important;line-height:1.55!important}
#epm-v4-about-intro {background:#fff!important}
#epm-v4-about-intro .sppb-row,#epm-v4-about-competence .sppb-row{align-items:center!important}
#epm-v4-about-intro .epm-v4-h .sppb-addon-title,#epm-v4-about-competence .epm-v4-h .sppb-addon-title,#epm-v4-projects-title .epm-v4-h .sppb-addon-title{color:var(--epm-v4-ink)!important;font-size:clamp(32px,3.3vw,45px)!important;font-weight:820!important;letter-spacing:-.035em!important;line-height:1.14!important;margin-bottom:20px!important}
#epm-v4-about-intro .epm-v4-copy,#epm-v4-about-competence .epm-v4-copy{font-size:17px!important;line-height:1.72!important;color:#4c5866!important;max-width:600px}
#epm-v4-about-intro .epm-v4-img img,#epm-v4-about-competence .epm-v4-img img{width:100%!important;height:345px!important;object-fit:cover!important;border-radius:7px!important;box-shadow:0 12px 28px rgba(8,24,36,.1)!important}
#epm-v4-about-intro .epm-v4-button .sppb-btn {background:var(--epm-v4-orange)!important;border-color:var(--epm-v4-orange)!important;color:#fff!important;border-radius:4px!important;font-weight:700!important;padding:13px 22px!important;text-transform:none!important}
#epm-v4-about-features{background:#f4f6f8!important}
#epm-v4-about-features .sppb-row-container .sppb-col-md-4{padding:10px!important}
#epm-v4-about-features .sppb-column {position:relative;min-height:177px!important;border-radius:7px!important;background:#fff!important;box-shadow:0 11px 26px rgba(25,43,56,.065)!important;padding:34px 28px 25px 91px!important}
#epm-v4-about-features .sppb-column:before{content:"";display:block;position:absolute;left:27px;top:38px;width:38px;height:38px;border:3px solid var(--epm-v4-orange);border-radius:11px;transform:rotate(-8deg)}
#epm-v4-about-features .sppb-col-md-4:nth-child(2) .sppb-column:before{border-radius:50% 50% 9px 9px;transform:rotate(0)}
#epm-v4-about-features .sppb-col-md-4:nth-child(3) .sppb-column:before{border-radius:4px;transform:rotate(6deg)}
#epm-v4-about-features .epm-v4-feature-title .sppb-addon-title {font-size:18px!important;font-weight:780!important;line-height:1.28!important;color:#151b25!important}
#epm-v4-about-features .epm-v4-feature-copy,#epm-v4-about-features .epm-v4-feature-copy p {font-size:14px!important;line-height:1.55!important;color:#66707b!important}
#epm-v4-about-competence{background:#fff!important}
#epm-v4-about-cta{background:#111920!important;color:#fff!important}
#epm-v4-about-cta .sppb-addon-title {color:#fff!important;font-weight:780!important}
#epm-v4-about-cta .epm-v4-cta-title .sppb-addon-title{font-size:clamp(31px,3.2vw,43px)!important}
#epm-v4-about-cta .epm-v4-cta-copy,#epm-v4-about-cta .epm-v4-cta-copy p{color:#dae0e4!important;font-size:16px!important;line-height:1.6!important}
#epm-v4-about-cta a {color:#ff8536!important;font-weight:700!important}
#epm-v4-projects-title,#epm-v4-projects-cards,#epm-v4-projects-archive{background:#fff!important}
#epm-v4-projects-cards .sppb-column{overflow:hidden!important;border-radius:6px!important;box-shadow:0 10px 28px rgba(15,30,40,.09)!important;border:1px solid #edf0f2!important}
#epm-v4-projects-cards .epm-project-image img{width:100%!important;height:210px!important;object-fit:cover!important}
#epm-v4-projects-cards .epm-project-h{padding:16px 20px 0!important}
#epm-v4-projects-cards .epm-project-copy{padding:8px 20px 23px!important}
#epm-v4-projects-archive a {color:#e75c09!important;font-weight:650!important}
@media(max-width:991px){#sp-header .epm-lang-links{gap:5px;margin-right:55px}#epm-v4-about-features .sppb-column{padding:82px 20px 23px!important}#epm-v4-about-features .sppb-column:before{top:25px;left:24px}}
@media(max-width:767px){body:has(#epm-v4-about-hero) .sppb-row-container,body:has(#epm-v4-projects-title) .sppb-row-container{width:calc(100% - 32px)!important}#epm-v4-about-hero{min-height:250px!important}#epm-v4-about-hero .epm-v4-hero-title .sppb-addon-title{font-size:42px!important}#epm-v4-about-intro .epm-v4-img img,#epm-v4-about-competence .epm-v4-img img{height:235px!important}#epm-v4-about-features .sppb-column{padding:28px 23px 23px 88px!important;min-height:0!important}#epm-v4-about-features .sppb-column:before{top:26px;left:25px}#sp-header .epm-lang-links {font-size:11px;padding-left:5px;gap:4px}}
.offcanvas-menu .epm-mobile-menu{display:flex;flex-direction:column;gap:0;padding:16px}
.offcanvas-menu .epm-mobile-menu>a{display:block;padding:13px 10px;border-bottom:1px solid #eceff2;color:#152131;font-weight:700;font-size:15px}
.offcanvas-menu .epm-mobile-menu a:hover{color:#ff650f}
.offcanvas-menu .epm-mobile-langs{padding:21px 10px;font-weight:750;font-size:13px}
.offcanvas-menu .epm-mobile-langs a{color:#d8560e;padding-inline:6px}

/* Approved orange line icons */
#epm-v4-about-features .sppb-col-md-4:nth-child(1) .sppb-column:before{border:0!important;border-radius:0!important;transform:none!important;width:43px!important;height:43px!important;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ff650f%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M19.4%2015a1.65%201.65%200%200%200%20.33%201.82l.06.06-1.91%201.91-.06-.06A1.65%201.65%200%200%200%2016%2018.4a1.65%201.65%200%200%200-1%20.4l-.12.09V21h-2.7v-.11a1.65%201.65%200%200%200-1.09-1.54%201.65%201.65%200%200%200-1.82.33l-.06.06-1.91-1.91.06-.06a1.65%201.65%200%200%200%20.33-1.82%201.65%201.65%200%200%200-1.54-1.09H6v-2.7h.11a1.65%201.65%200%200%200%201.54-1.09%201.65%201.65%200%200%200-.33-1.82l-.06-.06L9.17%207.3l.06.06a1.65%201.65%200%200%200%201.82.33%201.65%201.65%200%200%200%201.09-1.54V6h2.7v.11a1.65%201.65%200%200%200%201.09%201.54%201.65%201.65%200%200%200%201.82-.33l.06-.06%201.91%201.91-.06.06a1.65%201.65%200%200%200-.33%201.82%201.65%201.65%200%200%200%201.54%201.09H21v2.7h-.11A1.65%201.65%200%200%200%2019.4%2015z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center;background-size:contain}
#epm-v4-about-features .sppb-col-md-4:nth-child(2) .sppb-column:before{border:0!important;border-radius:0!important;transform:none!important;width:43px!important;height:43px!important;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ff650f%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%203h6M10%203v7l-6%209a1.5%201.5%200%200%200%201.25%202.3h13.5A1.5%201.5%200%200%200%2020%2019l-6-9V3M7%2016h10%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center;background-size:contain}
#epm-v4-about-features .sppb-col-md-4:nth-child(3) .sppb-column:before{border:0!important;border-radius:0!important;transform:none!important;width:43px!important;height:43px!important;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ff650f%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%2213%22%20width%3D%224%22%20height%3D%228%22%20rx%3D%22.4%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%228%22%20width%3D%224%22%20height%3D%2213%22%20rx%3D%22.4%22%2F%3E%3Crect%20x%3D%2216%22%20y%3D%223%22%20width%3D%224%22%20height%3D%2218%22%20rx%3D%22.4%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center;background-size:contain}


/* EPM RIGA V5: orange navigation and no white strip under the header.
   Header Height 80px stays under Helix Ultimate control. */
:root { --epm-v5-orange: #ff650f; }
#sp-header .sp-megamenu-parent > li.active > a,
#sp-header .sp-megamenu-parent > li.current > a,
#sp-header .sp-megamenu-parent > li:hover > a,
#sp-header .sp-megamenu-parent > li > a:hover,
#sp-header .sp-megamenu-parent > li > a:focus,
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover,
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > a {
  color:var(--epm-v5-orange)!important;
}
#sp-header .sp-megamenu-parent > li > a::before,
#sp-header .sp-megamenu-parent > li > span::before,
#sp-header .sp-megamenu-parent > li.active > a::after,
#sp-header .sp-megamenu-parent > li:hover > a::after {
  background-color:var(--epm-v5-orange)!important;
  border-color:var(--epm-v5-orange)!important;
}
#sp-header .sp-megamenu-parent > li:last-child > a,
#sp-header .sp-megamenu-parent > li:last-child > a:hover,
#sp-header .sp-megamenu-parent > li:last-child > a:focus,
#sp-header .sp-megamenu-parent > li:last-child.active > a {color:#fff!important;}
#sp-header .sp-megamenu-parent > li:last-child > a::before,
#sp-header .sp-megamenu-parent > li:last-child > a::after {display:none!important;}
body:has(#epm-hero) #sp-main-body,
body:has(#epm-v4-about-hero) #sp-main-body,
body:has(#epm-v4-projects-title) #sp-main-body {padding-top:0!important;margin-top:0!important;}
body:has(#epm-hero) #sp-main-body > .container,
body:has(#epm-v4-about-hero) #sp-main-body > .container {padding-top:0!important;}

/* END EPMRIGA V4 */

/* BEGIN EPMRIGA ALL-IN-ONE V7 */
/* EPM Rīga v6: targeted layout corrections after v5. No changes to Helix header height. */
:root { --epm-v6-accent: #ff650f; --epm-v6-text: #111923; }

/* The v5 language navigation was appended after the header grid and flowed
   into the hero. Anchor it to the same header container instead. */
#sp-header .container { position: relative !important; }
#sp-header .container > .epm-lang-links,
#sp-header .epm-lang-links {
  position: absolute !important;
  top: 50% !important;
  right: 14px !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  min-width: 100px !important;
  height: auto !important;
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  column-gap: 9px !important;
  white-space: nowrap !important;
  background: transparent !important;
  box-shadow: none !important;
  z-index: 110 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}
#sp-header .epm-lang-links a {
  position: static !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  padding: 4px 1px !important;
  color: #697482 !important;
  background: transparent !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  line-height: 1.5 !important;
  border: 0 !important;
  box-shadow: none !important;
}
#sp-header .epm-lang-links a[aria-current="page"],
#sp-header .epm-lang-links a:hover,
#sp-header .epm-lang-links a:focus-visible { color: var(--epm-v6-accent) !important; }
#sp-header .epm-lang-links span { color: #c4cbd2 !important; }

/* One consistent orange for all top navigation states; preserve the visible
   keyboard focus indicator (change its color rather than removing it). */
#sp-header .sp-megamenu-parent > li.active > a,
#sp-header .sp-megamenu-parent > li.current > a,
#sp-header .sp-megamenu-parent > li > a:hover,
#sp-header .sp-megamenu-parent > li:hover > a,
#sp-header .sp-megamenu-parent > li > a:focus-visible,
#sp-header .sp-megamenu-parent .sp-dropdown a:hover,
#sp-header .sp-megamenu-parent .sp-dropdown a:focus-visible {
  color: var(--epm-v6-accent) !important;
  border-color: var(--epm-v6-accent) !important;
  text-decoration-color: var(--epm-v6-accent) !important;
}
#sp-header .sp-megamenu-parent > li.active > a::before,
#sp-header .sp-megamenu-parent > li.current > a::before,
#sp-header .sp-megamenu-parent > li:hover > a::before,
#sp-header .sp-megamenu-parent > li.active > a::after,
#sp-header .sp-megamenu-parent > li:hover > a::after {
  background-color: var(--epm-v6-accent) !important;
  border-color: var(--epm-v6-accent) !important;
  box-shadow: none !important;
}
#sp-header a:focus-visible { outline: 2px solid var(--epm-v6-accent) !important; outline-offset: 3px !important; }
#sp-header .sp-megamenu-parent > li:last-child > a,
#sp-header .sp-megamenu-parent > li:last-child > a:focus-visible,
#sp-header .sp-megamenu-parent > li:last-child > a:hover {
  background-color: var(--epm-v6-accent) !important;
  border-color: var(--epm-v6-accent) !important;
  color: #fff !important;
}
#sp-header .sp-megamenu-parent > li:last-child > a:hover { background-color: #e85a00 !important; }

/* Top of SP Page Builder begins directly below the header on homepage. */
body:has(#epm-hero) #sp-main-body,
body:has(#epm-v4-about-hero) #sp-main-body,
body:has(#epm-v4-projects-title) #sp-main-body { padding-top: 0 !important; margin-top: 0 !important; }
body:has(#epm-hero) #sp-main-body > .container,
body:has(#epm-v4-about-hero) #sp-main-body > .container,
body:has(#epm-v4-projects-title) #sp-main-body > .container { padding-top: 0 !important; }

/* Fixed/sticky Helix header: in-page links need a scroll offset, otherwise
   section headings disappear underneath the navigation when links are clicked. */
html { scroll-padding-top: 96px; }
#sp-main-body section[id],
#sp-main-body [id^="epm-"],
#sp-page-builder [id^="epm-"] { scroll-margin-top: 96px !important; }

/* Present logo cards consistently. Keep image natural proportions. */
#epm-partners .sppb-column,
#epm-v4-collab-partners .sppb-column {
  background: #fff !important;
  border: 1px solid #e8ecf0 !important;
  border-radius: 7px !important;
  box-shadow: 0 12px 30px rgba(17, 30, 43, .095) !important;
}
#epm-partners .epm-partner-image img,
#epm-v4-collab-partners .epm-partner-image img { max-height: 90px !important; object-fit: contain !important; }

/* Align tablet and mobile layout without changing the 80px Helix setting. */
@media (max-width: 1199px) and (min-width: 992px) {
  #sp-header .epm-lang-links { right: 6px !important; font-size: 11px !important; column-gap: 5px !important; min-width: 82px !important; }
  #sp-header .sp-megamenu-parent > li > a { padding-left: 10px !important; padding-right: 10px !important; }
}
@media (max-width: 991px) {
  /* LV/EN/RU already exist inside the proper Helix offcanvas menu. */
  #sp-header .epm-lang-links { display: none !important; }
  #sp-header .logo img { max-width: 168px !important; }
  #sp-header .offcanvas-toggler, #sp-header #offcanvas-toggler { color: var(--epm-v6-text) !important; }
  html { scroll-padding-top: 84px; }
  #sp-main-body section[id], #sp-main-body [id^="epm-"] { scroll-margin-top: 84px !important; }
}
@media (max-width: 767px) {
  body:has(#epm-hero) #epm-hero .epm-h1 .sppb-addon-title { overflow-wrap: break-word !important; }
  #epm-projects .sppb-column { height: auto !important; }
  #epm-v4-about-intro .epm-v4-img img, #epm-v4-about-competence .epm-v4-img img { max-width: 100% !important; }
}

/* EPM v7: fixes confirmed in client browser on 21 Oct 2026. */
:root{--epm-brand-orange:#ff650f}
/* Do not set #sp-header height: Helix Header Height=80px remains owner-controlled. */
#sp-header{z-index:1050!important}
#sp-header .epm-lang-links{top:50%!important;right:5px!important}
@media(min-width:992px){#sp-header .sp-megamenu-parent{margin-right:95px!important}}
#sp-header .sp-megamenu-parent>li.active>a:before,
#sp-header .sp-megamenu-parent>li:hover>a:before,
#sp-header .sp-megamenu-parent>li.active>a:after,
#sp-header .sp-megamenu-parent>li:hover>a:after{background:#ff650f!important;border-color:#ff650f!important}
#sp-header .sp-megamenu-parent>li.active,
#sp-header .sp-megamenu-parent>li:hover{border-color:#ff650f!important}
#sp-header .sp-megamenu-parent .sp-dropdown li.active>a,
#sp-header .sp-megamenu-parent .sp-dropdown li>a:hover{color:#ff650f!important;background:transparent!important}
#sp-header .sp-megamenu-parent .sp-has-child:hover:before{background:#ff650f!important}
/* Remove default top whitespace while leaving standard inner pages untouched. */
#sp-main-body:has(#epm-hero),#sp-main-body:has(#epm-v4-about-hero){padding-top:0!important;margin-top:0!important}
#sp-main-body:has(#epm-hero)>.container,#sp-main-body:has(#epm-v4-about-hero)>.container{padding-top:0!important}
/* About hero: real screenshot showed near-black title against dark image. */
#epm-v4-about-hero h1,#epm-v4-about-hero h2,
#epm-v4-about-hero .sppb-addon-title,
#epm-v4-about-hero .epm-v4-hero-title,
#epm-v4-about-hero .epm-v4-hero-title *{color:#fff!important;text-shadow:0 2px 12px rgba(0,0,0,.32)!important}
#epm-v4-about-hero .epm-v4-hero-sub,
#epm-v4-about-hero .epm-v4-hero-sub p,
#epm-v4-about-hero .epm-v4-hero-sub *{color:#f5f7fa!important}
#epm-v4-about-hero>.sppb-row-container{position:relative;z-index:2}
/* About/Sadarbiba buttons had default blue from SP Page Builder. */
#epm-v4-collab-intro .sppb-btn,#epm-v4-about-intro .sppb-btn,
#epm-v4-about-cta .sppb-btn,#epm-v4-projects-archive a{
  background-color:#ff650f!important;border-color:#ff650f!important;color:#fff!important;
  border-radius:4px!important;box-shadow:none!important;text-decoration:none!important
}
#epm-v4-collab-intro .sppb-btn:hover,#epm-v4-about-intro .sppb-btn:hover{background-color:#e45700!important;border-color:#e45700!important}
/* About feature cards, consistent with the three main homepage cards. */
#epm-v4-about-features .sppb-column{box-shadow:0 12px 30px rgba(17,30,43,.095)!important}
#epm-v4-about-features .sppb-addon-title{font-weight:750!important;color:#111923!important}
/* Localized menu does not have LV projects translations: hide that menu only for EN/RU. */
html[lang^="en"] #sp-header li.epm-no-translation,
html[lang^="ru"] #sp-header li.epm-no-translation{display:none!important}
/* Text-only language switch in header: never create a second bar. */
#sp-header .epm-lang-links{display:flex!important;align-items:center!important;min-width:95px!important;white-space:nowrap!important}
@media(max-width:991px){#sp-header .epm-lang-links{display:none!important}#sp-header .sp-megamenu-parent{margin-right:0!important}}
@media(max-width:767px){#epm-v4-about-hero{min-height:270px!important}}
/* Tighten over-spaced inner pages without touching article data. */
#epm-v4-collab-intro{padding-top:55px!important;padding-bottom:48px!important}
#epm-v4-projects-title{padding-top:46px!important;padding-bottom:14px!important}
#epm-v4-about-intro{padding-top:64px!important;padding-bottom:64px!important}
#epm-v4-about-competence{padding-top:50px!important;padding-bottom:70px!important}
#epm-v4-projects-archive a{background:transparent!important;color:#ff650f!important;border:0!important}
@media(max-width:767px){#epm-v4-collab-intro{padding-top:35px!important;padding-bottom:35px!important}#epm-v4-about-intro{padding-top:38px!important;padding-bottom:38px!important}}

/* END EPMRIGA ALL-IN-ONE V7 */
