/* WordPress integration. Original design styles load first. */
/* Inner banners use finished artwork, without source-composite crops or mirroring. */
body:not(.page-home) .hero.hero-single-image > img.hero-photo {
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none;
    mask-image: none;
}
/* Keep each inner banner's original composition, but let longer copy add height.
   Small-screen banners already use content-driven height in their page styles. */
@media (min-width: 701px) {
    body:where(:not(.page-home)) .hero.hero-single-image {
        --inner-hero-min: 778px;
        --inner-hero-top: 245px;
        height: auto;
        min-height: var(--inner-hero-min);
        aspect-ratio: auto;
    }
    body:not(.page-home) .hero.hero-single-image > .hero-content {
        top: 0;
        padding-top: var(--inner-hero-top);
        padding-bottom: 60px;
    }
    body:not(.page-home) .hero.hero-single-image > .hero-content > :last-child { margin-bottom: 0; }
    body .hero.hero-industries { --inner-hero-top: 276px; }
    body .hero.hero-products { --inner-hero-top: 215px; }
    body .hero.hero-product-details { --inner-hero-top: 258px; }
    body .hero.hero-service-details, body .hero.hero-success-stories { --inner-hero-top: 246px; }
    body .hero.hero-partners { --inner-hero-top: 290px; }
    body .hero.hero-insights { --inner-hero-top: 310px; }
    body .hero.hero-careers { --inner-hero-top: 250px; }
    body .hero.hero-contact { --inner-hero-top: 364px; }
    body .hero.hero-our-team { --inner-hero-min: 560px; --inner-hero-top: 280px; }
}
@media (min-width: 701px) and (max-width: 1700px) {
    body:where(:not(.page-home)) .hero.hero-single-image { --inner-hero-min: 650px; --inner-hero-top: 210px; }
    body .hero.hero-industries { --inner-hero-min: 700px; --inner-hero-top: 235px; }
    body .hero.hero-products { --inner-hero-top: 190px; }
    body .hero.hero-service-details { --inner-hero-min: 700px; --inner-hero-top: 220px; }
    body .hero.hero-success-stories { --inner-hero-min: 700px; --inner-hero-top: 215px; }
    body .hero.hero-partners { --inner-hero-top: 220px; }
    body .hero.hero-insights { --inner-hero-top: 245px; }
    body .hero.hero-careers { --inner-hero-top: 200px; }
    body .hero.hero-contact { --inner-hero-top: 285px; }
    body .hero.hero-our-team { --inner-hero-min: 560px; --inner-hero-top: 280px; }
}
@media (min-width: 1051px) {
    body .hero.hero-about { --inner-hero-min: max(650px, calc((100vw - 40px) * 778 / 1880)); }
}
@media (min-width: 701px) and (max-width: 1100px) {
    body .hero.hero-service-details { --inner-hero-top: 195px; }
    body .hero.hero-contact { --inner-hero-min: 580px; --inner-hero-top: 250px; }
}
@media (min-width: 701px) and (max-width: 1050px) {
    body .hero.hero-about, body .hero.hero-services { --inner-hero-top: 190px; }
    body .hero.hero-our-team { --inner-hero-min: 460px; --inner-hero-top: 235px; }
}
.generic-header { background: #0075a9; padding: 24px 20px; }
.generic-header .site-header { position: relative; top: auto; left: auto; transform: none; margin: 0 auto; }
.generic-content { min-height: 45vh; padding-block: 72px; }
.generic-content > * + * { margin-top: 24px; }
.page-legal .generic-header { background: #f3f6fa; }
.page-legal .generic-header .site-header { right: auto; }
.legal-page { max-width: 880px; padding-block: 64px 80px; }
.legal-page-header { padding-bottom: 28px; border-bottom: 1px solid #e0e5eb; }
.legal-page h1 { font-size: 52px; line-height: 1.15; margin-block: 0 16px; overflow-wrap: anywhere; }
.legal-updated { color: #626b75; font-size: 15px; }
.legal-copy { padding-top: 28px; overflow-wrap: anywhere; }
.legal-copy h2 { color: #006b99; font-size: 28px; line-height: 1.3; margin: 36px 0 14px; }
.legal-copy p, .legal-copy li { font-size: 18px; line-height: 1.8; }
.legal-copy ul { list-style: disc; padding-left: 24px; margin-block: 16px; }
.legal-copy ol { list-style: decimal; padding-left: 24px; margin-block: 16px; }
.legal-copy a { color: #006b99; text-decoration: underline; text-underline-offset: 3px; }
.legal-copy .legal-sample-notice { padding: 14px 18px; border-left: 3px solid #fabc05; background: #f7f8fa; font-size: 16px; }
.footer-policy-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.site-footer .menu a[aria-current="page"],
.site-footer .footer-policy-links a[aria-current="page"] { color: var(--yellow); }
.site-footer .menu a:hover,
.site-footer .footer-policy-links a:hover { color: var(--yellow); text-decoration: none; }

@media (max-width: 560px) {
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
.page-contact .gform_validation_errors.screen-reader-text { margin: 0; padding: 0; }
@media (max-width: 700px) {
    .legal-page { padding-block: 36px 48px; }
    .footer-policy-links { font-size: 14px; }
    .legal-page h1 { font-size: 34px; }
    .legal-copy h2 { font-size: 24px; }
    .legal-copy p, .legal-copy li { font-size: 16px; }
}
.nav-submenu { display: none; }
.services-menu-intro, .services-submenu-heading { display: none; }
.services-menu-links { display: contents; }
#site-nav .nav-item { position: relative; display: flex; align-items: center; flex-wrap: wrap; }
#site-nav > .nav-item { flex-shrink: 0; flex-wrap: nowrap; }
#site-nav .submenu-toggle {
    display: grid; place-items: center; width: 28px; height: 36px;
    padding: 0; border: 0; border-radius: 4px; background: transparent;
    color: inherit; cursor: pointer; flex-shrink: 0;
}
#site-nav .submenu-toggle::after {
    content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg);
}
#site-nav .submenu-toggle:hover { color: var(--blue); background: #f0f5ff; }
#site-nav :is(a, button):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
#site-nav .nav-submenu {
    position: absolute; top: 100%; left: 0; width: 290px; padding: 10px;
    background: #fff; border: 1px solid #e0e5eb; border-radius: 8px;
    box-shadow: 0 12px 30px #0002; z-index: 1;
    max-height: calc(100dvh - 180px); overflow-y: auto; overscroll-behavior: contain;
}
#site-nav .nav-item.is-open > .nav-submenu,
#site-nav:not(.submenus-ready) .nav-item:focus-within > .nav-submenu { display: block; }
#site-nav .nav-submenu a {
    display: block; padding: 11px 12px; font-size: 15px; line-height: 1.45;
    white-space: normal; overflow-wrap: anywhere; border-radius: 4px;
}
#site-nav .nav-submenu a:hover { background: #f0f5ff; }
#site-nav .nav-submenu .nav-item > a { flex: 1; min-width: 0; min-height: 44px; border-radius: 4px 0 0 4px; }
#site-nav .nav-submenu .submenu-toggle { width: 40px; height: auto; min-height: 44px; align-self: stretch; border-radius: 0 4px 4px 0; }
#site-nav .nav-submenu .nav-item:is(:hover, :focus-within, .is-open) > :is(a, .submenu-toggle) {
    background: #f0f5ff; color: var(--blue);
}
#site-nav .nav-submenu .nav-submenu {
    top: 0; left: 100%; width: 270px;
}
#site-nav .nav-submenu[popover] {
    position: fixed; inset: auto; margin: 0;
    left: var(--submenu-left); top: var(--submenu-top); max-height: var(--submenu-height);
}
#site-nav .nav-submenu .submenu-toggle::after { transform: rotate(-45deg); }
@media (hover: hover) {
    #site-nav:not(.submenus-ready) .nav-item:hover > .nav-submenu { display: block; }
}
@media (max-width: 1050px) {
    .site-header #site-nav { max-height: calc(100dvh - 140px); overflow-y: auto; }
    .site-header #site-nav[popover] {
        position: fixed; inset: auto; margin: 0; border: 0;
        top: var(--nav-top); left: var(--nav-left); width: var(--nav-width);
        max-height: calc(100dvh - var(--nav-top) - 12px); color: var(--ink);
    }
    #site-nav > .nav-item { flex-wrap: wrap; }
    #site-nav .nav-item > a { flex: 1; min-width: 0; }
    #site-nav .submenu-toggle { width: 44px; height: 48px; }
    #site-nav .nav-submenu, #site-nav .nav-submenu .nav-submenu {
        position: static; width: 100%; max-height: none; overflow: visible;
        padding: 4px 0 4px 12px; border: 0; border-left: 2px solid #dce7fc;
        border-radius: 0; box-shadow: none; margin: 0 0 8px 18px;
    }
    #site-nav .nav-submenu .submenu-toggle::after { transform: translateY(-2px) rotate(45deg); }
    #site-nav .nav-submenu .nav-submenu { border-left: 0; padding-left: 14px; }
}
@media (min-width: 1051px) {
    #site-nav .nav-about > .nav-submenu:not([popover]) {
        left: 50%; transform: translateX(-50%);
    }
    #site-nav .nav-services.is-open > .services-mega-menu,
    #site-nav:not(.submenus-ready) .nav-services:is(:hover, :focus-within) > .services-mega-menu {
        display: grid; grid-template-columns: minmax(235px, 25%) minmax(0, 1fr);
    }
    #site-nav .services-mega-menu {
        width: var(--services-menu-width, 900px); padding: 0;
        border: 0; border-radius: 20px; background: transparent; color: var(--ink);
        overflow-x: hidden; overflow-y: auto;
        box-shadow: 0 16px 40px #00304a26;
    }
    #site-nav .services-menu-intro {
        display: flex; flex-direction: column; align-items: flex-start;
        padding: 32px; background: #0075a9; color: #fff;
    }
    #site-nav .services-menu-heading { font-size: 30px; line-height: 1.25; }
    #site-nav .services-menu-intro p { margin: 24px 0 36px; font-size: 18px; line-height: 1.65; }
    #site-nav .services-menu-intro .services-menu-all {
        display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
        margin-top: auto; padding: 10px 12px; border: 1px solid #ffffff80;
        border-radius: 30px; color: #fff; font-size: 14px; min-height: 48px;
    }
    #site-nav .services-menu-intro .services-menu-all:hover { background: #fff; color: #0075a9; }
    #site-nav .services-menu-all img { width: 24px; height: 24px; flex-shrink: 0; }
    #site-nav .services-menu-intro a:focus-visible { outline-color: #fff; }
    #site-nav .services-menu-links { display: block; position: relative; padding: 28px 32px; min-height: 420px; background: #f8fafd; }
    #site-nav .services-menu-links > :is(a, .nav-item) { width: 54%; }
    #site-nav .services-menu-links > .nav-item { position: static; }
    #site-nav .services-menu-links > a,
    #site-nav .services-menu-links > .nav-item > a { font-size: 16px; }
    #site-nav .services-menu-links > .nav-item > .nav-submenu {
        position: absolute; left: 60%; top: 32px; width: calc(40% - 32px);
        padding: 0 0 0 24px; margin: 0; border: 0; border-left: 1px solid #dce4f0;
        border-radius: 0; box-shadow: none; background: transparent;
        max-height: none; overflow: visible;
    }
    #site-nav .services-mega-menu .services-submenu-heading { display: block; margin: 0 0 18px; padding: 0 12px; font-size: 21px; line-height: 1.4; color: #0075a9; }
    #site-nav .services-menu-links > .nav-item > .nav-submenu a { font-size: 16px; padding-block: 12px; }
    #site-nav .services-menu-links > .nav-item.is-open > :is(a, .submenu-toggle) { background: #eaf1ff; }
}
.site-footer .sub-menu { padding-left: 16px; }
.gform_wrapper { width: 100%; }
.gform_wrapper .gform_fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 0; list-style: none; }
.gform_wrapper .gfield { min-width: 0; grid-column: 1 / -1; }
.gform_wrapper .gfield.itti-half { grid-column: auto; }
.gform_wrapper .gfield_label { display: block; margin-bottom: 8px; font-weight: 500; }
.gform_wrapper :where(input:not([type="submit"]):not([type="checkbox"]):not([type="hidden"]), textarea, select) { width: 100%; max-width: 100%; box-sizing: border-box; border: 1px solid #ddd; border-radius: 100px; padding: 12px 18px; background: #fff; color: #162d3d; font: inherit; }
.gform_wrapper textarea { min-height: 142px; resize: vertical; }
.gform_wrapper .ginput_container > input, .gform_wrapper .ginput_container > textarea { display: block; }
.gform_wrapper .gform_footer { padding: 0; margin-top: 22px; }
.gform_wrapper .gfield_required { margin-left: 4px; }
.gform_wrapper .gfield_required_text { display: none; }
.gform_wrapper .gform_validation_container, .gform_wrapper .gfield_visibility_hidden, .gform_wrapper .gform_hidden, .gform_wrapper .hidden_label > .gfield_label { display: none !important; }
.gform_wrapper .gform_validation_errors, .gform_wrapper .validation_message { color: #b42318; font-size: 15px; }
.gform_wrapper .gform_validation_errors { margin-block: 12px; }
.gform_wrapper .gform_validation_errors h2 { font-size: 20px; line-height: 1.4; }
.gform_confirmation_message { padding-block: 16px; }
.page-contact .contact-form:has(.itti-contact-confirmation) {
    min-height: 0;
    border-top: 4px solid #2fa84f;
}
.page-contact .contact-form:has(.itti-contact-confirmation) > :is(.eyebrow, h2) { display: none; }
.page-contact .itti-contact-confirmation {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 10px 32px;
    text-align: center;
    overflow-wrap: anywhere;
}
.page-contact .contact-confirmation-mark {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    margin-bottom: 28px;
    border: 1px solid #b9dfc2;
    border-radius: 50%;
    background: #edf8ef;
}
.page-contact .contact-confirmation-mark::after {
    content: '';
    width: 17px;
    height: 30px;
    margin-top: -7px;
    border-right: 4px solid #24853d;
    border-bottom: 4px solid #24853d;
    transform: rotate(45deg);
}
.page-contact .contact-form .itti-contact-confirmation h2 {
    max-width: 520px;
    margin: 0 0 18px;
    color: #4285ff;
    font-size: 36px;
    line-height: 1.2;
}
.page-contact .contact-confirmation-copy { max-width: 480px; color: #545d65; font-size: 18px; line-height: 1.7; }
.page-contact .contact-confirmation-copy > :last-child { margin-bottom: 0; }
.page-contact .contact-confirmation-home { margin-top: 32px; max-width: 100%; }
.page-contact .contact-confirmation-home .arrow { transform: none; }
@media (max-width: 700px) {
    .page-contact .itti-contact-confirmation { padding: 12px 0 16px; }
    .page-contact .contact-form .itti-contact-confirmation h2 { font-size: 28px; }
    .page-contact .contact-confirmation-copy { font-size: 16px; }
}
.itti-newsletter .gform_fields { display: block; }
.itti-newsletter { margin-top: 24px; }
.site-footer .itti-newsletter-confirmation {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 20px;
    border-left: 4px solid #2fa84f;
    border-radius: 6px;
    background: #edf8ef;
    color: #185d2b;
    overflow-wrap: anywhere;
}
.site-footer .itti-newsletter-confirmation h3 { margin: 0; color: #185d2b; font-size: 20px; line-height: 26px; }
.site-footer .newsletter-confirmation-mark {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #24853d;
}
.site-footer .newsletter-confirmation-mark::after {
    content: '';
    width: 7px;
    height: 12px;
    margin-top: -3px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}
.site-footer .newsletter-confirmation-copy { grid-column: 1 / -1; color: #185d2b; font-size: 16px; line-height: 1.6; }
.site-footer .newsletter-confirmation-copy p { color: inherit; font-size: inherit; line-height: inherit; }
.site-footer .newsletter-confirmation-copy > :last-child { margin-bottom: 0; }
.site-footer .newsletter-confirmation-copy a { color: inherit; text-decoration: underline; }
.itti-newsletter .gform_wrapper input[type="email"] { border: 0; color: white; height: 60px; padding: 14px 20px 14px 45px; border-radius: 100px; background: #ffffff33 url('../images/mail-icon.png') 20px center / 18px 13px no-repeat; }
.itti-newsletter input::placeholder { color: #ffffff80; }
.itti-newsletter .gform_footer { margin-top: 17px; }
.itti-newsletter .gform_button { width: 100%; justify-content: space-between; padding-block: 11px; box-shadow: 0 24px 27px #0000001a; }
.itti-newsletter .gform_button .arrow { transform: none; }
.site-footer .gform_wrapper .validation_message, .site-footer .gform_wrapper .gform_validation_errors { color: #ffdb7d; }
.gform_wrapper .gform_ajax_spinner { width: 20px; height: 20px; }
.contact-form > .gform_wrapper { grid-column: 1 / -1; }
.page-contact .gform_wrapper .gfield_label { margin-bottom: 0; }
.page-contact .gform_wrapper .gform_fields { gap: 20px 18px; }
.page-contact .contact-form .gform_footer { margin-top: 73px; }
.page-contact .contact-form .gform_footer > .button { min-width: 0; width: 343px; max-width: 100%; height: 60px; margin: 0; padding: 16px 24px; justify-content: center; box-shadow: 0 24px 27px #0000001a; }
.gform_required_legend { display: none; }
#application-dialog .gform_wrapper { margin-top: 20px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 600px) { .gform_wrapper .gform_fields { grid-template-columns: 1fr; } .gform_wrapper .gfield.itti-half { grid-column: 1 / -1; } }
@media (max-width: 1700px) { .page-contact .contact-form .gform_footer { margin-top: 45px; } }
@media (max-width: 700px) {
    .page-contact .gform_wrapper .gform_fields { grid-template-columns: 1fr; gap: 16px; }
    .page-contact .contact-form .gform_footer { margin-top: 30px; }
    .page-contact .contact-form .gform_footer > .button { width: 100%; height: auto; min-height: 52px; padding: 14px 12px; }
}

/* Curated content SVGs carry the shared heading blue directly. */
img.itti-subject-icon { filter: none !important; }

/* The original ERP artwork has vertically reflected lettering in every copy. */
img[src$="/home-group7-3c3ef1c3.svg"],
img[src*="/home-group7-3c3ef1c3.svg?"] {
    transform: scaleY(-1);
}
