:root {
    --zg-focus: #b28b14;
    --zg-ink: #090c17;
    --zg-muted: #5f6675;
}

.wpr-testimonials-area .zg-testimonial-heading {
    flex-direction: column;
    gap: 15px;
}

.wpr-testimonials-area .zg-testimonial-heading .sub-title {
    margin-bottom: 0;
    padding: 4px 5px 3px 24px;
    position: relative;
    background: #f3f4f6;
    color: var(--color-heading-1);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}

.wpr-testimonials-area .zg-testimonial-heading .sub-title::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    background: var(--color-primary);
}

/* CMS quotes retain their full text; stretch cards to the longest testimonial. */
.wpr-testimonials-area .zg-testimonial-section .testimonials-content-slider .swiper-wrapper {
    height: auto;
    align-items: stretch;
}

.wpr-testimonials-area .zg-testimonial-section .testimonials-content-slider .swiper-slide {
    height: auto;
}

.wpr-testimonials-area .zg-testimonial-section .testimonials-content.zg-testimonial-card {
    height: auto;
    flex: 1;
}

.wpr-testimonials-area .zg-testimonial-section .testimonials-content.zg-testimonial-card .desc {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow-wrap: anywhere;
    white-space: pre-line;
    flex-shrink: 0;
}

html {
    scroll-padding-top: 96px;
}

html.cms-loading main {
    visibility: hidden;
}

html:not(.cms-loading) main {
    visibility: visible;
}

body.mobile-menu-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.wpr-contact-area .contact-form-area .zg-contact-whatsapp {
    display: inline-block;
    margin-top: 16px;
    color: rgba(249, 250, 251, .76);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wpr-contact-area .contact-form-area .zg-contact-whatsapp:hover,
.wpr-contact-area .contact-form-area .zg-contact-whatsapp:focus-visible {
    color: #f9fafb;
}

@media (min-width: 992px) {
    body.main-home #contact .location-area li:nth-child(1) .h4 {
        width: calc(100% + 40px);
    }

    body.main-home #contact .location-area li:nth-child(2) .h4 {
        width: calc(100% + 70px);
    }
}

button.swiper-btn {
    padding: 0;
    color: inherit;
    border-radius: 0;
    font: inherit;
    cursor: pointer;
    appearance: none;
}

body {
    overflow-x: clip;
}

/* On phones, keep the CTA clear of the menu edge without making the panel taller. */
@media (max-width: 767px) {
    #side-bar .button-area {
        margin-top: 0;
    }
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100000;
    padding: 12px 16px;
    color: #fff;
    background: var(--zg-ink);
    border: 2px solid #d9b94f;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
    outline: 3px solid var(--zg-focus) !important;
    outline-offset: 3px;
}

.search-input-area {
    display: none !important;
}

.header-style-one .logo img,
.wpr-footer-area .footer-logo img {
    height: auto;
}

.menu-btn {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#goTop,
.scroll-top-btn,
.left-social-area a,
.wpr-footer-area a {
    min-height: 44px;
}

#goTop {
    min-width: 44px;
}

.wpr-banner-area.breadcrumb .banner-content-area > .section-title {
    animation-delay: 0s !important;
}

.wpr-marquee-area :is(h1, h2, h3) {
    pointer-events: none;
}

.cms-portfolio-empty[hidden] {
    display: none !important;
}

.cms-case-study-intro {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, .6fr);
    gap: 32px;
    padding: 32px;
    margin: 0 0 32px;
    border: 1px solid #d9dadd;
    background: #fff;
}

.cms-case-study-story,
.cms-project-section-heading {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

.cms-case-study-intro h3 {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 38px);
}

.cms-case-study-intro p {
    max-width: 68ch;
    color: var(--zg-muted);
}

.cms-case-study-facts {
    display: grid;
    gap: 16px;
    margin: 0;
}

.cms-case-study-facts div {
    padding-top: 12px;
    border-top: 1px solid #d9dadd;
}

.cms-case-study-facts dt {
    margin-bottom: 4px;
    color: var(--zg-muted);
    font-size: 12px;
    text-transform: uppercase;
}

.cms-case-study-facts dd {
    margin: 0;
    color: var(--zg-ink);
}

.cms-case-study-story {
    margin-top: 24px;
    border: 1px solid var(--border-color, #d8d9dc);
    background: #111219;
    color: #fff;
}

.cms-case-study-story__head {
    padding: clamp(28px, 4vw, 52px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.cms-case-study-story__head h3 {
    margin: 8px 0 0;
    color: #fff;
}

.cms-case-study-story__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cms-case-study-story article {
    min-width: 0;
    padding: clamp(24px, 3vw, 42px);
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.cms-case-study-story article:last-child {
    border-right: 0;
}

.cms-case-study-story article > span {
    color: #d6b947;
    font-size: 12px;
    font-weight: 700;
}

.cms-case-study-story h4 {
    margin: 24px 0 12px;
    color: #fff;
}

.cms-case-study-story p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.cms-project-section-heading {
    margin: 38px 0 20px;
}

.cms-filter-toggle {
    display: none;
}

.zg-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.wpr-contact-area .contact-form-area form .single-input select {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid #d9dadd;
    border-radius: 0;
    background: #fff;
    color: var(--zg-ink);
    font: inherit;
}

.wpr-contact-area .contact-form-area form .single-input select:focus {
    border-color: var(--zg-focus);
}

.zg-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 18px 0;
    color: var(--zg-muted);
    font-size: 14px;
}

.zg-consent input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.zg-upload-help {
    display: block;
    margin-top: 8px;
    color: var(--zg-muted);
    font-size: 13px;
}

#form-messages {
    margin-top: 16px;
    min-height: 24px;
}

#form-messages.success { color: #176b35; }
#form-messages.error { color: #a32222; }

.zg-response-note {
    max-width: 760px;
    margin: 24px auto 0;
    padding-top: 20px;
    border-top: 1px solid #d9dadd;
    color: var(--zg-muted);
    text-align: center;
}

.wpr-services-area .service-feature__link,
.wpr-services-area .service-feature__icon {
    border-radius: 8px;
}

.wpr-about-area .about-editorial {
    --about-side-col: clamp(480px, 34.5vw, 540px);
    overflow: hidden;
}

.wpr-about-area .about-editorial > .bottom-shape-area {
    display: none;
}

.wpr-about-area .about-editorial__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
    gap: clamp(32px, 6vw, 96px);
    align-items: end;
    padding: clamp(64px, 7vw, 104px) clamp(28px, 5vw, 72px) clamp(44px, 5vw, 72px);
    border-bottom: 1px solid #d9dadd;
}

.wpr-about-area .about-editorial__title {
    max-width: 780px;
}

.wpr-about-area .about-editorial__title .section-title {
    max-width: 780px;
    font-size: clamp(44px, 5.2vw, 80px);
    line-height: 1.05;
    letter-spacing: 0;
}

.wpr-about-area .about-editorial__intro {
    max-width: 42ch;
    margin: 0 0 6px;
    color: #4d5564;
    font-size: 17px;
    line-height: 1.75;
}

.wpr-about-area .about-editorial__body {
    display: grid !important;
    grid-template-columns: minmax(0, calc(100% - var(--about-side-col))) minmax(420px, var(--about-side-col));
    align-items: stretch;
    border-bottom: 1px solid #d9dadd;
}

.wpr-about-area .about-editorial__media,
.wpr-about-area .about-editorial__content {
    min-width: 0;
}

.wpr-about-area .about-editorial__media {
    position: relative;
    background: #101218;
    border-right: 1px solid #d9dadd;
}

.wpr-about-area .about-video-frame {
    width: 100%;
    max-width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: auto;
    line-height: 0;
    overflow: hidden;
}

.wpr-about-area .about-video-frame .about-loop-video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover !important;
    object-position: center top;
    transform: scale(1.08);
    transform-origin: center center;
    background: #101218;
}

.wpr-about-area .about-editorial__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(32px, 4vw, 54px);
    padding: clamp(32px, 4.5vw, 64px);
    background: #fff;
}

.wpr-about-area .about-editorial__note {
    max-width: 360px;
}

.wpr-about-area .about-editorial__note span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #977713;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.wpr-about-area .about-editorial__note span::before {
    content: "";
    width: 10px;
    height: 10px;
    background: #d6b947;
}

.wpr-about-area .about-editorial__note p {
    margin: 0;
    color: #090c17;
    font-size: clamp(22px, 2.2vw, 32px);
    line-height: 1.22;
}

.wpr-about-area .about-editorial__metrics {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #d9dadd;
}

.wpr-about-area .about-editorial__metrics li {
    display: grid;
    grid-template-columns: 48px minmax(72px, auto) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid #d9dadd;
}

.wpr-about-area .about-editorial__metric-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    background: #2e333a;
    border-radius: 8px;
}

.wpr-about-area .about-editorial__metric-icon img {
    width: 24px;
    height: 24px;
}

.wpr-about-area .about-editorial__metrics strong {
    display: inline-flex;
    align-items: baseline;
    color: #090c17;
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.wpr-about-area .about-editorial__metrics .odometer {
    display: inline-block;
    vertical-align: baseline;
}

.wpr-about-area .about-editorial__metrics p {
    margin: 0;
    color: #5f6675;
    font-size: 15px;
    line-height: 1.45;
}

@media (max-width: 1199px) {
    .wpr-about-area .about-editorial {
        --about-side-col: 100%;
    }

    .wpr-about-area .about-editorial__head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .wpr-about-area .about-editorial__intro {
        max-width: 58ch;
    }

    .wpr-about-area .about-editorial__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .wpr-about-area .about-editorial__media {
        border-right: 0;
        border-bottom: 1px solid #d9dadd;
    }

    .wpr-about-area .about-video-frame {
        aspect-ratio: 4 / 3;
    }

    .wpr-about-area .about-editorial__content {
        display: grid;
        grid-template-columns: minmax(0, .82fr) minmax(420px, 1fr);
        align-items: start;
    }
}

@media (max-width: 767px) {
    .wpr-about-area .about-editorial__head {
        padding: 52px 20px 36px;
        gap: 22px;
    }

    .wpr-about-area .about-editorial__title .section-title {
        font-size: clamp(38px, 11vw, 52px);
        line-height: 1.08;
    }

    .wpr-about-area .about-editorial__intro {
        font-size: 16px;
        line-height: 1.65;
    }

    .wpr-about-area .about-editorial__content {
        display: flex;
        padding: 28px 20px 34px;
        gap: 28px;
    }

    .wpr-about-area .about-editorial__note p {
        font-size: 24px;
    }

    .wpr-about-area .about-editorial__metrics li {
        grid-template-columns: 44px minmax(56px, auto) minmax(0, 1fr);
        gap: 14px;
        padding: 18px 0;
    }

    .wpr-about-area .about-editorial__metric-icon {
        width: 44px;
        height: 44px;
    }

    .wpr-about-area .about-editorial__metrics strong {
        font-size: 30px;
    }

    .wpr-about-area .about-editorial__metrics p {
        font-size: 14px;
    }
}

.zg-about-history__inner {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    padding: clamp(52px, 6vw, 84px) clamp(24px, 5vw, 72px);
    background: #faf9f6;
}

.zg-about-history .sub-title {
    position: relative;
    margin: 0;
    padding-top: 26px;
}

.zg-about-history .sub-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 54px;
    height: 4px;
    background: #d6b947;
}

.zg-about-history__copy {
    max-width: 68ch;
    margin: 0;
    padding-left: clamp(24px, 3.5vw, 48px);
    border-left: 1px solid #d9dadd;
    color: #090c17;
    font-size: clamp(20px, 1.85vw, 26px);
    line-height: 1.55;
}

@media (max-width: 767px) {
    .zg-about-history__inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 44px 24px 48px;
    }

    .zg-about-history__copy {
        padding-left: 20px;
        font-size: 19px;
        line-height: 1.55;
    }
}

body.page-home .wpr-faq-area .accordion-item:nth-child(n+5) {
    display: none;
}

body.portfolio-index .wpr-delay-stats-area,
body.portfolio-index .wpr-marquee-area {
    display: none;
}

body.page-home .wpr-marquee-area {
    display: none;
}

@media (min-width: 992px) {
    .wpr-banner-area.breadcrumb .banner-content-area {
        min-height: 440px;
        padding-top: 120px;
        padding-bottom: 96px;
    }
}

@media (max-width: 767px) {
    body.page-home .wpr-project-area:not(.inner) .feature-project .image-area > .shape {
        display: none !important;
    }

    body.page-home .wpr-project-area:not(.inner) .project-slider {
        backface-visibility: hidden;
        transform-origin: 50% 20%;
    }

    body.page-home .wpr-project-area:not(.inner) .wpr-video-wrapper {
        background: transparent !important;
    }

    .wow.animated {
        animation-duration: .68s !important;
        animation-delay: .08s !important;
        animation-timing-function: cubic-bezier(.22, 1, .36, 1) !important;
        backface-visibility: hidden;
    }

    .wpr-banner-area:not(.breadcrumb) {
        min-height: min(780px, 82svh);
    }

    .wpr-banner-area.breadcrumb {
        min-height: auto;
    }

    .wpr-banner-area.breadcrumb .banner-content-area > .section-title {
        font-size: clamp(42px, 14vw, 64px) !important;
        line-height: 1 !important;
    }

    .cms-case-study-intro,
    .zg-form-grid {
        grid-template-columns: 1fr;
    }

    .cms-case-study-intro {
        padding: 22px;
        gap: 22px;
    }

    .cms-client-projects.cms-client-layout-website {
        grid-template-columns: 1fr;
    }

    .cms-case-study-story__grid {
        grid-template-columns: 1fr;
    }

    .cms-case-study-story article {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .cms-case-study-story article:last-child {
        border-bottom: 0;
    }

    .cms-filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        margin-bottom: 12px;
        padding: 0 16px;
        border: 1px solid #cfd1d6;
        background: #fff;
        color: var(--zg-ink);
    }

    .cms-portfolio-filters[data-collapsed="true"] .cms-filter-field:nth-of-type(n+3) {
        display: none;
    }

    .service-detail-dynamic iframe:not(.sd-media--reel iframe),
    .sd-video,
    .sd-video iframe {
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-inline: 0 !important;
    }

    .service-detail-dynamic .sd-media.sd-media--post iframe {
        left: 50% !important;
        right: auto !important;
        width: 100% !important;
        max-width: none !important;
        margin-inline: 0 !important;
        transform: translateX(-50%) !important;
    }

    :where(.left-social-area a, .wpr-footer-area a, .view-more, .arrow-btn) {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .wow, [data-wow-delay], [data-aos], .wpr-text-anime-style-1 {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}
/* The gallery gets natural document space for every image, with no scroll snap. */
@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
    .wpr-project-area .wpr-video-pin.gallery-scroll-runway {
        height: var(--gallery-scroll-height) !important;
    }

    .wpr-project-area .gallery-scroll-runway > .wpr-video-wrapper {
        position: sticky;
        top: 0;
        height: 100vh;
    }
}

/* Keep the complete Services headline balanced and visible on narrow phones. */
@media (max-width: 575px) {
    .wpr-banner-area.breadcrumb.services-hero .banner-content-area {
        padding-top: 90px;
        padding-bottom: 100px;
    }

    .wpr-banner-area.breadcrumb.services-hero .banner-content-area > .section-title {
        width: calc(100% + 36px);
        max-width: calc(100% + 36px);
        margin-left: -18px;
        font-size: clamp(28px, 9.5vw, 38px) !important;
        line-height: 1.1 !important;
        letter-spacing: -.045em;
    }
}
