/* Keep orange action labels readable across all public templates. */
html body :is(a, button):is(.btn-default, .btn-highlighted, .btn-hirex, .btn-quote, .newsletter-btn),
html body :is(a, button):is(.btn-default, .btn-highlighted, .btn-hirex, .btn-quote, .newsletter-btn) * {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
html body :is(a, button):is(.btn-default, .btn-highlighted, .btn-hirex, .btn-quote, .newsletter-btn) {
    background-color: #f28c28 !important;
    border-color: #f28c28 !important;
    text-indent: 0 !important;
}
html body :is(a, button):is(.btn-default, .btn-highlighted, .btn-hirex, .btn-quote, .newsletter-btn):is(:hover, :focus-visible) {
    background-color: #f28c28 !important;
    border-color: #f28c28 !important;
}
html body :is(a, button):is(.btn-default, .btn-highlighted)::after {
    background: transparent !important;
}
html body :is(a, button):is(.btn-default, .btn-highlighted)::before {
    background-color: transparent !important;
    background-image: url('../images/arrow-white.svg') !important;
}

/* White circular badges with an orange inset for the white glyph. */
html body :is(.icon-box:has(> img, > svg, > i), .faq-contact-circle, .commitment-contact-circle) {
    background: #fff radial-gradient(circle closest-side, #f28c28 79%, transparent 81%) !important;
    border-color: #fff !important;
    border-radius: 50% !important;
}
html body :is(.icon-box:has(> img, > svg, > i), .faq-contact-circle, .commitment-contact-circle)::before {
    background: transparent !important;
}
html body :is(.icon-box, .faq-contact-circle, .commitment-contact-circle) :is(img, svg, i) {
    filter: brightness(0) invert(1) !important;
    color: #fff !important;
}

html body .our-testimonials.hirex-about-reviews {
    background: rgba(242, 140, 40, .08) !important;
    animation: none !important;
}
html body .hirex-about-reviews .section-title h2,
html body .hirex-about-reviews .testimonial-item :is(h3, p) {
    color: #28242a !important;
    -webkit-text-fill-color: #28242a !important;
}
html body .hirex-about-reviews .section-title :is(h3, h2 span),
html body .hirex-about-reviews .testimonial-rating i {
    color: #f28c28 !important;
    -webkit-text-fill-color: #f28c28 !important;
}
html body .hirex-about-reviews .testimonial-item {
    padding: clamp(20px, 3vw, 34px);
    background: #fff;
    border: 1px solid rgba(242, 140, 40, .25);
    border-radius: 16px;
}
html body .hirex-about-reviews .testimonial-pagination {
    position: static;
    margin-top: 16px;
}
html body .hirex-about-reviews .testimonial-pagination .swiper-pagination-bullet {
    background: rgba(242, 140, 40, .30);
}
html body .hirex-about-reviews .testimonial-pagination .swiper-pagination-bullet-active {
    background: #f28c28;
}
@media (max-width: 991px) {
    html body .hirex-about-reviews .testimonials-content { margin-bottom: 24px; }
}

/* Public surfaces use white, warm orange tints and orange accents. */
:root {
    --secondary-color: rgba(242, 140, 40, .08) !important;
    --accent-secondary-color: #f28c28 !important;
    --hirex-secondary: #f28c28 !important;
    --hirex-paper: rgba(242, 140, 40, .08);
    --hirex-ink: #28242a;
    --hirex-orange-contrast: #f28c28;
}
html body { color: var(--hirex-ink); }
html body :is(.page-header, .site-footer, .main-footer, .our-scrolling-ticker) {
    background: var(--hirex-orange-contrast) !important;
}
html body :is(.site-footer, .main-footer) :is(h2, h3, h4, p, li, a) {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
html body .topbar { background: #fff !important; }
html body .topbar :is(a, li, i, span) {
    color: var(--hirex-orange-contrast) !important;
    -webkit-text-fill-color: var(--hirex-orange-contrast) !important;
}
html body :is(.our-mission-vision, .our-benefits, .our-services, .our-faqs, .our-testimonials, .testimonials) {
    background: var(--hirex-paper) !important;
    animation: none !important;
}
html body :is(.our-mission-vision, .our-benefits, .our-services, .our-faqs, .our-testimonials, .testimonials)
    :is(.section-title h2, .section-title p, .testimonial-item p, .testimonial-item h3, .testimonials-counter-item p) {
    color: var(--hirex-ink) !important;
    -webkit-text-fill-color: var(--hirex-ink) !important;
}
html body :is(.our-mission-vision, .our-benefits, .our-services, .our-faqs, .our-testimonials, .testimonials)
    :is(.section-title h3, .section-title h2 span, .testimonials-counter-item h2) {
    color: var(--hirex-orange-contrast) !important;
    -webkit-text-fill-color: var(--hirex-orange-contrast) !important;
}

html body .mission-vision-list {
    background: #fff !important;
    border: 1px solid rgba(242, 140, 40, .25);
}
html body .mission-vision-item {
    border-color: rgba(242, 140, 40, .25);
}
html body .mission-vision-item::before {
    background: rgba(242, 140, 40, .16) !important;
}
html body .mission-vision-item-content p {
    color: var(--hirex-ink) !important;
    -webkit-text-fill-color: var(--hirex-ink) !important;
}
html body .mission-vision-item-content h3 {
    color: var(--hirex-orange-contrast) !important;
    -webkit-text-fill-color: var(--hirex-orange-contrast) !important;
}
html body .mission-vision-item .icon-box { flex: 0 0 50px; }
html body .our-values .values-image::before,
html body .service-side a.active {
    background-color: var(--hirex-orange-contrast) !important;
}

:root {
    --hirex-orange: #f28c28 !important;
    --hirex-primary: #f28c28 !important;
    --accent-color: #f28c28 !important;
}

html body .service-detail-hero {
    background: var(--hirex-paper);
    padding-block: clamp(32px, 6vw, 80px);
}
html body .service-detail-hero h1 {
    color: var(--hirex-ink);
    margin: 12px 0 18px;
    text-wrap: balance;
}
html body .service-detail-hero .eyebrow {
    letter-spacing: .09em;
    font-size: .8rem;
}
html body .service-detail-hero p { max-width: 54ch; }
html body .service-detail-image img {
    display: block;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
html body .service-detail-content {
    background: #fff;
    padding-block: clamp(32px, 5vw, 72px);
}
html body .service-detail-content .content {
    color: var(--hirex-ink);
    overflow-wrap: anywhere;
}
html body .service-detail-content .content img { max-width: 100%; height: auto; }
html body .service-detail-content .content h2 {
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.2;
}
html body .service-detail-content .service-side {
    background: var(--hirex-paper);
    border: 1px solid rgba(242, 140, 40, .25);
}
html body .service-detail-content .service-side h3 { color: var(--hirex-ink); }
html body .service-detail-content .service-side a.active {
    background: #f28c28 !important;
    color: #fff;
}
html body :is(.btn-default, .btn-hirex, .btn-quote):is(:hover, :focus-visible) {
    text-decoration: underline;
    filter: none;
}

/* Service detail: use the same grid for all solutions from the imported page. */
html body .service-detail-content .service-solution-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
    align-items: stretch;
}
html body .service-detail-content .service-solution-box > :is(h2, p),
html body .service-detail-content .service-solution-image {
    grid-column: 1 / -1;
    margin: 0;
    width: auto;
}
html body .service-detail-content :is(.service-solution-image-content, .service-solution-item-list) {
    display: contents;
}
html body .service-detail-content .service-solution-image figure {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    margin: 0;
}
html body .service-detail-content .service-solution-image img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 1;
    object-fit: cover;
    transform: none !important;
}
html body .service-detail-content .service-solution-box .why-choose-item {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: clamp(18px, 3vw, 28px);
    background: rgba(242, 140, 40, .08);
    border: 1px solid rgba(242, 140, 40, .3);
    border-radius: 16px;
}
html body .service-detail-content .service-solution-box .why-choose-item .icon-box {
    margin: 0 0 14px;
}
html body .service-detail-content .service-solution-box .why-choose-item h3 {
    margin: 0 0 8px;
}
html body .service-detail-content .service-solution-box .why-choose-item p {
    margin: 0;
}
html body .service-detail-hero a.btn-quote::before,
html body .service-detail-content a.btn-quote::before {
    background-color: transparent !important;
    background-image: url('../images/arrow-white.svg') !important;
}
@media (max-width: 575px) {
    html body .service-detail-content .service-solution-box { grid-template-columns: minmax(0, 1fr); }
    html body .service-detail-content .service-solution-image img { aspect-ratio: 16 / 9; }
}

/* Keep the Home footer's typography, logo and mobile spacing on every page. */
html body footer.main-footer {
    background: #f28c28 !important;
    font-family: Archivo, Arial, sans-serif;
}
html body footer.main-footer .footer-logo img {
    display: block;
    max-width: 175px;
    max-height: 58px;
    object-fit: contain;
}
html body footer.main-footer :is(h3, p, a, i, svg) {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
html body footer.main-footer input {
    color: #454b55 !important;
    -webkit-text-fill-color: #454b55 !important;
}
@media (max-width: 767px) {
    html body footer.main-footer { padding-top: 38px !important; }
    html body footer.main-footer .footer-links { margin-bottom: 22px !important; }
}

/* Orange social glyphs stay visible inside the white footer buttons. */
html body footer.main-footer .footer-social-links ul li a {
    background: #fff !important;
}
html body footer.main-footer .footer-social-links ul li a :is(i, svg) {
    color: #f28c28 !important;
    -webkit-text-fill-color: #f28c28 !important;
    fill: #f28c28 !important;
}
html body footer.main-footer .footer-social-links ul li a:is(:hover, :focus-visible) {
    box-shadow: 0 0 0 2px #fff, inset 0 0 0 2px #f28c28;
}
html body footer.main-footer .newsletter-btn img {
    filter: brightness(0) invert(1) !important;
}

/* Keep all four metric icons visible, including when their cards are hovered. */
html body .company-success .company-success-item .company-success-header .icon-box {
    flex: 0 0 auto;
    background: #f28c28 !important;
    box-shadow: inset 0 0 0 4px #fff;
}
html body .company-success .company-success-item .company-success-header .icon-box::before {
    background: transparent !important;
}
html body .company-success .company-success-item .company-success-header .icon-box img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    filter: brightness(0) invert(1) !important;
}

/* Shared service directory and detail layout. */
.service-directory { padding: clamp(24px, 4vw, 56px) 0 clamp(48px, 6vw, 88px); background: #fff; }
.service-breadcrumb { margin-bottom: 24px; font-size: .9rem; }
.service-breadcrumb a { color: #28242a; text-decoration: underline; }
.service-directory-layout { display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); align-items: start; gap: clamp(24px, 4vw, 56px); }
html body .service-directory .service-side { border: 0; padding: 22px; background: #f28c28; border-radius: 16px; }
html body .service-directory .service-side h2 { font-size: 1.25rem; margin: 0 0 16px; color: #28242a; }
html body .service-directory .service-side a { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:0; padding:11px 12px; color:#28242a; background:#fff; border:2px solid #fff; border-radius:8px; }
html body .service-directory .service-side a + a { margin-top: 8px; }
html body .service-directory .service-side a[aria-current="page"] { font-weight:800; background:#fff; border-color:#28242a; }
html body .service-directory .service-side a:hover { text-decoration:underline; }
html body .service-directory .service-side a i { color:#f28c28; }
html body .service-directory .service-detail-content { padding: 0; min-width: 0; }
.service-directory h1 { margin:0 0 18px; font-size:clamp(30px,4vw,50px); line-height:1.14; color:#28242a; }
.service-directory .service-detail-image { margin:0 0 24px; }
html body .service-directory .service-detail-image img { aspect-ratio: 16 / 8; }
.service-directory .content > :first-child { margin-top:0; }
.service-directory .content { margin-bottom:24px; }
@media (max-width: 767px) {
    .service-directory-layout { grid-template-columns: minmax(0, 1fr); }
    html body .service-directory .service-detail-image img { aspect-ratio: 4 / 3; }
}

.service-directory [data-hirex-service-section] { margin-block: clamp(32px, 5vw, 60px) 0; }
.service-directory [data-hirex-service-section] h2 { margin-bottom: 12px; }
.service-directory .hirex-service-approach ul {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
    padding: 0; margin: 20px 0 0; list-style: none;
}
.service-directory .hirex-service-approach li {
    padding: 10px 14px; border-left: 3px solid #f28c28; background: rgba(242,140,40,.09);
}
.service-directory .hirex-service-solutions figure { margin: 20px 0; }
.service-directory .hirex-service-solutions figure img {
    display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 16px;
}
.service-directory .hirex-service-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.service-directory .hirex-service-card {
    padding: 22px; border-radius: 14px; border: 1px solid rgba(242,140,40,.42); background: #fff;
}
.service-directory .hirex-service-card .icon-box {
    display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 13px;
}
.service-directory .hirex-service-card .icon-box img { width: 23px; }
.service-directory .hirex-service-card h3 { font-size: 1.14rem; margin: 0 0 7px; }
.service-directory .hirex-service-card p { margin: 0; }
.service-directory .hirex-service-faqs details {
    margin-bottom: 10px; border-radius: 10px; border: 1px solid rgba(242,140,40,.45); background: #fff;
}
.service-directory .hirex-service-faqs summary { cursor: pointer; padding: 12px 15px; font-weight: 700; }
.service-directory .hirex-service-faqs summary::marker { color: #f28c28; }
.service-directory .hirex-service-faqs details[open] summary { background: rgba(242,140,40,.09); }
.service-directory .hirex-service-faqs details p { margin: 0; padding: 12px 15px; }
@media (max-width: 575px) {
    .service-directory .hirex-service-approach ul, .service-directory .hirex-service-cards { grid-template-columns: 1fr; }
    .service-directory .hirex-service-solutions figure img { aspect-ratio: 16 / 9; }
}
