/*
 * PCBA Partner — world-class detail layer
 * Paint-only refinements: no structure, dimensions, or content changes.
 */
html.white-apple-theme {
    --wa-detail-shadow: 0 16px 42px rgba(17, 17, 17, 0.075);
    --wa-detail-ring: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

/* Harmonize real factory photography captured by different cameras. */
html.white-apple-theme.page-home body main :is(
    .service-card-img,
    .case-media,
    .about-photo,
    .factory-media,
    .evidence-slot--image,
    .story-media,
    .gallery-img-wrap
) img,
html.white-apple-theme.page-home body main .industry-card-bg,
html.white-apple-theme:not(.page-home) body main :is(
    .page-hero-media,
    .hero-image-wrapper,
    .about-hero-media,
    .quality-hero-media,
    .products-hero-media,
    .blog-hero-media,
    .gallery-card,
    .factory-card,
    .oi-card,
    .cap-card,
    .equip-card,
    .blog-card,
    .story-media,
    .sr-visual,
    .is-visual,
    .featured-block,
    .evidence-slot--image,
    .case-card__media
) img {
    filter: saturate(0.94) contrast(1.025) brightness(1.01) !important;
}

/* Paint-only feedback: short travel, no reflow and no dramatic tilt. */
@media (hover: hover) and (pointer: fine) {
    html.white-apple-theme.page-home body main :is(
        .service-card,
        .industry-card,
        .case-card,
        .gallery-card,
        .blog-card,
        .quality-card,
        .cap-item,
        .process-step,
        .about-hl,
        .home-trust-strip__item
    ):hover {
        transform: translate3d(0, -2px, 0) !important;
        border-color: rgba(17, 17, 17, 0.18) !important;
        box-shadow: var(--wa-detail-shadow) !important;
    }

    html.white-apple-theme:not(.page-home) body main :is(
        .platform-principles__card,
        .services-task-grid > *,
        .vas-card,
        .oi-card,
        .seo-link-card,
        .cert-card,
        .equip-card,
        .cap-card,
        .ind-card,
        .mat-card,
        .gallery-card,
        .blog-card,
        .value-card,
        .lead-card,
        .factory-card
    ):hover {
        transform: translate3d(0, -3px, 0) !important;
        box-shadow: var(--wa-detail-shadow) !important;
    }

    html.white-apple-theme body :is(
        .nav-cta,
        .btn-primary,
        .btn-primary-inline,
        .article-cta-button,
        .hs-btn-primary,
        #quoteSubmitButton
    ):hover {
        transform: translate3d(0, -1px, 0) !important;
        background: #242426 !important;
        border-color: #242426 !important;
    }

    html.white-apple-theme body :is(
        .btn-secondary,
        .btn-outline,
        .btn-ghost,
        .hs-btn-ghost,
        .filter-btn,
        .industry-nav a
    ):hover {
        transform: translate3d(0, -1px, 0) !important;
    }
}

html.white-apple-theme body :is(
    .nav-cta,
    .btn-primary,
    .btn-primary-inline,
    .article-cta-button,
    .hs-btn-primary,
    .btn-secondary,
    .btn-outline,
    .btn-ghost,
    .hs-btn-ghost,
    #quoteSubmitButton
):active {
    transform: translate3d(0, 1px, 0) scale(0.985) !important;
    transition-duration: 90ms !important;
}

html.white-apple-theme body :is(input, select, textarea):focus-visible {
    border-color: rgba(0, 113, 227, 0.58) !important;
    box-shadow: var(--wa-detail-ring) !important;
}

/* Make unavailable and in-progress actions unmistakable without changing layout. */
html.white-apple-theme body :is(
    button,
    input,
    select,
    textarea,
    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .btn-ghost,
    .nav-cta
):is(:disabled, [disabled], [aria-disabled="true"]) {
    cursor: not-allowed !important;
    opacity: 0.46 !important;
    transform: none !important;
    box-shadow: none !important;
}

html.white-apple-theme body :is(
    button,
    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .btn-ghost,
    .nav-cta
):is([aria-busy="true"], .is-loading, .loading) {
    cursor: progress !important;
    opacity: 0.76 !important;
    transform: none !important;
    pointer-events: none;
}

html.white-apple-theme body :is(input, textarea)::placeholder {
    color: rgba(102, 102, 107, 0.72);
    opacity: 1;
}

html.white-apple-theme body :is(
    .learn-more,
    .blog-readmore,
    .article-back,
    .article-related-link,
    .location-card__link
) {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

/* The fabrication film is visually dense; keep its brand mark as a quiet corner signature. */
html.white-apple-theme body.page-services #fabrication .story-watermark {
    right: 10px !important;
    bottom: 10px !important;
    gap: 5px !important;
    padding: 5px 8px 5px 6px !important;
    border-radius: 8px !important;
    background: rgba(11, 11, 12, 0.64) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

html.white-apple-theme body.page-services #fabrication .story-watermark img {
    flex-basis: 20px !important;
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    max-height: 20px !important;
}

html.white-apple-theme body.page-services #fabrication .story-watermark-brand {
    font-size: 9.5px !important;
    font-weight: 760 !important;
    letter-spacing: 0.015em !important;
}

@media (max-width: 768px) {
    html.white-apple-theme body.page-services #fabrication .story-watermark {
        right: 8px !important;
        bottom: 8px !important;
        gap: 4px !important;
        padding: 4px 6px 4px 5px !important;
        border-radius: 7px !important;
    }

    html.white-apple-theme body.page-services #fabrication .story-watermark img {
        flex-basis: 16px !important;
        width: 16px !important;
        min-width: 16px !important;
        max-width: 16px !important;
        height: 16px !important;
        max-height: 16px !important;
    }

    html.white-apple-theme body.page-services #fabrication .story-watermark-brand {
        font-size: 8px !important;
    }
}

/* Preserve the established hero hierarchy at the tablet breakpoint. */
@media (min-width: 769px) and (max-width: 1024px) {
    html.white-apple-theme.page-home body #hero.hero .hero-content .hero-commitments {
        order: 5 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.white-apple-theme.white-apple-theme body :is(
        .fade-up.fade-up,
        [data-motion-reveal],
        [data-site-reveal],
        .service-card,
        .industry-card,
        .case-card,
        .gallery-card,
        .blog-card,
        .quality-card,
        .cap-item,
        .process-step,
        .about-hl,
        .platform-principles__card,
        .factory-card,
        .nav-cta,
        .btn-primary,
        .btn-secondary,
        .btn-outline,
        .btn-ghost,
        [aria-busy="true"],
        .is-loading,
        .loading
    ) {
        animation: none !important;
        transform: none !important;
        transition: none !important;
        transition-property: none !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
}

/* 2026-08-16 v6 — restore the established compact documentary watermark. */
html.white-apple-theme body :is(
    .story-image.story-media,
    .hero-media-frame,
    .quality-hero-media,
    .about-hero-media
) .story-watermark {
    width: auto !important;
    max-width: calc(100% - 20px) !important;
    height: auto !important;
    min-height: 0 !important;
    right: 10px !important;
    bottom: 10px !important;
    gap: 8px !important;
    padding: 6px 10px 6px 8px !important;
    overflow: visible !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 10px !important;
    background: rgba(11, 11, 12, 0.72) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.26) !important;
    -webkit-backdrop-filter: blur(9px) !important;
    backdrop-filter: blur(9px) !important;
}

html.white-apple-theme body :is(
    .story-image.story-media,
    .hero-media-frame,
    .quality-hero-media,
    .about-hero-media
) .story-watermark > img {
    display: block !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 0 !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}

html.white-apple-theme body :is(
    .story-image.story-media,
    .hero-media-frame,
    .quality-hero-media,
    .about-hero-media
) .story-watermark-brand {
    display: block !important;
    color: #f5f5f7 !important;
    font-size: 12px !important;
    font-weight: 760 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.01em !important;
    white-space: nowrap !important;
    opacity: 1 !important;
}

html.white-apple-theme body :is(
    .story-image.story-media,
    .hero-media-frame,
    .quality-hero-media,
    .about-hero-media
) .story-watermark-brand > span {
    color: #50cbbf !important;
}

/* Footer contrast contract: the footer is dark, so all states stay luminous. */
html.white-apple-theme body footer.footer {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
    background: #0b0b0c !important;
    background-color: #0b0b0c !important;
    color: #f5f5f7 !important;
}

html.white-apple-theme body footer.footer .footer-about .logo,
html.white-apple-theme body footer.footer .footer-about .logo:visited {
    color: #f5f5f7 !important;
    -webkit-text-fill-color: currentColor !important;
}

html.white-apple-theme body footer.footer .footer-about .logo .brand-accent {
    color: #50cbbf !important;
    -webkit-text-fill-color: currentColor !important;
}

html.white-apple-theme body footer.footer .footer-col :is(h2, h3, h4) {
    color: rgba(245, 245, 247, 0.92) !important;
    -webkit-text-fill-color: currentColor !important;
}

html.white-apple-theme body footer.footer .footer-about > p {
    color: rgba(235, 239, 238, 0.7) !important;
    -webkit-text-fill-color: currentColor !important;
}

html.white-apple-theme body footer.footer :is(
    .footer-col a,
    .footer-col a:visited,
    .footer-bottom,
    .footer-bottom a,
    .footer-bottom a:visited,
    .footer-legal-links a,
    .footer-legal-links a:visited,
    .footer-copyright
) {
    color: rgba(235, 239, 238, 0.68) !important;
    -webkit-text-fill-color: currentColor !important;
}

html.white-apple-theme body footer.footer :is(
    .footer-col a,
    .footer-bottom a,
    .footer-legal-links a
):is(:hover, :focus-visible) {
    color: #ffffff !important;
    -webkit-text-fill-color: currentColor !important;
}

html.white-apple-theme body footer.footer .footer-social a,
html.white-apple-theme body footer.footer .footer-contact-icon {
    border-color: rgba(255, 255, 255, 0.14) !important;
    background: #171919 !important;
    color: rgba(245, 245, 247, 0.88) !important;
}

html.white-apple-theme body footer.footer .footer-social a:is(:hover, :focus-visible),
html.white-apple-theme body footer.footer .footer-col--contact a:is(:hover, :focus-visible) .footer-contact-icon {
    border-color: rgba(80, 203, 191, 0.46) !important;
    background: #1d2423 !important;
    color: #ffffff !important;
}

html.white-apple-theme body footer.footer .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

@media (max-width: 768px) {
    html.white-apple-theme body :is(
        .story-image.story-media,
        .hero-media-frame,
        .quality-hero-media,
        .about-hero-media
    ) .story-watermark {
        right: 8px !important;
        bottom: 8px !important;
        gap: 6px !important;
        padding: 5px 8px 5px 6px !important;
        border-radius: 9px !important;
    }

    html.white-apple-theme body :is(
        .story-image.story-media,
        .hero-media-frame,
        .quality-hero-media,
        .about-hero-media
    ) .story-watermark > img {
        flex-basis: 28px !important;
        width: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        height: 28px !important;
        max-height: 28px !important;
    }

    html.white-apple-theme body :is(
        .story-image.story-media,
        .hero-media-frame,
        .quality-hero-media,
        .about-hero-media
    ) .story-watermark-brand {
        font-size: 10px !important;
    }
}
