/* IAM website design polish — v1, December 2026
   Loaded last on every page. Brand: IAM teal #005154, heritage gold #c9a646. */
:root {
  --iam-teal: #005154;
  --iam-teal-deep: #003b3d;
  --iam-teal-soft: #eef5f4;
  --iam-gold: #c9a646;
  --iam-gold-ink: #8a6d1f;
  --iam-ink: #1e2b30;
  --iam-body: #46555b;
  --iam-line: #dde6e5;
}
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: rgba(201, 166, 70, .35); }
body > :not(footer):not(.HeaderParent):not(.mobile-nav) h1,
body > :not(footer):not(.HeaderParent):not(.mobile-nav) h2 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif !important;
  font-weight: 700 !important;
  letter-spacing: .1px;
  line-height: 1.15;
}
body > :not(footer):not(.HeaderParent):not(.mobile-nav) h2 { font-size: clamp(1.85rem, 1.45rem + 1vw, 2.35rem) !important; }
body > :not(footer):not(.HeaderParent):not(.mobile-nav) h3 { letter-spacing: .1px; line-height: 1.3; }
.iamx-pagehead {
  position: relative; height: auto !important; min-height: 190px; padding: 40px 20px 42px !important;
  flex-direction: column; text-align: center; overflow: hidden; box-shadow: none !important;
  border-bottom: 3px solid var(--iam-gold);
  background:
    radial-gradient(900px 260px at 88% -30%, rgba(201, 166, 70, .30), transparent 62%),
    radial-gradient(700px 240px at 0% 120%, rgba(255, 255, 255, .07), transparent 60%),
    linear-gradient(120deg, #003b3d 0%, #005154 55%, #0a6664 100%) !important;
}
.iamx-pagehead::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 24px); pointer-events: none; }
.iamx-pagehead h1 { position: relative; color: #fff !important; font-size: clamp(2.1rem, 1.5rem + 1.9vw, 3.2rem) !important; margin: 0 !important; padding: 0 12px !important; }
.iamx-pagehead h1::after { content: ""; display: block; width: 64px; height: 3px; margin: 16px auto 0; border-radius: 2px; background: var(--iam-gold); }
.iamx-crumb { position: relative; margin: 0 0 12px; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.iamx-crumb a { color: #ecd593; text-decoration: none; }
.iamx-crumb a:hover { color: #fff; text-decoration: underline; }
.iamx-crumb span[aria-hidden] { margin: 0 .55em; opacity: .6; }
.iamx-badge { color: var(--iam-teal-deep) !important; font-weight: 700; letter-spacing: .06em; }
.iamx-card, .card-item, .feature-item, .Coaching-card-item, .card-item-IAM-Value, .card-item-IAM-Value2, .step-content { border-radius: 14px !important; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.iamx-card:hover, .card-item:hover, .feature-item:hover, .Coaching-card-item:hover, .card-item-IAM-Value:hover, .card-item-IAM-Value2:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 59, 61, .12) !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .iamx-card, .card-item, .feature-item, .Coaching-card-item, .card-item-IAM-Value, .card-item-IAM-Value2 { transition: none; }
  .iamx-card:hover, .card-item:hover, .feature-item:hover, .Coaching-card-item:hover, .card-item-IAM-Value:hover, .card-item-IAM-Value2:hover { transform: none; }
}
body > :not(footer) table { border-collapse: separate; border-spacing: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--iam-gold) !important; outline-offset: 2px; }
.iamx-top { position: fixed; right: 18px; bottom: 18px; z-index: 900; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--iam-teal); color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); opacity: 0; visibility: hidden; transition: opacity .25s ease; }
.iamx-top.show { opacity: .92; visibility: visible; }
.iamx-top:hover { opacity: 1; color: #fff; background: var(--iam-teal-deep); }

/* ---------- Policy documents: document-scale headings ---------- */
.content-section-TandC h2:not(#_), .content-section-CP h2:not(#_), .content-section-DP h2:not(#_), .content-section-HT h2:not(#_) {
  font-size: clamp(1.45rem, 1.2rem + .6vw, 1.75rem) !important;
  margin: 1.6em 0 .5em !important;
}
.content-section-TandC h3, .content-section-CP h3, .content-section-DP h3, .content-section-HT h3 { font-size: 1.2rem !important; margin-top: 1.2em; }
.content-section-TandC, .content-section-CP, .content-section-DP, .content-section-HT { max-width: 960px; margin-left: auto !important; margin-right: auto !important; }

/* ---------- Leftover cookie bar: this website sets no optional cookies ---------- */
#cookie-consent-banner { display: none !important; }

/* ---------- Links: brand teal instead of default browser blue ---------- */
:root {
  --bs-link-color: #005154; --bs-link-color-rgb: 0, 81, 84;
  --bs-link-hover-color: #003b3d; --bs-link-hover-color-rgb: 0, 59, 61;
}
body > :not(.HeaderParent):not(footer):not(.mobile-nav) a:not([class]) { text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Data tables: one style everywhere ---------- */
.iamx-tablewrap, .iamx-wrap:has(> .iamx-table) { overflow-x: auto; }
.iamx-table { width: 100%; border-collapse: separate !important; border-spacing: 0; background: #fff; border: 1px solid var(--iam-line); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 81, 84, .06); margin: 8px 0 18px; }
.iamx-table th, .iamx-table thead td { background: var(--iam-teal); color: #fff; text-align: left; padding: 13px 16px; font-weight: 600; font-size: .95rem; letter-spacing: .02em; }
.iamx-table td { padding: 12px 16px; border-bottom: 1px solid #e3ecec; vertical-align: top; color: var(--iam-body); }
.iamx-table tr:last-child td { border-bottom: 0; }
.iamx-table tbody tr:nth-child(even) td { background: #f6f9f9; }
.iamx-table tbody tr:hover td { background: var(--iam-teal-soft); }
@media (max-width: 700px) { .iamx-table { display: block; overflow-x: auto; white-space: nowrap; } }

/* ---------- Card grids: no stranded single cards; last row centred ---------- */
.iamx-grid:has(> :nth-child(3)) { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 20px; }
.iamx-grid:has(> :nth-child(3)) > * { flex: 0 1 calc((100% - 40px) / 3); min-width: 0; margin: 0 !important; }
@media (max-width: 960px) { .iamx-grid:has(> :nth-child(3)) > * { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 640px) { .iamx-grid:has(> :nth-child(3)) > * { flex-basis: 100%; } }

/* ---------- One reading size for lists inside content cards ---------- */
.iamx li { font-size: 1.02rem; line-height: 1.6; }

/* ---------- Large legacy photos: elegant, not two screens tall ---------- */
body > :not(.HeaderParent):not(footer):not(.mobile-nav) img[src*="ev-"],
.Coaching-section img, .Corporate-section img { max-height: 460px; width: 100%; object-fit: cover; border-radius: 14px; }

.partnership-image img { max-height: 420px; width: 100%; object-fit: cover; object-position: center 40%; border-radius: 14px; }

/* ---------- News articles ---------- */
.iamx-article { max-width: 920px; margin: 0 auto; padding: 30px 34px !important; scroll-margin-top: 130px; border-top: 4px solid var(--iam-teal) !important; }
.iamx-article:hover { transform: none !important; }
.iamx-artmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.iamx-artmeta .iamx-badge { margin: 0 !important; }
.iamx-artdate { font-size: .9rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--iam-gold-ink); }
.iamx-article h2 { margin: 4px 0 14px !important; }
.iamx-article ul { padding-left: 1.2em; }
.iamx-article li { margin-bottom: .45em; }
#dates { max-width: 920px; scroll-margin-top: 130px; }
@media (max-width: 640px) { .iamx-article { padding: 22px 18px !important; } }

/* ---------- Partners ---------- */
.iamx-partner { display: flex; flex-direction: column; }
.iamx-plogo { height: 84px; display: flex; align-items: center; margin-bottom: 14px; }
.iamx-plogo img { max-height: 72px; max-width: 220px; width: auto; object-fit: contain; }
.iamx-ptype { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--iam-gold-ink); margin-bottom: 6px; }

.iamx-article .iamx-links { justify-content: flex-start !important; margin-top: 10px; }
.iamx-allnews:hover { background: #003b3d !important; color: #fff !important; }

/* ---------- Touch screens: comfortable tap targets in the footer ---------- */
@media (max-width: 1024px) {
  footer a { display: inline-block; padding-top: 7px; padding-bottom: 7px; }
}

/* ---------- Home stats strip and recognition band on tablets and phones ---------- */
@media (max-width: 960px) {
  .iamx-stats-strip .s-wrap { display: flex !important; flex-wrap: wrap; justify-content: center; }
  .iamx-stats-strip .s-item { flex: 0 0 33.333%; }
}
@media (max-width: 560px) {
  .iamx-stats-strip .s-item { flex-basis: 50%; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .iamx-recband .rb-grid { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 18px !important; }
  .iamx-recband .rb-grid > * { flex: 0 1 calc(50% - 12px); max-width: calc(50% - 12px); }
}

/* ---------- Data tables become labelled cards on phones ---------- */
@media (max-width: 640px) {
  .iamx-table.iamx-stack { display: block; white-space: normal; border: 0; box-shadow: none; background: transparent; overflow: visible; }
  .iamx-table.iamx-stack thead, .iamx-table.iamx-stack tr:has(> th) { display: none !important; }
  .iamx-table.iamx-stack tbody, .iamx-table.iamx-stack tr { display: block; }
  .iamx-table.iamx-stack tr { background: #fff; border: 1px solid var(--iam-line); border-top: 3px solid var(--iam-teal); border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0, 81, 84, .05); }
  .iamx-table.iamx-stack td { display: block; padding: 6px 0 !important; border: 0 !important; background: transparent !important; }
  .iamx-table.iamx-stack td[data-label]::before { content: attr(data-label); display: block; font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--iam-gold-ink); margin-bottom: 2px; }
  .iamx-table.iamx-stack td:first-child { font-weight: 700; color: var(--iam-teal); }
}
