:root {
  --microtech-dark: #2f2f2f;
  --microtech-dark-2: #1f1f1f;
  --microtech-gray: #666666;
  --microtech-gray-2: #8a8a8a;
  --microtech-gray-light: #ececec;
  --microtech-light: #f5f5f5;
  --microtech-white: #ffffff;
  --microtech-yellow: #e8ea22;
  --microtech-yellow-dark: #d5d71a;
  --microtech-blue-link: #3046c7;

  --md-primary-fg-color: #ffffff;
  --md-primary-bg-color: #2f2f2f;
  --md-accent-fg-color: #e8ea22;
}

/* =========================================================
   BASE GERAL
========================================================= */

html,
body {
  background: #ffffff;
  overflow-x: hidden !important;
}

.md-main {
  background: #ffffff;
}

.md-grid {
  max-width: 100% !important;
}

.md-main__inner {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.md-content {
  max-width: 100% !important;
  width: 100% !important;
}

.md-content__inner {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.md-sidebar--primary,
.md-sidebar--secondary {
  display: none !important;
}

.headerlink {
  display: none !important;
}

/* =========================================================
   TOPO PADRÃO MICROTECH
========================================================= */

.md-header {
  background: #ffffff !important;
  color: var(--microtech-dark) !important;
  box-shadow: none !important;
  border-bottom: 1px solid #eeeeee;
  height: 104px;
  position: relative;
  z-index: 100;
}

.md-header *,
.md-header__title,
.md-header__topic,
.md-header__button {
  color: var(--microtech-dark) !important;
}

.md-header__inner {
  max-width: 1180px;
  height: 104px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid !important;
  grid-template-columns: 260px 1fr 250px;
  align-items: center;
  gap: 24px;
}

.md-header__button.md-logo {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  width: 260px;
  height: 104px;
  padding: 0;
  margin: 0;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  width: 210px !important;
  max-width: 210px !important;
  height: auto !important;
  max-height: 64px !important;
  object-fit: contain !important;
  display: block !important;
}

.md-header__title {
  display: none !important;
}

.md-search {
  width: 250px;
  justify-self: end;
}

.md-search__form {
  background: #f4f4f4 !important;
  border-radius: 999px !important;
  height: 42px;
}

.md-search__input {
  color: var(--microtech-dark) !important;
  font-weight: 500;
}

.md-search__input::placeholder {
  color: #999999 !important;
}

/* =========================================================
   MENU
========================================================= */

.md-tabs {
  background: #ffffff !important;
  border-bottom: 1px solid #eeeeee;
}

.md-tabs__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.md-tabs__list {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 42px;
}

.md-tabs__link {
  color: #777777 !important;
  font-weight: 800;
  font-size: 0.70rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  opacity: 1 !important;
  text-decoration: none !important;
}

.md-tabs__link--active,
.md-tabs__link:hover {
  color: var(--microtech-dark) !important;
  text-decoration: none !important;
}

body.microtech-menu-ready .md-tabs {
  display: none !important;
}

.microtech-top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 104px;
}

.microtech-top-nav .md-tabs__list {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 42px;
  height: 104px;
  margin: 0;
  padding: 0;
  overflow: visible !important;
}

.microtech-top-nav .md-tabs__item {
  height: 104px;
  display: flex;
  align-items: center;
  position: relative;
  flex: 0 0 auto;
}

.microtech-top-nav .md-tabs__link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 104px;
  color: #777777 !important;
  font-weight: 800;
  font-size: 0.70rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  opacity: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap;
  text-decoration: none !important;
  line-height: 1;
}

.microtech-top-nav .md-tabs__link--active,
.microtech-top-nav .md-tabs__link:hover {
  color: var(--microtech-dark) !important;
  text-decoration: none !important;
}

.microtech-top-nav .md-tabs__item--active::after {
  content: "";
  position: absolute;
  height: 4px;
  background: var(--microtech-yellow);
  left: 0;
  right: 0;
  bottom: 0;
}

/* =========================================================
   TIPOGRAFIA
========================================================= */

.md-typeset {
  color: var(--microtech-dark);
  font-size: 0.92rem;
  line-height: 1.75;
}

.md-typeset h1 {
  color: #767676;
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 1.8rem;
}

.md-typeset h2 {
  color: var(--microtech-dark);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 2.3rem;
  margin-bottom: 1rem;
  border-bottom: none;
}

.md-typeset h3 {
  color: var(--microtech-dark);
  font-weight: 800;
}

.md-typeset p {
  color: var(--microtech-dark);
}

.md-typeset a {
  color: var(--microtech-blue-link);
  font-weight: 600;
  text-decoration: none;
}

.md-typeset a:hover {
  color: #1d2d99;
  text-decoration: underline;
}

/* =========================================================
   SEÇÕES GERAIS
========================================================= */

.home-section,
.client-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 48px 0;
}

.home-section h1,
.client-page h1 {
  margin-top: 0;
}

.section-intro {
  max-width: 980px;
  margin: 0 0 8px 0;
}

.section-intro p {
  color: #444444;
  font-size: 0.98rem;
}

/* =========================================================
   BOXES
========================================================= */

.scope-box {
  background: #fafafa;
  border: 1px solid #efefef;
  border-left: 6px solid var(--microtech-yellow);
  padding: 22px 26px;
  margin: 28px 0 34px 0;
  box-shadow: 0 10px 26px rgba(0,0,0,0.04);
  border-radius: 0 14px 14px 0;
}

.scope-box strong {
  color: var(--microtech-dark);
}

.highlight-box {
  background: #fcfcfc;
  border: 1px solid #ededed;
  border-radius: 18px;
  padding: 26px;
  margin: 30px 0;
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}

.highlight-box h3 {
  margin-top: 0;
}

.highlight-list {
  margin: 0;
  padding-left: 1.2rem;
}

.highlight-list li {
  margin-bottom: 0.45rem;
}

/* =========================================================
   CARDS GENÉRICOS
========================================================= */

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 22px;
  margin-top: 30px;
}

.portal-card {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-top: 5px solid var(--microtech-yellow);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
  min-height: 190px;
}

.portal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0,0,0,0.08);
}

.portal-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: var(--microtech-dark);
  font-weight: 800;
}

.portal-card p {
  color: #555555;
  margin-bottom: 0;
}

.portal-card a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 800;
}

/* =========================================================
   HERO DO CLIENTE
========================================================= */

.client-hero {
  background: linear-gradient(135deg, #f8f8f8, #ffffff);
  border: 1px solid #efefef;
  border-left: 6px solid var(--microtech-yellow);
  border-radius: 0 18px 18px 0;
  padding: clamp(24px, 3vw, 34px);
  margin: 10px 0 26px 0;
  box-shadow: 0 12px 28px rgba(0,0,0,0.04);
}

.client-hero h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.client-hero p {
  margin-bottom: 0;
  color: #4b4b4b;
}

/* =========================================================
   CARDS RESUMO PADRÃO
========================================================= */

.client-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin: 26px 0 38px 0;
}

.client-summary-card {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-top: 5px solid var(--microtech-yellow);
  border-radius: 16px;
  padding: 20px 18px;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0,0,0,0.05);
}

.client-summary-card .title {
  display: block;
  font-size: 0.82rem;
  color: #555555;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.client-summary-card .value {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--microtech-yellow);
  color: #111111 !important;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none !important;
}

/* =========================================================
   NOVO PADRÃO: BLOCOS CLICÁVEIS DE INFRAESTRUTURA
========================================================= */

.infra-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  margin: 26px 0 38px 0;
}

.infra-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  padding: 24px 18px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #ececec;
  border-top: 5px solid var(--microtech-yellow);
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.05);
  text-decoration: none !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
}

.infra-link-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 30px rgba(0,0,0,0.10);
  border-color: #dfdfdf;
  text-decoration: none !important;
}

.infra-link-card:focus,
.infra-link-card:active {
  text-decoration: none !important;
  outline: none;
}

.infra-link-card .infra-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #fafafa;
  font-size: 1.45rem;
  line-height: 1;
  transition: transform 0.22s ease, background 0.22s ease;
}

.infra-link-card:hover .infra-icon {
  transform: scale(1.10);
  background: #f4f4f4;
}

.infra-link-card .infra-title {
  display: block;
  color: #4f5660;
  font-size: 0.98rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.45;
  text-decoration: none !important;
}

.infra-link-card:hover .infra-title {
  color: #2f2f2f;
}

/* =========================================================
   BADGES
========================================================= */

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-critica {
  background: #2f2f2f;
  color: #ffffff;
}

.badge-alta {
  background: #ffe0e0;
  color: #a30000;
}

.badge-media {
  background: #fff4b8;
  color: #6f5d00;
}

.badge-baixa {
  background: #e8f0f4;
  color: #333333;
}

.badge-info {
  background: var(--microtech-yellow);
  color: #111111;
}

/* =========================================================
   TABELAS
========================================================= */

.md-typeset table:not([class]) {
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  border-radius: 16px;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background: var(--microtech-dark);
  color: #ffffff;
  font-weight: 800;
}

.md-typeset table:not([class]) td {
  border-top: 1px solid #eeeeee;
}

/* =========================================================
   ADMONITIONS
========================================================= */

.md-typeset .admonition.warning,
.md-typeset details.warning {
  border-color: var(--microtech-yellow);
}

.md-typeset .warning > .admonition-title,
.md-typeset .warning > summary {
  background-color: rgba(232, 234, 34, 0.18);
}

.md-typeset .warning > .admonition-title::before,
.md-typeset .warning > summary::before {
  background-color: var(--microtech-dark);
}

/* =========================================================
   FOOTER
========================================================= */

.md-footer {
  background: var(--microtech-dark);
}

.md-footer-meta {
  background: var(--microtech-dark-2);
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media screen and (max-width: 960px) {
  .md-header {
    height: auto;
  }

  .md-header__inner {
    height: auto;
    min-height: 74px;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .md-header__button.md-logo {
    width: auto;
  }

  .md-header__button.md-logo img,
  .md-header__button.md-logo svg {
    width: 145px !important;
    max-width: 145px !important;
    height: auto !important;
  }

  .microtech-top-nav {
    height: 74px;
  }

  .microtech-top-nav .md-tabs__list {
    height: 74px;
    gap: 28px;
  }

  .microtech-top-nav .md-tabs__item,
  .microtech-top-nav .md-tabs__link {
    height: 74px;
  }

  .md-search {
    width: 170px;
  }

  .home-section,
  .client-page {
    width: min(100% - 32px, 1180px);
  }
}

@media screen and (max-width: 640px) {
  .md-header__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo search"
      "nav nav";
    padding-top: 10px;
    padding-bottom: 0;
  }

  .md-header__button.md-logo {
    grid-area: logo;
  }

  .md-search {
    grid-area: search;
    width: 140px;
  }

  .microtech-top-nav {
    grid-area: nav;
    height: 50px;
    justify-content: flex-start;
  }

  .microtech-top-nav .md-tabs__list {
    height: 50px;
    justify-content: flex-start;
    gap: 28px;
  }

  .microtech-top-nav .md-tabs__item,
  .microtech-top-nav .md-tabs__link {
    height: 50px;
  }

  .infra-link-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
  }

  .infra-link-card {
    min-height: 150px;
    padding: 20px 14px;
  }

  .infra-link-card .infra-title {
    font-size: 0.90rem;
  }
}