/* Frontend-only final enhancements. Loaded after dps.css to avoid being overridden. */
body main h1,
body main h2,
body main h3,
body main h4,
body main h5,
body main h6,
body .site-footer h1,
body .site-footer h2,
body .site-footer h3,
body .site-footer h4,
body .site-footer h5,
body .site-footer h6 {
    text-align: center !important;
    white-space: nowrap !important;
    max-width: 100% !important;
}

/* Keep heading inner emphasis on the same line too. */
body main h1 br,
body main h2 br,
body main h3 br,
body main h4 br,
body main h5 br,
body main h6 br,
body .site-footer h1 br,
body .site-footer h2 br,
body .site-footer h3 br,
body .site-footer h4 br,
body .site-footer h5 br,
body .site-footer h6 br {
    display: none !important;
}


/* Why Choose cards are narrow (4 per row), so their longer titles must wrap inside the card. */
body main .dps-why-card h3 {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
}

/* FAQ: heading centered above, then exactly 5 items left + 5 items right. */
body main .dps-faq-section .dps-faq-heading {
    max-width: 900px;
    margin: 0 auto 38px;
    text-align: center;
}

body main .dps-faq-section .dps-faq-heading h2 {
    margin: 10px auto 15px;
}

body main .dps-faq-section .dps-faq-heading p {
    max-width: 760px;
    margin: 0 auto 22px;
    color: var(--muted);
    line-height: 1.8;
}

body main .dps-faq-section .dps-faq-grid-5050 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 48px !important;
    align-items: start !important;
}

body main .dps-faq-section .dps-faq-column {
    min-width: 0;
}

body main .dps-faq-section .dps-faq-column .dps-faq {
    width: 100%;
}

/* Prevent long one-line headings from forcing horizontal page scroll. */
body {
    overflow-x: hidden;
}

@media (max-width: 900px) {
    body main .dps-faq-section .dps-faq-grid-5050 {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    body main h1,
    body main h2,
    body main h3,
    body main h4,
    body main h5,
    body main h6 {
        font-size: clamp(20px, 7vw, 43px);
    }

    body main .dps-hero h1,
    body main .dps-pagehero h1 {
        font-size: clamp(28px, 8vw, 49px) !important;
    }
}

@media (max-width: 560px) {
    body main h1,
    body main h2,
    body main h3,
    body main h4,
    body main h5,
    body main h6 {
        letter-spacing: -0.02em;
    }
}


/* Detail pages: keep their content headings left aligned.
   These selectors intentionally come after the global centered-heading rule. */
body main .product-detail-pagehead h1,
body main .product-detail .detail-content h1,
body main .product-detail .detail-content h2,
body main .product-detail .detail-content h3,
body main .product-detail .detail-content h4,
body main .product-detail .detail-content h5,
body main .product-detail .detail-content h6,
body main .product-detail .rich h1,
body main .product-detail .rich h2,
body main .product-detail .rich h3,
body main .product-detail .rich h4,
body main .product-detail .rich h5,
body main .product-detail .rich h6,
body main .category-detail-pagehead h1,
body main .category-detail-intro .detail-content h1,
body main .category-detail-intro .detail-content h2,
body main .category-detail-intro .detail-content h3,
body main .category-detail-intro .detail-content h4,
body main .category-detail-intro .detail-content h5,
body main .category-detail-intro .detail-content h6,
body main .category-detail-intro .rich h1,
body main .category-detail-intro .rich h2,
body main .category-detail-intro .rich h3,
body main .category-detail-intro .rich h4,
body main .category-detail-intro .rich h5,
body main .category-detail-intro .rich h6 {
    text-align: left !important;
}

/* Footer headings: the earlier global heading rule centers them with !important.
   Keep footer column headings aligned to the right without touching main-page headings. */
body .site-footer .dps-footer h1,
body .site-footer .dps-footer h2,
body .site-footer .dps-footer h3,
body .site-footer .dps-footer h4,
body .site-footer .dps-footer h5,
body .site-footer .dps-footer h6 {
    text-align: left !important;
}

/* Home-page showcase sliders: Latest Projects / Our Clients / Latest Work. */
body main .dps-showcase-section {
    overflow: hidden;
}
body main .dps-showcase-soft {
    background: var(--blush);
}
body main .dps-showcase-heading {
    text-align: center;
    margin: 0 auto 30px;
}
body main .dps-showcase-heading h2 {
    margin: 0;
}
body main .dps-image-slider {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0,1fr) 46px;
    align-items: center;
    gap: 16px;
}
body main .dps-slider-viewport {
    overflow: hidden;
    width: 100%;
}
body main .dps-slider-track {
    display: flex;
    gap: 20px;
    transition: transform .55s ease;
    will-change: transform;
}
body main .dps-slider-item {
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: 0;
}
body main .dps-project-item {
    position: relative;
    display: block;
    height: 280px;
    overflow: hidden;
    background: var(--wine-dark);
    border: 1px solid var(--line);
}
body main .dps-project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
body main .dps-project-item:hover img {
    transform: scale(1.05);
}
body main .dps-project-item span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 18px 16px;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .02em;
    background: linear-gradient(transparent, rgba(28,4,12,.92));
}
body main .dps-client-item {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
}
body main .dps-client-item img {
    max-width: 100%;
    max-height: 105px;
    width: auto;
    height: auto;
    object-fit: contain;
}
body main .dps-slider-arrow {
    width: 46px;
    height: 46px;
    border: 1px solid var(--wine);
    background: #fff;
    color: var(--wine);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s ease;
}
body main .dps-slider-arrow:hover:not(:disabled) {
    background: var(--wine);
    color: #fff;
}
body main .dps-slider-arrow:disabled {
    opacity: .35;
    cursor: default;
}
body main .dps-slider-empty {
    width: 100%;
    text-align: center;
    padding: 30px;
    background: #fff;
    border: 1px dashed var(--line);
    color: var(--muted);
}

@media (max-width: 900px) {
    body .site-footer .dps-footer h1,
    body .site-footer .dps-footer h2,
    body .site-footer .dps-footer h3,
    body .site-footer .dps-footer h4,
    body .site-footer .dps-footer h5,
    body .site-footer .dps-footer h6 {
        text-align: right !important;
    }
    body main .dps-slider-item { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 560px) {
    body main .dps-image-slider {
        grid-template-columns: 38px minmax(0,1fr) 38px;
        gap: 8px;
    }
    body main .dps-slider-arrow { width: 38px; height: 38px; }
    body main .dps-slider-item { flex-basis: 100%; }
    body main .dps-project-item { height: 240px; }
    body main .dps-client-item { height: 135px; padding: 18px; }
}

/* Bootstrap Icons used only inside the existing footer content. */
body .site-footer .dps-footer .bi {
    display: inline-block;
    width: 18px;
    margin-right: 7px;
    color: var(--rose);
    text-align: center;
    vertical-align: -0.08em;
}
body .site-footer .dps-footer p .bi {
    flex: 0 0 18px;
}
