/* CLS Fix - Set aspect ratios to prevent layout shifts */
.about-shape-wrapper img {
    aspect-ratio: 953 / 1441;
    width: 100%;
    height: auto;
}

.hero-image-area img {
    aspect-ratio: 793 / 430;
    width: 100%;
    height: auto;
}

/*
=============================================
   COLOUR CONTRAST FIXES - SEO Audit 14 Jun 2026
   Updated 16 Jun 2026 (cleaned stray braces, added background fixes)
============================================= */

/* Hero CTA Button */
.hero-btn {
    color: #ffffff !important;
    background-color: #1a5c1a !important;
    border-color: #1a5c1a !important;
}
.hero-btn:hover,
.hero-btn:focus {
    color: #ffffff !important;
    background-color: #0d3d0d !important;
}

/* WHO WE ARE section */
.about-content-area h2.title,
.about-content-area .title {
    color: #1a3d1a !important;
}

/* Product Search - darken bg so white text passes contrast */
.product-search-area {
    background-color: #2b6e22 !important;
}
.product-search-area h2,
.product-search-area h3,
.product-search-area p {
    color: #ffffff !important;
}
.product-items h4,
.product-items p {
    color: #ffffff !important;
}

/* News section - darken bg, lighten headings/dates */
.news-updates {
    background-color: #3a4f8f !important;
}
.news-updates h3,
.news-updates h3 a {
    color: #ffffff !important;
}
.news-content-upper p.date,
.news-content-lower p.date,
.news-updates .date,
.date span {
    color: #e8ecf7 !important;
}

/* Footer - darken bg, light text */
footer {
    background-color: #2b6e22 !important;
}
footer h3,
footer h4,
.footer-main h3,
.footer-main h4,
.footer-quick-links h3,
.footer-contact-details h3 {
    color: #ffffff !important;
}
footer a,
footer p,
.footer-quick-links a,
.footer-contact-details a,
.footer-contact-details p {
    color: #f0f0f0 !important;
}
footer a:hover,
.footer-quick-links a:hover,
.footer-contact-details a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* UDT 30-Sep-2026: About page "Proudly 100% Australian Owned" certificate. Theme file about.php still points at the retired test site webtestinglink.com, so hide that broken image and show the copy stored on this site. */
.iso-section .iso-area img[src*="webtestinglink"],
.iso-section .iso-area img[data-src*="webtestinglink"] { display: none !important; }
.iso-section .iso-area {
  background: url("/wp-content/uploads/2024/05/Australian-Owned-Certificate-q7gb9svnz753ocd84e8zqzpyjzl2y6rrbbmv45p2ww.jpg") center / contain no-repeat;
  aspect-ratio: 283 / 400;
  max-width: 283px;
  margin: 0 auto;
}


/* UDT 30-Sep-2026: corrected wording for the hard-coded list under "Proudly 100% Australian Owned" (theme about.php). Remove once about.php is edited. */
.iso-section .content-area h6:nth-of-type(-n+4) { font-size: 0; }
.iso-section .content-area h6:nth-of-type(-n+4)::after { font-size: 16px; }
.iso-section .content-area h6:nth-of-type(1)::after { content: "100% Australian owned"; }
.iso-section .content-area h6:nth-of-type(2)::after { content: "Women-owned company"; }
.iso-section .content-area h6:nth-of-type(3)::after { content: "ISO 9001:2015 certified"; }
.iso-section .content-area h6:nth-of-type(4)::after { content: "Member – Australian Drilling Industry Association (ADIA)"; }


/* UDT 30-Sep-2026: Thank You page background. Theme stylesheet still points at the retired test site webtestinglink.com; use the copy stored on this site. Remove once the theme CSS is corrected. */
.thankyou { background-image: url("/wp-content/uploads/2024/03/closeup-shot-ongoing-construction-with-tracks-bulldozer-abandoned-land_181624-32699.jpg") !important; }

/* UD SEO fix 2026-10-06: stop layout jump when Poppins loads (CLS). Remove this block to roll back. */
@font-face{font-family:"popins-medium";src:url(/wp-content/themes/ud-trading/assets/fonts/Poppins-Medium.woff2) format("woff2");font-display:swap}
@font-face{font-family:"popins-semibold";src:url(/wp-content/themes/ud-trading/assets/fonts/Poppins-SemiBold.woff2) format("woff2");font-display:swap}
@font-face{font-family:"popins-bold";src:url(/wp-content/themes/ud-trading/assets/fonts/Poppins-Bold.woff2) format("woff2");font-display:swap}
@font-face{font-family:"popins-medium-fb";src:local("Arial");size-adjust:113%;ascent-override:93.62%;descent-override:31.21%;line-gap-override:8.92%}
@font-face{font-family:"popins-semibold-fb";src:local("Arial");size-adjust:112.16%;ascent-override:93.62%;descent-override:31.21%;line-gap-override:8.92%}
@font-face{font-family:"popins-bold-fb";src:local("Arial");size-adjust:112.16%;ascent-override:93.62%;descent-override:31.21%;line-gap-override:8.92%}
h1,h2,h3,h4,h5,h6,section.hero-area .hero-content h1,section.about-area .about-content-area h3,.find-product h4,.blogs-section .section-heading h2,.breadcrum-area h1{font-family:"popins-semibold","popins-semibold-fb",sans-serif}
a,p,.menu li ul li a,.form-info select,.form-info label,.form-area,.career-submit,.service-input,.service-areabox,.service-submit,.detail-text ul li,.products-page h3{font-family:"popins-medium","popins-medium-fb",sans-serif}
.opportunity h3{font-family:"popins-bold","popins-bold-fb",sans-serif}
/* end UD SEO fix */
