:root {
  --text: #f7f8fa;
  --muted: rgba(241, 243, 246, .82);
  --gold: #d4a52a;
  --page-max: 1590px;
  --content-max: 1400px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { background: #071018; }
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: #071018;
  background-image:
    linear-gradient(180deg, rgba(2, 8, 13, .48) 0%, rgba(2, 8, 13, .66) 48%, rgba(2, 7, 11, .90) 100%),
    radial-gradient(circle at 64% 1%, rgba(202, 126, 36, .17) 0%, rgba(76, 57, 38, .04) 28%, transparent 54%),
    radial-gradient(ellipse at center, transparent 38%, rgba(0, 0, 0, .30) 100%),
    url("./leopoldina-real-v5.jpg");
  background-position: center, center, center, center 52%;
  background-size: cover, cover, cover, cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a { color: inherit; }
img { max-width: 100%; }

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 72px), var(--page-max));
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
}

.main-content {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  align-self: center;
  padding: 22px 0 20px;
}

.intro {
  text-align: center;
  margin-bottom: 20px;
}

.intro-logo {
  display: block;
  width: 150px;
  height: 139px;
  margin: 0 auto 8px;
  object-fit: contain;
  user-select: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .28));
}

.eyebrow {
  margin: 0;
  color: #e0b448;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .045em;
}


.systems-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 18px;
}

.systems-grid > .system-card {
  flex: 0 1 calc((100% - 54px) / 4);
  max-width: calc((100% - 54px) / 4);
}

.system-card {
  --accent: 255,255,255;
  min-height: 190px;
  padding: 20px 21px 17px;
  border: 1px solid rgba(255,255,255,.27);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16,20,23,.83), rgba(9,14,17,.89));
  box-shadow: 0 12px 28px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(3.5px);
  -webkit-backdrop-filter: blur(3.5px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
}

.icon-circle {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(var(--accent), .26);
  border-radius: 50%;
  background: rgba(var(--accent), .07);
  display: grid;
  place-items: center;
}

.icon-circle svg {
  width: 35px;
  height: 35px;
  fill: #fff;
}

.card-copy h2 {
  margin: 4px 0 8px;
  font-size: 20px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.012em;
}

.card-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14.2px;
  line-height: 1.5;
}

.access-button {
  min-height: 43px;
  margin-top: 17px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 6px;
  background: linear-gradient(180deg, #34434f 0%, #2a3741 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, filter .15s ease;
}

.access-button b { font-weight: 800; }

.access-button:hover,
.access-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.10);
  border-color: rgba(255,255,255,.24);
  outline: none;
}

.card-gcm { --accent: 255,255,255; }
.card-acautelamento { --accent: 45,126,191; }
.card-transito { --accent: 47,154,83; }
.card-mulher { --accent: 177,61,134; }
.card-mapa { --accent: 194,139,48; }
.card-patrulha { --accent: 20,135,158; }
.card-dados { --accent: 94,156,205; }

.site-footer {
  min-height: 88px;
  border-top: 1px solid rgba(255,255,255,.20);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 0 50px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-brand div,
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-brand strong { font-size: 14px; }
.footer-brand span,
.footer-info { color: rgba(244,244,244,.79); font-size: 13px; }
.footer-info { align-items: flex-end; text-align: right; line-height: 1.35; }
.restricted { display: flex; align-items: center; gap: 8px; }
.restricted svg { width: 20px; height: 20px; fill: #fff; flex: 0 0 auto; }

@media (max-height: 900px) and (min-width: 1081px) {
  .main-content { padding: 16px 0 14px; }
  .intro { margin-bottom: 19px; }
  .intro-logo { width: 128px; height: 119px; margin-bottom: 5px; }
  .eyebrow { margin-bottom: 9px; font-size: 13px; }
  .system-card { min-height: 174px; padding: 17px 19px 14px; }
  .card-content { grid-template-columns: 58px 1fr; gap: 15px; }
  .icon-circle { width: 58px; height: 58px; }
  .icon-circle svg { width: 32px; height: 32px; }
  .card-copy h2 { font-size: 19px; }
  .card-copy p { font-size: 13.5px; line-height: 1.42; }
  .access-button { min-height: 40px; margin-top: 13px; }
  .site-footer { min-height: 78px; }
  .footer-brand img { width: 43px; height: 43px; }
}

@media (max-height: 800px) and (min-width: 1081px) {
  .main-content { padding: 10px 0 9px; }
  .intro { margin-bottom: 14px; }
  .intro-logo { width: 103px; height: 96px; margin-bottom: 3px; }
  .eyebrow { margin-bottom: 6px; font-size: 12px; }
  .systems-grid { gap: 11px 17px; }
  .system-card { min-height: 160px; padding: 14px 18px 12px; }
  .card-content { grid-template-columns: 52px 1fr; gap: 14px; }
  .icon-circle { width: 52px; height: 52px; }
  .icon-circle svg { width: 29px; height: 29px; }
  .card-copy h2 { margin-top: 3px; margin-bottom: 5px; font-size: 18px; }
  .card-copy p { font-size: 12.7px; line-height: 1.37; }
  .access-button { min-height: 37px; margin-top: 9px; font-size: 12.5px; }
  .site-footer { min-height: 68px; }
  .footer-brand img { width: 38px; height: 38px; }
  .footer-brand strong { font-size: 12px; }
  .footer-brand span, .footer-info { font-size: 11px; }
}

@media (max-width: 1280px) {
  body { background-attachment: scroll; }
  .page-shell {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    overflow: visible;
  }
  .systems-grid > .system-card {
    flex-basis: calc((100% - 36px) / 3);
    max-width: calc((100% - 36px) / 3);
  }
}

@media (max-width: 1100px) {
  body { background-attachment: scroll; }
  .page-shell {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    overflow: visible;
    width: min(calc(100% - 36px), var(--page-max));
  }
  .systems-grid > .system-card {
    flex-basis: calc((100% - 18px) / 2);
    max-width: calc((100% - 18px) / 2);
  }
  .main-content { padding-top: 28px; padding-bottom: 28px; }
}

@media (max-width: 700px) {
  .page-shell { width: min(calc(100% - 22px), var(--page-max)); }
  .main-content { align-self: start; padding: 24px 0 22px; }
  .intro { margin-bottom: 22px; }
  .intro-logo { width: 108px; height: 100px; margin-bottom: 7px; }
  .eyebrow { font-size: 12px; }
  .systems-grid { gap: 14px; }
  .systems-grid > .system-card {
    flex-basis: 100%;
    max-width: 100%;
  }
  .system-card { min-height: 188px; padding: 19px; }
  .card-content { grid-template-columns: 57px 1fr; gap: 14px; }
  .icon-circle { width: 57px; height: 57px; }
  .icon-circle svg { width: 31px; height: 31px; }
  .card-copy h2 { font-size: 19px; }
  .card-copy p { font-size: 14px; }
  .site-footer {
    min-height: auto;
    padding: 24px 12px 28px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
  }
  .footer-brand {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }
  .footer-brand img {
    width: 54px;
    height: 54px;
  }
  .footer-brand div,
  .footer-info {
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .footer-brand strong,
  .footer-brand span,
  .footer-info > span {
    display: block;
    margin-inline: auto;
  }
  .restricted {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* V8: título principal e brasão do rodapé removidos conforme solicitado. */
.footer-brand { gap: 0; }
