:root {
  --brand-blue: #004AAD;
  --brand-blue-2: #2B73C1;
  --brand-blue-3: #3492E8;
  --brand-blue-accent: #007CC1;
  --brand-blue-dark: #003A7A;
  --text-dark: #16324F;
  --text-body: #41576D;
  --bg: #F7FBFF;
  --bg-soft: #EEF5FC;
  --border: #C9D9EA;
  --footer: #003A7A;
  --footer-dark: #002E61;
  --shadow: 0 10px 30px rgba(0, 74, 173, 0.10);
  --radius: 18px;
  --max: 1180px;
  --section-blue-1: #F7FBFF;
  --section-blue-2: #EEF5FC;
  --section-blue-3: #E7F0FB;
  --section-blue-4: #DFECFB;
  --section-blue-5: #D7E8FB;
  --section-blue-6: #CFE2F8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-blue-dark); }

body.section-tinted main { background: var(--bg); }
main > section,
main > .hero,
main > .case-hero {
  position: relative;
  border-top: 1px solid rgba(0, 58, 122, 0.12);
}
main > :first-child { border-top: 0; }
main > section:nth-of-type(1),
main > .hero:nth-of-type(1),
main > .case-hero:nth-of-type(1) { background: var(--section-blue-1); }
main > section:nth-of-type(2),
main > .hero:nth-of-type(2),
main > .case-hero:nth-of-type(2) { background: var(--section-blue-2); }
main > section:nth-of-type(3),
main > .hero:nth-of-type(3),
main > .case-hero:nth-of-type(3) { background: var(--section-blue-3); }
main > section:nth-of-type(4),
main > .hero:nth-of-type(4),
main > .case-hero:nth-of-type(4) { background: var(--section-blue-4); }
main > section:nth-of-type(5),
main > .hero:nth-of-type(5),
main > .case-hero:nth-of-type(5) { background: var(--section-blue-5); }
main > section:nth-of-type(6),
main > section:nth-of-type(n+7),
main > .hero:nth-of-type(6),
main > .case-hero:nth-of-type(6) { background: var(--section-blue-6); }
.hero {
  border-bottom: 1px solid rgba(0, 58, 122, 0.12);
}
.case-hero {
  border-bottom: 1px solid rgba(0, 58, 122, 0.12);
}
.section-soft { border-top: 1px solid rgba(0, 58, 122, 0.12); border-bottom: 1px solid rgba(0, 58, 122, 0.12); }
.hero-card, .panel, .card, .quote-panel, .kpi, .pdf-preview, .article-feature-image {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(4px);
}
.video-placeholder, .hero-animation-frame, .news-thumb {
  background: linear-gradient(135deg, #eff6fd, #dceafb);
}
.cta-banner {
  background: linear-gradient(135deg, #edf5ff, #dceafb);
}
.nav { background: transparent; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text-dark); }
.logo-badge {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-2));
  color: white; display:flex; align-items:center; justify-content:center; font-weight:700; letter-spacing: .12em;
  box-shadow: var(--shadow);
}
.brand-title { font-weight: 700; color: var(--text-dark); }
.brand-sub { font-size: 12px; color: #6b7280; }
.nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.nav a { color: var(--text-dark); font-size: 15px; }
.nav .button { color: #fff; }
.nav .button:hover { color: #fff; }
.nav a.active { color: var(--brand-blue); font-weight: 700; }
.button, .button-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 20px; border-radius: 999px; font-weight: 700; border: 1px solid transparent;
}
.button { background: var(--brand-blue); color: #fff; }
.button:hover { background: var(--brand-blue-dark); color:#fff; }
.button-secondary { background: #fff; border-color: var(--brand-blue); color: var(--brand-blue); }
.button-secondary:hover { border-color: var(--brand-blue-dark); color: var(--brand-blue-dark); }
.hero {
  padding: 72px 0 56px;
}
.hero-grid { display:grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--brand-blue); text-transform: uppercase; letter-spacing: .18em; font-size: 16px; font-weight: 700; }
h1, h2, h3 { color: var(--text-dark); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(38px, 5vw, 62px); }
h2 { font-size: clamp(30px, 4vw, 42px); }
h3 { font-size: 24px; }
.lead { font-size: 19px; color: var(--text-body); max-width: 760px; }
.hero-card, .panel, .card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-card { padding: 16px; }
.video-placeholder {
  border-radius: 14px; min-height: 420px; display:flex; align-items:center; justify-content:center; text-align:center;
  background: linear-gradient(135deg, #e9f2fb, #f5f7fa); color: var(--text-dark); padding: 28px;
}
.section { padding: 72px 0; }
.section-soft { border-top: 1px solid rgba(0, 58, 122, 0.12); border-bottom: 1px solid rgba(0, 58, 122, 0.12); }
.section-head { display:flex; align-items:end; justify-content:space-between; gap: 20px; margin-bottom: 28px; }
.grid-2 { display:grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.card { padding: 26px; }
.badge { display:inline-block; padding:7px 12px; border-radius:999px; font-size:12px; font-weight:700; background:#eaf3fb; color: var(--brand-blue); }
.muted { color: #6b7280; }
.list-clean { margin: 16px 0 0; padding-left: 18px; }
.cta-banner {
  padding: 36px; background: linear-gradient(135deg, #edf5fc, #f5f7fa); border:1px solid var(--border); border-radius: 24px;
  display:flex; align-items:center; justify-content:space-between; gap: 24px;
}
.cta-banner .button { text-align: center; justify-content: center; }
.footer { background: linear-gradient(180deg, var(--footer), var(--footer-dark)); color: rgba(255,255,255,.85); margin-top: 40px; }
.footer a { color: rgba(255,255,255,.92); }
.footer a:hover { color: #fff; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 24px; padding: 46px 0 28px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 18px 0 28px; display:flex; justify-content:space-between; gap: 16px; flex-wrap: wrap; }
.kpi { padding: 18px; border-radius: 16px; background:#fff; border:1px solid var(--border); }
.support-grid .kpi { color: var(--text); font-weight: 600; border-color: #bfd2e6; box-shadow: 0 8px 18px rgba(31,94,156,0.06); }
.support-grid .kpi:nth-child(1) { background: linear-gradient(135deg, #eef5ff 0%, #ffffff 100%); }
.support-grid .kpi:nth-child(2) { background: linear-gradient(135deg, #eaf8f5 0%, #ffffff 100%); }
.support-grid .kpi:nth-child(3) { background: linear-gradient(135deg, #f3f1ff 0%, #ffffff 100%); }
.support-grid .kpi:nth-child(4) { background: linear-gradient(135deg, #eef9ff 0%, #ffffff 100%); }
.input, select, textarea {
  width:100%; padding: 13px 14px; border-radius: 14px; border:1px solid #c9d8e6; font: inherit; color: var(--text-dark); background:#fff;
}
label { font-weight:700; font-size:14px; color: var(--text-dark); display:block; margin-bottom: 8px; }
.form-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.form-stack > div { margin-bottom: 18px; }
.small { font-size: 14px; }
.case-hero { padding: 58px 0 44px; }
.case-content { display:grid; grid-template-columns: 1.05fr .95fr; gap: 24px; }

.contact-bottom-cards { display:grid; grid-template-columns: repeat(2, minmax(280px, 360px)); justify-content: center; gap: 24px; }
.quote-panel { padding: 20px; background:#fff; border:1px solid var(--border); border-radius: var(--radius); }
.link-row { display:flex; gap: 12px; flex-wrap: wrap; }
.home-page .hero .link-row { margin-top: 26px; }
@media (max-width: 980px) {
  .hero-grid, .grid-4, .grid-3, .grid-2, .case-content, .footer-grid { grid-template-columns: 1fr; }
  .contact-bottom-cards { grid-template-columns: 1fr; }
  .section-head, .cta-banner, .nav-wrap { align-items:flex-start; flex-direction: column; }
  .nav { gap: 14px; }
  .form-grid { grid-template-columns: 1fr; }
}


.brand-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 12px;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.footer-logo img {
  height: 38px;
  width: auto;
  display: block;
}

@media (max-width: 640px) {
  .brand-logo img { height: 38px; }
  .footer-logo img { height: 34px; }
}

/* Latest packaging adjustments */
.contact-bottom-cards{display:grid;grid-template-columns:repeat(2,minmax(280px,380px));gap:24px;justify-content:center;justify-items:stretch}
@media (max-width: 800px){.contact-bottom-cards{grid-template-columns:1fr;max-width:520px;margin:0 auto}}


.founder-card img.founder-photo {
  width: 180px;
  height: 180px;
  display: block;
  margin: 0 auto 18px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 6px solid #ffffff;
  outline: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

.founder-card {
  text-align: left;
}

@media (max-width: 640px) {
  .founder-card img.founder-photo {
    width: 150px;
    height: 150px;
  }
}


.hero-animation-card { padding: 0; overflow: hidden; }
.hero-animation-frame { border-radius: 14px; min-height: 420px; background: linear-gradient(135deg, #e9f2fb, #f5f7fa); overflow: hidden; }
.hero-animation-frame iframe { width: 100%; height: 420px; border: 0; display: block; background: transparent; }
@media (max-width: 640px) { .hero-animation-frame { min-height: 360px; } .hero-animation-frame iframe { height: 360px; } }


.about-cta-banner .button {
  min-width: 170px;
  justify-content: center;
  text-align: center;
}

.hero-animation-link {
  display: block;
  color: inherit;
}

.hero-animation-link:hover {
  color: inherit;
}

.hero-animation-link iframe {
  pointer-events: none;
}


.news-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.news-card { display:flex; flex-direction:column; height:100%; }
.news-thumb {
  aspect-ratio: 16 / 9; border-radius: 14px; overflow:hidden; border:1px solid var(--border);
  background: linear-gradient(135deg, #e9f2fb, #f5f7fa); margin-bottom: 18px;
}
.news-thumb img { width:100%; height:100%; object-fit: cover; object-position: top center; }
.news-thumb { display:block; }
.news-thumb-link { display:block; }
.news-thumb-link:hover img { transform: scale(1.02); }
.news-thumb img { transition: transform .2s ease; }
.article-feature-image { border-radius: 16px; overflow:hidden; border:1px solid var(--border); margin-bottom: 18px; background:#fff; box-shadow: var(--shadow); }
.article-feature-image img { width:100%; height:auto; display:block; }
.news-meta { color:#6b7280; font-size:14px; margin: 8px 0 10px; }
.news-summary { flex:1; }
.article-layout { display:grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items:start; }
.article-body p { margin: 0 0 16px; }
.article-body h3 { margin: 26px 0 12px; font-size: 24px; }
.article-body ul { margin: 0 0 18px; padding-left: 20px; }
.article-aside { position: sticky; top: 100px; }
.pdf-preview { border:1px solid var(--border); border-radius: 16px; overflow: hidden; background:#fff; box-shadow: var(--shadow); }
.pdf-preview img { width:100%; height:auto; display:block; }
.pdf-actions { display:flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.pdf-embed { width:100%; height:900px; border:1px solid var(--border); border-radius: 16px; background:#fff; }
.insight-hero-note { margin-top: 10px; color: #6b7280; font-size: 15px; }
@media (max-width: 980px) {
  .news-grid, .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .pdf-embed { height: 640px; }
}


.support-grid {
  max-width: 760px;
  margin: 22px auto 0;
  justify-content: center;
}
.support-grid .kpi {
  text-align: center;
}
.linkedin-banner-link {
  display: inline-flex;
  align-items: center;
}
.linkedin-banner {
  display: block;
  height: 40px;
  width: auto;
  border-radius: 10px;
}
.footer .linkedin-banner {
  height: 34px;
}
.contact-bottom-cards .linkedin-banner {
  height: 42px;
}
.hero .lead:empty { display:none; }

.news-card-image{display:block;overflow:hidden;border-radius:18px;}
.news-card-image img{display:block;width:100%;height:auto;transition:transform .25s ease;}
.news-card-image:hover img{transform:scale(1.02);}


.nav-toggle { display:none; border:1px solid var(--border); background:#fff; color:var(--text-dark); border-radius:999px; padding:10px 14px; font:inherit; font-weight:700; box-shadow: var(--shadow); }
.trust-grid .card { padding: 22px; }
.trust-grid h3 { font-size: 20px; margin-bottom: 10px; }
@media (max-width: 980px) {
  .nav-toggle { display:inline-flex; align-items:center; justify-content:center; }
  .nav { display:none; width:100%; background:#fff; border:1px solid var(--border); border-radius:18px; padding:14px; box-shadow: var(--shadow); }
  .nav.nav-open { display:flex; flex-direction:column; align-items:stretch; }
  .nav a { width:100%; }
  .nav .button { text-align:center; }
}

/* Homepage hero override */
body.home-page main > .hero:first-of-type { background: #ffffff; }


/* Services page CTA alignment */
#em-transformation,
#mga-advisory {
  display: flex;
  flex-direction: column;
}

#em-transformation .button,
#mga-advisory .button {
  margin-top: auto;
  align-self: flex-start;
}


.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  max-width: min(420px, calc(100vw - 24px));
}

.cookie-consent__inner {
  background: rgba(10, 36, 74, 0.92);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  backdrop-filter: blur(8px);
}

.cookie-consent__copy {
  flex: 1 1 auto;
}

.cookie-consent__copy strong {
  display: none;
}

.cookie-consent__copy p {
  margin: 0;
  color: rgba(255,255,255,0.86);
  font-size: 12.5px;
  line-height: 1.45;
}

.cookie-consent__copy a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-consent__button {
  text-align: center;
  justify-content: center;
  min-width: 0;
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 999px;
}

.cookie-consent__button.button-secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.26);
}

.cookie-consent--hidden {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

@media (max-width: 720px) {
  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .cookie-consent__inner {
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }

  .cookie-consent__actions {
    margin-left: auto;
  }

  .cookie-consent__button {
    padding: 8px 10px;
  }
}
