/* CUSTOM CORE CLASSES */

.is-style-custombuttonborder .wp-block-button__link {
    padding: 20px 40px;
    background-color: #18181800;
    color: #FFFFFF;
    font-family: 'Heebo';
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid #FFFFFF;
    border-radius: 0px;
}

.is-style-custombuttonborder:hover .wp-block-button__link {
    border: 1px solid var(--wp--preset--color--white);
    background-color: #FFFFFF;
    color: var(--wp--preset--color--intrace-primary);
}

.is-style-custombuttonborder2 .wp-block-button__link {
    padding: 18px 32px;
    background-color: var(--wp--preset--color--intrace-primary);
    color: #ffffff;
    border-radius: 0px;
    font-family: 'Heebo';
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--wp--preset--color--intrace-primary);
    border-radius: 0;
}

.is-style-custombuttonborder2:hover .wp-block-button__link {
    border: 1px solid var(--wp--preset--color--intrace-primary);
    background-color: #FFFFFF00;
    color: var(--wp--preset--color--intrace-primary);
}

.is-style-customboxshadow,
.is-style-customboxshadowhover:hover {
    box-shadow: 0px 3px 15px 0px #1010101a;
}

.is-style-lineseparator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.is-style-lineseparator:before {
    content: "";
    width: 70px;
    margin-right: 20px;
    border-top-width: 3px;
    border-top-color: var(--wp--preset--color--intrace-accent);
    border-top-style: solid;
    display: inline-block;
}

.is-style-customborderhover {
    border: 2px solid #121212;
}

.is-style-customborderhover:hover {
    border: 2px solid var(--wp--preset--color--intrace-accent);
}

.is-style-customborderbottom {
    border-bottom: 5px solid var(--wp--preset--color--white);
}

.is-style-customborderbottomhover {
    border-bottom: 5px solid var(--wp--preset--color--white);
}

.is-style-customborderbottomhover:hover {
    border-bottom: 5px solid var(--wp--preset--color--intrace-accent);
}

.is-style-iconsborderhover.wp-block-social-links {
    gap: 20px;
}

.is-style-iconsborderhover.wp-block-social-links .wp-block-social-link {
    font-size: 20px;
    background-color: #ffffff00;
    border: 2px solid var(--wp--preset--color--intrace-accent);
    color: #ffffff;
}

.is-style-iconsborderhover.wp-block-social-links .wp-block-social-link {
    padding: 8px;
}

.is-style-iconsborderhover.wp-block-social-links .wp-block-social-link:hover {
    background-color: var(--wp--preset--color--white);
    border: 2px solid var(--wp--preset--color--white);
    color: #082222;
}

/* INTRACE ADVANCE CLASSES */

.intrace-z-index-1 {
    z-index: 1;
}

.intrace-z-index-10 {
    z-index: 10;
}

.intrace-z-index-100 {
    z-index: 100;
}

.intrace-z-index-1000 {
    z-index: 1000;
}

.intrace-margin-top-n10 {
    position: relative;
    margin-top: -10px !important;
}

.intrace-margin-top-n20 {
    position: relative;
    margin-top: -20px !important;
}

.intrace-margin-top-n30 {
    position: relative;
    margin-top: -30px !important;
}

.intrace-margin-top-n40 {
    position: relative;
    margin-top: -40px !important;
}

.intrace-margin-top-n50 {
    position: relative;
    margin-top: -50px !important;
}

.intrace-margin-top-n60 {
    position: relative;
    margin-top: -60px !important;
}

.intrace-margin-top-n70 {
    position: relative;
    margin-top: -70px !important;
}

.intrace-margin-top-n80 {
    position: relative;
    margin-top: -80px !important;
}

.intrace-margin-top-n90 {
    position: relative;
    margin-top: -90px !important;
}

.intrace-margin-top-n100 {
    position: relative;
    margin-top: -100px !important;
}

.intrace-margin-top-n260 {
    position: relative;
    margin-top: -260px !important;
}

.intrace-radius-5 {
    border-radius: 5px;
}

.intrace-radius-10 {
    border-radius: 10px;
}

.intrace-radius-25 {
    border-radius: 25px;
}

.intrace-radius-50 {
    border-radius: 50px;
}


/* ==================================================== POST START ==================================================== */

.intrace-post-featured > a {
    position: relative;
    display: block;
}

.intrace-post-featured > a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgb(18, 20, 30) 0%,
        rgba(18, 20, 30, 0.8) 20%,
        rgba(18, 20, 30, 0.8) 50%,
        rgb(18, 20, 30) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.intrace-featured > a > img {
    display: block;
    width: 100%;
    height: auto;
}

.intrace-post-meta {
    margin-top: -136px;
    z-index: 999;
}

.intrace-comments-form .comment-reply-title {
    color: #181818 !important;
    font-size: 24px !important;
    font-family: 'Lato', 'Heebo', 'Inter', system-ui, sans-serif !important;
    font-weight: 600 !important;
    line-height: 1.2em !important
    margin-top: 8px;
    margin-bottom: 16px;
}

.intrace-comments-form .comment-form .logged-in-as {
    font-family: "Heebo", sans-serif !important;
    color: #666666 !important;
    font-size: 16px !important;
    font-weight: 300 !important;
    line-height: 1.6em !important;
    margin-bottom: 24px;
}

.intrace-comments-form .comment-form .logged-in-as a {
    color: #181818 !important;
    text-decoration: underline;
}

.intrace-comments-form .comment-form label {
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: "Heebo", sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.5em !important;
}


.intrace-comments-form .comment-form .comment-form-comment textarea,
.intrace-comments-form .comment-form input:not(.wp-block-button__link) {
    margin: 0 0 32px;
    padding: 14px;
    border: 1px solid #e9ebef;
    border-radius: 0px;
    transition: all .3s ease;
}

.intrace-comments-form .comment-form .comment-form-comment textarea:hover,
.intrace-comments-form .comment-form input:not(.wp-block-button__link):hover {
    border: 1px solid #181818;
}

.intrace-comments-form .comment-form .form-submit .wp-block-button__link {
   transition: all .3s ease;
   border: 1px solid #181818;
    text-transform: uppercase;
    font-size: 16px !important;
    font-family: "Heebo", sans-serif !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0.1em;
    padding: 20px 40px !important;
    background-color: #181818 !important;
    color: #FFFFFF !important;
    border-radius: 0px
}

.intrace-comments-form .comment-form .form-submit .wp-block-button__link:hover {
    border: 1px solid #181818;
    background-color: #FFFFFF00 !important;
    color: #181818 !important;
}

.intrace-comments-form .comment-form-cookies-consent input {
  margin-top: 12px !important;
}

/* ==================================================== POST END ==================================================== */

/* Page hero sits below the header template-part; cancel theme overlap margin. */
.guten-element.guten-9rsSZi {
    margin-top: 0 !important;
}

/* Yoast breadcrumbs inside page hero (template-level, not in page content). */
.guten-9rsSZi .leustech-hero-breadcrumbs {
    width: 100%;
    margin: 0 0 28px;
    text-align: center;
}

.guten-9rsSZi .leustech-hero-breadcrumbs:empty {
    display: none;
    margin: 0;
}

/* Extra gap when breadcrumbs sit directly above the page title in the banner. */
.guten-9rsSZi .leustech-hero-breadcrumbs + .guten-CPdpD1 {
    margin-top: 4px;
}

.guten-9rsSZi .leustech-hero-breadcrumbs p {
    margin: 0;
    color: #e1e1e1;
    font-family: 'Heebo', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
}

.guten-9rsSZi .leustech-hero-breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
}

.guten-9rsSZi .leustech-hero-breadcrumbs a:hover {
    color: var(--wp--preset--color--intrace-accent, #ad9271);
}

.guten-9rsSZi .leustech-hero-breadcrumbs .breadcrumb_last,
.guten-9rsSZi .leustech-hero-breadcrumbs [aria-current="page"] {
    color: var(--wp--preset--color--intrace-accent, #ad9271);
    font-weight: 500;
}

/* Page excerpt under H1 inside page hero (injected by mu-plugin). */
.guten-9rsSZi .leustech-hero-lead {
    max-width: 860px;
    margin: 24px auto 0;
    padding: 0 16px;
    color: #e1e1e1;
    font-family: 'Heebo', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    text-align: center;
}

@media only screen and (max-width: 767px) {
    .guten-9rsSZi .leustech-hero-lead {
        margin-top: 16px;
        font-size: 14px;
        line-height: 1.6;
    }
}

/*
 * Pricing band (guten-1gGIcr): main is layout-constrained 1140px + 20px pad,
 * so the gray background looks like a centered box. Break out to full viewport;
 * card row stays max 1140 via Gutenverse layout-boxed container.
 */
main.is-layout-constrained .section-wrapper[data-id="1gGIcr"] {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/*
 * Prices pages only (/cijene/, /en/prices/, /ru/ceny/):
 * drop main padding/margin so the gray band sits flush under the hero
 * and against the footer (no white gutter above/below).
 */
body.page-id-56 main#wp--skip-link--target,
body.page-id-61 main#wp--skip-link--target,
body.page-id-51 main#wp--skip-link--target {
    padding-top: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body.page-id-56 .entry-content.wp-block-post-content,
body.page-id-61 .entry-content.wp-block-post-content,
body.page-id-51 .entry-content.wp-block-post-content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.page-id-56 .section-wrapper[data-id="1gGIcr"],
body.page-id-61 .section-wrapper[data-id="1gGIcr"],
body.page-id-51 .section-wrapper[data-id="1gGIcr"] {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Inner content spacing stays inside the gray; zero outer gap only. */
body.page-id-56 .guten-1gGIcr,
body.page-id-61 .guten-1gGIcr,
body.page-id-51 .guten-1gGIcr {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Service / included cards: crisp mono SVG icons inside the circular badge. */
.guten-icon-box[class*="guten-ltSvcB"] .icon-box.icon-box-header .icon.type-image,
.guten-icon-box[class*="guten-ltIncB"] .icon-box.icon-box-header .icon.type-image,
.guten-icon-box[class*="guten-ltAboutB"] .icon-box.icon-box-header .icon.type-image,
.guten-icon-box[class*="guten-ltContactB"] .icon-box.icon-box-header .icon.type-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 18px !important;
}

.guten-icon-box[class*="guten-ltSvcB"] .icon-box.icon-box-header .icon.type-image img,
.guten-icon-box[class*="guten-ltIncB"] .icon-box.icon-box-header .icon.type-image img,
.guten-icon-box[class*="guten-ltAboutB"] .icon-box.icon-box-header .icon.type-image img,
.guten-icon-box[class*="guten-ltContactB"] .icon-box.icon-box-header .icon.type-image img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px;
    object-fit: contain;
}

.leustech-contact-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.leustech-contact-link:hover .guten-icon-box-wrapper {
    transform: translateY(-2px);
}

.guten-icon-box[class*="guten-ltContactB"] .guten-icon-box-wrapper {
    transition: transform 0.2s ease;
}

.leustech-contact-quick {
    max-width: 720px;
    margin: 0 auto 28px;
    padding: 0 16px;
    text-align: center;
    font-family: 'Heebo', sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--wp--preset--color--intrace-body-text, #7a7a7a);
}

.leustech-contact-quick a {
    color: var(--wp--preset--color--intrace-primary, #181818);
    text-decoration: none;
    border-bottom: 1px solid var(--wp--preset--color--intrace-accent, #ad9271);
}

.leustech-contact-quick a:hover {
    color: var(--wp--preset--color--intrace-accent, #ad9271);
}

/* Interior included: top row (B1–B3) — slightly larger glyph, more padding. */
.guten-icon-box[class*="guten-ltIncB1-"] .icon-box.icon-box-header .icon.type-image,
.guten-icon-box[class*="guten-ltIncB2-"] .icon-box.icon-box-header .icon.type-image,
.guten-icon-box[class*="guten-ltIncB3-"] .icon-box.icon-box-header .icon.type-image {
    padding: 20px !important;
}

.guten-icon-box[class*="guten-ltIncB1-"] .icon-box.icon-box-header .icon.type-image img,
.guten-icon-box[class*="guten-ltIncB2-"] .icon-box.icon-box-header .icon.type-image img,
.guten-icon-box[class*="guten-ltIncB3-"] .icon-box.icon-box-header .icon.type-image img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px;
}

/* Interior included: bottom row (B4–B7) — compact. */
.guten-icon-box[class*="guten-ltIncB4-"] .icon-box.icon-box-header .icon.type-image,
.guten-icon-box[class*="guten-ltIncB5-"] .icon-box.icon-box-header .icon.type-image,
.guten-icon-box[class*="guten-ltIncB6-"] .icon-box.icon-box-header .icon.type-image,
.guten-icon-box[class*="guten-ltIncB7-"] .icon-box.icon-box-header .icon.type-image {
    padding: 16px !important;
}

.guten-icon-box[class*="guten-ltIncB4-"] .icon-box.icon-box-header .icon.type-image img,
.guten-icon-box[class*="guten-ltIncB5-"] .icon-box.icon-box-header .icon.type-image img,
.guten-icon-box[class*="guten-ltIncB6-"] .icon-box.icon-box-header .icon.type-image img,
.guten-icon-box[class*="guten-ltIncB7-"] .icon-box.icon-box-header .icon.type-image img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px;
}

/*
 * Process / Etapy timeline (guten-ltProc*):
 * Structure mirrors classic .timeline > .timeline-step > .dot + .content
 * mapped onto Gutenverse section/columns; brand colors (accent #ad9271).
 */
[class*="guten-ltProcTimeline"].layout-boxed > .guten-container,
[class*="guten-ltProcTimeline"] > .guten-container {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    max-width: 700px !important;
    width: 100%;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 0 !important;
    border-left: 2px solid #ad9271;
    box-sizing: border-box;
}

/* .timeline-step */
.guten-column[class*="guten-ltProcStep"],
[class*="guten-ltProcStep"].guten-column {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    box-sizing: border-box;
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.guten-column[class*="guten-ltProcStep"] .guten-column-wrapper,
[class*="guten-ltProcStep"].guten-column .guten-column-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* .dot — sits on the left border */
.guten-column[class*="guten-ltProcStep"]::before,
[class*="guten-ltProcStep"].guten-column::before {
    content: "";
    position: absolute;
    left: -40px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: #ad9271;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #ffffff;
    z-index: 1;
    box-sizing: border-box;
}

.guten-column[class*="guten-ltProcStep"]::after,
[class*="guten-ltProcStep"].guten-column::after {
    content: none;
    display: none;
}

/* Last step: tighter bottom gap */
.guten-column[class*="guten-ltProcStep6"],
[class*="guten-ltProcStep6"].guten-column {
    margin-bottom: 0 !important;
}

/* .content h3 */
[class*="guten-ltProcT"].guten-heading,
.guten-heading[class*="guten-ltProcT"] {
    margin: 0 0 6px 0 !important;
    color: #181818 !important;
}

/* .content p */
[class*="guten-ltProcD"] .text-content-inner p,
.gutenverse-text-editor[class*="guten-ltProcD"] p {
    margin: 0 !important;
    color: #666666;
}

[class*="guten-ltProcSec"] [class*="guten-ltProcH1"],
.guten-heading[class*="guten-ltProcH1"] {
    max-width: 700px;
}

    [class*="guten-ltProcCta"].guten-button-wrapper,
.guten-button-wrapper[class*="guten-ltProcCta"] {
    margin-top: 8px;
}

/* LeusTech project cards + filters */
.leustech-grid-wrap {
    margin: 24px 0 40px;
}

/* Homepage portfolio: cut giant bottom gap (section was 80 + grid margin) */
[class*="guten-ltPortSec"].guten-section,
.guten-section[class*="guten-ltPortSec"],
[class*="guten-ltPortSec"] {
    padding-bottom: 24px !important;
}

[class*="guten-ltPortSec"] .leustech-grid-wrap {
    margin-top: 0;
    margin-bottom: 0;
}

@media only screen and (max-width: 1024px) {
    [class*="guten-ltPortSec"].guten-section,
    .guten-section[class*="guten-ltPortSec"],
    [class*="guten-ltPortSec"] {
        padding-bottom: 16px !important;
    }
}

.leustech-filters {
    margin: 0 0 28px;
}

.leustech-filters__label {
    margin: 16px 0 10px;
    font-family: Lato, sans-serif;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ad9271;
}

.leustech-filters__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.leustech-filters__row button {
    appearance: none;
    background: #fff;
    border: 1px solid #ad9271;
    color: #181818;
    font-family: Heebo, sans-serif;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 16px;
    cursor: pointer;
}

.leustech-filters__row button.is-active,
.leustech-filters__row button:hover {
    background: #181818;
    border-color: #181818;
    color: #fff;
}

.leustech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.leustech-card {
    background: #fff;
    box-shadow: 0 5px 20px rgba(7, 7, 7, 0.1);
}

.leustech-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.leustech-card--weld-service {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.leustech-card--weld-service .leustech-card__link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    cursor: pointer;
}

.leustech-card--weld-service:hover,
.leustech-card--weld-service:focus-within {
    box-shadow: 0 8px 28px rgba(7, 7, 7, 0.16);
}

.leustech-card--weld-service .leustech-card__title {
    transition: color 0.2s ease;
}

.leustech-card--weld-service:hover .leustech-card__title,
.leustech-card--weld-service:focus-within .leustech-card__title {
    color: #ad9271;
}

.leustech-card__excerpt {
    margin: 0;
    font-family: Heebo, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    color: #666;
}

.leustech-card__img img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.leustech-card__ph {
    display: block;
    height: 220px;
    background: #f8f8f8;
}

/* Before / after comparison slider on project cards */
.before-slider {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 — reliable inside Gutenverse flex columns */
    overflow: hidden;
    cursor: col-resize;
    background: #eee;
    user-select: none;
    -webkit-user-select: none;
    --position: 50%;
    transition: none !important;
}

.before-slider__layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: none !important;
}

.before-slider__layer--after {
    z-index: 1;
}

.before-slider__layer--before {
    z-index: 2;
    clip-path: polygon(0 0, var(--position) 0, var(--position) 100%, 0 100%);
    transition: none !important;
}

.before-slider__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
    transition: none !important;
}

.before-slider__label {
    position: absolute;
    top: 12px;
    padding: 6px 14px;
    background: rgba(24, 24, 24, 0.78);
    border-radius: 0;
    color: #fff;
    font-family: Lato, sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 25;
    pointer-events: none;
    transition: none !important;
}

.before-slider__label--before {
    left: 16px;
}

.before-slider__label--after {
    right: 16px;
    background: rgba(173, 146, 113, 0.92);
}

.before-slider__divider {
    position: absolute;
    top: 0;
    left: var(--position);
    width: 2px;
    height: 100%;
    background: #fff;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    transition: none !important;
}

.before-slider__divider::before {
    content: "\2194";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ad9271;
    color: #fff;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.35);
    font-size: 16px;
    line-height: 1;
    transition: none !important;
}

.before-slider__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: col-resize;
    z-index: 20;
    -webkit-appearance: none;
    appearance: none;
}

.leustech-card .before-slider + .leustech-card__link .leustech-card__body {
    padding-top: 20px;
}

@media only screen and (max-width: 767px) {
    .before-slider__label {
        top: 8px;
        padding: 4px 10px;
        font-size: 10px;
    }

    .before-slider__label--before {
        left: 12px;
    }

    .before-slider__label--after {
        right: 12px;
    }

    .before-slider__divider::before {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

.leustech-card__body {
    padding: 20px 20px 24px;
}

.leustech-card__title {
    margin: 0 0 8px;
    font-family: Lato, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    color: #181818;
}

.leustech-card__meta {
    margin: 0;
    font-family: Heebo, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    color: #666;
}

/* Single project: case story + large before/after */
.leustech-case-story,
[class*="guten-ltCaseSec"] {
    max-width: 100%;
}

.leustech-case-ba {
    margin: 8px 0 40px;
    display: block;
    width: 100%;
}

.leustech-case-ba .before-slider--story,
.before-slider.before-slider--story {
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 62.5%; /* 16:10 */
    box-shadow: 0 5px 20px rgba(7, 7, 7, 0.1);
    background: #f0f0f0;
}

.leustech-ba-fallback {
    margin: 8px 0 40px;
    box-shadow: 0 5px 20px rgba(7, 7, 7, 0.1);
}

.leustech-ba-fallback img {
    display: block;
    width: 100%;
    height: auto;
}

.leustech-facts {
    margin: 0 0 40px;
    padding: 24px;
    background: #f8f8f8;
}

.leustech-facts dl {
    margin: 0;
}

.leustech-facts__row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 16px;
    padding: 8px 0;
    border-bottom: 1px solid #eaeaeb;
}

.leustech-facts__row:last-child {
    border-bottom: 0;
}

.leustech-facts dt {
    font-family: Lato, sans-serif;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ad9271;
}

.leustech-facts dd {
    margin: 0;
    font-family: Heebo, sans-serif;
    font-size: 15px;
    color: #181818;
}

.leustech-related {
    margin: 56px 0 0;
    padding-top: 48px;
    border-top: 1px solid #eaeaeb;
    text-align: center;
}

.leustech-related__eyebrow {
    margin: 0 0 16px;
    color: #ad9271;
    font-family: Lato, sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.leustech-related__title {
    margin: 0 0 40px;
    color: #181818;
    font-family: Lato, sans-serif;
    font-size: 42px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.3;
    text-transform: uppercase;
}

.leustech-related__grid {
    margin: 0 0 32px;
    text-align: left;
}

.leustech-related__actions {
    margin: 0;
}

.leustech-btn,
.leustech-related__cta {
    display: inline-block;
    padding: 14px 28px;
    border: 1px solid #ad9271;
    color: #181818;
    font-family: Heebo, sans-serif;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.leustech-btn:hover,
.leustech-related__cta:hover {
    background: #181818;
    border-color: #181818;
    color: #fff;
}

.leustech-portfolio-cta {
    margin: 32px 0 0;
    text-align: center;
}

.leustech-portfolio-cta .leustech-btn {
    margin: 0;
}

.leustech-weld-cta {
    margin: 24px 0 0;
}

.leustech-weld-cta .leustech-btn {
    margin: 0;
}

@media only screen and (max-width: 1024px) {
    .leustech-related__title {
        font-size: 34px;
    }
}

@media only screen and (max-width: 767px) {
    .leustech-related {
        margin-top: 40px;
        padding-top: 32px;
    }

    .leustech-related__eyebrow {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .leustech-related__title {
        font-size: 24px;
        margin-bottom: 28px;
    }
}

@media only screen and (max-width: 1024px) {
    .leustech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 767px) {
    .leustech-grid {
        grid-template-columns: 1fr;
    }

    .leustech-facts__row {
        grid-template-columns: 1fr;
    }

    .leustech-card__img img,
    .leustech-card__ph {
        height: 200px;
    }

    .before-slider__image {
        height: 100%;
    }
}

@media only screen and (max-width: 767px) {
    [class*="guten-ltProcTimeline"].layout-boxed > .guten-container,
    [class*="guten-ltProcTimeline"] > .guten-container {
        padding-left: 26px !important;
        max-width: 100% !important;
    }

    .guten-column[class*="guten-ltProcStep"],
    [class*="guten-ltProcStep"].guten-column {
        margin-bottom: 32px !important;
    }

    .guten-column[class*="guten-ltProcStep"]::before,
    [class*="guten-ltProcStep"].guten-column::before {
        left: -35px;
        top: 3px;
        width: 14px;
        height: 14px;
        box-shadow: 0 0 0 3px #ffffff;
    }
}

/* Welding works: Gutenberg gallery → Swiper + Fancybox */
h2.wp-block-heading + .leustech-weld-works,
h2.wp-block-heading + .wp-block-group.leustech-weld-works {
    margin-top: 36px;
}

.leustech-weld-works {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 36px 0 24px;
}

.leustech-weld-work {
    margin: 0;
}

.leustech-weld-works .wp-block-gallery,
.leustech-weld-works .leustech-weld-gallery {
    display: block;
    margin: 0;
    padding: 0;
}

.leustech-weld-works .leustech-weld-swiper-wrap {
    position: relative;
    padding: 0 52px 36px;
}

.leustech-weld-works .leustech-weld-swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.leustech-weld-works .leustech-weld-swiper .swiper-slide {
    height: auto;
}

.leustech-weld-works .leustech-weld-swiper .swiper-slide a {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f3f3;
}

.leustech-weld-works .leustech-weld-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0 !important;
}

.leustech-weld-works .leustech-weld-nav {
    position: absolute;
    top: calc(50% - 18px);
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(173, 146, 113, 0.55);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 18px rgba(24, 24, 24, 0.1);
    color: #181818;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.leustech-weld-works .leustech-weld-nav--prev {
    left: 0;
    right: auto;
}

.leustech-weld-works .leustech-weld-nav--next {
    right: 0;
    left: auto;
}

.leustech-weld-works .leustech-weld-nav::before {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    border-style: solid;
    border-color: currentColor;
    border-width: 0 0 1.5px 1.5px;
    transition: border-color 0.2s ease;
}

.leustech-weld-works .leustech-weld-nav--prev::before {
    transform: rotate(45deg);
    margin-left: 3px;
}

.leustech-weld-works .leustech-weld-nav--next::before {
    transform: rotate(-135deg);
    margin-right: 3px;
}

.leustech-weld-works .leustech-weld-nav:hover {
    background: #181818;
    border-color: #181818;
    color: #fff;
    box-shadow: 0 6px 20px rgba(24, 24, 24, 0.18);
}

.leustech-weld-works .leustech-weld-nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
}

.leustech-weld-works .leustech-weld-pagination {
    position: absolute;
    left: 52px;
    right: 52px;
    bottom: 8px;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    z-index: 5;
}

.leustech-weld-works .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    margin: 0 !important;
    background: #d0d0d0;
    opacity: 1;
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
}

.leustech-weld-works .swiper-pagination-bullet-active {
    background: #ad9271;
    transform: scale(1.15);
}

.leustech-weld-note {
    margin: 16px 0 0;
    font-size: 15px;
    line-height: 1.55;
    color: #555;
}

@media only screen and (max-width: 767px) {
    .leustech-weld-works .leustech-weld-swiper-wrap {
        padding: 0 40px 32px;
    }

    .leustech-weld-works .leustech-weld-swiper .swiper-slide a {
        aspect-ratio: 4 / 3;
    }

    .leustech-weld-works .leustech-weld-nav {
        width: 38px;
        height: 38px;
        top: calc(50% - 16px);
    }

    .leustech-weld-works .leustech-weld-pagination {
        left: 40px;
        right: 40px;
    }
}

/* Welding FAQ accordion */
.leustech-faq {
    margin: 40px 0 8px;
}

.leustech-faq__heading {
    margin: 0 0 24px !important;
}

.leustech-faq__list {
    border-top: 1px solid #e8e8e8;
}

.leustech-faq__item {
    border-bottom: 1px solid #e8e8e8;
    margin: 0;
    background: #fff;
}

.leustech-faq__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    list-style: none;
    cursor: pointer;
    padding: 18px 4px;
    font-family: Lato, sans-serif;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.35;
    color: #181818;
    user-select: none;
    transition: color 0.2s ease;
}

.leustech-faq__summary::-webkit-details-marker {
    display: none;
}

.leustech-faq__summary::marker {
    content: "";
}

.leustech-faq__summary:hover {
    color: #ad9271;
}

.leustech-faq__q {
    flex: 1 1 auto;
}

.leustech-faq__icon {
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
}

.leustech-faq__icon::before,
.leustech-faq__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: #181818;
    transition: transform 0.25s ease, background 0.2s ease;
}

.leustech-faq__icon::before {
    width: 14px;
    height: 1.5px;
    transform: translate(-50%, -50%);
}

.leustech-faq__icon::after {
    width: 1.5px;
    height: 14px;
    transform: translate(-50%, -50%);
}

.leustech-faq__item[open] .leustech-faq__summary {
    color: #ad9271;
}

.leustech-faq__item[open] .leustech-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.leustech-faq__item[open] .leustech-faq__icon::before,
.leustech-faq__item[open] .leustech-faq__icon::after {
    background: #ad9271;
}

.leustech-faq__body {
    padding: 0 4px 20px;
    color: #555;
    font-size: 16px;
    line-height: 1.65;
    max-width: 720px;
}

.leustech-faq__body p {
    margin: 0;
}

@media only screen and (max-width: 767px) {
    .leustech-faq__summary {
        font-size: 15px;
        padding: 16px 0;
    }

    .leustech-faq__body {
        font-size: 15px;
        padding-bottom: 16px;
    }
}

/* CF7 file dropzone (leustech-form-upload.js) */
.leustech-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 640px;
    margin: 0 0 14px;
}

.leustech-upload__dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 148px;
    padding: 22px 18px;
    border: 1px dashed var(--wp--preset--color--intrace-accent, #ad9271);
    background: #faf9f7;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.leustech-upload__dropzone:hover,
.leustech-upload__dropzone:focus-within,
.leustech-upload__dropzone.is-dragover {
    background: rgba(173, 146, 113, 0.08);
    box-shadow: inset 0 0 0 1px rgba(173, 146, 113, 0.35);
}

.leustech-upload.is-full .leustech-upload__dropzone {
    opacity: 0.55;
    cursor: default;
}

.leustech-upload.is-full .leustech-upload__dropzone:hover,
.leustech-upload.is-full .leustech-upload__dropzone:focus-within {
    background: #faf9f7;
    box-shadow: none;
}

.leustech-upload__icon {
    display: flex;
    color: var(--wp--preset--color--intrace-accent, #ad9271);
}

.leustech-upload__icon-svg {
    display: block;
    width: 48px;
    height: 48px;
}

.leustech-upload__title {
    margin: 0;
    color: var(--wp--preset--color--intrace-primary, #181818);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
}

.leustech-upload__hint {
    margin: 0;
    color: var(--wp--preset--color--intrace-body-text, #7a7a7a);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}

.leustech-upload__dropzone .wpcf7-form-control-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
}

.leustech-upload__dropzone input[type="file"] {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

.leustech-upload.is-full .leustech-upload__dropzone .wpcf7-form-control-wrap {
    pointer-events: none;
}

.leustech-upload__dropzone .wpcf7-not-valid-tip {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 2;
    text-align: left;
}

.leustech-upload__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 4px 6px 0 0;
    list-style: none;
    position: relative;
    z-index: 2;
}

.leustech-upload__list[hidden] {
    display: none;
}

.leustech-upload__item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.leustech-upload__thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(24, 24, 24, 0.1);
}

.leustech-upload__thumb-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leustech-upload__thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--wp--preset--color--intrace-body-text, #7a7a7a);
}

.leustech-upload__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--wp--preset--color--intrace-body-text, #7a7a7a);
    font-size: 12px;
    line-height: 1.3;
}

.leustech-upload__remove {
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #181818;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(24, 24, 24, 0.14);
}

.leustech-upload__remove:hover {
    color: var(--wp--preset--color--intrace-accent, #ad9271);
}

.leustech-upload__error {
    margin: 0;
    color: #c0392b;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
}

.leustech-upload__error[hidden] {
    display: none;
}

/* Localized 404: action buttons in one row */
body.error404 .leustech-404-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
}

body.error404 .leustech-404-nav .guten-button-wrapper,
body.error404 .leustech-404-nav .guten-lt404b1,
body.error404 .leustech-404-nav .guten-lt404b2,
body.error404 .leustech-404-nav .guten-lt404b3,
body.error404 .leustech-404-nav .guten-lt404b4 {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
}

body.error404 .leustech-404-nav .guten-button {
    width: auto !important;
}

body.error404 .leustech-404-lead,
body.error404 .guten-lt404txt {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

body.error404 .wp-block-buttons.leustech-404-nav {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}