:root {
  --ink: #0c1828;
  --muted: #46596b;
  --paper: #fff;
  --navy: #122638;
  --navy-deep: #0b1d2d;
  --teal: #02736c;
  --teal-hover: #00564f;
  --tint: #ecf3f7;
  --border: #ccd7e1;
  --focus: #18649b;
  --page-width: 1250px;
  --gutter: clamp(20px, 4.2vw, 60px);
  font-family: "Rubik", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body, h1, h2, h3, p, ol, dl, dd { margin: 0; }
body { line-height: 1.55; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.wrap {
  width: min(var(--page-width), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: absolute;
  z-index: 5;
  top: 9px;
  left: 9px;
  padding: 9px 13px;
  border-radius: 5px;
  background: white;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 9px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--teal);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.24;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: var(--teal-hover); }
.button:disabled { cursor: wait; opacity: .68; }

.button-outline {
  border-color: var(--teal);
  background: #fff;
  color: var(--teal-hover);
}

.button-outline:hover { background: #e7f3f1; }

.button-light-outline {
  border-color: #e9f3f4c7;
  background: #0b25354d;
}

.button-light-outline:hover { background: #0b2535d9; }
.button-lg { min-height: 51px; padding-inline: 23px; font-size: 16px; }

.text-link, .text-button {
  color: var(--teal-hover);
  font-weight: 700;
  text-underline-offset: 4px;
}

.text-link:hover, .text-button:hover { color: var(--ink); }

.site-header {
  position: relative;
  z-index: 2;
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
}

.logo { flex: none; }
.logo img { width: clamp(139px, 17vw, 194px); height: auto; }

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(17px, 3vw, 41px);
  white-space: nowrap;
}

.main-nav a {
  color: var(--navy);
  font-size: clamp(14px, 1.45vw, 16px);
  text-decoration: none;
}

.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--teal-hover);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.header-button { flex: none; min-height: 41px; padding-inline: 17px; }

.menu-toggle { display: none; }

.site-footer {
  background: var(--navy);
  color: #fff;
}

.footer-inner { padding-block: 24px 17px; }

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding-bottom: 21px;
  border-bottom: 1px solid #7891a4;
}

.footer-top h2 {
  font-size: clamp(25px, 3.1vw, 38px);
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -.035em;
}

.footer-top p { margin-top: 6px; color: #d4e1ea; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.site-footer :focus-visible { outline-color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 30px;
  padding-top: 13px;
  color: #dce6ed;
  font-size: 14px;
}

.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Carimbo de versão e data do build (padrão CDX: toda superfície mostra a sua, discreta). */
.footer-build {
  margin: 14px 0 0;
  color: #9fb3c2;
  font-size: 12px;
  letter-spacing: .01em;
}

@media (max-width: 760px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 7px;
    min-height: 0;
    padding-block: 10px 12px;
  }
  .main-nav { grid-column: 1 / -1; grid-row: 2; gap: clamp(9px, 4vw, 26px); }
  .main-nav a { font-size: clamp(12px, 3.6vw, 15px); }
  .header-button { font-size: 13px; padding-inline: 10px; }
  .footer-top { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  :root { --gutter: 15px; }
  .logo img { width: clamp(94px, 28vw, 116px); }
  .header-button { padding-inline: 8px; }
  .main-nav { flex-wrap: wrap; }
  .site-header.has-menu .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; }
  .site-header.has-menu .menu-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 41px;
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    color: var(--ink);
    font-size: 13px;
    cursor: pointer;
  }
  .site-header.has-menu .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 10px 18px;
    padding-block: 8px 4px;
    border-top: 1px solid var(--border);
  }
  .site-header.has-menu .menu-toggle[aria-expanded="false"] + .main-nav { display: none; }
}
