/**
 * DA WEB COMPANY — header layout: centered nav, logo left, lang/CTA right (all pages).
 */
@media (min-width: 1024px) {
    .main-header.header-style-one .header-lower .main-box {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 24px;
    }

    .main-header.header-style-one .header-lower .main-box .logo {
        position: relative;
        z-index: 2;
        flex-shrink: 0;
    }

    .main-header.header-style-one .header-lower .main-box .nav-outer.site-header-nav-shell {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: min(720px, calc(100vw - 420px));
        justify-content: center;
        z-index: 1;
    }

    .main-header.header-style-one .header-lower .main-box .nav-outer.site-header-nav-shell .main-menu {
        margin: 0 auto;
    }

    .main-header.header-style-one .header-lower .main-box .nav-outer.site-header-nav-shell .main-menu .navigation {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0;
    }

    .main-header.header-style-one .header-lower .main-box > .outer-box {
        margin-left: auto;
        flex-shrink: 0;
        position: relative;
        z-index: 2;
    }

    .sticky-header .inner-container {
        position: relative;
        justify-content: flex-start;
    }

    .sticky-header .inner-container .logo {
        position: relative;
        z-index: 2;
    }

    .sticky-header .inner-container .nav-outer.site-header-nav-shell {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: min(720px, calc(100vw - 200px));
    }

    .sticky-header .inner-container .nav-outer.site-header-nav-shell .main-menu .navigation {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sticky-header .site-header-sticky-toggle {
        margin-left: auto;
        flex-shrink: 0;
    }
}

@media (max-width: 1023.98px) {
    .main-header.header-style-one .header-lower .main-box .nav-outer.site-header-nav-shell {
        position: static;
        transform: none;
        max-width: none;
        width: auto;
    }

    .main-header.header-style-one .header-lower .main-box > .outer-box {
        margin-left: auto;
    }
}

@media (min-width: 992px) {
    .lg-sticky-aside {
        position: sticky;
        top: 7.5rem;
        align-self: flex-start;
    }

    .lg-sticky-aside > * + * {
        margin-top: 1rem;
    }
}

/*
 * project-block-three: theme gives .image-block height from the second in-flow <img>.
 * When we use .project-card-slider (position:absolute), there is no in-flow image → collapsed box.
 */
.project-block-three .inner-block .image-block.image-block--has-slider {
    aspect-ratio: 4 / 3;
    min-height: 220px;
}

@media (min-width: 992px) {
    .project-block-three .inner-block .image-block.image-block--has-slider {
        min-height: 300px;
    }
}

.project-block-three .inner-block .image-block.image-block--has-slider > .project-card-image-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

.project-block-three .inner-block .image-block.image-block--has-slider > .project-card-image-link .project-card-slider {
    z-index: 2;
}

/*
 * Theme targets .image-block img:first-child for a two-image hover swap; that also matches the first
 * slide inside .project-card-slider and hides it (opacity:0). Reset for slider images only.
 */
.project-block-three .inner-block .image-block .project-card-slider img {
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    opacity: 1 !important;
    transform: none !important;
    -webkit-transform: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    transition: none;
}

.project-block-three .inner-block:hover .image-block .project-card-slider img {
    opacity: 1 !important;
    transform: none !important;
    -webkit-transform: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

/* 3+ images: horizontal slider cannot use the theme’s two-layer hover; add a clear hover motion */
.project-block-three .inner-block .image-block.image-block--has-slider .project-card-slider {
    transition: transform 0.45s ease;
    transform-origin: center center;
}

.project-block-three .inner-block:hover .image-block.image-block--has-slider .project-card-slider {
    transform: scale(1.04);
}

/*
 * Theme uses img:first-child / img:nth-child(2), which can match the wrong nodes when extra
 * elements exist. Direct img children only, typed by nth-of-type, keeps hover swap reliable.
 */
.project-block-three .inner-block .image-block:not(.image-block--has-slider) > .project-card-image-link {
    display: block;
    position: relative;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
}

.project-block-three .inner-block .image-block:not(.image-block--has-slider) > .project-card-image-link > img.hover-img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    transition: all 500ms ease;
}

.project-block-three .inner-block .image-block:not(.image-block--has-slider) > .project-card-image-link > img.hover-img:nth-of-type(1) {
    position: absolute;
    inset: 0;
    z-index: 1;
    -webkit-transform: translateX(50%) scaleX(2);
    transform: translateX(50%) scaleX(2);
    opacity: 0;
    -webkit-filter: blur(10px);
    filter: blur(10px);
}

.project-block-three .inner-block:hover .image-block:not(.image-block--has-slider) > .project-card-image-link > img.hover-img:nth-of-type(1) {
    -webkit-transform: translateX(0) scaleX(1);
    transform: translateX(0) scaleX(1);
    opacity: 1;
    -webkit-filter: blur(0);
    filter: blur(0);
}

.project-block-three .inner-block:hover .image-block:not(.image-block--has-slider) > .project-card-image-link > img.hover-img:nth-of-type(2) {
    -webkit-transform: translateX(-50%) scaleX(2);
    transform: translateX(-50%) scaleX(2);
    opacity: 0;
    -webkit-filter: blur(10px);
    filter: blur(10px);
}

/* Same hover when media is not wrapped in a link (no live URL) */
.project-block-three .inner-block .image-block:not(.image-block--has-slider) > img.hover-img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    transition: all 500ms ease;
}

.project-block-three .inner-block .image-block:not(.image-block--has-slider) > img.hover-img:nth-of-type(1) {
    position: absolute;
    inset: 0;
    z-index: 1;
    -webkit-transform: translateX(50%) scaleX(2);
    transform: translateX(50%) scaleX(2);
    opacity: 0;
    -webkit-filter: blur(10px);
    filter: blur(10px);
}

.project-block-three .inner-block:hover .image-block:not(.image-block--has-slider) > img.hover-img:nth-of-type(1) {
    -webkit-transform: translateX(0) scaleX(1);
    transform: translateX(0) scaleX(1);
    opacity: 1;
    -webkit-filter: blur(0);
    filter: blur(0);
}

.project-block-three .inner-block:hover .image-block:not(.image-block--has-slider) > img.hover-img:nth-of-type(2) {
    -webkit-transform: translateX(-50%) scaleX(2);
    transform: translateX(-50%) scaleX(2);
    opacity: 0;
    -webkit-filter: blur(10px);
    filter: blur(10px);
}

.project-block-three .inner-block .content-block .title .project-card-title-text {
    color: inherit;
}

/* Portfolio card: short description under title (work listing + any block using this partial) */
.project-block-three .content-block .project-card-excerpt {
    margin: 0.55rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    font-weight: 400;
    color: rgb(185 185 198);
    max-width: 42rem;
}

@media (max-width: 767.98px) {
    .project-block-three .content-block .project-card-excerpt {
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

/* Work page: one image per project (no slider, no two-layer hover) */
.project-block-three--single-img .inner-block .image-block.image-block--single {
    position: relative;
    aspect-ratio: 4 / 3;
    min-height: 220px;
    overflow: hidden;
    border-radius: 12px;
}

@media (min-width: 992px) {
    .project-block-three--single-img .inner-block .image-block.image-block--single {
        min-height: 260px;
    }
}

.project-block-three--single-img .inner-block .image-block.image-block--single > .project-card-image-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.project-block-three--single-img .inner-block .image-block.image-block--single > .project-card-image-link > img,
.project-block-three--single-img .inner-block .image-block.image-block--single > img.hover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    z-index: auto !important;
    opacity: 1 !important;
    -webkit-transform: none !important;
    transform: none !important;
    -webkit-filter: none !important;
    filter: none !important;
    transition: transform 0.45s ease;
}

.project-block-three--single-img .inner-block:hover .image-block.image-block--single > .project-card-image-link > img,
.project-block-three--single-img .inner-block:hover .image-block.image-block--single > img.hover-img {
    -webkit-transform: scale(1.04) !important;
    transform: scale(1.04) !important;
}

.project-block-three--single-img .inner-block .image-block.image-block--single .tag-items {
    z-index: 2;
}

/* Featured work cards: centre arrow PNG inside circular .arrow-icon (theme uses line-height; <img> stays baseline-aligned) */
.project-block .inner-block .image-block .arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.project-block .inner-block .image-block .arrow-icon img {
    display: block;
    margin: 0;
    width: auto;
    height: auto;
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Dual-image swap (home featured work): skip when only one image */
.project-block:not(.project-block--single-img) .inner-block .image-block > img.hover-img:nth-of-type(1) {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    -webkit-transform: translateX(50%) scaleX(2);
    transform: translateX(50%) scaleX(2);
    opacity: 0;
    -webkit-filter: blur(10px);
    filter: blur(10px);
}

.project-block:not(.project-block--single-img) .inner-block:hover .image-block > img.hover-img:nth-of-type(1) {
    -webkit-transform: translateX(0) scaleX(1);
    transform: translateX(0) scaleX(1);
    opacity: 1;
    -webkit-filter: blur(0);
    filter: blur(0);
}

.project-block:not(.project-block--single-img) .inner-block:hover .image-block > img.hover-img:nth-of-type(2) {
    -webkit-transform: translateX(-50%) scaleX(2);
    transform: translateX(-50%) scaleX(2);
    opacity: 0;
    -webkit-filter: blur(10px);
    filter: blur(10px);
}

/* Work page: default project-block, one image (theme expects two .hover-img for crossfade) */
.project-block.project-block--single-img .inner-block .image-block.image-block--single {
    position: relative;
    aspect-ratio: 1 / 1;
    min-height: 260px;
    overflow: hidden;
}

@media (min-width: 992px) {
    .project-block.project-block--single-img .inner-block .image-block.image-block--single {
        min-height: 300px;
    }
}

.project-block.project-block--single-img .inner-block .image-block.image-block--single > img.hover-img,
.project-block.project-block--single-img .inner-block .image-block.image-block--single > img.hover-img:first-child {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0 !important;
    opacity: 1 !important;
    -webkit-transform: none !important;
    transform: none !important;
    -webkit-filter: none !important;
    filter: none !important;
    transition: transform 0.45s ease;
}

.project-block.project-block--single-img .inner-block:hover .image-block.image-block--single > img.hover-img,
.project-block.project-block--single-img .inner-block:hover .image-block.image-block--single > img.hover-img:first-child {
    -webkit-transform: scale(1.04) !important;
    transform: scale(1.04) !important;
    opacity: 1 !important;
    -webkit-filter: none !important;
    filter: none !important;
}

.project-block.project-block--single-img .inner-block .image-block.image-block--single .arrow-icon {
    z-index: 2;
}

/* News article body (admin HTML) */
.news-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* —— Services chatbot (floating assistant) —— */
.svc-chat {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9990;
    font-family: var(--body-font-family, system-ui, sans-serif);
}

.svc-chat__fab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.15rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a0a04;
    background: linear-gradient(135deg, #ff6b1e, #ff8f4d);
    box-shadow:
        0 12px 40px -10px rgb(255 107 30 / 0.55),
        0 0 0 1px rgb(255 255 255 / 0.12) inset;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.svc-chat__fab:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 48px -12px rgb(255 107 30 / 0.6),
        0 0 0 1px rgb(255 255 255 / 0.15) inset;
}

.svc-chat__fab i {
    font-size: 1.15rem;
}

.svc-chat__fab-label {
    max-width: 10rem;
    text-align: left;
    line-height: 1.2;
}

@media (max-width: 480px) {
    .svc-chat__fab-label {
        display: none;
    }
}

.svc-chat__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.75rem);
    width: min(22rem, calc(100vw - 2.5rem));
    max-height: min(28rem, 70vh);
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    border: 1px solid rgb(255 255 255 / 0.12);
    background: linear-gradient(165deg, rgb(22 24 32 / 0.97), rgb(12 14 18 / 0.98));
    box-shadow: 0 28px 80px -24px rgb(0 0 0 / 0.75);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.svc-chat.is-open .svc-chat__fab {
    box-shadow: 0 0 0 3px rgb(255 107 30 / 0.35);
}

.svc-chat__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
    background: rgb(0 0 0 / 0.25);
}

.svc-chat__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
}

.svc-chat__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 0.5rem;
    background: rgb(255 255 255 / 0.06);
    color: rgb(200 200 210);
    cursor: pointer;
}

.svc-chat__close:hover {
    background: rgb(255 255 255 / 0.12);
    color: #fff;
}

.svc-chat__pick {
    margin: 0;
    padding: 0.5rem 1rem 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 0.4);
}

.svc-chat__messages {
    flex: 1;
    min-height: 7rem;
    max-height: 14rem;
    overflow-y: auto;
    padding: 0.65rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.svc-chat__bubble {
    max-width: 95%;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.svc-chat__bubble--bot {
    align-self: flex-start;
    background: rgb(255 255 255 / 0.06);
    border: 1px solid rgb(255 255 255 / 0.08);
    color: rgb(220 220 230);
}

.svc-chat__bubble p {
    margin: 0;
}

.svc-chat__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.65rem 1rem 1rem;
    border-top: 1px solid rgb(255 255 255 / 0.06);
}

.svc-chat__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgb(255 107 30 / 0.35);
    background: rgb(255 107 30 / 0.1);
    color: rgb(255 200 170);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.svc-chat__chip:hover {
    background: rgb(255 107 30 / 0.2);
    border-color: rgb(255 107 30 / 0.55);
    color: #fff;
}

/* —— Quote page: professional header band —— */
.quote-page-section.quote-page--pro .quote-page-intro {
    position: relative;
    padding: 1.5rem 1.25rem 2rem;
    margin-bottom: 2rem !important;
    border-radius: 1rem;
    border: 1px solid rgb(255 255 255 / 0.1);
    background: linear-gradient(145deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.02));
    box-shadow: 0 24px 60px -40px rgb(0 0 0 / 0.5);
}

.quote-page-section.quote-page--pro .quote-page-intro::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 80% at 0% 0%, rgb(255 107 30 / 0.12), transparent 55%);
}

.quote-page-section.quote-page--pro .quote-page-intro .text {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    line-height: 1.65;
    color: rgb(190 190 205);
}

/* Work page: in-page anchor for “All projects” (clears fixed header) */
.work-page__projects-anchor {
    scroll-margin-top: 6rem;
}

/* Work page — quote CTA (full-width card; theme .project-btn only styles inside .project-block-three) */
.work-page-quote-cta-wrap {
    margin-top: 3.5rem;
}

@media (min-width: 1200px) {
    .work-page-quote-cta-wrap {
        margin-top: 4.5rem;
        max-width: 920px;
        margin-left: auto;
        margin-right: auto;
    }
}

.work-page-quote-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    padding: 1.65rem 1.5rem 1.75rem;
    border-radius: 1rem;
    border: 1px solid rgb(255 255 255 / 0.1);
    background: linear-gradient(145deg, rgb(255 255 255 / 0.06), rgb(255 255 255 / 0.02));
    box-shadow: 0 28px 70px -40px rgb(0 0 0 / 0.65);
    position: relative;
    overflow: hidden;
}

.work-page-quote-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(ellipse 85% 90% at 0% 0%, rgb(255 107 30 / 0.14), transparent 52%);
}

.work-page-quote-cta__copy {
    position: relative;
    z-index: 1;
    flex: 1 1 16rem;
    min-width: 0;
    text-align: center;
}

@media (min-width: 768px) {
    .work-page-quote-cta__copy {
        text-align: start;
    }
}

.work-page-quote-cta__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.25rem, 3.5vw, 1.65rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
}

.work-page-quote-cta__sub {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgb(190 190 205);
    max-width: 36rem;
}

@media (min-width: 768px) {
    .work-page-quote-cta__sub {
        margin-left: 0;
        margin-right: auto;
    }
}

.work-page-quote-cta__action {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .work-page-quote-cta__action {
        width: auto;
    }
}

.work-page-quote-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    color: #1a0a04;
    background: linear-gradient(135deg, #ff6b1e, #ff8f4d);
    border: none;
    box-shadow:
        0 14px 36px -12px rgb(255 107 30 / 0.55),
        0 0 0 1px rgb(255 255 255 / 0.12) inset;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

@media (min-width: 768px) {
    .work-page-quote-cta__btn {
        width: auto;
        min-width: 12.5rem;
    }
}

.work-page-quote-cta__btn:hover {
    color: #1a0a04;
    transform: translateY(-2px);
    box-shadow:
        0 18px 44px -14px rgb(255 107 30 / 0.6),
        0 0 0 1px rgb(255 255 255 / 0.18) inset;
}

.work-page-quote-cta__btn i {
    font-size: 0.9em;
    transition: transform 0.2s ease;
}

.work-page-quote-cta__btn:hover i {
    transform: translateX(3px);
}

.quote-page-section.quote-page--pro .quote-trust-line {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 0.35);
}

/*
 * Bootstrap 5 modal z-index (~1055–1060) is below theme layers (.sticky-header 99999,
 * .mobile-menu 999999), so on phones the backdrop and dialog sit behind the header / drawer
 * and look “broken”. Lift only when a modal is open.
 */
body.modal-open .modal-backdrop {
    z-index: 10000040 !important;
}

.modal.news-article-modal {
    z-index: 10000050 !important;
}

/* —— Mobile: reduce oversized display text (hero, section titles, page banners) —— */
@media (max-width: 767.98px) {
    .page-title {
        padding: 120px 0 72px;
    }

    .page-title .title {
        font-size: clamp(1.5rem, 6.5vw, 2rem);
        line-height: 1.15;
    }
}

@media (max-width: 991.98px) {
    /* Theme sets h2 to 50px with no breakpoints (unlike h3) */
    h2 {
        font-size: clamp(1.3rem, 4vw, 2.1rem);
        line-height: 1.2;
    }
}

@media (max-width: 575.98px) {
    h2 {
        font-size: clamp(1.1rem, 5.2vw, 1.6rem);
        line-height: 1.22;
    }

    .hero-1 .hero-content .hero-title {
        font-size: clamp(1.35rem, 7vw, 2rem);
        line-height: 1.12;
    }

    .sec-title .title {
        font-size: clamp(1.2rem, 6.5vw, 1.85rem);
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .page-title {
        padding: 96px 0 56px;
    }
}

/* Faster taps on news “read more” links (no extra handler required) */
a.news-json-trigger {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* News article modal — align with blog-details template */
.news-article-modal .modal-content.news-article-modal__content {
    background: var(--thm-black, #0a0a0f);
    color: rgb(230 230 240);
    border: 1px solid rgb(255 255 255 / 0.08);
    border-radius: 0.75rem;
}

.news-article-modal .modal-header .btn-close {
    filter: invert(1);
    opacity: 0.65;
}

.news-article-modal .blog-details__img img {
    border-radius: 0.5rem;
}

.news-article-modal .news-detail-body {
    line-height: 1.65;
}

.news-article-modal .news-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.35rem;
}

@media (max-width: 575.98px) {
    .news-article-modal .blog-details__title {
        font-size: clamp(1.15rem, 5.5vw, 1.5rem);
        line-height: 1.25;
        margin-bottom: 0.85rem;
    }

    .news-article-modal .modal-dialog {
        margin: 0.5rem;
    }
}
