/* ────────────────────────────────────────────
   shared.css — estilos de header e footer
   Carregado por todas as páginas do site.
──────────────────────────────────────────── */

/* ── Container padrão ── */
:root {
  --container-max: 1280px;
  --container-pad: clamp(16px, 5vw, 64px);
}

/* Container padrão .wrap — mesma largura em todas as páginas */
.wrap {
  max-width: var(--container-max);
  padding-inline: var(--container-pad);
}

/* Centraliza containers de conteúdo .wrap (divs e sections que não têm bg full-width próprio) */
div.wrap,
section.wrap {
  margin-inline: auto;
  box-sizing: border-box;
}

/* ── Header ── */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 16px var(--container-pad);
  width: 100%;
  box-sizing: border-box;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 28px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
}

header nav a {
  text-decoration: none;
  color: inherit;
  letter-spacing: 0.03em;
}

header nav a:hover,
header nav a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.brand {
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -1px;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
  color: inherit;
}

.brand small {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .12em;
}

.logo {
  height: clamp(36px, 5vw, 55px);
  width: clamp(122px, 21vw, 192px);
  object-fit: contain;
  object-position: left;
  display: block;
}

/* ── Footer ── */
footer {
  background: #fff;
  color: #000;
  border-top: 1px solid #eee;
}

.footer-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 48px var(--container-pad) 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: flex-start;
  box-sizing: border-box;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}

.footer-col:first-child {
  flex: 1 1 160px;
}

.footer-col-titulo {
  font-size: 11px;
  letter-spacing: .1em;
  font-weight: 700;
  color: #666;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.footer-col a {
  color: #000;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.8;
}

.footer-col a:hover {
  color: #829b25;
}

.footer-redes a {
  color: #000;
  display: inline-flex;
}

.footer-redes a:hover {
  color: #829b25;
}

.footer-bottom {
  width: 100%;
  border-top: 1px solid #eee;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #666;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  header nav {
    justify-content: flex-start;
    gap: 8px 16px;
  }

  .footer-col {
    flex: 1 1 calc(50% - 24px);
  }
}

@media (max-width: 420px) {
  .footer-col {
    flex: 1 1 100%;
  }
}
