:root{
  --tile:#e9eeed;
  --tile-border:#e8ebe9;
  --icon-base:#485c53;
  --text-base:#324235;
  --brand:#216a31;
  --brand-strong:#1b581e;

  --radius:18px;
  --ease:.24s cubic-bezier(.2,.7,.2,1);
  --gap:22px;

}

/* ===== Section / Container ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  margin-bottom: 40px;
  padding: 0 var(--body-padding);
}

.links {
  padding: 32px var(--body-padding);
}

.links__title-wrapper {
  text-align: center;
  margin-bottom: 40px;
}
.links__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 16px;
  position: relative;
}
.links__title::after {
  content: "";
  display: block;
  width: 140px;
  height: 3px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-strong));
  border-radius: 999px;
  opacity: .35;
}

@media (max-width:640px){
  .links__title { font-size: 22px; }
  .links__title::after { width: 100px; height: 2px; }
}

/* ===== Grid ===== */
.tiles {
  display: grid;
  gap: var(--gap);
  justify-content: center;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}

.tiles + .tiles {
  margin-top: 32px;
}

.tiles--small { grid-template-columns: repeat(3, 1fr); }
.tiles--large { grid-template-columns: repeat(2, 1fr); }

/* ===== Tiles ===== */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--tile);
  border: 1px solid var(--tile-border);
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
  color: var(--text-base);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  overflow: hidden;
  isolation: isolate;
}

.tile--small { min-height: 120px; padding: 38px; }
.tile--large { min-height: 170px; padding: 48px; }

.tile::before {
  content: "";
  position: absolute;
  left: -1px; top: -1px; bottom: -1px;
  width: 0;
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  opacity: 0;
  transition: width var(--ease), opacity var(--ease);
  z-index: 0;
}

.tile__icon {
  line-height: 0;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.tile__icon img {
  display: block;
  height: auto;
  max-width: 100%;
  filter: grayscale(1) saturate(0) brightness(.95) contrast(1.05);
  opacity: .9;
  transition: filter var(--ease), transform var(--ease), opacity var(--ease);
}
.tile--small .tile__icon img { width: 72px; max-height: 72px; }
.tile--large .tile__icon img { width: 96px; max-height: 96px; }

.tile__title {
  position: relative;
  z-index: 1;
  font: 700 16px/1.15 "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: center;
  color: var(--icon-base);
  transition: color var(--ease);
}
.tile--small .tile__title {
  font-size: 14px;
  letter-spacing: .4px;
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  border-color: rgba(33,106,79,.28);
  outline: none;
}
.tile:hover::before,
.tile:focus-visible::before {
  width: 4px;
  opacity: 1;
}
.tile:hover .tile__icon img,
.tile:focus-visible .tile__icon img {
  filter: none;
  opacity: 1;
  transform: translateY(-1px);
}
.tile:hover .tile__title,
.tile:focus-visible .tile__title {
  color: var(--brand);
}

/* Responsivo */
@media (max-width: 1100px) {
  .tiles--small { grid-template-columns: repeat(3, 1fr); }
  .tiles--large { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .tiles--small,
  .tiles--large { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .tiles--small,
  .tiles--large { grid-template-columns: 1fr; }
}
