/* ITDM V8 — global color, layout, CTA and navigation refinement */
:root {
  --itdm-v8-ink: #10263A;
  --itdm-v8-navy: #0B1F33;
  --itdm-v8-deep: #061525;
  --itdm-v8-teal: #0D7C86;
  --itdm-v8-coral: #FF7058;
  --itdm-v8-gold: #FFD166;
  --itdm-v8-mist: #F3F7FA;
  --itdm-v8-white: #FFFFFF;
  --itdm-v8-muted: #607487;
  --itdm-v8-line: #DCE5EC;
  --itdm-v8-shadow: 0 18px 48px rgba(6,21,37,.12);
}
html { scroll-behavior:smooth; scroll-padding-top:110px; }
body { color:var(--itdm-v8-ink); background:#fff; }
img { max-width:100%; height:auto; }
a { text-underline-offset:3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline:3px solid var(--itdm-v8-gold)!important; outline-offset:3px!important;
}
/* Header: consistent contrast, compact rhythm and clear hierarchy */
.itdm-v7-header, .itdm-header, header.site-header {
  background:rgba(255,255,255,.98)!important;
  border-bottom:1px solid var(--itdm-v8-line)!important;
  box-shadow:0 7px 26px rgba(6,21,37,.07)!important;
  backdrop-filter:blur(14px);
}
.itdm-v7-nav a, .itdm-v7-nav summary, .itdm-nav a, .itdm-navgroup>button {
  color:var(--itdm-v8-ink)!important;
  border-radius:9px;
  transition:background .16s ease,color .16s ease;
}
.itdm-v7-nav a:hover, .itdm-v7-nav summary:hover, .itdm-nav a:hover,
.itdm-navgroup>button:hover, .itdm-navgroup.open>button {
  background:#EAF4F5!important; color:var(--itdm-v8-teal)!important;
}
.itdm-v7-nav details[open]>summary { background:#EAF4F5; color:var(--itdm-v8-teal)!important; }
.itdm-v7-drop, .itdm-mega, .itdm-smallmega, .mega-menu, .mega-resources {
  background:#fff!important; border-color:var(--itdm-v8-line)!important;
  box-shadow:0 24px 60px rgba(6,21,37,.16)!important;
  border-radius:0 0 16px 16px;
}
.itdm-v7-drop a, .itdm-mega a, .mega-menu a {
  color:#193247!important; border-radius:9px;
}
.itdm-v7-drop a:hover, .itdm-mega a:hover, .mega-menu a:hover {
  background:#EAF4F5!important; color:#075E68!important;
}
.itdm-v7-drop small, .itdm-mega small, .mega-menu small { color:#65798A!important; }
/* Primary CTA uses energetic coral; secondary CTA remains calm and clear */
.itdm-v7-btn-primary, .itdm-nav-cta, .nav-cta, .itdm-v7-mobile-cta,
.itdm-v7-actions .itdm-v7-btn-primary {
  background:var(--itdm-v8-coral)!important; color:#24100D!important;
  border:1px solid #F65E46!important; box-shadow:0 6px 18px rgba(255,112,88,.20);
  font-weight:900!important; transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.itdm-v7-btn-primary:hover, .itdm-nav-cta:hover, .nav-cta:hover, .itdm-v7-mobile-cta:hover {
  background:#FF866F!important; color:#24100D!important; transform:translateY(-1px);
  box-shadow:0 9px 24px rgba(255,112,88,.28);
}
.itdm-v7-btn-secondary, .itdm-v7-actions .itdm-v7-btn-secondary {
  background:#EAF4F5!important; color:#075E68!important; border:1px solid #B9DCDD!important;
}
.itdm-v7-btn-secondary:hover { background:#D9EEEE!important; }
/* Main content and cards */
.itdm-v7-hero, .itdm-v7-hero-section, .itdm-hero, .hero, .page-hero {
  background-color:var(--itdm-v8-navy);
}
.itdm-v7-hero h1, .itdm-v7-hero-section h1, .itdm-hero h1, .hero h1, .page-hero h1 { color:#fff; }
.itdm-v7-hero p, .itdm-v7-hero-section p, .itdm-hero p, .hero p, .page-hero p { color:#DDE9F0; }
.itdm-v7-section:nth-of-type(even), .itdm-section-muted, .section-muted { background:var(--itdm-v8-mist); }
.itdm-v7-card, .service-card, .industry-card, .location-card, .itdm-card {
  border:1px solid var(--itdm-v8-line); border-radius:16px;
  box-shadow:0 8px 25px rgba(6,21,37,.055); background:#fff;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.itdm-v7-card:hover, .service-card:hover, .industry-card:hover, .location-card:hover, .itdm-card:hover {
  transform:translateY(-3px); border-color:#A7D7D9; box-shadow:var(--itdm-v8-shadow);
}
.itdm-v7-eyebrow, .itdm-eyebrow, .section-eyebrow { color:var(--itdm-v8-teal); }
.itdm-v7-footer, .itdm-footer, footer.site-footer {
  background:linear-gradient(135deg,#061525 0%,#0B2B40 100%)!important;
  color:#EAF2F7!important;
}
.itdm-v7-footer a, .itdm-footer a, footer.site-footer a { color:#EAF2F7!important; }
.itdm-v7-footer a:hover, .itdm-footer a:hover, footer.site-footer a:hover { color:var(--itdm-v8-gold)!important; }
.itdm-v7-footer h2, .itdm-v7-footer h3, .itdm-v7-footer h4,
.itdm-footer h2, .itdm-footer h3, .itdm-footer h4 { color:#fff!important; }
.itdm-v7-footer-bottom, .itdm-footerbottom { border-top:1px solid rgba(255,255,255,.16)!important; }
/* Welcome: concise, dismissible, never larger than the visible screen */
.itdm-welcome-backdrop {
  padding:14px!important; background:rgba(6,21,37,.52)!important;
  backdrop-filter:blur(3px)!important;
}
.itdm-welcome {
  width:min(430px,calc(100vw - 28px))!important;
  max-height:calc(100dvh - 28px)!important; overflow:auto!important;
  padding:27px 28px 23px!important; border-radius:18px!important;
  box-shadow:0 22px 70px rgba(0,0,0,.28)!important;
}
.itdm-welcome:before { height:5px!important; background:linear-gradient(90deg,#0D7C86,#FF7058,#FFD166)!important; }
.itdm-welcome h2 { font-size:clamp(23px,3vw,29px)!important; margin:9px 0!important; }
.itdm-welcome p { font-size:13px!important; line-height:1.55!important; margin:8px 0!important; }
.itdm-welcome-actions { margin:15px 0 10px!important; gap:8px!important; }
.itdm-welcome-primary { background:var(--itdm-v8-coral)!important; color:#24100D!important; }
.itdm-welcome-secondary { background:var(--itdm-v8-navy)!important; color:#fff!important; }
.itdm-welcome small { display:block; font-size:10px!important; }
.itdm-welcome-close { z-index:2; }
@media(max-width:900px) {
  .itdm-v7-nav { gap:3px; }
  .itdm-v7-drop { max-height:58vh; overflow:auto; }
}
@media(max-width:600px) {
  .itdm-welcome { padding:25px 20px 20px!important; }
  .itdm-welcome-actions { flex-direction:column!important; }
  .itdm-welcome-primary, .itdm-welcome-secondary { width:100%; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; }
}

/* V9 brand alignment: use the supplied ITDM navy + growth-lime identity */
:root {
 --itdm-v8-navy:#052849;
 --itdm-v8-deep:#031A30;
 --itdm-v8-teal:#0B567B;
 --itdm-v8-coral:#A8E600;
 --itdm-v8-gold:#A8E600;
 --itdm-v8-mist:#F5F8FB;
}
.itdm-v7-brand img { display:block; width:176px!important; max-width:176px!important; height:auto!important; max-height:60px!important; object-fit:contain; }
.itdm-v7-btn-primary, .itdm-nav-cta, .nav-cta, .itdm-v7-mobile-cta,
.itdm-v7-actions .itdm-v7-btn-primary, .itdm-welcome-primary {
 background:#A8E600!important; color:#052849!important; border:1px solid #8BC400!important;
 box-shadow:0 7px 20px rgba(139,196,0,.2); font-weight:900!important;
}
.itdm-v7-btn-primary:hover, .itdm-nav-cta:hover, .nav-cta:hover, .itdm-v7-mobile-cta:hover,
.itdm-welcome-primary:hover { background:#BDF21B!important; color:#052849!important; }
.itdm-v7-footer .itdm-group-partners-v8 {
 display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px;
 padding:18px 20px; margin:0 auto; border-top:1px solid rgba(255,255,255,.14);
}
.itdm-group-partners-label { color:#BFD0DD; font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.itdm-group-partner-name {
 display:inline-flex; align-items:center; justify-content:center; padding:8px 13px;
 border:1px solid rgba(255,255,255,.2); border-radius:999px; color:#fff!important;
 text-decoration:none; font-size:12px; font-weight:750; background:rgba(255,255,255,.05);
}
.itdm-group-partner-name:hover { color:#A8E600!important; border-color:#A8E600; background:rgba(168,230,0,.08); }
@media(max-width:700px) {
 .itdm-v7-brand img { max-width:145px!important; }
 .itdm-v7-header-inner { gap:10px; }
 .itdm-v7-footer .itdm-group-partners-v8 { justify-content:flex-start; }
}
