/* EFTX public portal v6 — editorial polish, RF Academy and resilient responsive layout. */

:root {
  --mk-container: 1440px;
  --mk-v6-ink: #06172d;
  --mk-v6-navy: #041c4d;
  --mk-v6-blue: #066bc7;
  --mk-v6-cyan: #12bfe9;
  --mk-v6-cloud: #f4f8fc;
  --mk-v6-line: #d8e4ee;
  --mk-v6-card-shadow: 0 18px 55px rgba(6, 32, 70, .1);
}

/* Content remains usable when animation observers are delayed or unavailable. */
[data-reveal],
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.mk-header {
  position: sticky;
  top: 0;
  z-index: 150;
  box-shadow: 0 8px 28px rgba(2, 20, 49, .1);
}

.mk-topbar {
  background: linear-gradient(90deg, #031a49, #052e70);
}

.mk-topbar-inner {
  min-height: 40px;
}

.mk-navbar {
  position: relative;
  border-bottom: 0;
  background: rgba(255, 255, 255, .985);
}

.mk-navbar-inner,
.mk-menu,
.mk-menu > a,
.mk-menu-item > button {
  min-height: 88px;
}

.mk-menu > a,
.mk-menu-item > button {
  position: relative;
  padding-inline: 14px;
}

.mk-menu > a::after,
.mk-menu-item > button::after {
  position: absolute;
  right: 14px;
  bottom: 17px;
  left: 14px;
  height: 2px;
  border-radius: 2px;
  content: "";
  background: linear-gradient(90deg, var(--mk-v6-blue), var(--mk-v6-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.mk-menu > a:hover::after,
.mk-menu-item > button:hover::after,
.mk-menu-item > button[aria-expanded="true"]::after {
  transform: scaleX(1);
}

.mk-quote-button {
  min-height: 48px;
  padding-inline: 22px;
  border-radius: 7px;
}

.mk-hero-v5,
.mk-hero-v5 .mk-hero-stage,
.mk-hero-v5 .mk-hero-slide,
.mk-hero-banner-content {
  min-height: clamp(570px, calc(100vh - 220px), 660px);
}

.mk-hero-v5 .mk-hero-copy h1,
.mk-hero-v5 .mk-hero-title {
  font-size: clamp(3.1rem, 5.1vw, 5.5rem);
}

.mk-hero-banner-media img {
  filter: saturate(.9) contrast(1.04);
}

.mk-hero-banner-overlay {
  background:
    linear-gradient(90deg, rgba(1, 13, 38, .98) 0%, rgba(3, 26, 70, .92) 39%, rgba(3, 32, 83, .55) 67%, rgba(1, 14, 40, .18) 100%),
    linear-gradient(0deg, rgba(1, 13, 38, .72), transparent 48%);
}

.mk-hero-data-card {
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(7, 65, 139, .88), rgba(3, 24, 61, .8));
}

.mk-division-nav .mk-container {
  width: min(100%, var(--mk-container));
}

.mk-division-nav a {
  min-height: 96px;
}

.mk-section {
  padding-block: clamp(72px, 7vw, 108px);
}

.mk-section-head {
  margin-bottom: 38px;
}

.mk-section-head h2,
.mk-ret-copy h2,
.mk-tools-head h2,
.mk-company h2,
.mk-cta h2,
.mk-academy h2 {
  text-wrap: balance;
}

.mk-business-card,
.mk-series-card,
.mk-service-grid article,
.mk-custom-grid article,
.mk-document-grid article {
  border-color: var(--mk-v6-line);
  border-radius: 16px;
}

.mk-series-card,
.mk-document-grid article,
.mk-service-grid article {
  box-shadow: 0 8px 30px rgba(6, 32, 70, .055);
}

.mk-series-card:hover,
.mk-document-grid article:hover,
.mk-service-grid article:hover {
  border-color: rgba(6, 107, 199, .35);
  box-shadow: var(--mk-v6-card-shadow);
}

.mk-series-media {
  min-height: 285px;
  background:
    radial-gradient(circle at 76% 18%, rgba(18, 191, 233, .1), transparent 32%),
    linear-gradient(145deg, #f9fbfd, #eaf1f7);
}

.mk-series-media img {
  width: 100%;
  height: 285px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.mk-series-media > span {
  box-shadow: 0 7px 20px rgba(6, 32, 70, .12);
}

.mk-service-grid article {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding-top: 190px;
}

.mk-service-grid article figure {
  position: absolute;
  inset: 0 0 auto;
  height: 170px;
  margin: 0;
  overflow: hidden;
  background: #eaf1f7;
}

.mk-service-grid article figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.mk-service-grid article:hover figure img {
  transform: scale(1.04);
}

.mk-service-grid article > span {
  position: relative;
  z-index: 2;
  margin-top: -28px;
  border: 5px solid #fff;
}

.mk-service-grid h3 {
  margin-top: 15px;
}

.mk-tools-grid article {
  min-height: 390px;
  padding-top: 185px;
}

.mk-tools-grid article figure {
  position: absolute;
  inset: 0 0 auto;
  height: 158px;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.mk-tools-grid article figure::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 56%, rgba(2, 17, 48, .72));
}

.mk-tools-grid article figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mk-tools-grid > article > i {
  position: relative;
  z-index: 2;
}

.mk-tools-grid h3 {
  margin-top: 18px;
}

.mk-tools-grid a {
  bottom: 22px;
}

.mk-academy {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(21, 207, 236, .24), transparent 27%),
    radial-gradient(circle at 8% 100%, rgba(10, 95, 196, .35), transparent 34%),
    #031834;
}

.mk-academy::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .12;
  background-image:
    linear-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent, #000 45%);
  pointer-events: none;
}

.mk-academy-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(520px, 1.15fr);
  align-items: center;
  gap: clamp(52px, 7vw, 110px);
}

.mk-academy-copy h2 {
  margin: 17px 0 20px;
  color: #fff;
  font-size: clamp(2.65rem, 4.2vw, 4.7rem);
  line-height: .98;
  letter-spacing: -.052em;
}

.mk-academy-copy > p {
  max-width: 690px;
  color: rgba(238, 248, 255, .72);
}

.mk-academy-copy ul {
  display: grid;
  gap: 4px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.mk-academy-copy li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 15px;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.mk-academy-copy li > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(90, 221, 249, .3);
  border-radius: 11px;
  color: #65def7;
  background: rgba(10, 116, 189, .18);
}

.mk-academy-copy li strong,
.mk-academy-copy li span {
  display: block;
}

.mk-academy-copy li strong {
  color: #fff;
  font-size: .92rem;
}

.mk-academy-copy li span {
  color: rgba(238, 248, 255, .58);
  font-size: .79rem;
  line-height: 1.5;
}

.mk-academy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mk-academy-visual {
  position: relative;
  min-height: 590px;
}

.mk-academy-visual figure {
  position: absolute;
  inset: 18px 0 110px 64px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(124, 222, 255, .25);
  border-radius: 22px;
  background: #081c38;
  box-shadow: 0 36px 100px rgba(0, 0, 0, .38);
}

.mk-academy-visual figure::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 48%, rgba(2, 16, 40, .72));
}

.mk-academy-visual figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mk-academy-path {
  position: absolute;
  right: 34px;
  bottom: 26px;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(129, 222, 255, .24);
  border-radius: 14px;
  background: rgba(5, 31, 70, .92);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .3);
  backdrop-filter: blur(16px);
}

.mk-academy-path span {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px;
  color: #65def7;
  background: rgba(255, 255, 255, .035);
  font: 800 .65rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mk-academy-path strong {
  margin-top: 7px;
  color: #fff;
  font: 800 .72rem/1.3 Inter, sans-serif;
}

.mk-academy-visual aside {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  padding: 20px;
  border: 1px solid rgba(134, 228, 255, .3);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, rgba(8, 104, 183, .95), rgba(3, 35, 81, .94));
  box-shadow: 0 20px 55px rgba(0, 0, 0, .28);
}

.mk-academy-visual aside small,
.mk-academy-visual aside strong,
.mk-academy-visual aside span {
  display: block;
}

.mk-academy-visual aside small {
  color: #65def7;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mk-academy-visual aside strong {
  margin-block: 6px;
  font-size: 1.2rem;
}

.mk-academy-visual aside span {
  color: rgba(255, 255, 255, .62);
  font-size: .7rem;
}

.mk-stories {
  background: #fff;
}

.mk-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mk-stories-grid article {
  overflow: hidden;
  border: 1px solid var(--mk-v6-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 32px rgba(6, 32, 70, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mk-stories-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 107, 199, .35);
  box-shadow: var(--mk-v6-card-shadow);
}

.mk-story-media {
  display: block;
  height: 250px;
  overflow: hidden;
  background: #eaf1f7;
}

.mk-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.mk-stories-grid article:hover .mk-story-media img {
  transform: scale(1.04);
}

.mk-stories-grid article > div {
  padding: 26px;
}

.mk-stories-grid article > div > span {
  color: var(--mk-v6-blue);
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.mk-stories-grid h3 {
  margin: 10px 0;
  color: var(--mk-v6-ink);
  font-size: 1.38rem;
  line-height: 1.16;
}

.mk-stories-grid p {
  color: var(--mk-muted);
  font-size: .88rem;
}

.mk-stories-grid article > div > a,
.mk-news-portal > a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--mk-v6-blue);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mk-news-portal {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 20px;
  padding: 18px 24px;
  border: 1px solid #cfe0ee;
  border-radius: 14px;
  background: var(--mk-v6-cloud);
}

.mk-news-portal > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mk-news-portal > div > i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--mk-v6-blue), var(--mk-v6-cyan));
}

.mk-news-portal strong,
.mk-news-portal span {
  display: block;
}

.mk-news-portal strong {
  color: var(--mk-v6-ink);
}

.mk-news-portal span {
  color: var(--mk-muted);
  font-size: .82rem;
}

.mk-document-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mk-document-grid article {
  min-height: 520px;
  padding: 0 22px 22px;
  overflow: hidden;
}

.mk-document-grid article > figure {
  height: 245px;
  margin: 0 -22px 20px;
  overflow: hidden;
  border-bottom: 1px solid var(--mk-v6-line);
  background: linear-gradient(145deg, #f8fafc, #e8eff5);
}

.mk-document-grid article > figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mk-document-grid article > .mk-doc-card-head {
  display: flex;
}

.mk-document-grid small {
  margin-top: 16px;
}

.mk-document-grid h3 {
  font-size: 1.03rem;
}

.mk-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(102deg, #035da9, #08b6df);
}

.mk-cta-media {
  position: absolute;
  inset: 0;
  opacity: .18;
}

.mk-cta-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #035da9 0%, rgba(3, 93, 169, .75) 52%, rgba(8, 182, 223, .6));
}

.mk-cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mk-cta-inner {
  position: relative;
  z-index: 1;
}

.mk-whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 180;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 8px 16px 8px 9px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  color: #fff;
  background: #087c58;
  box-shadow: 0 16px 42px rgba(2, 45, 32, .32);
  transition: transform .18s ease, background .18s ease;
}

.mk-whatsapp-float:hover {
  transform: translateY(-3px);
  background: #086b4e;
}

.mk-whatsapp-float-secondary {
  bottom: 92px;
}

.mk-whatsapp-float > i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #087c58;
  background: #fff;
  font-size: 1.35rem;
}

.mk-whatsapp-float small,
.mk-whatsapp-float strong {
  display: block;
  line-height: 1.15;
}

.mk-whatsapp-float small {
  color: rgba(255, 255, 255, .7);
  font-size: .59rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.mk-whatsapp-float strong {
  margin-top: 3px;
  font-size: .78rem;
}

@media (max-width: 1280px) {
  .mk-menu > a,
  .mk-menu-item > button {
    padding-inline: 10px;
    font-size: .76rem;
  }

  .mk-document-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .mk-navbar-inner {
    min-height: 78px;
  }

  .mk-menu {
    inset: 118px 0 auto;
    height: calc(100vh - 118px);
    min-height: 0;
  }

  .mk-menu > a,
  .mk-menu-item > button {
    min-height: 54px;
  }

  .mk-menu > a::after,
  .mk-menu-item > button::after {
    display: none;
  }

  .mk-academy-layout {
    grid-template-columns: 1fr;
  }

  .mk-academy-copy {
    max-width: 850px;
  }

  .mk-academy-visual {
    min-height: 560px;
  }

  .mk-document-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .mk-hero-v5,
  .mk-hero-v5 .mk-hero-stage,
  .mk-hero-v5 .mk-hero-slide,
  .mk-hero-banner-content {
    min-height: 740px;
  }

  .mk-hero-banner-content {
    align-content: center;
  }

  .mk-stories-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mk-stories-grid article:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
  }

  .mk-stories-grid article:first-child .mk-story-media {
    height: 100%;
    min-height: 330px;
  }
}

@media (max-width: 680px) {
  .mk-topbar-contact a[href^="mailto:"],
  .mk-topbar-actions > span,
  .mk-topbar-actions .mk-divider {
    display: none;
  }

  .mk-topbar-contact {
    gap: 8px;
  }

  .mk-topbar-contact a[href^="tel:"] {
    display: none;
  }

  .mk-topbar-contact a[href*="wa.me"] {
    display: inline-flex;
  }

  .mk-navbar-inner {
    min-height: 70px;
    gap: 9px;
  }

  .mk-menu {
    inset: 110px 0 auto;
    height: calc(100vh - 110px);
  }

  .mk-hero-v5,
  .mk-hero-v5 .mk-hero-stage,
  .mk-hero-v5 .mk-hero-slide,
  .mk-hero-banner-content {
    min-height: 760px;
  }

  .mk-hero-v5 .mk-hero-copy h1,
  .mk-hero-v5 .mk-hero-title {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }

  .mk-hero-data-card {
    width: 100%;
  }

  .mk-division-nav a {
    min-height: 82px;
  }

  .mk-series-media,
  .mk-series-media img {
    height: 250px;
    min-height: 250px;
  }

  .mk-academy-copy h2 {
    font-size: clamp(2.2rem, 11vw, 3.25rem);
  }

  .mk-academy-actions {
    display: grid;
  }

  .mk-academy-visual {
    min-height: 500px;
  }

  .mk-academy-visual figure {
    inset: 35px 0 150px;
  }

  .mk-academy-visual aside {
    width: 176px;
    padding: 15px;
  }

  .mk-academy-path {
    right: 0;
    bottom: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mk-academy-path span {
    min-height: 68px;
  }

  .mk-academy-path span:last-child {
    grid-column: 1 / -1;
  }

  .mk-stories-grid,
  .mk-stories-grid article:first-child {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mk-stories-grid article:first-child {
    grid-column: auto;
  }

  .mk-story-media,
  .mk-stories-grid article:first-child .mk-story-media {
    height: 230px;
    min-height: 0;
  }

  .mk-news-portal {
    align-items: flex-start;
    flex-direction: column;
  }

  .mk-document-grid {
    grid-template-columns: 1fr;
  }

  .mk-document-grid article {
    min-height: 500px;
  }

  .mk-document-grid article > figure {
    height: 260px;
  }

  .mk-whatsapp-float {
    right: 13px;
    bottom: 13px;
    width: 54px;
    min-height: 54px;
    padding: 7px;
  }

  .mk-whatsapp-float > i {
    width: 38px;
    height: 38px;
  }

  .mk-whatsapp-float > span {
    display: none;
  }

  .mk-whatsapp-float-secondary {
    bottom: 75px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mk-series-card:hover,
  .mk-stories-grid article:hover,
  .mk-whatsapp-float:hover {
    transform: none;
  }
}
